Moxa Technologies 5110 Series user manual TCP Server Mode, TCP Client Mode

Page 20

NPort 5110 Series User’s Manual

Choosing the Proper Operation Mode

Overview

NPort 5110 Serial Device Servers are used to network-enable traditional RS-232 devices. A Serial Device Server is a tiny computer equipped with a CPU, real-time OS, and TCP/IP protocols that can bi-directionally transfer data between the serial and Ethernet formats. Your computer can access, manage, and configure remote facilities and equipment over the Internet from anywhere in the world.

Traditional SCADA and data collection systems rely on serial ports (RS-232) to collect data from various kinds of instruments. Since NPort 5110 Serial Device Servers network-enable instruments equipped with an RS-232 communication port, your SCADA and data collection system will be able to access all instruments connected to a standard TCP/IP network, regardless of whether the devices are used locally or at a remote site.

NPort 5110 is an external IP-based network device that allows you to expand the number of serial ports for a host computer on demand. As long as your host computer supports the TCP/IP protocol, you won’t be limited by the host computer’s bus limitation (such as ISA or PCI), or lack of drivers for various operating systems.

In addition to providing socket access, NPort 5110 also comes with a Real COM/TTY driver that transmits all serial signals intact. This means that your existing COM/TTY-based software can be preserved, without needing to invest in additional software.

Three different Socket Modes are available: TCP Server, TCP Client, and UDP Server/Client. 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 data to be unicast or multicast to only one IP or to different groups of IP addresses.

TCP Server Mode

In TCP Server mode, NPort 5110 is configured with a unique IP:Port address on a TCP/IP network. NPort 5110 waits 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 requests a connection from the NPort 5110 configured for TCP Server Mode.

2.Once the connection is established, data can be transmitted in both directions—from the host to the NPort 5110, and from the NPort 5110 to the host.

TCP Client Mode

In TCP Client mode, NPort 5110 can actively establish a TCP connection to a pre-defined host computer when serial data arrives.

After the data has been transferred, NPort 5110 can automatically disconnect from the host computer by using the TCP alive check time or Inactivity time settings. Refer to Chapter 5 for more details.

Data transmission proceeds as follows:

1.The NPort 5110 configured for TCP Client Mode requests a connection from the host.

2.Once the connection is established, data can be transmitted in both directions—from the host to the NPort 5110, and from the NPort 5110 to the host.

4-2

Image 20
Contents NPort 5110 Series User’s Manual First Edition, DecemberNPort 5110 User’s Manual Copyright NoticeTrademarks DisclaimerTable of Contents Ethernet Port Pinouts Serial Port Pinouts Ethernet CablesIntroduction Overview Package ChecklistProduct Features Product Specifications Panel Layout Connecting the Hardware Getting StartedPanel Layout Connecting the HardwareConnecting the Power Connecting to the Network Connecting to a Serial DeviceLED Indicators LED Name LED Color LED FunctionInitial IP Address Configuration Factory Default IP Address NPort 5110 Administration SuiteDefault IP address Initializing NPort 5110’s IP AddressTelnet Console Page Page Serial Console 19200, n, 8 Page Page Choosing the Proper Operation Mode TCP Server Mode TCP Client ModePair Connection Mode UDP ModeReal COM Mode Ethernet Modem Mode Web Console Configuration Opening Your Browser NPort 5110 Series User’s Manual Web Console Configuration Basic Settings Web/Telnet ConsoleServer name Web ConsoleMethod Function Definition Network SettingsIP configuration IP address NetmaskGateway DNS server 1 / DNS serverSnmp Settings IP Address ReportCommunity name ContactSerial Settings Auto report to IPAuto report to TCP port Auto report periodSerial Parameters Operating Settings Real COM ModeTCP alive check time Max connectionSetting Factory Default Necessity To FF hex None Optional Setting Factory Default Necessity To 65535 ms OptionalMax connection 2 to DelimiterTCP Server Mode Inactivity timeSetting Factory Default Necessity To FF None Optional Setting Factory Default Necessity 4001 Required Command portSetting Factory Default Necessity 966 Optional Local TCP portTCP Client Mode Delimiter TCP connect on Destination IP addressDestination IP address 2/3/4 UDP Mode Local listen port Pair Connection Slave Mode Pair Connection Master Mode Ethernet Modem Dial-inDial-out Disconnection request from local siteAT Commands Disconnection request from remote siteRegisters AT&DAccessible IP Settings TCP port Setting Factory Default Necessity 4001 RequiredMail Server Auto Warning SettingsAuto Warning E-mail and Snmp Trap Event Type Snmp Trap ServerDCD changed DSR changedChange Password Load Factory DefaultsConfiguring Windows Administrator Overview Installing Windows Administrator ConfigurationInstalling Windows Administrator Page Page Page Configuration Broadcast Search Page Page Unlock Password Protection Lock UnlockBlank FixedConfiguring NPort Page Upgrade Firmware Export/Import Monitor Select Add Target Page Page Page Page Port Monitor COM Mapping On-line COM MappingOn-line COM Mapping Off-line COM MappingSelect COM Settings to modify COM No., default setting, etc Page Fast Flush only flush local buffer Page Page Off-line COM Mapping Select Apply changeIP Location Page IP Serial LIB How to install IP Serial Library What is IP Serial Library?Why Use IP Serial Library? IP Serial LIB Function Groups Example ProgramPinouts and Cable Wiring DB9 Male RS-232 port pinouts for NPort Port Pinout DiagramsEthernet Port Pinouts Serial Port Pinouts Cable Wiring Diagrams Ethernet CablesTCP Socket Application Service Well Known Port NumbersUDP Socket Application Service NPort 5110 Series User’s Manual Well Known Port NumbersNPort 5110 Series User’s Manual Well Known Port Numbers Snmp Agents with MIB II & RS-232 Like Groups System MIB Interfaces MIB Address Translation MIBTCP MIB Snmp MIB Input Signal Table Output Signal Table Auto IP Report Protocol Auto IP Report Format Info nID List AP ID & Hardware ID Mapping TableService Information Moxa Internet Services Following services are providedProblem Report Form Moxa NPort Moxa Product NPort Serial NumberProduct Return Procedure