[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to use serial ports?



On Fri, May 13, 2011 at 12:48 PM, Tapio Lehtonen <tapio.lehtonen@dnainternet.net> wrote:
Did not check BIOS for port settings, I supposed ports are enabled since dmesg and setserial show the port.

root@phb:~# dmesg | grep -i tty
[    0.000000] console [tty0] enabled
[    1.072850] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    1.073628] 00:0a: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
root@phb:~# setserial -g /dev/ttyS*
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
/dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 3
/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3
root@phb:~#

The computer has two serial ports, so I am a bit worried that only one shows in the above. Maybe the other is disabled in BIOS. I'll check next time I boot.

No breakout box or any such fancy stuff. The null modem cables I used did work last time I used them, if find it unlikely all of them would have broken when unused in the cupboard.

I tried both with and without RTS/CTS.

I added the user to group dialout, so the user can read and write to the /dev/ttyS0 device.


Tapio Lehtonen


Sorry if this is slightly OT, I've often wondered about using serial-console to access my 3 local headless servers here, Camaleón link was very useful for the software side of it, what about the hardware side, not the com devices, but what type of cabling is required? Just a F-F rs232/db9 cable? 


-- 
> A: Yes. > >Q: Are you sure? > >>A: Because it reverses the logical flow of conversation. 
> >>>Q: Why is top posting frowned upon? 

Reply to: