View previous topic :: View next topic |
Author |
Message |
axslinger n00b
Joined: 27 Apr 2002 Posts: 47 Location: Michigan
|
Posted: Wed Jul 17, 2002 3:00 pm Post subject: Where are my com ports? |
|
|
I know this is a rudimentary question, but I did a search and came up with nothing. Where, in /dev do I find my two serial ports? What are they called? How do I know if they have the proper modules loaded? I want to use Palm apps but don't know the device names of my serial ports.
Thanks,
Brian |
|
Back to top |
|
|
Zu` l33t
Joined: 26 May 2002 Posts: 716 Location: BE
|
|
Back to top |
|
|
ebichu Apprentice
Joined: 03 Jul 2002 Posts: 231 Location: Manchester, England
|
Posted: Wed Jul 17, 2002 4:58 pm Post subject: |
|
|
The traditional names are /dev/ttyS0 for the first serial port (Windows COM1) and /dev/ttyS1 for the second (COM2).
In Gentoo (assuming you are using devfs), these are symlinks to /dev/tts/0 and /dev/tts/1, respectively.
The module is called 'serial.o' but is built into the kernel by default. Try: Code: | $ ls /dev/ttyS0 # or: ls -l /dev/tts/0 |
to force the module to be loaded (if it isn't already loaded or built-in). Then try Code: | $ cat /proc/tty/drivers
serial /dev/cua/%d 5 64-127 serial:callout
serial /dev/tts/%d 4 64-127 serial
pty_slave /dev/pts/%d 136 0-255 pty:slave
pty_master /dev/ptm 128 0-255 pty:master
pty_slave /dev/pty/s%d 3 0-255 pty:slave
pty_master /dev/pty/m%d 2 0-255 pty:master
/dev/vc/0 /dev/vc/0 4 0 system:vtmaster
/dev/ptmx /dev/ptmx 5 2 system
/dev/console /dev/console 5 1 system:console
/dev/tty /dev/tty 5 0 system:/dev/tty
unknown /dev/vc/%d 4 1-63 console |
The top two lines of the above output shows the serial driver is running. The order may be different on your machine. _________________ Ebichu wa chiizu ga daisuki dechu! |
|
Back to top |
|
|
SNo0py Apprentice
Joined: 12 Jul 2002 Posts: 270 Location: Vienna, Austria
|
Posted: Sun Oct 20, 2002 12:58 pm Post subject: |
|
|
Hm...
Code: | bash-2.05a# cat /proc/tty/drivers
serial /dev/cua/%d 5 64-127 serial:callout
serial /dev/tts/%d 4 64-127 serial
pty_slave /dev/pts/%d 136 0-255 pty:slave
pty_master /dev/ptm 128 0-255 pty:master
pty_slave /dev/pty/s%d 3 0-255 pty:slave
pty_master /dev/pty/m%d 2 0-255 pty:master
/dev/vc/0 /dev/vc/0 4 0 system:vtmaster
/dev/ptmx /dev/ptmx 5 2 system
/dev/console /dev/console 5 1 system:console
/dev/tty /dev/tty 5 0 system:/dev/tty
unknown /dev/vc/%d 4 1-63 console
|
but there is no /dev/tts and /dev/cua...
How can I get these directories (or: my serial ports?) _________________ Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you. |
|
Back to top |
|
|
|