Command line examples – Comtrol DM ATS-LNX User Manual
Page 61

Appendix C. lcom(1)
61
lcom(1)
-q
Enable quiet operation. Serial data will not be displayed, though data
counters and throughput values will. Depending on the terminal
connection being used, displaying data at high baud rates may not be
practical or may use up an undesirable amount of CPU time.
-v
Verify received data against the transmitted data against the expected
test pattern.
-m mode
Specifies the channel mode. Available modes are mon, tput, echo, test,
and term (the default if no mode is specified).
-f flow
Set the flow control to be used. Available flow control modes are sw
(xon/xoff), hw (RTS/CTS) or none (the default). [Affects tty devices
only.]
-w csize
Set the character size. Legal values are 5,6,7,8. [Affects tty devices
only.]
-p parity
Set the parity for the port. Available values are even, odd, and none
(the default). [Affects tty devices only.]
-b baud
Set the baud rate for the port. [Affects tty devices only.]
-d device
Specifies a device path to open. May be a tty device (e.g. /dev/ttyS1) or a
TCP/IP destination (e.g. 192.168.0.2:8000). The -d option is only
required if you wish to intersperse device paths with other options.
Device paths that are not followed by any other options may be
specified on the command line without using -d.
Command Line
Examples
This example starts lcom and opens the three devices specified using default port
settings [lcom -? will show available port settings and their default values].
lcom /dev/ttyS0 /dev/ttyS1 /dev/ttyR5
This example opens the two ports in throughput mode at 115200 baud with
hardware flow control.
lcom -b115200 -f hw -m tput /dev/ttyS0 /dev/ttyR0
This example opens two ports at 115200 baud with hardware flow control. ttyS0 is
opened in throughput mode, and ttyR0 is opened in echo mode. This may be useful
if you have ttyS0 and ttyS0 connected to each other through a null-modem cable
and are using ttyR0 to echo data rather than using a loopback connector.
lcom -b115200 -f hw -m tput -d /dev/ttyS0 -m echo -d /dev/ttyR0
This example opens eight ports (ttyR0 through ttyR7) in throughput mode (you
probably have loopback connectors plugged into them). The -q option prevents test
data from being displayed.
lcom -b230400 -f hw -m tput -q /dev/ttyR[0-7]
This example runs a loopback test. You must have a loopback plug installed on the
port for this test to pass. See
RocketPort Serial Port Connectors
on Page 15 if you
need to build loopback plugs for the serial ports on the ATS-LNX.
lcom -m test /dev/ttyR0
This example runs a stream of ASCII data to the port. You must have a loopback
plug installed on the port for this test to pass.
lcom -m tput /dev/ttyR0
This example runs a stream of ASCII data to multiple ports. You must have a
loopback plug installed on the port for this test to pass.
lcom -m tput /dev/ttyR[0-7]
This example runs a stream of ASCII data at a specific baud rate. You must have a
loopback plug installed on the port for this test to pass.
lcom -m tput -b9600 /dev/ttyR0
This example runs a stream of ASCII data with hardware flow control. You must
have a loopback plug installed on the port for this test to pass.
lcom -m tput -b9600 -f hw /dev/ttyR0