[GLLUG] Reading USB serial port broken
dimitris at siganos.org
Fri Sep 20 10:01:08 UTC 2019
How do you open the serial port from python?
If you use pyserial, try both with hardware flow control on and off like
ser = serial.Serial(device, baudrate, rtscts=1)
ser = serial.Serial(device, baudrate, rtscts=0)
On Fri, 20 Sep 2019 at 10:31, Henrik Morsing via GLLUG <
gllug at mailman.lug.org.uk> wrote:
> On Fri, Sep 20, 2019 at 10:04:23AM +0100, Dimitrios Siganos wrote:
> >Have you checked that it is not a baud rate, flow control or other serial
> >setting issue? You can strace tail to see what it does.
> I have checked what my limited skills allow me to, but running a tail on
> the device wouldn't really change those settings.
> I have tried setting this:
> stty -F /dev/ttyUSB0 cs8 115200 ignbrk -brkint -icrnl -imaxbel -opost
> -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh
> -ixon -crtscts
> that I found here:
> It's like the Python module connecting to the device doesn't set it high
> or whatever it is it normally does when connecting.
> GLLUG mailing list
> GLLUG at mailman.lug.org.uk
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the GLLUG