N-Tron 102PC-SE user manual Scenario 2 Auto Dialout Using Telnet, Prerequisites

Page 28

Scenario 2 – Auto Dialout Using Telnet

In this scenario, the Auto Dial-out session in Telnet mode is opened using a Telnet client.

Prerequisites

Raw mode (global and each port) must be either enabled or disabled using above-mentioned optional commands.

Auto Dial-out session can be opened by a Telnet client by specifying the configured auto-dialout port.

Once the session is opened successfully, there can be two-way traffic between the telnet session and the remote serial device.

Auto Dialout Feature in Telnet Mode

Commands to Setup Auto Dialout in Telnet Mode with the 102PC-SE

#set ip eth0 dhcp-client disable

#set ip eth0 ip-address 192.168.2.1

#set ip auto-dialout enable

#set serial s0 auto-dialout enable

#set serial s0 auto-dialout-port 5000

#set serial s0 auto-dialout-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

Once the above configuration is saved in the 102PC-SE, use a telnet client and connect to 192.168.1.202 on port 5000. This eventually establishes a telnet Auto dial-out session between the 102PC-SE and the serial device.

Closing the Telnet client, closes the serial port in use.

Notes:

1.Only one dialout session to the same port can be opened at one time.

2.When dialout session authentication is enabled as specified in Optional commands, the session prompts for user-nameand password before opening the session successfully. (Enabled by default)

3.The serial port is opened with the current serial configuration.

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

28

Image 28
Contents 12/1/2006 Table of Contents 12/1/2006 Safety Warnings Contact InformationEnvironmental Safety Electrical Safety Cleaning Package ContentsUnpacking Servicing DIN Rail MountingFront Panel Color DescriptionApplying Power Top View Grounding Techniques Connecting the Unit Serial Cable Serial InterfaceRS-232 Troubleshooting Support FCC StatementCLI Tree of Menus Set Set configurable fields Send-mail Configure outgoing mail options Recv-mail Configure incoming 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 Software Configuration Web Management12/1/2006 General Configuration User ConfigurationPort Configuration Web Management Tree of MenusModem Configuration Bridge ConfigurationPPP Configuration ChatscriptTelnet Configuration Successfully. These cannot be modifiedUDP Configuration Autodial ConfigurationHttp Configuration Snmp ConfigurationSmtp Address Configuration POP3 ConfigurationSntp Daylight Saving Configuration CommandsRestore Defaults Sntp GeneralMandatory Configuration Settings Ethernet to Serial ConnectivityCommands to Setup Manual Dial-out with the 102PC-SE Scenario 1 Manual DialoutScenario 2 Auto Dialout Using Telnet PrerequisitesScenario 3 Auto Dialout Using UDP Auto Dialout Feature using UDP Mode# set ppp ppp0 raw-mode enable Scenario 4 Remote Bridging with Modem ConnectionSerial to Ethernet Connectivity Commands to Setup Manual Dial-In with the 102PC-SE Scenario 1 Manual Serial Dial-inScenario 2 Serial Auto Dial-in Using Telnet Scenario 3 Serial Auto Dial-in Using UDP Functionality# set ip telnet raw-mode enable Scenario 4 Serial Tunneling Mode# 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 KEY Specifications Switch PropertiesEmissions and Safety Approvals PhysicalTron Limited Warranty