42: Configuring Terminal Server
_______________________________________________________________________________________________________
_______________________________________________________________________________________________________
© Virtual Access 2018
GW1000 Series User Manual
Issue: 2.3
Page 454 of 463
42.5
Terminal Server using package options
root@VA_router:~# uci export tservd
package tservd
config tservd 'main'
option log_severity '0'
option debug_rx_tx_enable '1'
option debug_ev_enable '1'
config port
option devName '/dev/ttySC0'
option remote_ip1 '0.0.0.0'
option remote_ip2 '0.0.0.0'
42.6
Terminal server DSR signal management network configuration
On the IP network side, the terminal server can operate in one of three modes:
•
TCP Client
•
TCP Server
•
UDP
Based on the chosen network configuration, the DSR behaviour may vary.
42.6.1
DSR signal behaviour in TCP client mode
42.6.1.1
TCP connection management
Initial TCP connection initiation or next TCP connection initiation after disconnection is
affected by configuration options
tcp_always_on
and
close_tcp_on_dsr
.
When option
tcp_always_on
is enabled terminal server keeps the TCP session always
connected. If it disconnects in the established state, the TCP session is reinitiated.
If
tcp_always_on
is disabled TCP connection is initiated on detection of a high state on
the DSP interface signal.
When option
close_tcp_on_dsr
is enabled terminal server detecting DSR down signal
and closes the established TCP connection.
If option
close_tcp_on_dsr
is disabled then
detecting DSR down does not affect the TCP
connection.
42.6.1.2
TCP connection initiation at startup
If you have set option
tcp_always_on1
, or DSR state is UP, the TCP connection setup is
initiated immediately.