You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon running the Commander.py script, the cobs.cobs.DecodeError: not enough input bytes for length code error is displayed.
PS D:\Github\aliphys\nicla-sense-me-fw\Arduino_BHY2\examples\DataHarvester\extras\Commander> & C:/Users/user/AppData/Local/Programs/Python/Python39/python.exe d:/Github/aliphys/nicla-sense-me-fw/Arduino_BHY2/examples/DataHarvester/extras/Commander/Commander.py COM23 test phys
Running...
> Exception in thread Thread-1:
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\threading.py", line 950, in _bootstrap_inner
self.run()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\threading.py", line 888, in run
self._target(*self._args, **self._kwargs)
File "d:\Github\aliphys\nicla-sense-me-fw\Arduino_BHY2\examples\DataHarvester\extras\Commander\Commander.py", line 88, in receiver
decoded = cobs.decode(data[0:(n - 1)])
cobs.cobs.DecodeError: not enough input bytes for length code
Something might be changed in the PacketSerial or Python COBS library. @aliphys can you try changing the n-1 index to n at line 88?
Changing the n-1 index to n at line 88 leads to a zero byte found in input error
PS D:\Github\aliphys\nicla-sense-me-fw> & C:/Users/user/AppData/Local/Programs/Python/Python39/python.exe d:/Github/aliphys/nicla-sense-me-fw/Arduino_BHY2/examples/DataHarvester/extras/Commander/Commander.py
COM27 test Physics
> r
Running...
> Exception in thread Thread-1:
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\threading.py", line 950, in _bootstrap_inner
self.run()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\threading.py", line 888, in run
self._target(*self._args, **self._kwargs)
File "d:\Github\aliphys\nicla-sense-me-fw\Arduino_BHY2\examples\DataHarvester\extras\Commander\Commander.py", line 88, in receiver
decoded = cobs.decode(data[0:(n)]) #decoded = cobs.decode(data[0:(n - 1)])
cobs.cobs.DecodeError: zero byte found in input
Description of defect
Upon running the Commander.py script, the
cobs.cobs.DecodeError: not enough input bytes for length code
error is displayed.nicla-sense-me-fw/Arduino_BHY2/examples/DataHarvester/extras/Commander/Commander.py
Line 88 in f42f361
This may related to truncated data coming from the DataHarvester.ino file?
Target(s) affected by this defect ?
Nicla Sense ME
Toolchain(s) (name and version) displaying this defect ?
What version of Mbed-os are you using (tag or sha) ?
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
How is this defect reproduced ?
arduino-cli
to identify the COM portpython [COMPORT] test phys
r
then enter to start data aquisitionnicla-sense-me-fw/Arduino_BHY2/examples/DataHarvester/extras/Commander/Commander.py
Lines 55 to 62 in f42f361
The text was updated successfully, but these errors were encountered: