simple serial loopback

Bernt Hansson bernt at bah.homeip.net
Thu Jan 27 01:17:35 PST 2005


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.


More information about the freebsd-questions mailing list