python-mindwave-mobile icon indicating copy to clipboard operation
python-mindwave-mobile copied to clipboard

Neurosky mobile 2 with python 3 and bluetooth

Open RahamaTahir opened this issue 6 years ago • 1 comments

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.

RahamaTahir avatar Jul 21 '19 16:07 RahamaTahir

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

drzraf avatar Dec 12 '20 22:12 drzraf