Skip to content

Commit

Permalink
add notion 1 and 2
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Parfenov <[email protected]>
  • Loading branch information
Andrey1994 committed Sep 24, 2020
1 parent 1112827 commit 81cdb18
Show file tree
Hide file tree
Showing 10 changed files with 62 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ public enum BoardIds
CALLIBRI_EMG_BOARD = 10,
CALLIBRI_ECG_BOARD = 11,
FASCIA_BOARD = 12,
NOTION_OSC_BOARD = 13
NOTION_1_BOARD = 13,
NOTION_2_BOARD = 14
};


Expand Down
38 changes: 34 additions & 4 deletions docs/SupportedBoards.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ To create an instance of BoardShim class for your board check required inputs in
"CallibriEEG", "BoardIds.CALLIBRI_EEG_BOARD (9)", "-", "-", "-", "-", "-", "Optional: ExternalSwitchInputMioUSB (default is ExternalSwitchInputMioElectrodes)", "Timeout for device discovery(default 15sec)", "-"
"CallibriEMG", "BoardIds.CALLIBRI_EMG_BOARD (10)", "-", "-", "-", "-", "-", "Optional: ExternalSwitchInputMioUSB (default is ExternalSwitchInputMioElectrodes)", "Timeout for device discovery(default 15sec)", "-"
"CallibriECG", "BoardIds.CALLIBRI_ECG_BOARD (11)", "-", "-", "-", "-", "-", "Optional: ExternalSwitchInputMioUSB (default is ExternalSwitchInputMioElectrodes)", "Timeout for device discovery(default 15sec)", "-"
"NotionOSC", "BoardIds.NOTION_OSC_BOARD (13)", "-", "-", "-", "Optional: IP Port(default 9000)", "-", "-", "-", "Optional: seial number"
"Notion 1", "BoardIds.NOTION_1_BOARD (13)", "-", "-", "-", "-", "-", "-", "-", "Optional: serial number"
"Notion 2", "BoardIds.NOTION_2_BOARD (14)", "-", "-", "-", "-", "-", "-", "-", "Optional: serial number"


Streaming Board
Expand Down Expand Up @@ -391,20 +392,49 @@ Board Spec:
Neurosity
----------

Notion
~~~~~~~
Notion 1
~~~~~~~~~

.. image:: https://live.staticflickr.com/65535/50093731531_68f2183bb3_o.jpg
:width: 250px
:height: 250px

`Notion website <https://neurosity.co/>`_

`Link to Neurosity Tutorial <https://dev.to/neurosity/using-brainflow-with-the-neurosity-headset-2kof>`_

To choose this board in BoardShim constructor please specify:

- board_id: 13
- optional: Serial Number field of BrainFlowInputParams structure, important if you have multiple devices in the same place
- optional: IP Port field of BrainFlowInputParams structure, default is 9000

Supported platforms:

- Windows
- Linux
- MacOS

Board Spec:

- num eeg channels: 8
- sampling rate: 250
- communication: UDP BroadCast

Notion 2
~~~~~~~~~

.. image:: https://live.staticflickr.com/65535/50093731531_68f2183bb3_o.jpg
:width: 250px
:height: 250px

`Notion website <https://neurosity.co/>`_

`Link to Neurosity Tutorial <https://dev.to/neurosity/using-brainflow-with-the-neurosity-headset-2kof>`_

To choose this board in BoardShim constructor please specify:

- board_id: 14
- optional: Serial Number field of BrainFlowInputParams structure, important if you have multiple devices in the same place

Supported platforms:

Expand Down
3 changes: 2 additions & 1 deletion java-package/brainflow/src/main/java/brainflow/BoardIds.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public enum BoardIds
CALLIBRI_EMG_BOARD (10),
CALLIBRI_ECG_BOARD (11),
FASCIA_BOARD (12),
NOTION_OSC_BOARD (13);
NOTION_1_BOARD (13),
NOTION_2_BOARD (14);

private final int board_id;
private static final Map<Integer, BoardIds> bi_map = new HashMap<Integer, BoardIds> ();
Expand Down
3 changes: 2 additions & 1 deletion julia-package/brainflow/src/board_shim.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ AnyIntType = Union{Int8, Int32, Int64, Int128, Int}
CALLIBRI_EMG_BOARD = 10
CALLIBRI_ECG_BOARD = 11
FASCIA_BOARD = 12
NOTION_OSC_BOARD = 13
NOTION_1_BOARD = 13
NOTION_2_BOARD = 14

end

Expand Down
3 changes: 2 additions & 1 deletion matlab-package/brainflow/BoardIDs.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
CALLIBRI_EMG_BOARD (10)
CALLIBRI_ECG_BOARD (11)
FASCIA_BOARD (12)
NOTION_OSC_BOARD (13)
NOTION_1_BOARD (13)
NOTION_2_BOARD (14)
end
end
3 changes: 2 additions & 1 deletion python-package/brainflow/board_shim.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ class BoardIds (enum.Enum):
CALLIBRI_EMG_BOARD = 10 #:
CALLIBRI_ECG_BOARD = 11 #:
FASCIA_BOARD = 12 #:
NOTION_OSC_BOARD = 13 #:
NOTION_1_BOARD = 13 #:
NOTION_2_BOARD = 14 #:


class LogLevels (enum.Enum):
Expand Down
6 changes: 5 additions & 1 deletion src/board_controller/board_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@ int prepare_session (int board_id, char *json_brainflow_input_params)
case BoardIds::FASCIA_BOARD:
board = std::shared_ptr<Board> (new Fascia (params));
break;
case BoardIds::NOTION_OSC_BOARD:
// notion 1 and notion 2 have the same class, the only difference is get_eeg_names
case BoardIds::NOTION_1_BOARD:
board = std::shared_ptr<Board> (new NotionOSC (params));
break;
case BoardIds::NOTION_2_BOARD:
board = std::shared_ptr<Board> (new NotionOSC (params));
break;
default:
Expand Down
10 changes: 10 additions & 0 deletions src/board_controller/inc/brainflow_boards.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,16 @@ json brainflow_boards_json = {
{"eeg_channels", {1, 2, 3, 4, 5, 6, 7, 8}},
{"eeg_names", "CP6,F6,C4,CP4,CP3,F5,C3,CP5"},
{"other_channels", {9}}
}},
{"14",
{{"name", "NotionOSC"},
{"sampling_rate", 250},
{"timestamp_channel", 10},
{"package_num_channel", 0},
{"num_rows", 11},
{"eeg_channels", {1, 2, 3, 4, 5, 6, 7, 8}},
{"eeg_names", "CP5,F5,C3,CP3,CP6,F6,C4,CP4"},
{"other_channels", {9}}
}}
}
}};
Expand Down
2 changes: 1 addition & 1 deletion src/board_controller/neurosity/notion_osc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ constexpr int NotionOSC::num_channels;


NotionOSC::NotionOSC (struct BrainFlowInputParams params)
: Board ((int)BoardIds::NOTION_OSC_BOARD, params)
: Board ((int)BoardIds::NOTION_1_BOARD, params)
{
socket = NULL;
keep_alive = false;
Expand Down
3 changes: 2 additions & 1 deletion src/utils/inc/brainflow_constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ enum class BoardIds : int
CALLIBRI_EMG_BOARD = 10,
CALLIBRI_ECG_BOARD = 11,
FASCIA_BOARD = 12,
NOTION_OSC_BOARD = 13
NOTION_1_BOARD = 13,
NOTION_2_BOARD = 14
};

enum class FilterTypes : int
Expand Down

0 comments on commit 81cdb18

Please sign in to comment.