Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Where are my com ports?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
axslinger
n00b
n00b


Joined: 27 Apr 2002
Posts: 47
Location: Michigan

PostPosted: Wed Jul 17, 2002 3:00 pm    Post subject: Where are my com ports? Reply with quote

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
View user's profile Send private message
Zu`
l33t
l33t


Joined: 26 May 2002
Posts: 716
Location: BE

PostPosted: Wed Jul 17, 2002 3:40 pm    Post subject: Reply with quote

http://www.informatik.uni-siegen.de/softdocs/howto/Serial-HOWTO-3.html

Should help you

Greets
Back to top
View user's profile Send private message
ebichu
Apprentice
Apprentice


Joined: 03 Jul 2002
Posts: 231
Location: Manchester, England

PostPosted: Wed Jul 17, 2002 4:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
SNo0py
Apprentice
Apprentice


Joined: 12 Jul 2002
Posts: 270
Location: Vienna, Austria

PostPosted: Sun Oct 20, 2002 12:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum