User guide
set sharing
Chapter 2 Command Descriptions 199
control={shared|exclusive}
Specifies whether control should be shared by all clients, or controlled
exclusively by the Digi device.
shared
All clients share control of the serial-port parameters, such as baud
rate, data bits, parity, flow control, etc. Any changes made to these
parameters by one client will affect all clients.
exclusive
The serial port parameters can only be set from the command line or
web UI of the device itself. Any attempt by the clients to change serial-
port parameters through RealPort will be silently ignored.
The default is "shared."
timeout=timeout
The flow-control timeout, specified in 1/10ths of a second. This
parameter specifies how long a fast client will wait for a slower client that
has flow-controlled the port (see "About flow control on shared ports" on
page 25 for more information). After this timeout expires, the faster client
will be allowed to read ahead in the data stream, and the slower client will
begin to lose data.
A value of 0 means there is no timeout; the faster client will wait forever
if necessary for the slower client and never timeout. A value of 1 means
the faster client will wait only 1/10 of a second for a slower client; which
means essentially no waiting. The maximum value is 6000. The default
is 0.
wrpolicy={all|first}
Specifies who can transmit on a serial port.
all
Everyone can transmit on the serial port.
first
Only the first module to open the port is allowed to write to the device.
Examples Display and change port-sharing settings
This example shows how to use the “show sharing” and “set sharing”
commands to first display current port-sharing settings, configure port-
sharing settings, and display the changed settings.
#> show sharing
current max
tty clients clients control timeout
1 2 2 shared 100
2 0 1 shared 0
3 0 1 shared 0
4 0 1 shared 0