pyserial not communicating with /dev/ttyUSB0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyserial (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
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(
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
PackageArchitec
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: pyserial
Uname: Linux 2.6.31-
This condition occurs on a Toshiba Tecra A8, PTA83U-0EQ021. It has BIOS version 3.40 and Firmware Revision 5.20.
The LinkUSB vendor code is 0x0403 and the product code is 0x6001. If I connect this LinkUSB device to a different ubuntu 9.10 notebook, both minicom and pyserial can successfully communicate with it. However, if I connect the LinkUSB device to this Toshiba Tecra A8 notebook, only minicom can communicate with it. pyserial cannot communicate with the LinkUSB device.
Also, if I connect two different USB-to-serial dongles to the Toshiba Tecra A8 notebook and then connect those two dongles with a null modem cable, both minicom and pyserial can communicate across the two dongles and the null modem cable.