Moxa Technologies NE-4100 user manual Overview, TCP Server Mode

Page 28

NE-4100 Series User’s Manual

Choosing the Proper Operation Mode

Overview

NE-4100 Series Embedded Network Enablers act as a bridge to connect your serial devices to the Ethernet. The built-in TCP/IP stack saves you a lot of time on programming networking protocols. One simple step allows you to choose the proper operating mode, and then use your computer to access, manage, and configure your serial device over the Internet from anywhere in the world.

Traditional SCADA and data collection systems rely on serial ports (RS-232/422/485) to collect data from various kinds of instruments. Since NE-4100 Series Network Enablers are equipped with the ability to convert between serial and Ethernet signals, your SCADA and data collection system will be able to access all devices connected to a standard TCP/IP network, regardless of whether the devices are used locally or at a remote site.

Three different socket modes—TCP Server, TCP Client, and UDP Server/Client—and one real COM mode are available. The main difference between the TCP and UDP protocols is that TCP guarantees delivery of data by requiring the recipient to send an acknowledgement to the sender. UDP does not require this type of verification, making it possible to offer speedier delivery. UDP also allows multicasting of data to groups of IP addresses.

NOTE Pictures in this Chapter use NE-4110S as an example.

TCP Server Mode

In TCP Server mode, NE-4100 provides a unique IP:Port address on a TCP/IP network. NE-4100 Series boards wait passively to be contacted by the host computer, allowing the host computer to establish a connection with and get data from the serial device. This operation mode also supports up to 4 simultaneous connections, so that multiple hosts can collect data from the same serial device—at the same time.

As illustrated in the figure, data transmission proceeds as follows:

1.The host connects to the NE-4100 Series boards configured for TCP Server Mode.

2.Once the connection is established, data can be transmitted in both directions—from the host to the NE-4100 Series boards, and from the NE-4100 Series boards to the host.

4-2

Image 28
Contents NE-4100 Series User’s Manual Sixth Edition, AprilCopyright Notice Table of Contents Chapter Configuring Windows Administrator Introduction Product Features Package ChecklistOverview Product Specifications Panel Layout and Pin Assignments NE-4120 Series/NE-4120-STNE-4100T/NE-4100-ST Panel LayoutsNE-4100T NE-4100-STPin Assignments RXD1NE-4100-ST LED Indicators Block DiagramLED Name LED Color LED Function NE-4110 Series/NE-4110-ST NE-4110SNE-4110A NE-4110-ST evaluation board for NE-4110 SeriesSerial Header Pinouts J1 for NE-4110S Serial Header Pinouts J1 for NE-4110AEthernet Port Pinouts for NE-4110S/A DIO and LED Header Pinouts J2 for NE-4110S/ANE-4110S Block Diagram Block DiagramsNE-4110A Block Diagram NE-4110-ST LED Indicators NE-4120 Series/NE-4120-ST Top Panel of NE-4120STop Panel of NE-4120A NE-4120-ST evaluation board for NE-4120 SeriesSerial Header Pinouts J1 for NE-4120S Serial Header Pinouts J1 for NE-4120ANE-4120S Block Diagram NE-4120A Block DiagramNE-4120-ST LED Indicators Getting Started Wiring Requirements Attaching NE-4100T to the Evaluation BoardAttaching NE-4110 Series to the Evaluation Board Attaching NE-4120 Series to the Evaluation BoardCircuit Pad for External Connection Connecting the Power Connecting to the NetworkConnecting to a Serial Device DI/O SettingsDigital Output LED Circuit Design Selecting the Interface JP2Choosing the Proper Operation Mode TCP Server Mode TCP Client Mode UDP ModeReal COM Mode Initial IP Address Configuration ARPFactory Default IP Address NE-4100 Series Administration SuiteDefault IP address Initializing NE-4100 Series Module’s IP AddressTelnet Console Page Serial Console 19200, n, 8 Web Console Configuration Opening Your Browser Server name Basic SettingsTime zone Setting Factory Default Necessity Time serverMethod Function Definition Network SettingsIP Address Setting Factory Default Necessity 255.255.255.0 Required Setting Factory Default Necessity None OptionalIP configuration GatewayCommunity name ContactLocation Auto report to IPSerial Settings Operating Settings TCP Server ModeMax connection Max. connectionMax connection 2 to DelimiterReal COM Mode Setting Factory Default Necessity 4001 RequiredCommand port Setting Factory Default Necessity 966 OptionalNE-4100 Series User’s Manual Web Console Configuration TCP Client Mode Destination IP address 1/2/3/4 UDP Mode TCP connection onLocal Listen port Accessible IP Settings # Hosts on a given subnet can access the NE-4100# Any host can access the NE-4100 Allowable Hosts Input formatAuto Warning Settings Mail and Snmp TrapEvent Type Digital IO DIO MonitorLoad Factory Defaults Change PasswordSave/Restart Configuring Windows Administrator Monitor Port Monitor COM MappingInstalling Network Enabler Administrator NE-4100 Series User’s Manual Web Console Configuration Starting the Configuration Broadcast SearchNE-4100 Series User’s Manual Web Console Configuration Unlock Password Protection Lock UnlockBlank FixedConfiguring NE-4100 Upgrading the Firmware Export/Import Monitor Select Add Target NE-4100 Series User’s Manual Web Console Configuration NE-4100 Series User’s Manual Web Console Configuration Port Monitor COM Mapping On-line COM MappingSelect COM Setting to modify COM No., default setting, etc NE-4100 Series User’s Manual Web Console Configuration Off-line COM Mapping SW Reset Function NE-4100 Series User’s Manual SW Reset Function TCP Socket Application Service Well Known Port NumbersUDP Socket Application Service NE-4100 Series User’s Manual Well Known Port NumbersNeci Library DIO Commands Command Packet Format Length Bytes Header DataACK Packet Format Length Bytes Header Data Data Structure DefinitionCommand Code Usage Reading Single DIO Parameters Writing a Single DIO ParametersNE-4100 Series User’s ManualDIO Commands Reading Multiple DIOsWriting Multiple DIOs Snmp Agent with MIB II & RS-232 Like Group System MIB Interfaces MIB Address Translation MIBService Information Moxa Internet Services Following services are providedMoxa Product & NE-4100T Problem Report FormSerial Number Product Return Procedure