[ltp] T30 serial ports

/dev/rob0 linux-thinkpad@linux-thinkpad.org
Sun, 27 Feb 2005 09:43:23 -0600


On Sunday 27 February 2005 04:12, Pino Giaquinto wrote:
> In system log I can see:
>
>  ...
> Serial: 8250/16550 driver $Revision: 1.90 $ 76 ports, IRQ sharing
> enabled ttyS0 at I/O 0x03f8 (irq = 4) is a NS16550A
> ttyS1 at I/O 0x02f8 (irq = 3) is a NS16550A
>  ...
>
> but using 'setserial /dev/ttyS0' and 'setserial /dev/ttyS1' I see:
>
> /dev/ttyS0, UART: undefined, Port: 0x03f8, IRQ: 4
> /dev/ttyS1, UART: undefined, Port: 0x02f8, IRQ: 3

This is odd, because the output in the system log is ALSO from 
setserial(8), running during the boot sequence.

> My questions are:
>
> 1) why 'UART: undefined' ?

I think in general that means that it wasn't detected. And that's the 
odd thing ... it was found during boot. Maybe another driver has 
disabled the port after the serial driver loaded?

I use the pnpbios to enable mine on a 600X. Yours is probably supported 
by the ibm-acpi driver, so you might have other options.

> 2) is /dev/ttyS1 the IRDA port ?

On mine, this is configurable. You can put any of the RS-232, IR, or 
Mwave modem at either. You have to be careful to avoid conflicts.

> 3) Need I a driver for my Siemens S55 to connect to internet (GPRS)
> using serial cable or IRDA ?

I wouldn't know, but usually if a device uses a serial interface, all 
you need to do is ensure that serial parameters are the same on both 
sides. These include baud rate, data bits, parity, and stop bits. For 
example, 4800 8-N-1. You can control serial parameters using stty(1).

There might be another issue with the data being understood, of course, 
but that is outside the scope of this list.
-- 
    mail to this address is discarded unless "/dev/rob0"
    or "not-spam" is in Subject: header