From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NOK9z-0000jj-1P for garchives@archives.gentoo.org; Sat, 26 Dec 2009 00:05:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5CECEE097B for ; Sat, 26 Dec 2009 00:05:30 +0000 (UTC) Received: from mail-yw0-f174.google.com (mail-yw0-f174.google.com [209.85.211.174]) by pigeon.gentoo.org (Postfix) with ESMTP id 9B43CE04BA for ; Fri, 25 Dec 2009 22:56:03 +0000 (UTC) Received: by ywh4 with SMTP id 4so8520597ywh.10 for ; Fri, 25 Dec 2009 14:56:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=s3DnwzM4+w3c7vkdk+AzAVLiC++DLLdPHgoiVcy1GMk=; b=vWWX1eQq5nJFSvJm82Tf+z+w8RuUZ5lZny+aggE49cxVK2n87JpI/XxkoW6KZe0jL1 /lV0RhnF4n8bxkkq9f8t4ByPb6BL5RBJlN7rRPczm15ZhDZdmoy5BKxeLma5HKNeBcdN 0BynYYYfMEALcKqAJULzRvEw088BdO/2RDKmA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=PAJKjbeiSBT5mqJhYiZCFauMk0MlcPepH0v5qWQnnCYdnRtWY2eA3wd2r12ea9R2fY V/YkqsiGF/kjvMe6XyM3J7GGUJndL7g3fNeAcrhwEUMXhA4kA8SzFAzuZypSClb5IcSz jKdRf7OUq3uLp6cZXIX7BYfNGIUDsscgfeAwg= Received: by 10.101.65.7 with SMTP id s7mr966630ank.57.1261781763269; Fri, 25 Dec 2009 14:56:03 -0800 (PST) Received: from ?192.168.1.1? (adsl-0-91-154.jan.bellsouth.net [65.0.91.154]) by mx.google.com with ESMTPS id 6sm4043144yxg.66.2009.12.25.14.56.01 (version=SSLv3 cipher=RC4-MD5); Fri, 25 Dec 2009 14:56:02 -0800 (PST) Message-ID: <4B354300.1060707@gmail.com> Date: Fri, 25 Dec 2009 16:56:00 -0600 From: Dale User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.23) Gecko/20091201 SeaMonkey/1.1.18 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] serial port identification question References: <20091225131220.4f34ab6a@osage.osagesoftware.com> <4B351C46.3080708@gmail.com> <20091225154948.286ce5a5@osage.osagesoftware.com> In-Reply-To: <20091225154948.286ce5a5@osage.osagesoftware.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 49788b41-5e87-4273-8ef9-3542fd875aed X-Archives-Hash: 73ff81e589ac58ca87bcb23f48f551a9 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 :-) :-)