-
Notifications
You must be signed in to change notification settings - Fork 52
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
muse s - connecting with brainflow (python), but not with brainbay #41
Comments
it was a bit late yesterday, and i did not spend as much effort preparing the post as i should have. first i found that the brainbay forum https://brainbay.iphpbb3.com/ is not accessable from thailand (i thought it was down, thats why i did not look there first). so i will search there first now (i use a vpn now to access it). also i started brainbay with the --debug option: commandline:--debug if there are any other ways to help troubleshoot, please let me know. i would really like to fix the problem. as i said, i find this project pretty amazing. the node style scripting makes it a breeze to create my own designs without programming.. thats awsome. hope i can get it to work with my device. thanks for all the hard work! |
thank you or the detailled report! |
that would be very much appreciated. thank you, lets try that. |
i just updated the brainflow libraries and added the timeout parameter - maybe this helps, |
thank you for the update. i tried it and there is still error nr 17 (instantly). i tried setting the timeout to 10, but it didnt change. instant error 17. i found in the brainbay programm folder the file brainflow_error_log.log and it had the following content: [2023-07-15 17:16:44.091] [board_logger] [info] incoming json: {"file":"","file_anc":"","file_aux":"","ip_address":"192.168.4.1","ip_address_anc":"","ip_address_aux":"","ip_port":4567,"ip_port_anc":0,"ip_port_aux":0,"ip_protocol":0,"mac_address":"","master_board":-100,"other_info":"","serial_number":"","serial_port":"COM4","timeout":10} when i try to load another brainbay board (i tried the notionosc2) i get: [2023-07-15 17:54:40.012] [board_logger] [info] incoming json: {"file":"","file_anc":"","file_aux":"","ip_address":"192.168.4.1","ip_address_anc":"","ip_address_aux":"","ip_port":4567,"ip_port_anc":0,"ip_port_aux":0,"ip_protocol":0,"mac_address":"","master_board":-100,"other_info":"","serial_number":"","serial_port":"COM4","timeout":0} it seems to fail to load some libraries. i am pretty sure that it is hard to debug from afar, is there anything i can do to help out troubleshooting? (i installed microsoft visual studio 2019 and compiled brainbay successfully, but since i have no experience in c++, i do not know what do there :-) so it seems that it is specific to the muse device, not brainflow in general. |
thanks for these additional insights. 3 more things you could try: *) increase the timeout (i think it's milliseconds) to 2000 or 3000 - i remember that somebody reported that a longer time is needed for establishing connection |
thank you for the advice. i downloaded the git master branch from brainbay and copied the dll files over. and it worked a bit more. i now get (timeout 100s, i tried with longer values but it just freezes brainbay for longer): {"file":"","file_anc":"","file_aux":"","ip_address":"192.168.4.1","ip_address_anc":"","ip_address_aux":"","ip_port":4567,"ip_port_anc":0,"ip_port_aux":0,"ip_protocol":0,"mac_address":"","master_board":-100,"other_info":"","serial_number":"","serial_port":"COM4","timeout":100} (but bluetooth is activated and working - tested with muselsl) i will ask andrey / in the brainflow slack channel about possible reasons. just wanted to let you know that there is progress. thank you. |
okay -- thanks for the update! I have no idea why the BT-connection can't be opened successfully by the Brainflow library... BTW: in case you download from the master branch (or install the current version using the setup exe) you do not need to replace the .dlls - they should be up-to-date. |
system: win11 (all updates), python 3.11 (brainflow 5.8.2), brainbay 2.7
testing if the device will connect to my laptop:
starting the default connection example (first one on https://brainflow.readthedocs.io/en/stable/Examples.html ) with (i have a muse s = board id is 39):
python brainflow-connection-test.py --board-id 39
the device will be found, connected to, and some data will be recorded.
doing the same in brainbay (choosing the muse s, not the muse s BLED because i do not have the dongle) will return 'failed to prepare session 17' (instandly, no scanning done, just some error).
i tried the same today on win10 (before reformating in installing win 11) and got the same error (it would also connect through pure python-brainflow).
is it possible to use brainbay/muse without the BLED bluetooth dongle?
could there be any other problems?
thank you for, writing this program. it seems amazing, i cant wait to try it out :-)
The text was updated successfully, but these errors were encountered: