TEST NAME

txrx - transfer and receive data over a serial line

SYNOPSIS

rx [ -b baudrate ] -d devicename

tx [ -b baudrate ] -d devicename

DESCRIPTION

tx and rx set the terminal parameter with the requested options, such as baud rate and flow control, using the POSIX functions tcsetattr(3C), cfsetospeed(3C), cfsetispeed(3C), and tcgetattr(3C).

Once the terminal is set successfully, the following tests run:

  1. tx transmits the data at the requested baud rate for RUNTIME seconds
  2. rx receives the data

Finally, the tests verify that the data transmission was correct.

OPTIONS

-b baudrate
Baud rate. The baud rate must be one that is supported in the termios_p structure. Refer to the termio(7I) man page for the supported baud rate. The default is 9600.

-d devicename
Device for communication. Use a full path for devicename. Dialout device paths typically start with /dev/cua/.

DURATION

About 8 hours

POSSIBLE CONCURRENT TESTS

No other concurrent tests are possible on the same port. That is, no other concurrent tests are possible on the port specified by devicename.

EXAMPLES

If:

Then, at the receiver machine:

# rx -d /dev/cua/a -b 38400

At the transmitter machine:

# tx -d /dev/cua/b -b 38400

Note: The receiver device and the transmitter device can be on the same machine or on different machines, but they must be physically connected.

REFERENCES

termio(7I)

Copyright 2005 Sun Microsystems, Inc. All rights reserved.