Korenix | Appendix
71
disconnect
<tcp
port>
Disconnect the tcp connection on the port.
setporttimeout
<tcp
port>
<timeout>
Set the amount of time in seconds before the port connection will be shut down if no activity has
been seen on the port.
setportconfig
<tcp
port>
<config>
Set the port configuration as in the device configuration in th e
/etc/ser2net.conf
file. If
conflicting options are specified, the last option will be the one used. Note that these will not
change until the port is disconnected and connected again.
Options
300,
1200,
2400,
4800,
9600,
19200,
38400,
57600,
115200
set the various baud
rates.
EVEN,
ODD,
NONE
set the parity.
1STOPBIT,
2STOPBITS
set the number of stop
bits.
7DATABITS,8DATABITS
set the number of data bits.
[-]XONXOFF
turns on (off) XON/XOFF
support.
[-]RTSCTS
turns on (- off) hardware flow control.
[-]LOCAL
ignores (- checks) the
modem control lines (DCD, DTR, etc.)
setportcontrol
<tcp
port>
<controls>
Modify dynamic port controls. These do not stay between connections. Controls
are:
DTRHI,
DTRLO
Turns on and off the DTR line.
RTSHI,
RTSLO
Turns on and off the RTS
line.
setportenable
<tcp
port>
<enable
state>
Sets the port operation state. Valid states
are:
off
to shut the TCP port down,
raw
to enable the TCP port transfer all I/O as-is,
rawlp
to
enable the TCP port input and device output without termios sett ing, and
telnet
to enable the
TCP port is up run the telnet negotiation protocol on the port.
Configuration
Configuration is accomplished through the file
/etc/ser2net.conf
. A file with another name
or path may be specified using the
-c
option, or individual config lines may be specified with
the
-C
option. This file consists of one or more entries with the following format:
<TCP port>:<state>:<timeout>:<device>:<options>
or
BANNER:<banner name>:<banner text>
FIELDS
TCP
port
Name or number of the TCP/IP port to accept connections from for this device. A port number
may be of the form [host,]port, such as 127.0.0.1,2000 or localhost,2000. If this is specified, it
will only bind to the IP address specified for the port. Otherwise, it will bind to all the ports on
the machine.
state
Either
raw
or
rawlp
or
telnet
or
off.
off
disables the port from accepting