User guide
Configure Serial Port Settings
24 Chapter 1 Command Line Configuration Tasks
Configure Port Sharing
A Digi device enabled for port sharing allows more than one client to open
a port through RealPort, reverse Telnet, reverse SSH, or connect. All
clients that share a port will read the same data from the serial port; the
data is duplicated and sent to each client. All clients that share a port will
have the data they write merged and sent out the serial port. The serial port
options, such as baud rate and flow control, can either be shared by all
clients or be controlled exclusively from the Digi device alone. If there is
only one client, then RealPort, reverse Telnet, reverse SSH, and connect
will work normally.
Device types that allow port sharing
Port sharing is only available for device types “rp,” “prn,” and “mout,” as
specified by the “set ports dev=device” option.
Configuring port sharing
Configuring port sharing involves specifying how many clients are allowed
to share the port, whether control should be shared by all clients or
controlled exclusively by the Digi device, and the flow control timeout.
These options can be configured independently for each port. The
command for configuring port sharing is set sharing (see "set sharing" on
page 198).
Configuring a console menu for use with port sharing
The Console Menu feature of the Digi PortServer TS allows you to see who
is already connected to a port, disconnect other sessions, display the last
entries of the port-buffer or branch out to the command line of the unit. The
console menu is configured using the “set consmenu” command. See
"set consmenu" on page 102.
Displaying port-sharing settings
Port-sharing settings are displayed by either of the following commands:
• “set sharing” - display variation (see "set sharing" on page 198)
• “show” - display variation (see "display" on page 59)
The port-sharing settings are displayed in four columns: “current clients,”
“max clients,” “control,” and “timeout.”
The “current clients” column shows how many clients are currently sharing
the port. The “max clients,” “control,” and “timeout” columns show the value
set with the “clients,” “control,” and “timeout” options.