a "stopped streaming" issue using WIFI shield programme
Henryw97
Taiwan
in Wifi Shield
I tried to connect the OpenBCI devices using Python code and found that “ stream stopped”.
It works on OpenBCI_GUI after all settings done (at least it could print and show all EEG wave images) which means all versions are latest (at least satisfied to run the programme). So I guess the device has already connected to the WIFI. However, after installing all requested packages (numpy, pyOpenBCI, ……) I found that the EXAMPLE.py file didn’t work as it showed “Stopping streaming…Stream stopped WARNING:……”. I still have no idea to figure out this issue after reading many tutorial resources so that I really want you to help me.
The GUI output, Python example code and its output screenshots are attached.
Cheers,
Henry
Comments
Henry, hi.
This repo you are using, is deprecated and no longer supported,
https://github.com/openbci-archive/OpenBCI_Python
Instead use the sample code for Brainflow and the appropriate board type,
https://brainflow.readthedocs.io/en/stable/SupportedBoards.html#cyton-with-wifi-shield
https://brainflow.readthedocs.io/en/stable/Examples.html
Regards, William
Thanks William!
After installing BrainFlow package following the tutorial, some sample files worked like "DownsampleData.py".
But I still found some failed like "GetDatafromaBoard.py" as I needed to add --board-id 5 (my dev is Cyton with WIFI Shield). I dont think something goes wrong on WIFI connection cuz the GUI works very well. I'm sorry as I just start learning Python. Could you please tell what should I do next?
Cheers, Henry
Don't the Brainflow instructions, specify that you need to supply a TCP 'port' on the command line? You can see the line above:
[2021-03-17 xxxx] [board_logger] [error] ip port is empty
Forgive my stupidity. T:T
I have no idea where I can find my TCP port number. Besides, there is another ERROR line here
'[error] Recv res -1'
And I guess it is also caused by the 'port problem' ?
TCP / IP port numbers have two ranges, 'ephemeral' (unused, available for applications or OS to assign temporarily) and 'well-known' / 'reserved'.
https://en.wikipedia.org/wiki/Ephemeral_port
https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers
https://www.google.com/search?q=python+get+unused+port
Thanks, 'unused port' seems ok to me.
And how to solve the error from the first output line? What does 'Recv res -1' mean?
You can post Brainflow questions on the Slack,
https://brainflow.org/