Skip to content

Commit 81cdb18

Browse files
committed
add notion 1 and 2
Signed-off-by: Andrey Parfenov <[email protected]>
1 parent 1112827 commit 81cdb18

File tree

10 files changed

+62
-12
lines changed

10 files changed

+62
-12
lines changed

csharp-package/brainflow/brainflow/board_controller_library.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ public enum BoardIds
5858
CALLIBRI_EMG_BOARD = 10,
5959
CALLIBRI_ECG_BOARD = 11,
6060
FASCIA_BOARD = 12,
61-
NOTION_OSC_BOARD = 13
61+
NOTION_1_BOARD = 13,
62+
NOTION_2_BOARD = 14
6263
};
6364

6465

docs/SupportedBoards.rst

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ To create an instance of BoardShim class for your board check required inputs in
2121
"CallibriEEG", "BoardIds.CALLIBRI_EEG_BOARD (9)", "-", "-", "-", "-", "-", "Optional: ExternalSwitchInputMioUSB (default is ExternalSwitchInputMioElectrodes)", "Timeout for device discovery(default 15sec)", "-"
2222
"CallibriEMG", "BoardIds.CALLIBRI_EMG_BOARD (10)", "-", "-", "-", "-", "-", "Optional: ExternalSwitchInputMioUSB (default is ExternalSwitchInputMioElectrodes)", "Timeout for device discovery(default 15sec)", "-"
2323
"CallibriECG", "BoardIds.CALLIBRI_ECG_BOARD (11)", "-", "-", "-", "-", "-", "Optional: ExternalSwitchInputMioUSB (default is ExternalSwitchInputMioElectrodes)", "Timeout for device discovery(default 15sec)", "-"
24-
"NotionOSC", "BoardIds.NOTION_OSC_BOARD (13)", "-", "-", "-", "Optional: IP Port(default 9000)", "-", "-", "-", "Optional: seial number"
24+
"Notion 1", "BoardIds.NOTION_1_BOARD (13)", "-", "-", "-", "-", "-", "-", "-", "Optional: serial number"
25+
"Notion 2", "BoardIds.NOTION_2_BOARD (14)", "-", "-", "-", "-", "-", "-", "-", "Optional: serial number"
2526

2627

2728
Streaming Board
@@ -391,20 +392,49 @@ Board Spec:
391392
Neurosity
392393
----------
393394

394-
Notion
395-
~~~~~~~
395+
Notion 1
396+
~~~~~~~~~
396397

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

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

404+
`Link to Neurosity Tutorial <https://dev.to/neurosity/using-brainflow-with-the-neurosity-headset-2kof>`_
405+
403406
To choose this board in BoardShim constructor please specify:
404407

405408
- board_id: 13
406409
- optional: Serial Number field of BrainFlowInputParams structure, important if you have multiple devices in the same place
407-
- optional: IP Port field of BrainFlowInputParams structure, default is 9000
410+
411+
Supported platforms:
412+
413+
- Windows
414+
- Linux
415+
- MacOS
416+
417+
Board Spec:
418+
419+
- num eeg channels: 8
420+
- sampling rate: 250
421+
- communication: UDP BroadCast
422+
423+
Notion 2
424+
~~~~~~~~~
425+
426+
.. image:: https://live.staticflickr.com/65535/50093731531_68f2183bb3_o.jpg
427+
:width: 250px
428+
:height: 250px
429+
430+
`Notion website <https://neurosity.co/>`_
431+
432+
`Link to Neurosity Tutorial <https://dev.to/neurosity/using-brainflow-with-the-neurosity-headset-2kof>`_
433+
434+
To choose this board in BoardShim constructor please specify:
435+
436+
- board_id: 14
437+
- optional: Serial Number field of BrainFlowInputParams structure, important if you have multiple devices in the same place
408438

409439
Supported platforms:
410440

java-package/brainflow/src/main/java/brainflow/BoardIds.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ public enum BoardIds
2323
CALLIBRI_EMG_BOARD (10),
2424
CALLIBRI_ECG_BOARD (11),
2525
FASCIA_BOARD (12),
26-
NOTION_OSC_BOARD (13);
26+
NOTION_1_BOARD (13),
27+
NOTION_2_BOARD (14);
2728

