-
Notifications
You must be signed in to change notification settings - Fork 220
Description
For example, I'm working with a electronic scale. When I open it with cutecom and select 1200 baud, 8 bits data, no parity, 1 stop bit I can send the "Get Weight" command which is D05\r\n
, then I see in console 123.032g\r\n
.
When I try to use go-serial and writing the command after opening it with same mode parameters, setting the read timeout to 1 second I get my buffer filled with newlines as soon as I send the command. Switching to Cutecom and opening the port in this state causes cutecom to crash due to the newlines filling the log. The only way to reset the devices gone-amok state is by disconnecting and connecting the USB cable.
Why would go-serial give different behavior to pySerial and cutecom? What could be making the device to enter this tilted/"stuck" state?