openbci-archive / OpenBCI_LSL

An application for establishing an OpenBCI stream through the Lab Streaming Layer (LSL)
53 stars 32 forks source link

Unexpected END_BYTE found <2> instead of <192> #20

Open npdrbong opened 1 year ago

npdrbong commented 1 year ago

Hi, everyone.

I am new on openbci and try to make it lsl stream for my research.

when I try to start lsl, this error message printed.

Do you have any idea what's going on and how can I fix this? Streaming data... WARNING:root:ID:<1> <Unexpected END_BYTE found <2> instead of <192> Warning: ID:<1> <Unexpected END_BYTE found <2> instead of <192> Exception in thread Thread-1 (start_streaming): Traceback (most recent call last): File "C:\Users\Bong Suhyeon\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "C:\Users\Bong Suhyeon\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "C:\Users\Bong Suhyeon\Downloads\OpenBCI_LSL-master\OpenBCI_LSL-master\lib\open_bci_v3.py", line 158, in start_streaming sample = self._read_serial_binary() File "C:\Users\Bong Suhyeon\Downloads\OpenBCI_LSL-master\OpenBCI_LSL-master\lib\open_bci_v3.py", line 225, in _read_serial_binary unpacked = struct.unpack('3B', literal_read) struct.error: unpack requires a buffer of 3 bytes

jielingl11 commented 4 months ago

So have you solved this problem? I encountered the same warning messages