From owner-freebsd-questions@FreeBSD.ORG Thu Jan 31 01:16:13 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1E80A16A41A for ; Thu, 31 Jan 2008 01:16:13 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id BA44813C45D for ; Thu, 31 Jan 2008 01:16:12 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.2/8.14.2) with ESMTP id m0V0gTPi096328; Wed, 30 Jan 2008 17:42:29 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.2/8.14.2/Submit) with ESMTP id m0V0gSmS096325; Wed, 30 Jan 2008 17:42:29 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Wed, 30 Jan 2008 17:42:28 -0700 (MST) From: Warren Block To: Mario Lobo In-Reply-To: <200801302006.11153.mlobo@digiart.art.br> Message-ID: References: <200801302006.11153.mlobo@digiart.art.br> User-Agent: Alpine 1.00 (BSF 882 2007-12-20) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (wonkity.com [127.0.0.1]); Wed, 30 Jan 2008 17:42:29 -0700 (MST) Cc: questions@freebsd.org Subject: Re: Serial port question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2008 01:16:13 -0000 On Wed, 30 Jan 2008, Mario Lobo wrote: > I am doing some experiments with the WL5460AP. I doesn't have a serial > connector but the RTL8186 does have a UART and the circuit board has a 4 pin > connector (4-3.3V, 3-TXD, 2-RXD, 1-GND) to the UART. The idea here is to > rewrite its firmware. You may have to swap TXD and RXD (null-modem). > For a better debuging (and possibly de-bricking), I need to access its console > screen (which it DOES have). > > The (lots of) info I gathered says that the connection to the WL5460AP console > should be at 38400, 8N1, no-flow ctl. > > I have set up a proper cable and a line in /etc/ttys like: > ttyd0 "/usr/libexec/getty 3wire.38400" vt100 on secure I would set that back to default. /dev/cuad0 is the callout port. > Using kermit I type: > > SET CARRIER-WATCH OFF > set duplex full > set session-log binary > set modem type none > set line /dev/ttyd0 > set speed 38400 > set flow none > set serial 8n1 > set terminal echo local > set terminal newline-mode on > set terminal debug on > connect > > but I get nothing back. Try again with /dev/cuad0. Again, you may have to reverse TXD and RXD at one end of the cable. > Before I start digging for hardware errors, I want to check if my connection > attempt is being done right and understand better what is going on. > > 1) how does this work? ttyd0 goes "through" cuad0 or does it simply "grabs it" > and sets its speed to 38400. Originally, cuad0 is set to 9600. See sio(4). ttyd0 is a "callin" port, while cuad0 is a "callout" port. > 2) if it goes "through" cuad0, how do I set it to 38400, 8N1, no-flow ctl? You're telling kermit to set the speed and flow control. For this application, you could probably use cu/tip also: cu -l /dev/cuad0 -s 38400 > 3) is my ttys line correct? I don't think so. -Warren Block * Rapid City, South Dakota USA