Application commands
Digi TransPort User Guide
148
tcpperm command: establish a permanent serial to IP connection
The
tcpperm
command is available only as application commands, and has no equivalent web
pages.
tcpperm
is used to establish a permanent “serial to IP” connection between one of the
ASY ports and a remote IP host. After
tcpperm
has been executed, the router will automatically
open a socket connection to the remote peer whenever data is received from a terminal attached
to the specified ASY port. When the socket is first opened and the connection has been
established, the router will issue a
CONNECT
message to the terminal and will subsequently
relay data between the socket and the ASY port. The format of the
CONNECT
message can be
modified using the standard AT commands (such as
ATV
,
ATE
, etc.) or using the
Configuration > Network > Interfaces > Serial > Serial Port n
web page.
Note
The serial port should also be pre-configured to use the appropriate word format,
speed and flow control.
While the serial-to-IP connection is established, if the attached serial device drops the DTR signal,
then the socket connection will be terminated, much as with a standard modem or terminal
adapter. Again this behavior can be modified via the
AT&D
command or the serial port settings.
The format of the command is:
TCPPERM <[ASY 0-1]> <Dest Host> <Dest Port> [UDP] [nodeact] [-l<listening port>] [-
i<inact_timeout>] [-f<fwd_time>] [-e<eth_ip>][-d(deact link)] [-k<keepalive_time>] [-
s<src_port>] [-ok] [-t<telnet_mode>] [-ho(host only)] [-ssl] [-ao(always open)] [-m<mhome
idx>]