N-Tron 102PC-SE user manual Scenario 2 Serial Auto Dial-in Using Telnet

Page 33

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-monitoris 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)

12/1/2006

33

Image 33
Contents 12/1/2006 Table of Contents 12/1/2006 Contact Information Safety WarningsEnvironmental Safety Electrical Safety Package Contents CleaningUnpacking DIN Rail Mounting ServicingColor Description Front PanelApplying Power Top View Grounding Techniques Connecting the Unit Serial Interface Serial CableRS-232 Support FCC Statement TroubleshootingCLI Tree of Menus Set Set configurable fields Recv-mail Configure incoming mail options Send-mail Configure outgoing mail optionsSerial Configure the serial settings for the serial port s0 Show Show general and detailed information Socket Actions to take over a UDP socket Web Management Software Configuration12/1/2006 User Configuration General ConfigurationPort Configuration Web Management Tree of MenusBridge Configuration Modem ConfigurationPPP Configuration ChatscriptSuccessfully. These cannot be modified Telnet ConfigurationAutodial Configuration UDP ConfigurationSnmp Configuration Http ConfigurationSmtp Address Configuration POP3 ConfigurationCommands Sntp Daylight Saving ConfigurationRestore Defaults Sntp GeneralEthernet to Serial Connectivity Mandatory Configuration SettingsScenario 1 Manual Dialout Commands to Setup Manual Dial-out with the 102PC-SEPrerequisites Scenario 2 Auto Dialout Using TelnetAuto Dialout Feature using UDP Mode Scenario 3 Auto Dialout Using UDPScenario 4 Remote Bridging with Modem Connection # set ppp ppp0 raw-mode enableSerial to Ethernet Connectivity Scenario 1 Manual Serial Dial-in Commands to Setup Manual Dial-In with the 102PC-SEScenario 2 Serial Auto Dial-in Using Telnet Functionality Scenario 3 Serial Auto Dial-in Using UDPScenario 4 Serial Tunneling Mode # set ip telnet raw-mode enable# set serial s0 raw-dialout enable Using E-Mail Features Sending Text E-mails from the Command Prompt Receiving E-mails from the Command Prompt Switch Properties KEY SpecificationsEmissions and Safety Approvals PhysicalTron Limited Warranty