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
Sometimes the byte sequence from the serial port can't be decoded:
Traceback (most recent call last):
File "scripts/test_trigger.py", line 20, in <module>
main()
File "scripts/test_trigger.py", line 8, in main
trigger.calibrate()
File "/home/jannik/Repos/demonstration-interface/src/components/trigger.py", line 43, in calibrate
value = self.get_adc_value()
File "/home/jannik/Repos/demonstration-interface/src/components/trigger.py", line 53, in get_adc_value
line = self.read_serial()
File "/home/jannik/Repos/demonstration-interface/src/components/trigger.py", line 87, in read_serial
line = self.ser.readline().decode().rstrip()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf8 in position 8: invalid start byte
The text was updated successfully, but these errors were encountered:
J4nn1K
changed the title
UnicodeDecodeError when reading serial data
Serial connection does not work properly
May 24, 2024
The next time the node is started it receives no bytes via the serial port.
When the connection is not closed using ser.close and the node is started, it works.
Sometimes the byte sequence from the serial port can't be decoded:
The text was updated successfully, but these errors were encountered: