Package: setserial
Version: 2.17-45.2
Severity: important

I have a serial device which only operates at 4800 bps. When I try to
select this speed on the serial port, I get an invalid argument error:

$ sudo setserial /dev/ttyS0 baud_base 4800
Cannot set serial info: Invalid argument

$ sudo setserial -a /dev/ttyS0
/dev/ttyS0, Line 0, UART: 16550A, Port: 0x03f8, IRQ: 4
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000
Flags: spd_normal skip_test

Using stty to configure the port works:

$ sudo stty -F /dev/ttyS0 4800
$ sudo stty -F /dev/ttyS0 speed
4800

and I am able to read data from the device.

Moreover, setserial does not report the correct speed:

sudo setserial -a /dev/ttyS0
/dev/ttyS0, Line 0, UART: 16550A, Port: 0x03f8, IRQ: 4
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000
Flags: spd_normal skip_test

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages setserial depends on:
ii  debconf [debconf-2.0]         1.5.32     Debian configuration management sy
ii  libc6                         2.11.2-2   Embedded GNU C Library: Shared lib

setserial recommends no packages.

setserial suggests no packages.

-- debconf information:
  setserial/autosave: true
  setserial/autosave-types: autosave once
  setserial/update-modules-failed:



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to