From owner-freebsd-questions@FreeBSD.ORG Thu Jan 27 09:00:46 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 149FE16A4CE for ; Thu, 27 Jan 2005 09:00:46 +0000 (GMT) Received: from mr.tuwien.ac.at (mr1-n.kom.tuwien.ac.at [128.131.2.109]) by mx1.FreeBSD.org (Postfix) with ESMTP id D87C143D2F for ; Thu, 27 Jan 2005 09:00:44 +0000 (GMT) (envelope-from e0025265@student.tuwien.ac.at) Received: from webmail.zserv.tuwien.ac.at (lps.ben.tuwien.ac.at [193.170.74.11]) by mr.tuwien.ac.at (8.12.10/8.12.8) with SMTP id j0R90eLb008972 for ; Thu, 27 Jan 2005 10:00:41 +0100 (MET) MIME-Version: 1.0 X-Mailer: V-webmail 1.5.1 ( http://www.v-webmail.co.uk/ ) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-ID: Date: Thu, 27 Jan 2005 10:00:40 +0100 From: "Florian Hengstberger" To: FreeBSD mailinglist X-Vwebmail-Auth: e0025265@stud3.tuwien.ac.at X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Subject: 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: Thu, 27 Jan 2005 09:00:46 -0000 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 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 ------------------------------------------------------