Skip to content

Error with Mindwave headset and RF dongle #6

@anber500

Description

@anber500

I have the Mindset headset with the RF dongle.
I've tested with various scripts including the code snipped from your example.

The headset connects but just after that it receives the following error:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
    self.run()
  File "F:\code\EEG_Python_learning\mindwave.py", line 73, in run
    self.parse_payload(payload)
  File "F:\code\EEG_Python_learning\mindwave.py", line 143, in parse_payload
    raw=ord(value[0])*256+ord(value[1])
IndexError: string index out of range

I can't seem to figure out what the correct value should be and why I'm getting this error.

This happens all the time

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions