42: Configuring Terminal Server
_______________________________________________________________________________________________________
_______________________________________________________________________________________________________
© Virtual Access 2018
GW1000 Series User Manual
Issue: 2.3
Page 456 of 463
42.6.3.3
UDP session reset
After UDP session clearing the terminal server takes action to reset up a UDP session
after a hand off timeout.
If you have set option
tcp_always_on1
, or DSR state is UP, the UDP session is setup.
If you have set option
tcp_always_on0
, and DSR is DOWN, the terminal server waits for
a DSR UP signal and then it resets up the UDP session.
42.7
Serial mode GPIO control
On some models of Virtual Access routers it is possible to change the physical
transmission mode between RS232 and RS485. This is only applicable to the second
serial port on the routers: /dev/ttySC1.
To enable
serial_mode_gpio_control
set the option to 1.
Use the portmode option in addition to
serial_mode_gpio_control
to select between
RS232, RS485 full duplex, RS485 half duplex, X.21 and V.23.
42.7.1
Checking the current serial_mode_gpio_control
To check if Terminal Server is running, enter the following command:
root@VA_router:~# uci show tservd | grep serial_mode_gpio_control
The output of the above command will look similar to the example below if
serial_mode_gpio_control
is enabled for the second serial port.
tservd.port0.serial_mode_gpio_control=0
tservd.port1.serial_mode_gpio_control=1
42.8
Terminal Server diagnostics
The tservd process has to be running otherwise diagnostics options for Terminal Server
will not be available.
42.8.1
Checking Terminal Server process
To check if Terminal Server is running, enter:
root@VA_router:~# -fl tservd
1264 root
1032 S tservd
If Terminal Server is running it will be shown with its process ID.
42.8.2
Terminal Server statistics
To view Terminal Server statistics, enter:
root@VA_router:~# tserv show stats
TERMINAL 1, Dev: /dev/ttySC0