N-Tron 102PC-SE user manual Scenario 3 Serial Auto Dial-in Using UDP, Functionality

Page 34

Scenario 3 – Serial Auto Dial-in Using UDP

This example shows how to setup a serial auto dial-in session in UDP mode. The auto dial-in session is opened by the UDP 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>.

Auto Dial-in Feature in UDP 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 udp

#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

Functionality

After booting, the SocketEthernet IP Module initiates a UDP Auto-dialin session to the configured server, depending on the configured Auto-dialin trig mode settings.

1.dtr: Upon detecting DTR on the serial port S0, it initiates the UDP session.

2.char: Upon entering any character, it initiates the session. (Login string is associated with this mode, so we need to enter the login string if it is not NULL to initiate the session).

3.dtr-char: Either of the above cases.

4.none: No dependency, the module initiates the session as soon as it boots up.

Notes:

1.More than one Dial-in session cannot be opened at a time.

2.No Authentication support.

3.When, escape-monitor is enabled, care should be taken during data transfer for Escape string occurrence in the data.

4.Raw mode is not applicable.

12/1/2006

34

Image 34
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 Port Configuration General ConfigurationUser Configuration Web Management Tree of MenusPPP Configuration Modem ConfigurationBridge Configuration ChatscriptTelnet Configuration Successfully. These cannot be modifiedUDP Configuration Autodial ConfigurationSmtp Address Configuration Http ConfigurationSnmp Configuration POP3 ConfigurationRestore Defaults Sntp Daylight Saving ConfigurationCommands 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 Emissions and Safety Approvals KEY SpecificationsSwitch Properties PhysicalTron Limited Warranty