kdw
Joined: 05 May 2006 Posts: 1461
|
Posted: 26.10.2010, 15:03 Post subject: Namen der seriellen Schnittstellen … |
|
|
Hallo Form.
Hin und wieder wird unser Support gefragt, wie man die Namen der seriellen Schnittstellen eines Linux-Systems feststellen kann. Durch die Eingabe
erhält man auf dem eSOM/2586 die Ausgaben:
Code: | Kernel command line: root=/dev/sda5 ro console=ttyS0,115200 pnpbios=off acpi=off
rootdelay=6 ssvinit BOOT_IMAGE=bzImage
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
serial8250: ttyS2 at I/O 0x3e8 (irq = 4) is a 16550A
serial8250: ttyS3 at I/O 0x2e8 (irq = 3) is a 16550A |
Darin sind ttyS0 (COM1), ttyS1 (COM2) und ttyS2 (COM3) die gesuchten Namen. Mit
Code: | echo hello world > /dev/ttyS1 |
kann man dann zum Beispiel „hello world“ über COM2 an eine externe Einheit ausgeben.
Gruß
KDW |
|