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

Neurosky mobile 2 with python 3 and bluetooth #29

Open
RahamaTahir opened this issue Jul 21, 2019 · 1 comment
Open

Neurosky mobile 2 with python 3 and bluetooth #29

RahamaTahir opened this issue Jul 21, 2019 · 1 comment

Comments

@RahamaTahir
Copy link

I have four things to ask you.
1. What does the purpose of using missing bytes in this function from MindWavemobileRawReader.py file:
def _readBytesFromMindwaveMobile(self, amountOfBytes):
missingBytes = amountOfBytes
receivedBytes = ""
while(missingBytes > 0):
receivedBytes += self.mindwaveMobileSocket.recv(missingBytes)
missingBytes = amountOfBytes - len(receivedBytes)
return receivedBytes;
2. If i run this code i gor an error in the same above function that said:
Can't convert bytes into string
as recieced bytes are in string form
3. Is it possible to connect the headset without dongle?
4. And I'm using python 3 so the built in function that u use in many functions supposed to take string of length 1 but it recieved Bytes so it also give errors.

@drzraf
Copy link

drzraf commented Dec 12, 2020

@robintibor : I wonder whether "MindWave Mobile 2" protocol is different or if it's supported too? (I don't own one)
If not, which linux-supported device would you suggest instead?

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

2 participants