From owner-freebsd-questions@FreeBSD.ORG Thu Jan 27 09:17:35 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 A91AC16A4CE for ; Thu, 27 Jan 2005 09:17:35 +0000 (GMT) Received: from usenet.ath.cx (1-1-1-38a.far.sth.bostream.se [82.182.32.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD37643D2F for ; Thu, 27 Jan 2005 09:17:34 +0000 (GMT) (envelope-from bernt@bah.homeip.net) Received: from [10.0.0.3] (reader.usenet.ath.cx [10.0.0.3]) by usenet.ath.cx (8.12.11/8.12.9) with ESMTP id j0R9HWO9000985 for ; Thu, 27 Jan 2005 10:17:33 +0100 (CET) (envelope-from bernt@bah.homeip.net) Message-ID: <41F8B1D9.4000808@bah.homeip.net> Date: Thu, 27 Jan 2005 10:18:17 +0100 From: Bernt Hansson User-Agent: Thunderbird/1.0 (X11; U; FreeBSD 4.10-STABLE) X-Accept-Language: sv, en-us, en MIME-Version: 1.0 To: FreeBSD mailinglist References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Thu, 27 Jan 2005 09:17:35 -0000 Florian Hengstberger skrev: > Hi list! Hello. > 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 > Thanks in advance > Florian > > PS: Maybe a simple shell/perl script can help, should I focus on that? Try cu. %cu --help Taylor UUCP 1.06.1, copyright (C) 1991, 92, 93, 94, 1995 Ian Lance Taylor Usage: cu [options] [system or phone-number] -a,-p,--port port: Use named port -l,--line line: Use named device (e.g. tty0) -s,--speed,--baud speed, -#: Use given speed -c,--phone phone: Phone number to call -z,--system system: System to call -e: Set even parity -o: Set odd parity --parity={odd,even}: Set parity -E,--escape char: Set escape character -h,--halfduplex: Echo locally --nostop: Turn off XON/XOFF handling -t,--mapcr: Map carriage return to carriage return/linefeed -n,--prompt: Prompt for phone number -d: Set maximum debugging level -x,--debug debug: Set debugging type -I,--config file: Set configuration file to use -v,--version: Print version and exit --help: Print help and exit No idea if that's what you are looking for.