Jan-25-2022, 12:44 PM
ESP32 is sending data via USB do desktop with Ubuntu 20.04 (at the end script will be used on RPI4).
Yesterday it was working, today not.
Yesterday it was working, today not.
def read(): port = '/dev/ttyUSB0' baudrate = 115200 ser = serial.Serial(port, baudrate) data = ser.readline() text = data.decode(errors="ignore") return textWhat serial monitor from arduino ide see:
Output:x0.33
y0.76
z9.70
t0.19
x0.32
y0.73
z9.73
t0.19
x0.31
y0.74
z9.65
t0.19
....
What is terminal output from script:Output:x0.27
z9.71
x0.26
z9.73
x0.29
z9.72
x0.29
z9.68
x0.28
z9.73
x0.28
z9.70
x0.28
z9.74
x0.20
z9.74
x0.33
z9.69
x0.29
z9.68
....
The funniest thing is that it was working yesterday, today is not. What I'm doing wrong? I tried to set different timeout, as well as None, and many other parameters with no result.