Port Monitor ..................................................................................................................................... 5-18
COM Mapping ................................................................................................................................... 5-19
www.ipc2u.ru
www.moxa.pro
On-line COM Mapping ................................................................................................................ 5-19
Off-line COM Mapping ................................................................................................................ 5-24
COM Grouping .................................................................................................................................. 5-25
Creating a COM Group ............................................................................................................... 5-25
Deleting a COM Group................................................................................................................ 5-27
Adding a Port to a COM Group .................................................................................................... 5-28
Removing a Port from a COM Group ............................................................................................ 5-29
Modify Ports in a COM Group ...................................................................................................... 5-30
IP Address Report ............................................................................................................................. 5-33
6. NPort CE Driver Manager for Windows CE ......................................................................................... 6-1
Installing NPort CE Driver Manager ....................................................................................................... 6-2
Using NPort CE Driver Manager ............................................................................................................ 6-2
7. IP Serial LIB ...................................................................................................................................... 7-1
When NPort products are used in a dynamic IP environment, users must spend more time with IP management
tasks. For example, if the NPort works as a server (TCP or UDP), then the host, which acts as a client, must
know the IP address of the server. If the DHCP server assigns a new IP address to the NPort, the host must
have some way of determining the NPort’s new IP address.
NPort products help out by reporting their IP address periodically to the IP location server, in case the dynamic
IP has changed. The parameters shown below are used to configure the Auto IP report function. There are two
ways to develop an “Auto IP report Server” to receive NPort’s Auto IP report.
1. Use Device Server Administrator’s IP Address Report function.
2. Auto IP report protocol, which can receive the Auto IP report automatically on a regular basis, is also
available to help you develop your own software. Refer to Appendix E for details about the Auto IP report
protocol.
NPort 5000 Series Getting Started
2-26
Web Interface for the NPort 5000A and NPort IA5000A Series
www.ipc2u.ru
www.moxa.pro
www.ipc2u.ru
www.moxa.pro
Parameter Setting Factory
Auto report to
IP
Auto report to
UDP port
Auto report
period
E.g., 192.168.1.1 or
URL
E.g., 4001 4002 NA Optional
Time interval (in
seconds)
Serial Settings
The Serial Settings page is where you set the serial communication parameters for each device port. Settings
include baudrate, parity, and flow control. Each device port can be configured independently.
Web Interface for the NPort 5000 and NPort IA5000 Series
Description Necessity
Default
None Reports generated by the Auto report
function will be automatically sent to
this IP address.
10 NA Optional
Optional
NPort 5000 Series Getting Started
2-27
ATTENTION
It is critical that the device port’s serial communication settings match the attached device. Refer to the user’s
manual for your serial device for the correct serial communication settings.
Default
Port Alias is specially designed to allow easy
110 bps to 230400
to 5 bits, the stop bits
www.ipc2u.ru
www.moxa.pro
To modify serial settings for a particular port, click on the Port Number under Serial Settings, located under
Main Menu on the left side of the browser window.
Web Interface for the NPort 5000 and NPort IA5000 Series
Web Interface for the NPort 5000A and NPort IA5000A Series
Parameter Setting Factory
Port Alias 1 to 15 characters
(E.g., PLC-No.1)
Baud rate
bps
Data bits 5, 6, 7, 8 8 When Data bits is set
Stop bits 1, 1.5, 2 1 The size of the stop character. Required
None
115200 bps The rate of data transmission to and from the
Description Necessity
identification of the serial devices that are
connected to the NPort’s serial port.
attached serial device.
setting will automatically change to 1.5 bits.
Optional
Required
Required
NPort 5000 Series Getting Started
2-28
www.ipc2u.ru
www.moxa.pro
www.ipc2u.ru
www.moxa.pro
Parameter Setting Factory
Parity None, Even, Odd,
Space, Mark
Flow control None, RTS/CTS,
DTR/DSR,
Xon/Xoff
FIFO Enable, DisableEnable Controls whether or not the device port’s
Interface* RS-232
RS-422
2-wire RS-485
4-wire RS-485
*Supported interfaces vary by model. Refer to the datasheet of your NPort device to see which serial interface
it supports.
Operating Settings
Description Necessity
Default
None Even and Odd parity provide rudimentary
error-checking; Space and Mark parity are
rarely used.
RTS/CTS The method used to suspend and resume
data transmission to ensure that data is not
lost. If you can use it, RTS/CTS
(hardware) flow control is recommended.
built-in 128-byte FIFO buffer is used. When
enabled, the FIFO helps reduce data loss
regardless of direction.
RS-232 The serial interface that will be used. The
options that are available depend on the
specific model of device server.
Required
Required
Required
Required
Operating Settings is where each device port’s operation mode and associated parameters are configured. Use
the chart provided below to select the operation mode that is most suitable for your application and refer to
Chapters 3 and 4 for a detailed explanation of different operating modes and parameters.
NPort 5000 Series Getting Started
2-29
www.ipc2u.ru
www.moxa.pro
Click on Operating Settings under Main Menu to display the operating settings for the NPort’s serial ports.
To modify operating settings for a particular port, click on the Port Number under Operating Settings,
located under Main Menu on the left side of the browser window.
Web Interface for the NPort 5000 and NPort IA5000 Series
Web Interface for the NPort 5000A and NPort IA5000A Series
For each mode, the default settings should work for most applications. Modify these settings only if absolutely
necessary for your application. The operation mode and related parameters can be configured through the web
console. The same parameters can also be configured using NPort Administrator, the Telnet console, or serial
console. Refer to Chapters 3 and 4 for details.
NPort 5000 Series Getting Started
2-30
www.ipc2u.ru
www.moxa.pro
www.ipc2u.ru
www.moxa.pro
Web Interface for the NPort 5000 and NPort IA5000 Series
Web Interface for the NPort 5000A and NPort IA5000A Series
NPort 5000 Series Getting Started
2-31
www.ipc2u.ru
www.moxa.pro
Accessible IP Settings
Web Interface for the NPort 5000 and NPort IA5000 Series
Web Interface for the NPort 5000A and NPort IA5000A Series
Accessible IP Settings allow you to add or block remote host IP addresses to prevent unauthorized access.
Access to the NPort is controlled by an IP address. That is, if a host’s IP address is in the accessible IP table,
then the host will be allowed to access the NPort. Three setting types are described below:
• Only one host with a specific IP address can access the NPort
Enter “[IP address]/255.255.255.255” (e.g., “192.168.1.1/255.255.255.255”).
• Hosts on a specific subnet can access the NPort
Enter “[IP address]/255.255.255.0” (e.g., “192.168.1.0/255.255.255.0”).
NPort 5000 Series Getting Started
2-32
192.168.1.1 to 192.168.1.254
192.168.1.0 / 255.255.255.0
www.ipc2u.ru
www.moxa.pro
www.ipc2u.ru
www.moxa.pro
• Any host can access the NPort
Disable this function. Refer to the following table for more details about the configuration.
Allowable Hosts Input format
Any host Disable
192.168.1.120 192.168.1.120 / 255.255.255.255
192.168.0.1 to 192.168.255.254 192.168.0.0 / 255.255.0.0
192.168.1.1 to 192.168.1.126 192.168.1.0 / 255.255.255.128
192.168.1.129 to 192.168.1.254 192.168.1.128 / 255.255.255.128
Auto Warning Settings
The NPort device server can automatically warn administrators of certain system, network, and configuration
events. Depending on the event, different options for automatic notification are available. These options are
configured in the Auto Warning Settings.
Auto warning: E-mail and SNMP trap
The Email and SNMP trap parameters are used to configure how e-mail and SNMP traps are sent when an
automatic warning is issued by the NPort device server.
Web Interface for the NPort 5000 and NPort IA5000 Series
NPort 5000 Series Getting Started
2-33
Default
IP or Domain
IP address or
ATTENTION
Consult your
function may
not work properly if it is not configured correctly. NPort
MD5 (RFC
2554).
www.ipc2u.ru
www.moxa.pro
Web Interface for the NPort 5000A and NPort IA5000A Series
Mail Server
Parameter Setting Factory
Description Necessity
Mail server
Name
User name 1 to 15
characters
Password 1 to 15
characters
From E-mail
address
E-mail address
1/2/3/4
1 to 63
characters
1 to 63
characters
None This optional field is for the IP address or
domain name of your network mail server, if
applicable. A mail server is required for the
NPort to send e-mail warnings of
administrative events.
None This optional field is used if your mail server
requires it.
None This optional field is used if your mail server
requires it.
None This optional field sets the “from” e-mail
address that will show up in an automatic
warning e-mail.
None These optional fields set the “destination”
e-mail address for automatic e-mail warnings.
Optional
Optional
Optional
Optional
Optional
SNMP Trap Server
Parameter Setting Factory
Default
SNMP trap server
IP or domain
name
Domain
Name
None N/A Optional
Description Necessity
network administrator or ISP for the proper mail server settings. The Auto warning
SMTP AUTH supports LOGIN, PLAIN, CRAM-
NPort 5000 Series Getting Started
2-34
www.ipc2u.ru
www.moxa.pro
www.ipc2u.ru
www.moxa.pro
Event Type
Web Interface for the NPort 5000 and NPort IA5000 Series
Web Interface for the NPort 5000A and NPort IA5000A Series
The Event Type parameters are used to configure which events will generate an automatic warning from the
NPort device server, and how that warning will be issued. For each listed event, certain automatic warning
options are available. If Mail is selected, an e-mail will be sent. If Trap is selected, an SNMP trap will be sent.
The Relay Output option is available for NPort IA5000/IA5000A series.
Cold start
Refers to starting the system from power off (contrast this with warm start). When performing a cold start, the
NPort will automatically issue an auto warning message by e-mail, or send an SNMP trap after booting up.
Warm start
A warm start refers to restarting the computer without turning the power off. When performing a warm start,
the NPort will automatically send an e-mail, or send an SNMP trap after rebooting.
NPort 5000 Series Getting Started
2-35
www.ipc2u.ru
www.moxa.pro
Authentication failure
An authentication failure event is triggered when the user inputs an incorrect password from the Console or
Administrator. When an authentication failure occurs, the NPort will immediately send an e-mail or SNMP trap.
IP address changed
An IP address changed event is triggered when the user has changed the NPort’s IP address. When the IP
address changes, the NPort will send an e-mail with the new IP address before the NPort reboots. If the NPort
is unable to send an e-mail message to the mail server within 15 seconds, the NPort will reboot anyway, and
abort the e-mail auto warning.
Password changed
A password changed event is triggered when the user has changed the NPort’s password. When the password
changes, the NPort will send an e-mail with the password changed notice before the NPort reboots. If the NPort
is unable to send an e-mail message to the mail server within 15 seconds, the NPort will reboot anyway, and
abort the e-mail auto warning.
Power failure (this event type is only applicable to NPort IA5000/IA5000A series)
NPort IA5000/IA5000A series NPorts have two DC power inputs for redundancy. Different approaches are used
to warn engineers automatically, including by email and by relay output. Users can connect to Monitor
Relay Output from the web console to check which event caused the warning. The relay output will be
canceled after the power recovers, or by selecting “acknowledge event” using the web console or Telnet. When
the Relay Output is sending a warning, the Ready LED will flash red until the warning event ceases.
Web Interface for the NPort 5000 and NPort IA5000 Series
Web Interface for the NPort 5000A and NPort IA5000A Series
NPort 5000 Series Getting Started
2-36
NOTE
Relay Output
Relay
Output
the warning. The relay output will be canceled
if the
. When
the Relay Output is issuing a warning, the Ready LED
Event Type Mail checkbox.
SNMP Trap to
configure
ATTENTION
DCD and DSR signal changes are only applicable for the RS
www.ipc2u.ru
www.moxa.pro
www.ipc2u.ru
www.moxa.pro
Ethernet link down
The NPort device server provides system maintainers with real-time alarm messages for Ethernet link down.
Even when control engineers are out of the control room for an extended period of time, they can still be
informed of the status of devices almost instantaneously when exceptions occur. The NPort device server
supports different methods for warning engineers automatically, such as by email, SNMP trap, and relay
output*.
DCD changed
A DCD (Data Carrier Detect) signal change indicates that the modem connection status has changed. For
example, a DCD change to high indicates that the local modem and remote modem are connected. A DCD
signal change to low indicates that the connection line is down. When the DCD changes, the NPort will
immediately send an e-mail, send an SNMP trap, or trigger the relay output*.
DSR changed
A DSR (Data Set Ready) signal change indicates that the data communication equipment’s power is off. For
example, a DSR change to high indicates that the DCE is powered ON. A DSR signal changes to low indicates
that the DCE is powered off. When the DSR changes, the NPort will immediately send an e-mail, send an SNMP
trap, or trigger the relay output*.
*Relay output is only supported by the NPort IA5000/IA5000A series.
abnormal state is restored, or if Acknowledge Event is selected from the web or Telnet console
Parameter Setting Factory
Mail Enable, DisableDisable This feature helps the administrator manage
Trap Enable, DisableDisable This feature helps the administrator manage
is only available for the NPort IA5000/IA5000A series. Users can connect to Monitor
from the web console to check which event is causing
will flash red until the warning event ceases.
Description Necessity
Default
Optional
how the NPort sends e-mail to pre-defined
e-mail boxes when the enabled events (Cold
start, Warm start, Authentication failure, etc.)
occur. To configure this feature, click the
Optional
how the NPort IA5000A sends an
a pre-defined SNMP Trap server when the
enabled events (Cold start, Warm start,
Authentication failure, etc.) occur. To
this feature, click the Event Type Trap
checkbox.
-232 interface.
NPort 5000 Series Getting Started
2-37
www.ipc2u.ru
www.moxa.pro
Monitor
Monitor Line
Click Line under Monitor to show the operation mode and status of each connection (IPx), for each of the four
serial ports.
Web Interface for the NPort 5000 and NPort IA5000 Series
Web Interface for the NPort 5000A and NPort IA5000A Series
Monitor Async
Click Async under Monitor to show the current status of each of the four serial ports.
Web Interface for the NPort 5000 and NPort IA5000 Series
NPort 5000 Series Getting Started
2-38
www.ipc2u.ru
www.moxa.pro
www.ipc2u.ru
www.moxa.pro
Web Interface for the NPort 5000A and NPort IA5000A Series
Monitor Async-Settings
Click Async Setting under Monitor to show the run-time settings for each of the four serial ports.
Web Interface for the NPort 5000 and NPort IA5000 Series
Web Interface for the NPort 5000A and NPort IA5000A Series
NPort 5000 Series Getting Started
2-39
ATTENTION
If you forget the NPort’s password, the ONLY way to configure the NPort is by using the hardware reset button
to
Before you set a password for the first time, it is a good idea to export the NPort’s
complete configuration to
www.ipc2u.ru
www.moxa.pro
Change Password
You can set a password to restrict access to the NPort’s configuration parameters. (The default password for
NPort is moxa.) If a user does not enter the correct password when accessing the NPort through one of the
consoles (e.g., web console), access to the NPort configuration settings will be denied.
Web Interface for the NPort 5000 and NPort IA5000 Series
Web Interface for the NPort 5000A and NPort IA5000A Series
load the factory defaults.
a file. Your configuration can then be easily restored if necessary.
NPort 5000 Series Getting Started
2-40
www.ipc2u.ru
www.moxa.pro
www.ipc2u.ru
www.moxa.pro
Load Factory Default
Web Interface for the NPort 5000 and NPort IA5000 Series
Web Interface for the NPort 5000A and NPort IA5000A Series
This function will reset all of the NPort’s settings to the factory default values. Be aware that previous settings
will be lost.
Configuration by Telnet Console
You can update your NPort’s IP address by using Telnet to connect to your NPort IA5000A over the network.
(Figures in this section were generated using the NPort IA5450AI).
1. From the Windows desktop, click on Start and then select Run.
2. Type telnet 192.168.127.254 (use the correct IP address if different from the default) in the Open text
input box, and then click OK.
NPort 5000 Series Getting Started
2-41
www.ipc2u.ru
www.moxa.pro
3. When the Telnet window opens, you will be prompted to input the Console password (the default password
is moxa), input the password and then press Enter.
4. Type 2 to select Network settings, and then press Enter.
5. Type 1 to select IP address and then press Enter.
NPort 5000 Series Getting Started
2-42
www.ipc2u.ru
www.moxa.pro
www.ipc2u.ru
www.moxa.pro
6. Use the Backspace key to erase the current IP address, type in the new IP address, and then press Enter.
7. Press any key to continue…
NPort 5000 Series Getting Started
2-43
www.ipc2u.ru
www.moxa.pro
8. Type m and then press Enter to return to the main menu.
9. Type s and then press Enter to Save/Restart the system.
10. Type y and then press Enter to save the new IP address and restart the NPort.
NPort 5000 Series Getting Started
2-44
,
ATTENTION
The
www.ipc2u.ru
www.moxa.pro
www.ipc2u.ru
www.moxa.pro
Configuration by Serial Console
Serial Console (19200, n, 8, 1)
You may use the RS-232 console port to configure your NPort’s IP address. We suggest using PComm Terminal
Emulator, which is available free of charge as part of the PComm Lite program suite, to carry out the installation
procedure, although other similar utilities may also be used. The following table list models that have a serial
console.
NPort Family
Configuration
Options
Serial Console*
* Only applies to NPorts that have a serial console port. The following NPorts do not have a serial console port:
NPort 5130/5232/5400 Series, NPort 5600 RM Series, NPort 5150AI-M12/5250AI-M12/5450AI-M12 Series
NPort 5130A/ 5230A Series.
serial console port is an RS-232 port.
Before you configure the NPort device server over the serial console, turn off the power and connect the serial
cable from the NPort to your computer’s serial port.
1. Connect the NPort’s serial port 1 directly to your computer’s male RS-232 serial port. From the Windows
desktop click Start
2. When the PComm Terminal Emulator window opens, first click on the Port Manager menu item and
select Open, or simply click on the Open icon.
Programs PComm Lite Terminal Emulator.
NPort 5000/IA5000
Series
NPort 5000A/IA5000A
Series
NPort 5000 Series Getting Started
2-45
www.ipc2u.ru
www.moxa.pro
3. The Property window opens automatically. From the Communication Parameter page, select the
appropriate COM port for the connection, COM1 in this example, and 19200 for Baud Rate, 8 for Data Bits,
None for Parity, and 1 for Stop Bits.
4. From the Property window’s Terminal page, select ANSI or VT100 for Terminal Type and then click OK.
5. If you select Dumb Terminal as the terminal type, some of the console functions—especially the Monitor
function—may not work properly.
6. Press the “ ` ” key continuously and then power on the NPort.
7. The NPort will automatically switch from data mode to console mode as it receives a continuous string of “ ` ”
characters.
NPort 5000 Series Getting Started
2-46
www.ipc2u.ru
www.moxa.pro
www.ipc2u.ru
www.moxa.pro
8. Input the password when prompted. The default password is moxa.
9. Start configuring the IP address under Network Settings. Refer to step 4 in the Telnet Console section for
the rest of the IP settings.
NPort 5000 Series Getting Started
2-47
www.ipc2u.ru
www.moxa.pro
Testing Your NPort
After completing installation and configuration, you can do a simple test to ensure that your NPort will
communicate successfully. Click on the appropriate link below to view a technical note that explains how to test
your NPort one of four common operation modes: Real COM, TCP client, TCP server, and UDP.
• Real COM Mode for NPort
• TCP Client Mode for NPort
• TCP Server Mode for NPort
• UDP Mode for NPort
3
www.ipc2u.ru
www.moxa.pro
www.ipc2u.ru
www.moxa.pro
3. Choosing the Proper Operation Mode
In this chapter, we describe the NPort device server’s various operation modes. The options include an
operation mode that uses a driver installed on the host computer, and operation modes that rely on TCP/IP
socket programming concepts. After choosing the proper operation mode in this chapter, refer to Chapter 4
for detailed configuration parameter definitions.
The following topics are covered in this chapter:
Overview
Real COM Mode
RFC2217 Mode
TCP Server Mode
TCP Client Mode
UDP Mode
Pair Connection Mode
Ethernet Modem Mode
Reverse Telnet Mode
Disabled Mode
NPort 5000 Series Choosing the Proper Operation Mode
3-2
The NPort
Windows systems, and also TTY drivers for L
systems. The
driver establishes a transparent connection
serial device by mapping the IP:Port of the
serial port to
a local COM/TTY port on the host computer. Real COM Mode also
supports up to 4 simultaneous
hosts can collect data from the same serial device at the same
time.
ATTENTION
The driver used for Real COM Mode is bundled with NPort Administrator. The driver is installed on your
computer automatically whe
www.ipc2u.ru
www.moxa.pro
Overview
NPort serial device servers network-enable traditional RS-232/422/485 devices. A serial device server is a
small computer equipped with a CPU, real-time OS, and TCP/IP protocols that can bi-directionally translate
data between the serial and Ethernet formats. NPort device servers that are connected to a network that with
access to the Internet can be accessed from a computer located 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 NPort serial device servers network-enable instruments equipped with an
RS-232/422/485 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.
An NPort serial device server 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, the NPort also comes with a Real COM / TTY driver that transmits all
serial signals intact. This means that you can continue using your existing COM/TTY-based software, 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 to only one IP address, or multicast to groups of
IP addresses.
Real COM Mode
comes equipped with COM drivers that work with
inux
between host and
NPort’s
connections, so that multiple
One of the major conveniences of using Real COM Mode is that Real COM Mode allows users to continue using
RS-232/422/485 serial communications software that was written for pure serial communications applications.
The driver intercepts data sent to the host’s COM port, packs it into a TCP/IP packet, and then redirects it
through the host’s Ethernet card. At the other end of the connection, the NPort accepts the Ethernet frame,
unpacks the TCP/IP packet, and then sends it transparently to the appropriate serial device attached to one of
the NPort’s serial ports.
n you install NPort Administration Suite.
NPort 5000 Series Choosing the Proper Operation Mode
3-3
ATTENTION
Real COM Mode allows several hosts to access the same NPort. The driver that comes with your NPort controls
host a
Accessible IP Settings
section
In
IP:Port combination on a TCP/IP network. In this case, the
NPort waits passively to be contacted by the host
After the host computer establishes a connection
serial device, it can then
transmission. TCP
Server mode also supports up to 4 simultaneous connections,
so that multiple hosts can collect
device
transmission proceeds as follows:
ost requests a connection from the NPort configured
NPort,
In TCP Client Mode, the N
connection with a pre
serial
data arrives.
can disconnect automatically from the host computer by using
the
Refer
to
illustrated in the figure, data transmission proceeds as follows:
NPort,
www.ipc2u.ru
www.moxa.pro
www.ipc2u.ru
www.moxa.pro
ccess to attached serial devices by checking the host’s IP address. Refer to the
in Chapter 2 for details.
RFC2217 Mode
RFC2217 Mode is only supported by the NPort 5000A, NPort 5000AI-M12, NPort IA5000A, NPort
5600, and NPort 5600-8-DT/DTL Series.
RFC 2217 mode is similar to Real COM mode in that a driver is used to establish a transparent connection
between a host computer and a serial device by mapping the serial port on the NPort to a local COM port on the
host computer. RFC2217 defines general COM port control options based on the Telnet protocol. Third party
drivers supporting RFC2217 are widely available on the Internet and can be used to implement Virtual COM
mapping to your NPort serial port(s).
TCP Server Mode
TCP Server Mode, the NPort is configured with a unique
proceed with data
computer.
with the
data from the same serial
—at the same time. As illustrated in the figure, data
The h
for TCP Server Mode.
Once the connection is established, data can be
transmitted in both directions—from the host to the
and from the NPort to the host.
TCP Client Mode
Port can actively establish a TCP
-determined host computer when
After the data has been transferred, the NPort
TCP alive check time or Inactivity time settings.
Chapter 4 for detailed configuration instructions. As
The NPort configured for TCP Client Mode requests a
connection from the host.
Once the connection is established, data can be
transmitted in both directions—from the host to the
and from the NPort to the host.
NPort 5000 Series Choosing the Proper Operation Mode
3-4
Compared to TCP communication, UDP is faster and more
efficient. In UDP mode, you can unicast or multicast data from
the serial device to one
serial device can also receive data from one or multiple host
computers, making this mode ideal for message display
applications.
www.ipc2u.ru
www.moxa.pro
UDP Mode
or multiple host computers, and the
Pair Connection Mode
Pair Connection Mode employs two NPort units in tandem, and can be used to remove the 15-meter distance
limitation imposed by the RS-232 interface. One NPort is connected from its RS-232/422/485 port to the COM
port of a PC or other type of computer, such as hand-held PDAs that have a serial port, and the serial device is
connected to the RS-232/422/485 port of the other NPort. The two NPort units are then connected to each
other with a cross-over Ethernet cable, both are connected to the same LAN, or in a more advanced setup, they
communicate with each other over a WAN (i.e., through one or more routers). Pair Connection Mode
transparently transfers both data and modem control signals (although it cannot transmit the DCD signal)
between the two NPorts.
Ethernet Modem Mode
Ethernet Modem Mode is only supported by the NPort IA5000/IA5000A, NPort 5000A, NPort
5000AI-M12, and NPort 5100 series.
Ethernet Modem Mode is designed for use with legacy operating systems, such as MS-DOS, that do not support
TCP/IP Ethernet. By connecting one of NPort’s serial ports to the MS-DOS computer’s serial port, it is possible
to use legacy software originally designed to transmit data via modem, but now transmit the data over the
Ethernet.
NPort 5000 Series Choosing the Proper Operation Mode
3-5
www.ipc2u.ru
www.moxa.pro
www.ipc2u.ru
www.moxa.pro
Reverse Telnet Mode
Console management is commonly used by connecting to Console/AUX or COM ports of routers, switches, and
UPS units. Rtelnet works the same as TCP Server mode in that only one TCP port is listened to after booting up.
The system then waits for a host on the network to initiate a connection. The difference is that the TCP Server
mode does not provide the conversion function provided by Telnet. If the connected devices need to use the
CR/LF conversion function when controlling, then users must choose Reverse Telnet mode.
Disabled Mode
When the Operation Mode for a particular port is set to Disabled, that port will be disabled.
4
www.ipc2u.ru
www.moxa.pro
4. Advanced Operation Mode Settings
Your NPort’s serial ports can be configured to use one of several operation modes, such as Real COM mode or
Reverse Telnet mode. In this chapter, we explain the settings for every parameter of every operation mode.
The following topics are covered in this chapter:
Overview
List of Parameters
When to Make Adjustments
Using Pair Connection Modes
Parameter Summary
Connection Management Parameters
Data Packing Parameters
Other Parameters
Web Console
NPort 5000 Series Advanced Operation Mode Settings
4-2
Real COM Mode TCP Server Mode TCP Client Mode UDP Mode Reverse Telnet Mode Pair Connection Mode RFC2217 Mode
Ignore jammed IP
Destination IP address
www.ipc2u.ru
www.moxa.pro
www.ipc2u.ru
www.moxa.pro
Overview
A device port’s operation mode determines how the port interacts with the network. Depending on your
application and device, you may have the option of choosing between two or more operating modes. For each
mode, the default settings should work for most applications. Modify these settings only if absolutely necessary
for your application. The operation mode and related parameters can be configured through NPort
Administrator. The same parameters may also be configured using the web console, Telnet console, or serial
console.
List of Parameters
Connection Management Parameters
Data Packing Parameters
Other Parameters
Allow driver control
Command port
Max connection
Destination IP address 1 through 4
Designated local port 1 through 4
Local listen port
Connection Control
TCP alive check time
Inactivity time
Packing length
Delimiter 1 and 2
Delimiter process
Force transmit
Local TCP port
Map <CR-LF>
When to Make Adjustments
The default settings for each operation mode are designed to work for most applications and usually do not
need to be modified. However, adjustments may be required for the following situations:
• You need to control network data packing using specific delimiter characters.
Adjust Delimiters 1 and 2 and Delimiter process.
• Multiple hosts will simultaneously access the attached device.
Adjust Max Connection, Ignore Jammed IP, and Allow driver control.
• Data will be broadcast from the serial device to multiple network destinations.
Adjust Destination IP 1 through 4.
• You are using Pair Connection modes to connect two serial devices over Ethernet.
Adjust Local TCP port and Destination IP Address
NPort 5000 Series Advanced Operation Mode Settings
4-3
Real COM Mode
TCP Server Mode
TCP Client Mode
Reverse Telnet Mode
Pair Connection Mode
RFC2217 Mode
Inactivity time
Pair Connection Mode
www.ipc2u.ru
www.moxa.pro
Using Pair Connection Modes
For some applications, you may want to configure two serial devices to communicate directly with each other
over the network. This can be done with a pair of NPort device servers configured for Pair Connection
Master/Slave modes. Configure one device port on one of the NPorts to Pair Connection Master mode, and one
device port on the other NPort to Pair Connection Slave mode. It doesn’t matter which NPort is the master and
which NPort is the slave.
For the device port configured for Pair Connection Slave mode, designate a Local TCP port to be used for
communication. For the device port configured for Pair Connection Master mode, enter the slave’s IP address
and Local TCP port as the Destination IP.
Once both device ports have been configured, the attached serial devices will communicate over Ethernet as if
they were connected by a serial cable. The two NPorts can be connected by an Ethernet cable, or they can be
connected to the same network.
Parameter Summary
Connection Management Parameters
UDP Mode
Real COM Mode
TCP Client Mode
TCP Server Mode
UDP Mode
Reverse Telnet Mode
TCP alive check time
Setting Options: 0 to 99 minutes
Default: 7 minutes
Description: The time limit for keeping the connection open if a host does
not respond to “TCP alive check” packets. If the host does not respond
within the specified time, the connection will be closed. A setting of 0
means that the connection will remain open even if the host never
responds.
Setting Options: 0 to 65535 ms
Default: 0
Description: Specifies the time limit for keeping the connection open if no
data flows to or from the serial device. If there is no activity for the
specified time, the connection will be closed. A setting of 0 means that
RFC2217 Mode
the connection will remain open even if data is never received.
For many applications, the serial device may be idle for long periods of
time, so 0 is an appropriate setting. If you wish to use Inactivity time with
TCP Client mode, you must set Connection Control to Any
Character/Inactivity Time (see Connection Control).
When adjusting Inactivity time, make sure that it is greater than the
Force transmit time. Otherwise, the TCP connection may be closed before
data in the buffer can be transmitted.
NPort 5000 Series Advanced Operation Mode Settings
4-4
Real COM Mode
TCP Server Mode
TCP Client Mode
Reverse Telnet Mode
Pair Connectio
RFC2217 Mode
Real COM Mode
TCP Server Mode
TCP Client Mode
Reverse Telnet Mode
Pair Connection Mode
RFC2217 Mode
Real COM Mode
TCP Server Mode
TCP Client Mode
Reverse
Pair Connection Mode
RFC2217 Mode
Real COM Mode
TCP Server Mode
TCP Client Mode
Reverse Telnet Mode
Pair Connection Mode
RFC2217 Mode
data accumulates in the device port’s buffer until it reaches the specified
www.ipc2u.ru
www.moxa.pro
www.ipc2u.ru
www.moxa.pro
Max connection
Setting Options: 1 to 4
Default: 1
n Mode
UDP Mode
Ignore jammed IP
Description: Specifies the maximum number of simultaneous
connections that the port will accept. When adjusting Max connection,
make sure that Ignore jammed IP and Allow driver control are also
configured correctly.
Setting Options: Yes or No
Default: No
UDP Mode
Allow driver control
UDP Mode
Telnet Mode
Description: This field specifies how an unresponsive IP address is
handled when there are simultaneous connections to the device port (see
Max connection). Yes means that transmission to the other hosts will not
be suspended if one IP address becomes unresponsive. No means that all
transmission will be suspended if one IP address becomes unresponsive,
and will resume when all hosts have responded. Yes is the recommended
setting when Max connection is 2 or more.
Setting Options: Yes or No
Default: No
Description: Specifies whether or not the device port will respond to
driver control commands when multiple simultaneous connections are
enabled (see Max connection).
Data Packing Parameters
Packing length
Setting Options: 0 to 1024
Default: 0
UDP Mode
Description: Controls data packing by the amount of data received. Serial
length. When the specified amount of data has accumulated in the buffer,
the data is packed for network transmission. A setting of 0 means that
data will not be packed until the buffer is full. 0 is the recommended
setting, unless your application has a specific need to limit packet sizes or
improve response times.
NPort 5000 Series Advanced Operation Mode Settings
4-5
Reverse Telnet Mode
Pair Connection Mode
nto the data stream at the software or
ATTENTION
When the device port buffer is full, the data will be packed for network transmission, regardless of the settings
for Delimiter 1, Delimiter 2, and Force trans
Reverse Telnet Mode
Pair Connection Mode
”Delimiter + 2” will wait for two additional characters before packing the
TCP Server Mode
Reverse Telnet Mode
Pair Connection Mode
www.ipc2u.ru
www.moxa.pro
UDP Mode
Real COM Mode
TCP Client Mode
TCP Server Mode
Delimiter 1 and 2
Setting Options: Enable, 0 to FF
Default: Disable
Description: Controls data packing using special delimiter character(s).
Serial data accumulates in the device port’s buffer until the delimiter
RFC2217 Mode
character(s) are received, after which the data is packed for network
transmission. If only one delimiter character is needed, be sure to enable
Delimiter 1 only. If both Delimiter 1 and 2 are enabled, both characters
must be received in sequence for data packing to occur. For example, the
carriage return character could be used as a delimiter in order to transmit
each sentence or paragraph in a separate packet. Data is packed