[Bug 543331] Re: pyserial not communicating with /dev/ttyUSB0
Lawrence
lorrin at zoho.com
Mon Sep 22 15:24:36 UTC 2014
I have a similar issue on Ubuntu. Communicating with a /dev/ttyUSB
device works with minicom, but it doesn't with PySerial with the same
settings. It works for about 20% of the time, while other times it
messes with the data, or it hangs indefinitelly/until timeout.
There doesn't seem to be any development regarding this bug for the past
few years.
The solution from billmania didn't work for me, my device requires no
flow control whatsoever.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to pyserial in Ubuntu.
https://bugs.launchpad.net/bugs/543331
Title:
pyserial not communicating with /dev/ttyUSB0
Status in “pyserial” package in Ubuntu:
Confirmed
Bug description:
I have a LinkUSB dongle. When this device is attached to the notebook, the file /dev/ttyUSB0 is created. If I use minicom to interact with this device, all works correctly.
However, the following does not work correctly:
from serial import *
l = Serial(port='/dev/ttyUSB0', baudrate=9600)
l.write('r')
print l.read(3)
The read() statement should return '\r\nP' but instead never returns.
It seems as if the pyserial methods aren't actually writing to the
serial port.
The source package is python-serial
ProblemType: Bug
Architecture: i386
Date: Sun Mar 21 06:08:45 2010
DistroRelease: Ubuntu 9.10
Package: python-serial 2.3-1
PackageArchitecture: all
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic-pae
SourcePackage: pyserial
Uname: Linux 2.6.31-14-generic-pae i686
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pyserial/+bug/543331/+subscriptions
More information about the foundations-bugs
mailing list