2829
private final int board_id;
2930
private static final Map<Integer, BoardIds> bi_map = new HashMap<Integer, BoardIds> ();

julia-package/brainflow/src/board_shim.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ AnyIntType = Union{Int8, Int32, Int64, Int128, Int}
2121
CALLIBRI_EMG_BOARD = 10
2222
CALLIBRI_ECG_BOARD = 11
2323
FASCIA_BOARD = 12
24-
NOTION_OSC_BOARD = 13
24+
NOTION_1_BOARD = 13
25+
NOTION_2_BOARD = 14
2526

2627
end
2728

matlab-package/brainflow/BoardIDs.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
CALLIBRI_EMG_BOARD (10)
1616
CALLIBRI_ECG_BOARD (11)
1717
FASCIA_BOARD (12)
18-
NOTION_OSC_BOARD (13)
18+
NOTION_1_BOARD (13)
19+
NOTION_2_BOARD (14)
1920
end
2021
end

python-package/brainflow/board_shim.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ class BoardIds (enum.Enum):
3333
CALLIBRI_EMG_BOARD = 10 #:
3434
CALLIBRI_ECG_BOARD = 11 #:
3535
FASCIA_BOARD = 12 #:
36-
NOTION_OSC_BOARD = 13 #:
36+
NOTION_1_BOARD = 13 #:
37+
NOTION_2_BOARD = 14 #:
3738

3839

3940
class LogLevels (enum.Enum):

src/board_controller/board_controller.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,11 @@ int prepare_session (int board_id, char *json_brainflow_input_params)
117117
case BoardIds::FASCIA_BOARD:
118118
board = std::shared_ptr<Board> (new Fascia (params));
119119
break;
120-
case BoardIds::NOTION_OSC_BOARD:
120+
// notion 1 and notion 2 have the same class, the only difference is get_eeg_names
121+
case BoardIds::NOTION_1_BOARD:
122+
board = std::shared_ptr<Board> (new NotionOSC (params));
123+
break;
124+
case BoardIds::NOTION_2_BOARD:
121125
board = std::shared_ptr<Board> (new NotionOSC (params));
122126
break;
123127
default:

src/board_controller/inc/brainflow_boards.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,16 @@ json brainflow_boards_json = {
196196
{"eeg_channels", {1, 2, 3, 4, 5, 6, 7, 8}},
197197
{"eeg_names", "CP6,F6,C4,CP4,CP3,F5,C3,CP5"},
198198
{"other_channels", {9}}
199+
}},
200+
{"14",
201+
{{"name", "NotionOSC"},
202+
{"sampling_rate", 250},
203+
{"timestamp_channel", 10},
204+
{"package_num_channel", 0},
205+
{"num_rows", 11},
206+
{"eeg_channels", {1, 2, 3, 4, 5, 6, 7, 8}},
207+
{"eeg_names", "CP5,F5,C3,CP3,CP6,F6,C4,CP4"},
208+
{"other_channels", {9}}
199209
}}
200210
}
201211
}};

src/board_controller/neurosity/notion_osc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ constexpr int NotionOSC::num_channels;
1313

1414

1515
NotionOSC::NotionOSC (struct BrainFlowInputParams params)
16-
: Board ((int)BoardIds::NOTION_OSC_BOARD, params)
16+
: Board ((int)BoardIds::NOTION_1_BOARD, params)
1717
{
1818
socket = NULL;
1919
keep_alive = false;

src/utils/inc/brainflow_constants.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ enum class BoardIds : int
4545
CALLIBRI_EMG_BOARD = 10,
4646
CALLIBRI_ECG_BOARD = 11,
4747
FASCIA_BOARD = 12,
48-
NOTION_OSC_BOARD = 13
48+
NOTION_1_BOARD = 13,
49+
NOTION_2_BOARD = 14
4950
};
5051

5152
enum class FilterTypes : int

0 commit comments

Comments
 (0)