Getting DSR-status throws an IOError exception

Bug #304469 reported by Tomas Grahn
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
pyserial (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When attempting to get the DSR-status of the serial port using pySerial, it throws an exception. I'm using Ubuntu 8.10 (amd64) with all the latest updates.

The following code triggers it (executed from IDLE):
>>> import serial
>>> modem = serial.Serial("/dev/ttyUSB0")
>>> modem.getDSR()
Traceback (most recent call last):
  File "<pyshell#3>", line 1, in <module>
    modem.getDSR()
  File "/usr/lib/python2.5/site-packages/serial/serialposix.py", line 399, in getDSR
    s = fcntl.ioctl(self.fd, TIOCMGET, TIOCM_zero_str)
IOError: [Errno 22] Invalid argument

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pyserial (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.