Skip to content
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

Closed
SarahAvatar opened this issue Aug 27, 2019 · 7 comments
Closed

Unexpected "stopping streaming......"&"Stream stopped" #3

SarahAvatar opened this issue Aug 27, 2019 · 7 comments

Comments

@SarahAvatar
Copy link

Question
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?

@Andrey1994
Copy link

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

@DARKSUN19981999
Copy link

register atexit handler

We bump into this problem either. Is there any method to fix it?

@DARKSUN19981999
Copy link

Question
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?

sorry but have you figured out how to deal with it?

@Andrey1994
Copy link

Andrey1994 commented Oct 5, 2019

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)

@DARKSUN19981999
Copy link

DARKSUN19981999 commented Oct 6, 2019 via email

@Andrey1994
Copy link

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

@Andrey1994
Copy link

Its called port_name because first board I've added was Cyton

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants