Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] serial port identification question
Date: Sat, 26 Dec 2009 00:05:31
Message-Id: 4B354300.1060707@gmail.com
In Reply to: Re: [gentoo-user] serial port identification question by David Relson
1 David Relson wrote:
2 > On Fri, 25 Dec 2009 14:10:46 -0600
3 > Dale wrote:
4 >
5 >
6 >> David Relson wrote:
7 >>
8 >>> My mobo has two serial ports.
9 >>>
10 >>> As reported by hwinfo they are:
11 >>>
12 >>> Serial Port 0: 0x3f8
13 >>> Serial Port 1: 0x2f8
14 >>>
15 >>> After booting the machine, dmesg indicates that tty0 is the console
16 >>> with message:
17 >>>
18 >>> console [tty0] enabled
19 >>>
20 >>> /dev names a multitude of tty devices,
21 >>> i.e. /dev/tty0, /dev/tty1, ...
22 >>>
23 >>> How do I determine which devices correspond to the serial ports?
24 >>>
25 >>> Thanks.
26 >>>
27 >>> David
28 >>>
29 >>>
30 >>>
31 >> Mine is /dev/ttyS0 and /dev/ttyS1 . I put both devices so you will
32 >> notice what is alpha and what is numeric. Also note the S is capitol
33 >> as well.
34 >>
35 >> Dale
36 >>
37 >> :-) :-)
38 >>
39 >
40 > My /dev/tty* didn't include any /dev/ttyS* entries. Searching the web,
41 > I learned that "MAKEDEV /dev/ttyS0" and "MAKEDEV /dev/ttyS1" will
42 > create the missing entries and that "stty -F /dev/ttyS0 -a" will
43 > provide configuration information for the port.
44 >
45 > My little Serial.cpp class is now successfully writing to the port (as
46 > proved by my son running Hyperterminal and receiving the sent
47 > characters). However, receiving characters isn't yet working.
48 > Neither his hyperterminal nor my sender (with a loopback plug) is
49 > receiving.
50 >
51 >
52
53 Are you sure you enabled this in the kernel? It is under Device
54 Drivers > Character devices > Serial Drivers then enable these:
55
56 <*> 8250/16550 and compatible serial support
57 (4) Maximum number of 8250/16550 serial ports
58 (4) Number of 8250/16550 serial ports to register at runtime
59
60 At least that works for my dial-up modem and my UPS.
61
62 You may be able to put two instead of four but as I said, it works here
63 like this. I only have two ports tho.
64
65 Dale
66
67 :-) :-)

Replies

Subject Author
Re: [gentoo-user] serial port identification question David Relson <relson@×××××××××××××.com>