public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Dale <rdalek1967@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] serial port identification question
Date: Fri, 25 Dec 2009 16:56:00 -0600	[thread overview]
Message-ID: <4B354300.1060707@gmail.com> (raw)
In-Reply-To: <20091225154948.286ce5a5@osage.osagesoftware.com>

David Relson wrote:
> On Fri, 25 Dec 2009 14:10:46 -0600
> Dale wrote:
>
>   
>> David Relson wrote:
>>     
>>> My mobo has two serial ports.
>>>
>>> As reported by hwinfo they are:
>>>
>>>   Serial Port 0: 0x3f8
>>>   Serial Port 1: 0x2f8
>>>
>>> After booting the machine, dmesg indicates that tty0 is the console
>>> with message:
>>>
>>>     console [tty0] enabled
>>>
>>> /dev names a multitude of tty devices,
>>> i.e. /dev/tty0, /dev/tty1, ...
>>>
>>> How do I determine which devices correspond to the serial ports?
>>>
>>> Thanks.
>>>
>>> David
>>>
>>>   
>>>       
>> Mine is /dev/ttyS0 and /dev/ttyS1 .  I put both devices so you will 
>> notice what is alpha and what is numeric.  Also note the S is capitol
>> as well.
>>
>> Dale
>>
>> :-)  :-) 
>>     
>
> My /dev/tty* didn't include any /dev/ttyS* entries.  Searching the web,
> I learned that "MAKEDEV /dev/ttyS0" and "MAKEDEV /dev/ttyS1" will
> create the missing entries and that "stty -F /dev/ttyS0 -a" will
> provide configuration information for the port.
>
> My little Serial.cpp class is now successfully writing to the port (as
> proved by my son running Hyperterminal and receiving the sent
> characters).  However, receiving characters isn't yet working.
> Neither his hyperterminal nor my sender (with a loopback plug) is
> receiving.
>
>   

Are you sure you enabled this in the kernel?  It is under   Device 
Drivers > Character devices > Serial Drivers then enable these:

<*> 8250/16550 and compatible serial support
(4) Maximum number of 8250/16550 serial ports
(4) Number of 8250/16550 serial ports to register at runtime

At least that works for my dial-up modem and my UPS.

You may be able to put two instead of four but as I said, it works here 
like this.  I only have two ports tho.

Dale

:-)  :-)



  reply	other threads:[~2009-12-26  0:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-25 18:12 [gentoo-user] serial port identification question David Relson
2009-12-25 20:10 ` Dale
2009-12-25 20:49   ` David Relson
2009-12-25 22:56     ` Dale [this message]
2009-12-26  3:13       ` David Relson
2009-12-26 17:45 ` [gentoo-user] " James
2009-12-26 17:44   ` James
2009-12-27 12:34   ` David Relson
2009-12-30 18:59     ` James

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B354300.1060707@gmail.com \
    --to=rdalek1967@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox