-
-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates on adding Synchroni Devices #754
Changes from all commits
ec6a2ca
57fc0ff
a02013d
0603f58
786de8a
8535f3b
db31e3e
e7f491b
e57de14
4101311
3f2d800
fb080bd
a3bbe08
df382a8
db9f21b
d44f2d1
03fbcdf
ffd34dc
cd3b491
522da1c
82877ac
2e1d9f9
4e77a44
92e0d58
fb940f7
81aacfc
5d42765
fcaf827
46fdcf5
73e1841
45d79ef
e37ecf3
ca855a2
b2f3c01
283d9ee
0da143b
055c439
f5216c8
ec33752
24c0ce0
9db0634
c9f2edc
a0d9d64
3b4bead
3f84870
31514f6
314a68c
3df9ab9
6f04690
a5b1d33
15b55b7
63989e9
49afe19
12d62ff
b73599e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -379,4 +379,3 @@ Makefile | |
CMakeSettings.json | ||
._.gitignore | ||
|
||
build/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,9 +69,15 @@ export enum BoardIds { | |
EXPLORE_PLUS_8_CHAN_BOARD = 54, | ||
EXPLORE_PLUS_32_CHAN_BOARD = 55, | ||
PIEEG_BOARD = 56, | ||
NEUROPAWN_KNIGHT_BOARD = 57 | ||
} | ||
|
||
NEUROPAWN_KNIGHT_BOARD = 57, | ||
SYNCHRONI_TRIO_3_CHANNELS_BOARD = 58, | ||
SYNCHRONI_OCTO_CHANNELS_BOARD = 59, | ||
OB5000_8_CHANNELS_BOARD = 60, | ||
SYNCHRONI_PENTO_8_CHANNELS_BOARD = 61, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 60 is missed There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed id in new commit |
||
SYNCHRONI_UNO_1_CHANNELS_BOARD = 62 | ||
|
||
} | ||
export enum IpProtocolTypes { | ||
NO_IP_PROTOCOL = 0, | ||
UDP = 1, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,4 +51,4 @@ def main(): | |
|
||
|
||
if __name__ == "__main__": | ||
main() | ||
main() |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,7 +75,13 @@ BrainFlowBoards::BrainFlowBoards() | |
{"54", json::object()}, | ||
{"55", json::object()}, | ||
{"56", json::object()}, | ||
{"57", json::object()} | ||
{"57", json::object()}, | ||
{"58", json::object()}, | ||
{"59", json::object()}, | ||
{"60", json::object()}, | ||
{"61", json::object()}, | ||
{"62", json::object()} | ||
|
||
} | ||
}}; | ||
|
||
|
@@ -1107,6 +1113,63 @@ BrainFlowBoards::BrainFlowBoards() | |
{"eeg_channels", {1, 2, 3, 4, 5, 6, 7, 8}}, | ||
{"other_channels", {9, 10}} | ||
}; | ||
brainflow_boards_json["boards"]["58"]["default"] = { | ||
{"name", "Sync-Trio"}, | ||
{"sampling_rate", 250}, | ||
{"package_num_channel", 0}, | ||
{"timestamp_channel", 4}, | ||
{"marker_channel", 5}, | ||
{"num_rows", 6}, | ||
{"eeg_channels", {1, 2}}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is it really ecg channel only? for the cases where electrode can be connected to everything and there is no way to know it in front we just write eeg_channels emg_channels and ecg_channels to the same values(e.g. openbci ganglion) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We recommend user use according to IFU |
||
{"ecg_channels", {3}} | ||
}; | ||
brainflow_boards_json["boards"]["59"]["default"] = { | ||
{"name", "Sync-Octo"}, | ||
{"sampling_rate", 250}, | ||
{"package_num_channel", 0}, | ||
{"timestamp_channel", 9}, | ||
{"marker_channel", 10}, | ||
{"num_rows", 11}, | ||
{"eeg_channels", {1, 2, 3, 4, 5, 6, 7}}, | ||
{"ecg_channels", {8}} | ||
}; | ||
brainflow_boards_json["boards"]["60"]["default"] = { | ||
{"name", "OB5000MAX"}, | ||
{"sampling_rate", 250}, | ||
{"package_num_channel", 0}, | ||
{"timestamp_channel", 9}, | ||
{"marker_channel", 10}, | ||
{"num_rows", 11}, | ||
{"eeg_channels", {1, 2, 3, 4, 5, 6, 7, 8}}, | ||
}; | ||
brainflow_boards_json["boards"]["61"]["default"] = { | ||
{"name", "Sync-Neo"}, | ||
{"sampling_rate", 250}, | ||
{"package_num_channel", 0}, | ||
{"timestamp_channel", 9}, | ||
{"marker_channel", 10}, | ||
{"num_rows", 11}, | ||
{"eeg_channels", {1, 2, 3, 4, 5, 6, 7, 8}} | ||
}; | ||
brainflow_boards_json["boards"]["62"]["default"] = { | ||
{"name", "Sync-Uno"}, | ||
{"sampling_rate", 250}, | ||
{"package_num_channel", 0}, | ||
{"timestamp_channel", 2}, | ||
{"marker_channel", 3}, | ||
{"num_rows", 4}, | ||
{"eeg_channels", {1}} | ||
}; | ||
brainflow_boards_json["boards"]["63"]["default"] = { | ||
{"name", "OB3000"}, | ||
{"sampling_rate", 500}, | ||
{"package_num_channel", 0}, | ||
{"timestamp_channel", 25}, | ||
{"marker_channel", 26}, | ||
{"num_rows", 27}, | ||
{"eeg_channels", {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23}}, | ||
{"ecg_channels", {24}} | ||
}; | ||
} | ||
|
||
BrainFlowBoards boards_struct; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,6 +85,7 @@ SET (BOARD_CONTROLLER_SRC | |
${CMAKE_CURRENT_SOURCE_DIR}/src/board_controller/ntl/ntl_wifi.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/board_controller/aavaa/aavaa_v3.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/board_controller/pieeg/pieeg_board.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/board_controller/synchroni/synchroni_board.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/board_controller/neuropawn/knight.cpp | ||
) | ||
|
||
|
@@ -98,6 +99,14 @@ if (BUILD_OYMOTION_SDK) | |
include (${CMAKE_CURRENT_SOURCE_DIR}/third_party/gForceSDKCXX/build.cmake) | ||
endif (BUILD_OYMOTION_SDK) | ||
|
||
if (BUILD_SYNCHRONI_SDK) | ||
if (ANDROID) | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add a warning message here that its not currently supported |
||
else () | ||
include (${CMAKE_CURRENT_SOURCE_DIR}/third_party/synchroni/build.cmake) | ||
endif () | ||
endif (BUILD_SYNCHRONI_SDK) | ||
|
||
if (BUILD_BLUETOOTH) | ||
include (${CMAKE_CURRENT_SOURCE_DIR}/src/utils/bluetooth/build.cmake) | ||
endif (BUILD_BLUETOOTH) | ||
|
@@ -111,11 +120,6 @@ add_library ( | |
${BOARD_CONTROLLER_SRC} | ||
) | ||
|
||
#if (ANDROID AND BUILD_BLE) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thats not related to syncroni devices and should be restored |
||
# target_compile_definitions (${BOARD_CONTROLLER_NAME} PRIVATE STATIC_SIMPLEBLE) | ||
# target_link_libraries (${BOARD_CONTROLLER_NAME} PRIVATE simpleble-c) | ||
#endif (ANDROID AND BUILD_BLE) | ||
|
||
target_include_directories ( | ||
${BOARD_CONTROLLER_NAME} PRIVATE | ||
${CMAKE_CURRENT_SOURCE_DIR}/third_party/ | ||
|
@@ -148,6 +152,7 @@ target_include_directories ( | |
${CMAKE_CURRENT_SOURCE_DIR}/src/board_controller/ntl/inc | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/board_controller/aavaa/inc | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/board_controller/pieeg/inc | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/board_controller/synchroni/inc | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/board_controller/neuropawn/inc | ||
) | ||
|
||
|
@@ -208,7 +213,7 @@ if (UNIX AND NOT ANDROID) | |
COMMAND "${CMAKE_COMMAND}" -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR}/compiled/${BOARD_CONTROLLER_COMPILED_NAME}" "${CMAKE_CURRENT_SOURCE_DIR}/python_package/brainflow/lib/${BOARD_CONTROLLER_COMPILED_NAME}" | ||
COMMAND "${CMAKE_COMMAND}" -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR}/compiled/${BOARD_CONTROLLER_COMPILED_NAME}" "${CMAKE_CURRENT_SOURCE_DIR}/julia_package/brainflow/lib/${BOARD_CONTROLLER_COMPILED_NAME}" | ||
COMMAND "${CMAKE_COMMAND}" -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR}/compiled/${BOARD_CONTROLLER_COMPILED_NAME}" "${CMAKE_CURRENT_SOURCE_DIR}/java_package/brainflow/src/main/resources/${BOARD_CONTROLLER_COMPILED_NAME}" | ||
COMMAND "${CMAKE_COMMAND}" -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR}/compiled/${BOARD_CONTROLLER_COMPILED_NAME}" "${CMAKE_CURRENT_SOURCE_DIR}/csharp_package/brainflow/brainflow/${BOARD_CONTROLLER_COMPILED_NAME}" | ||
COMMAND "${CMAKE_COMMAND}" -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR}/compiled/${BOARD_CONTROLLER_COMPILED_NAME}" "${CMAKE_CURRENT_SOURCE_DIR}/csharp_package/brainflow/brainflow/lib/${BOARD_CONTROLLER_COMPILED_NAME}" | ||
COMMAND "${CMAKE_COMMAND}" -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR}/src/board_controller/inc/board_controller.h" "${CMAKE_CURRENT_SOURCE_DIR}/matlab_package/brainflow/inc/board_controller.h" | ||
COMMAND "${CMAKE_COMMAND}" -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR}/src/board_controller/inc/board_info_getter.h" "${CMAKE_CURRENT_SOURCE_DIR}/matlab_package/brainflow/inc/board_info_getter.h" | ||
COMMAND "${CMAKE_COMMAND}" -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR}/src/utils/inc/shared_export_matlab.h" "${CMAKE_CURRENT_SOURCE_DIR}/matlab_package/brainflow/inc/shared_export.h" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
60 is missed, such ids should match each other among languages otherwise it will not work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed id in new commit