-
Notifications
You must be signed in to change notification settings - Fork 34
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
Unexpected "stopping streaming......"&"Stream stopped" #3
Comments
I have not used pyOpenBCI as well as OpenBCI_python so maybe I am mistaken but both of these projects register atexit handler which stops streaming at the end of your script |
We bump into this problem either. Is there any method to fix it? |
I am nor autohor nor maintainer of pyOpenBCI and I have never used it but atexit handler itself is not bad, when your program ends its correct to release all resources and for OpenBCI boards resource releasing means stop data streaming I guess this code should not be commented out: https://github.com/OpenBCI/pyOpenBCI/blob/master/pyOpenBCI/wifi.py#L312 and more likely its a reason for your issue, also for wifi shield there is an issue #2 You can try another SDK if you want: https://brainflow.readthedocs.io/en/latest/Examples.html#python, there is installation guide and other instructions, for wifi shield with Cyton you need to pass board_id = brainflow.board_shim.CYTON_WIFI.board_id(or just write 5) and wifi shield ip address(in direct mode its 192.168.4.1) |
Thank you so much for your reply.You've done a great job to put all of it together.
However there's something confusing and it's probably because I'm not good at Python enough.
The Python version example only requires board_id and port_name. Where and how to input the IP adress of the board?
…---Original---
From: "Andrey Parfenov"<[email protected]>
Date: Sat, Oct 5, 2019 20:19 PM
To: "OpenBCI/pyOpenBCI"<[email protected]>;
Cc: "Comment"<[email protected]>;"DARKSUN19981999"<[email protected]>;
Subject: Re: [OpenBCI/pyOpenBCI] Unexpected "stopping streaming......"&"Stream stopped" (#3)
I am nor autohor nor maintainer of pyOpenBCI and I have never used it but atexit handler itself is not bad, when your program ends its correct to release all resources correctly and for OpenBCI boards resource releasing means stop data streaming
I guess this code should not be commented out: https://github.com/OpenBCI/pyOpenBCI/blob/master/pyOpenBCI/wifi.py#L312 and more likely its a reason for your issue, also for wifi shield there is an issue #2
You can try another SDK if you want: https://brainflow.readthedocs.io/en/latest/Examples.html#python, there is installation guide and other instructions, for wifi shield with Cyton you need to pass board_id = brainflow.board_shim.CYTON_WIFI.board_id(or just write 5) and wifi shield ip address(in direct mode its 192.168.4.1)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
This api is uniform for all boards and port_name is smth like unique id of your board e.g. for Cyton its COM port for Ganglion its MAC address for wifi shield you need to pass ip addr as port_name argument. I dont know how to rename this arg to avoid misunderstanding |
Its called port_name because first board I've added was Cyton |
We only use the OpenBCIWiFi substitute for the OpenBCICyton, because we use wifi sheild instead of doggle. We met an unexpected issue that it show us that "stopping streaming... Stream stopped" as in the picture above.
Is there any one could help us?
Maybe it suddenly jump to write_command("s")? But why did it happen?
The text was updated successfully, but these errors were encountered: