From owner-freebsd-questions@FreeBSD.ORG Fri Jan 28 12:43:06 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 70C4F16A4CF for ; Fri, 28 Jan 2005 12:43:06 +0000 (GMT) Received: from hosea.tallye.com (joel.tallye.com [216.99.199.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id 77C4F43D4C for ; Fri, 28 Jan 2005 12:43:05 +0000 (GMT) (envelope-from lorenl@alzatex.com) Received: from hosea.tallye.com (hosea.tallye.com [127.0.0.1]) by hosea.tallye.com (8.12.8/8.12.10) with ESMTP id j0SCh4Ys009980 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 28 Jan 2005 04:43:04 -0800 Received: (from sttng359@localhost) by hosea.tallye.com (8.12.8/8.12.10/Submit) id j0SCh3Co009977; Fri, 28 Jan 2005 04:43:03 -0800 X-Authentication-Warning: hosea.tallye.com: sttng359 set sender to lorenl@alzatex.com using -f Date: Fri, 28 Jan 2005 04:43:03 -0800 From: "Loren M. Lang" To: Florian Hengstberger Message-ID: <20050128124303.GE8442@alzatex.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-GPG-Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc X-GPG-Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C cc: FreeBSD mailinglist Subject: Re: simple serial loopback X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jan 2005 12:43:06 -0000 On Thu, Jan 27, 2005 at 10:00:40AM +0100, Florian Hengstberger wrote: > Hi list! > I'm currently trying to setup my box for simple data transfer > to a microcontroller via the serial interface. > Therefore I've wired a nullmodem cable and as a first test > I was trying to connect from cuaa0 to cuaa1 simply by Generally you shouldn't need a null modem for a microcontroller, just a regular cable. That's because it's expected to be a slave to a PC, I think the technical term is "Data Set," which is just like a regular modem is a "Data Set," where a PC is a master or "Data Terminal." So PC to PC you need a null modem since it's "Data Terminal" to "Data Terminal." For monitoring my tty I find minicom or "cu -l /dev/cuaa0" to work just fine. > > xterm1: cat /dev/cuaa0 > > xterm2: echo "Something" > /dev/cuaa1 > > Unfortunatly cat exits with 0 after the first echo although it > displays the message correct, > so I have to "cat /dev/cuaa0" everytime I send something. > Why is this? > > Is there a better way to keep track of the ascii-chars sent > over a serial connection? > Kermit and minicom seem to be some sort of monster for > real serial connection (initialisation ...) which is a bit to much > for me. > In the end I just wan't to see the chars sent over the cabel > and wan't to reply to them by typing on the keyboard, that's it! > > Thanks in advance > Florian > > PS: Maybe a simple shell/perl script can help, should I focus on that? > > > ------------------------------------------------------ > Linux/BSD: The daemons are not longer just in my head! > ------------------------------------------------------ > Florian Hengstberger > e0025265@student.tuwien.ac.at > http://stud3.tuwien.ac.at/~e0025265 > ------------------------------------------------------ > > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C