OpenBCI_Python, "Unexpected END_BYTE found"
Hi guys,
It works fine, but sometimes (I don't know why or under which conditions) it throws the following exception:
Warning: Skipped 774 bytes before start found
Warning: ID:<198> <Unexpected END_BYTE found <198> instead of <192>
Warning: Skipped 835 bytes before start found
Warning: ID:<249> <Unexpected END_BYTE found <249> instead of <192>
Warning: Skipped 2142 bytes before start found
Warning: ID:<198> <Unexpected END_BYTE found <198> instead of <192>
Warning: Skipped 2317 bytes before start found
Warning: ID:<124> <Unexpected END_BYTE found <125> instead of <192>
Warning: Skipped 2908 bytes before start found
Warning: ID:<144> <Unexpected END_BYTE found <145> instead of <192>
Warning: Skipped 2976 bytes before start found
Warning: ID:<249> <Unexpected END_BYTE found <249> instead of <192>
Exception in thread Thread-1:
Traceback (most recent call last):
File "/home/ana/anaconda2/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/home/ana/anaconda2/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/ana/TFG/OpenBCI_Python-master/open_bci_v3.py", line 163, in start_streaming
call(sample)
File "/home/ana/TFG/OpenBCI_Python-master/plugins/udp_server.py", line 68, in __call__
self.send_data(json.dumps(sample.channel_data + sample.aux_data))
AttributeError: 'NoneType' object has no attribute 'channel_data'
Is anyone else having this problem or knowing how to solve this?
Thanks,
Ana
Comments
Yes, this has been seen many times in the past and seems to be "normal".
http://openbci.com/forum/index.php?p=/search&Search=end_byte
You can use the search box in the right column to search on other related terms.
William
https://github.com/OpenBCI/_depr_OpenBCI_Python_Node
Have you tried the current one?
https://github.com/OpenBCI/OpenBCI_Python
There are some folks working on node.js access, such as,
https://github.com/OpenBCI/openbci-js-sdk
Also see,
https://github.com/pushtheworldllc?tab=repositories
https://github.com/NeuroJS/openbci-dashboard
https://github.com/openexp/OpenEXP
Is this solve yet? or are there any workaround? it seems like the Python code always output this when i run it
Both of those old Python repos are now deprecated, as you can see from the OpenBCI-archive folder,
https://github.com/openbci-archive/OpenBCI_Python
https://github.com/openbci-archive/pyOpenBCI
You should now use the Brainflow libraries and examples.
https://brainflow.ai/
https://brainflow.readthedocs.io/en/stable/
William