[GLLUG] Reading USB serial port broken
Dimitrios Siganos
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
this.
ser = serial.Serial(device, baudrate, rtscts=1)
and...
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.
> >
>
> Hi,
>
> 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:
>
> https://playground.arduino.cc/Interfacing/LinuxTTY/
>
> It's like the Python module connecting to the device doesn't set it high
> or whatever it is it normally does when connecting.
>
> Thanks
>
> --
> GLLUG mailing list
> GLLUG at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/gllug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20190920/041184ae/attachment.html>
More information about the GLLUG
mailing list