N-Tron 102PC-SE Network Card User Manual


 
Rev. 041008
34
Scenario 2 – Serial Auto Dial-in Using Telnet
This example shows how to setup a serial auto dial-in session in telnet mode. The auto dial-in session is opened by telnet client in the
102PC-SE to the configured server on a configured port.
Once the session is opened, there can be two-way traffic between the serial device and the remote server.
You can switch from Command Prompt to Dial-in session using the restore session command.
You can switch from Dial-in session to Command Prompt using <escape-monitor-string>.
Prerequisites
Raw mode (global and each port) must be either enabled or disabled using
above-mentioned optional commands
Auto Dial-in Feature in Telnet Mode
Commands to Setup Auto Dial-In in Telnet Mode with the 102PC-SE
# set ip eth0 dhcp-client disable
# set ip eth0 ip-address 192.168.2.1
# set serial auto-dialin enable
# set serial s0 auto-dialin enable
# set serial s0 auto-dialin trig-mode dtr-char
# set serial s0 auto-dialin-ipaddress 192.168.2.10
# set serial s0 auto-dialin-port 23
# set serial s0 auto-dialin-protocol telnet
# set serial s0 baud-rate 115200
# set serial s0 data-bits 8
# set serial s0 parity none
# set serial s0 stop-bits 1
# set serial s0 flow-control rts-cts
# save
When detecting either a DTR signal (or) any character received from the serial device connected to the serial port of 102PC-SE, the
Telnet client in the 102PC-SE establishes a telnet session to 192.168.2.10 on port 23.
The serial tunnel between the serial device and the Telnet Server terminates in one of the following conditions.
A physical disconnection of the serial device from the serial port of the 102PC-SE.
The Telnet Client on board is terminated.
The Telnet Server terminates the session.
Notes:
1. You can not open more than one Dial-in session.
2. The Dial-in session is closed when the configuration session is closed (if opened).
3. When escape-monitor is enabled, care should be taken during file transfer that the escapemonitor-
string is not part of the data.
4. Example above shows RAW Mode disabled. If you plan on using RAW Mode you must enable it in three places (globally, and for
each port)