-
Notifications
You must be signed in to change notification settings - Fork 75
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
the program just stopped working #11
Comments
Hmm can you somehow get the error message? |
There is no error message, the program is not crashing but it seems can not receive or waiting for the bytes from the mindwave. As I tried to set the timed out for receiving, the time out is raised instead. |
Hm in that case I also don't know what to do besides setting timeout and maybe then reconnecting or sth if timeout error is raised.... but no idea if that would help :/ |
I've already tried to disconnect and re-connect when timed out. |
I did not use any RasperryPi, I used my normal laptop with a usb bluetooth dongle/adapter. |
@robintibor Thanks for your code so much, it helps a lot. @bbbbear We are using RaspberryPi to connect the mindwave mobile, also via the embedded bluetooth. Our previous engineer had a similar disconnecting problem, but he coded with C# with official API and used the usb dongle to connect a desktop. In my memory, he said it's an event loop monitoring, one can add a piece of blocking code or something to keep it stay in. Before we using Raspberry, we used a STM32 board and a HC05 bluetooth model to connect mindwave mobile, which coded in C, looks like this: Currently, we can connect the mindwave mobile by using raspberry pi 3, but the attention and meditation data are all zero. I think we might face the disconnecting problem in the future. So, @bbbbear have you ever had this problem about zero attention and meditation? |
@macheteluc No, I had never face the problem about the zero attention and meditation problem |
@bbbbear hi men can you giveme a hand? im trying to conect the mindwave mobile mw003 to my raspberry pi 3b but i have an error that says And when i try to do in terminal Pls help that i have trying for long time and dont foun the error |
@AdairValdivia Umm, it's already long time ago that I can't remember and I don't have raspberry pi now. |
@bbbbear Did you solve the problem? I am facing it right now. I was using the same config. as you (mindwave mobile + raspberry pi 3 B). After a while, the console does not refresh as if no data is being streamed. After reconnecting the issue rises in less than a minute (approx. 30 seconds). |
@gabe-sr
|
As I use the api you provided, the program is stopped working after running for a while(15-20 mins.).
I still have no idea how to fix it. As I tried to track the code it shows that it was stopped on this line.
receivedBytes += self.mindwaveMobileSocket.recv(missingBytes)
in _readBytesFromMindwaveMobile of MindwaveMobileRawReader.py
I am using rasberry pi 3 B, the bluetooth is already embeded on the board.
Thank you
The text was updated successfully, but these errors were encountered: