Using the console port to connect serial devices
U
SER
G
UIDE
122
U
SING THE CONSOLE PORT TO CONNECT SERIAL
DEVICES
Here we describe the commands to be used when the device connected to the Imola console is a
generic terminal that use the serial port, like a RTU with Modbus protocol or a DNP3 terminal or a
device that uses AT Hayes commands.
Levanto 310 has this functionality disabled by factory configuration, while Imola and Lipari models
provide it with an optional module,
rs232.tgz
, that must be previously enabled on the router. You
can do that using the command:
shell tspkg on rs232
root@IMOLA> shell tspkg on rs232
Installing ’rs232’ pac
kage... ... ...done
’rs232’ package activated.
Below you find the description of the main application that you can enable.
T
ERMINAL SERVER
Terminal Server allows the data exchange in a transparent mode between the IP network and the
RS232 port: the IP network receives the data and send them to the serial port, and viceversa.
The module manage also the data received in spontaneous mode from the serial port: in this case,
if any TCP connections do not exist, the router activate one to the pre-set host.
Below you find the main
CLI
command that ou can use to configure the module.
set console-disable
set serial-appl term-server
are used to select the application
set tserv tty-server-port <port>
sets the TCP/IP local port on which the router will accept the remote host connection and where will
receive the data to be sent to the serial port.
set tserv tty-server-addr <IP address>
specifies the IP address to use as a source address during the TCP/IP communication to the remote
system.
set tserv primary-host <IP address>
set tserv primary-port <port>
configure the IP address and the primar router port which must be sent the data received by the
remote host and to be forwarded to the serial port.
set tserv no-primary-host <IP address>
deletes the primary host from the configuration.
set tserv backup-host <IP address>
set tserv backup-port <port>