txrx - transfer and receive data over a serial line
rx [ -b baudrate ] -d devicename
tx [ -b baudrate ] -d devicename
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:
- tx transmits the data at the requested baud rate for RUNTIME seconds
- rx receives the data
Finally, the tests verify that the data transmission was correct.
- -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/.
About 8 hours
No other concurrent tests are possible on the same port. That is, no other concurrent tests are possible on the port specified by devicename.
If:
- Receiver device is /dev/cua/a
- Transmitter device is /dev/cua/b
- Receiver baud rate is 38400
- Transmitter baud rate is 38400
Then, at the receiver machine:
# rx -d /dev/cua/a -b 38400At the transmitter machine:
# tx -d /dev/cua/b -b 38400Note: The receiver device and the transmitter device can be on the same machine or on different machines, but they must be physically connected.
termio(7I)
Copyright 2005 Sun Microsystems, Inc. All rights reserved.