NPort 5000 Series User’s Manual
NPort 5000/5000A/IA5000/IA5000A/5000AI-M12 Series

Version 6.6, February 2022

www.moxa.com/product© 2022 Moxa Inc. All rights reserved.

NPort 5000 Series User’s Manual
The software described in this manual is furnished under a license agreement and may be used only in accordancewith the terms of that agreement.

Copyright Notice© 2022 Moxa Inc. All rights reserved.

Trademarks
The MOXA logo is a registered trademark of Moxa Inc.
All other trademarks or registered marks in this manual belong to their respective manufacturers.

Disclaimer
Information in this document is subject to change without notice and does not represent a commitment on the part of
Moxa.
Moxa provides this document as is, without warranty of any kind, either expressed or implied, including, but notlimited to, its particular purpose. Moxa reserves the right to make improvements and/or changes to this manual, or to
the products and/or the programs described in this manual, at any time.
Information provided in this manual is intended to be accurate and reliable. However, Moxa assumes no responsibility
for its use, or for any infringements on the rights of third parties that may result from its use.
This product might include unintentional technical or typographical errors. Changes are periodically made to theinformation herein to correct such errors, and these changes are incorporated into new editions of the publication.

Technical Support Contact Informationwww.moxa.com/support
Moxa Americas

Moxa China (Shanghai office)Toll-free: 1-888-669-2872

Toll-free: 800-820-5036

Tel:+1-714-528-6777

Tel:+86-21-5258-9955

Fax:+1-714-528-6778

Fax:+86-21-5258-5505

Moxa Europe

Moxa Asia-PacificTel:+49-89-3 70 03 99-0

Tel:

+886-2-8919-1230

Fax:+49-89-3 70 03 99-99

Fax:+886-2-8919-1231

Moxa India
Tel:+91-80-4172-9088

Fax:+91-80-4132-1045

Table of Contents
1.

About This Manual............................................................................................................................. 1-1

2.

Getting Started.................................................................................................................................. 2-1
Installing Your NPort Device Server....................................................................................................... 2-2
Wiring Requirements ................................................................................................................... 2-2
Connecting the Power .................................................................................................................. 2-2
Grounding the NPort Device Server ............................................................................................... 2-2
Connecting to the Network ........................................................................................................... 2-3
Connecting to a Serial Device ....................................................................................................... 2-3
LED Indicators ............................................................................................................................ 2-4
Beeper Definition......................................................................................................................... 2-7
RS-485 Port’s Adjustable Pull High/Low Resistor.............................................................................. 2-7
Configuration by Windows Utility .......................................................................................................... 2-7
Installing NPort Administrator ....................................................................................................... 2-7
Searching for Device Servers over a LAN ........................................................................................ 2-7
Adjusting General Settings ........................................................................................................... 2-9
Configuring Device Port Operation Mode....................................................................................... 2-10
Configuring Serial Communication Parameters .............................................................................. 2-11
Mapping COM Port to Device (only required when operation mode is set to Real COM or RFC2217)...... 2-13
Configuration by Web Console ............................................................................................................ 2-16
Opening Your Browser ............................................................................................................... 2-16
Quick Setup (excluding the NPort 5100, 5200, and IA5000 Series) .................................................. 2-19
Export/Import (Excluding the NPort 5100, 5200, and IA5000 Series ................................................ 2-21
Basic Settings ........................................................................................................................... 2-23
Network Settings....................................................................................................................... 2-26
Serial Settings .......................................................................................................................... 2-32
Operating Settings .................................................................................................................... 2-34
Accessible IP Settings ................................................................................................................ 2-37
Firmware Upgrading Compatibility Check ............................................................................................. 2-38
Account Management ........................................................................................................................ 2-39
Notification Message .................................................................................................................. 2-39
User Account ............................................................................................................................ 2-40
Password and Login Policy .......................................................................................................... 2-41
Auto Warning Settings ............................................................................................................... 2-41
Monitor .................................................................................................................................... 2-47
System Log Settings ......................................................................................................................... 2-49
Change Password ...................................................................................................................... 2-50
Load Factory Default .................................................................................................................. 2-51
Configuration by Telnet Console ......................................................................................................... 2-51
Configuration by Serial Console .......................................................................................................... 2-55
Serial Console (19200, n, 8, 1) ................................................................................................... 2-55
Testing Your NPort ............................................................................................................................ 2-57

3.

Cybersecurity Considerations ............................................................................................................ 3-1
Updating Firmware.............................................................................................................................. 3-2
Turn Off Unused Service and Ports ........................................................................................................ 3-2
Turn Off Moxa Service After Installation ......................................................................................... 3-2
Turn On Services That Are Necessary............................................................................................. 3-2
Limited IP Access ................................................................................................................................ 3-2
Account and Password ......................................................................................................................... 3-3
System Log ........................................................................................................................................ 3-3
Testing the Security Environment ......................................................................................................... 3-3

4.

Choosing the Proper Operation Mode ................................................................................................ 4-1
Overview ........................................................................................................................................... 4-2
Real COM Mode .................................................................................................................................. 4-2
RFC2217 Mode ................................................................................................................................... 4-3
TCP Server Mode ................................................................................................................................ 4-3
TCP Client Mode ................................................................................................................................. 4-3
UDP Mode .......................................................................................................................................... 4-4
Pair Connection Mode .......................................................................................................................... 4-4
Ethernet Modem Mode......................................................................................................................... 4-4
Reverse Telnet Mode ........................................................................................................................... 4-5
PPP Mode........................................................................................................................................... 4-5
Disabled Mode .................................................................................................................................... 4-5

5.

Advanced Operation Mode Settings ................................................................................................... 5-1
Overview ........................................................................................................................................... 5-2
List of Parameters ....................................................................................................................... 5-2
When to Make Adjustments .......................................................................................................... 5-2
Using Pair Connection Modes ................................................................................................................ 5-3

Parameter Summary ........................................................................................................................... 5-3
Connection Management Parameters ............................................................................................. 5-3
Data Packing Parameters ............................................................................................................. 5-4
Other Parameters ........................................................................................................................ 5-6
Web Console ...................................................................................................................................... 5-8
6.

Configuring NPort Administrator ....................................................................................................... 6-1
Overview ........................................................................................................................................... 6-2
Installing NPort Administrator .............................................................................................................. 6-2
Configuration ..................................................................................................................................... 6-5
Broadcast Search ........................................................................................................................ 6-5
Unlock Password Protection .......................................................................................................... 6-6
Configuring NPort ........................................................................................................................ 6-8
Upgrading the Firmware ............................................................................................................... 6-9
Export Configuration .................................................................................................................. 6-11
Import Configuration ................................................................................................................. 6-12
Monitor............................................................................................................................................ 6-14
Port Monitor ..................................................................................................................................... 6-18
COM Mapping ................................................................................................................................... 6-19
On-line COM Mapping ................................................................................................................ 6-19
Off-line COM Mapping ................................................................................................................ 6-24
COM Grouping .................................................................................................................................. 6-25
Creating a COM Group ............................................................................................................... 6-25
Deleting a COM Group................................................................................................................ 6-27
Adding a Port to a COM Group .................................................................................................... 6-28
Removing a Port from a COM Group ............................................................................................ 6-29
Modify Ports in a COM Group ...................................................................................................... 6-30
IP Address Report ............................................................................................................................. 6-33

7.

NPort CE Driver Manager for Windows CE ......................................................................................... 7-1
Overview ........................................................................................................................................... 7-2
Installing NPort CE Driver Manager ....................................................................................................... 7-2
Using NPort CE Driver Manager ............................................................................................................ 7-2

8.

Linux Real TTY Drivers ...................................................................................................................... 8-1
Basic Procedures ................................................................................................................................ 8-2
Hardware Setup ................................................................................................................................. 8-2
Installing Linux Real TTY Driver Files ..................................................................................................... 8-2
Mapping TTY Ports .............................................................................................................................. 8-3
Mapping tty ports automatically .................................................................................................... 8-3
Mapping tty ports manually .......................................................................................................... 8-3
Removing Mapped TTY Ports ................................................................................................................ 8-3
Removing Linux Driver Files ................................................................................................................. 8-4

9.

macOS TTY Drivers ............................................................................................................................ 9-1
Basic Procedures ................................................................................................................................ 9-2
Hardware Setup ................................................................................................................................. 9-2
Installing macOS TTY Driver Files .................................................................................................. 9-2
Mapping macOS TTY port..................................................................................................................... 9-5
Uninstalling the Driver ......................................................................................................................... 9-8

10. Linux Arm Drivers ........................................................................................................................... 10-1
Introduction ..................................................................................................................................... 10-2
Porting to the Moxa UC-Series—Arm-based Computer ........................................................................... 10-2
Build binaries on a general Arm platform ...................................................................................... 10-2
Cross-compiler and the Real TTY driver ........................................................................................ 10-2
Moxa cross-compiling interactive script ........................................................................................ 10-3
Manually build the Real TTY driver with a cross-compiler ................................................................ 10-4
Deploy cross-compiled binary to target ........................................................................................ 10-6
Porting to Raspberry Pi OS ................................................................................................................. 10-7
Porting to the Yocto Project on Raspberry Pi......................................................................................... 10-7
Prerequisite .............................................................................................................................. 10-7
Create a Moxa layer for the Yocto Project ..................................................................................... 10-8
Install a Moxa layer into the Yocto Project .................................................................................. 10-12
Deploy the Yocto image in Raspberry Pi ..................................................................................... 10-12
Start the Real TTY driver in Raspberry Pi .................................................................................... 10-12
Set the default tty mapping to the Real TTY configuration ............................................................ 10-13(Optional): Use the SSL secure mode for the NPort 6000 Series .................................................... 10-13
Troubleshooting ...................................................................................................................... 10-13
11. IP Serial LIB .................................................................................................................................... 11-1
Overview ......................................................................................................................................... 11-2
What is IP Serial Library? ........................................................................................................... 11-2
Why Use IP Serial Library? ......................................................................................................... 11-2
How to Install IP Serial Library .................................................................................................... 11-2

IP Serial LIB Function Groups ............................................................................................................. 11-3
Example Program ............................................................................................................................. 11-3
12. Android API Instructions ................................................................................................................ 12-1
Overview ......................................................................................................................................... 12-2
How to Start MxNPortAPI ........................................................................................................... 12-2
MxNPortAPI Function Groups .............................................................................................................. 12-3
Example Program ............................................................................................................................. 12-4
13. Introduction to LCM Display ............................................................................................................ 13-1
Basic Operation ................................................................................................................................ 13-2
Detailed Menu Options ...................................................................................................................... 13-2
Pinouts and Cable Wiring .................................................................................................................. A-1
Port Pinout Diagrams .......................................................................................................................... A-2
Ethernet Port Pinouts ................................................................................................................... A-2
Serial Port Pinouts ....................................................................................................................... A-2
Cable Wiring Diagrams ........................................................................................................................ A-5
Ethernet Cables........................................................................................................................... A-5
Serial Cables............................................................................................................................... A-6

B.

Adjustable Pull High/low Resistors for the RS-485 Port.................................................................... B-1

C.

Well-Known Port Numbers ................................................................................................................ C-1

D.

SNMP Agents with MIB II & RS-232/422/485 Like Groups ............................................................... D-1

E.

Auto IP Report Protocol .................................................................................................................... E-1

F.

Compliance Notice............................................................................................................................. F-1

2B

A.

1
1.

About This Manual

Read this user’s manual to learn how to configure and use your Moxa NPort device server. The following
products are covered by this manual:
NPort Family

Model Series

Introduction

NPort 5000

NPort 5110/5130/5150 Series

NPort 5000 series device servers are

NPort 5210/5230/5232 Series

designed to make serial devices

NPort 5410/5430/5450 Series

network-ready in an instant. The

NPort 5610/5630/5650 Series

different form factors of the servers

NPort 5610-8-DT/5650-8-DT Series

provide flexible options for users to

NPort 5610-8-DTL/5650-8-DTL Seriesconnect legacy devices to an IP-based
Ethernet LAN.

NPort 5000A

NPort 5110A/5130A/5150A Series

The NPort 5000A device servers are

NPort 5210A/ 5230A/5250A Series

designed to make serial devices

NPort 5150AI-M12/5250AI-M12/5450AI-M12 network-ready in an instant and give
Seriesyour PC software direct access to serial

NPort P5150A Series

devices from anywhere on the network.
The NPort 5000A device servers areultra-lean, rugged, and user-friendly,
making simple and reliable serial-toEthernet solutions possible.

NPort

NPort IA5150/IA5250 Series

NPort IA device servers are an ideal

IA5000/IA5000A

NPort IA5150A/IA5250A/IA5450A Series

choice for establishing network access to
RS-232/422/485 serial devices, including
PLCs, sensors, meters, motors, drives,
barcode readers, and operator displays.
All models are housed in a compact,rugged, DIN-rail mountable housing, andcome with redundant power inputs,
cascading Ethernet ports, and industrialgrade certifications.

22.

Getting Started

In this chapter, we explain how to install a Moxa NPort device server for the first time. There are four ways
to access the Moxa NPort’s configuration settings: Windows utility, web console, serial console, or Telnet
console.
NPort products support the following configuration options:•Windows Utilities: NPort Administrator; Device Search Utility and Windows Driver Manager•

Web Console•

Quick Setup Wizard*•

Serial Console**•

Telnet Console* Does not support 5100/5200/IA5000 series** Only available for NPort Series that has RS-232 interface.
The following topics are covered in this chapter: Installing Your NPort Device Server

 Configuration by Web Console Wiring Requirements

 Opening Your Browser

 Connecting the Power Quick Setup (excluding the NPort 5100,

 Grounding the NPort Device Server
 Connecting to the Network
 Connecting to a Serial Device

5200, and IA5000 Series) Export/Import (Excluding the NPort 5100,
5200, and IA5000 Series

 LED Indicators

 Basic Settings Beeper Definition

 Network Settings RS-485 Port’s Adjustable Pull High/Low
Resistor Configuration by Windows Utility

 Serial Settings
 Operating Settings
 Accessible IP Settings

 Installing NPort Administrator

 Firmware Upgrading Compatibility Check Searching for Device Servers over a LAN

 Account Management

 Adjusting General Settings

 Notification Message

 Configuring Device Port Operation Mode

 User Account Configuring Serial Communication

 Password and Login Policy

Parameters Mapping COM Port to Device (only required
when operation mode is set to Real COM or
RFC2217)

 Auto Warning Settings
 Monitor
 System Log Settings
 Change Password
 Load Factory Default
 Configuration by Telnet Console
 Configuration by Serial Console
 Serial Console (19200, n, 8, 1)
 Testing Your NPort

NPort 5000 Series

Getting Started

Installing Your NPort Device ServerThis section describes how to connect an NPort device server to your serial devices for the first time. We
cover Wiring Requirements, Connecting the Power, Grounding the NPort Device Server, Connecting to the
Network, Connecting to a Serial Device, and LED Indicators.

Wiring Requirements
ATTENTION
Safety First!
Be sure to disconnect the power cord before installing and/or wiring your NPort Device Server.
Wiring Caution!
Calculate the maximum possible current allowed in each power wire and common wire. Observe all electricalcodes dictating the maximum current allowed for each wire size. If the current goes above the allowed
maximum, the wiring could overheat, causing serious damage to your equipment.
Temperature Caution!
Please be cautious when handling the NPort device server. When plugged in, the NPort’s internal
components generate heat, and consequently the casing may feel hot to the touch. When installed withother components, make sure that there is at least a 2-cm clearance on all sides of the NPort device server
in order to allow proper heat dissipation.
You should observe the following:•

Use separate paths to route wiring for power and devices. If the power wiring and device wiring paths
must cross, make sure the wires are perpendicular at the intersection point.
NOTE: Do not run signal or communication wiring and power wiring in the same wire conduit. To avoid
interference, wires with different signal characteristics should be routed separately.

•

You can use the type of signal transmitted through a wire to determine which wires should be kept
separate. The rule of thumb is that wires that shares similar electrical characteristics can be bundled
together.

•

Keep input wiring and output wiring separate.

•

Where necessary, it is strongly advised that you label wires to all devices in the system.

Connecting the Power
Connect the power line with the NPort’s power input. If the power is properly supplied, the “Ready” LED willshow a solid red color until the system is ready, at which time the “Ready” LED will change to a green color.

Grounding the NPort Device Server
Note: This section only applies if your NPort’s power input is on a terminal block.
Grounding and wire routing help limit the effects of noise caused by electromagnetic interference (EMI). Run
the ground connection from the ground screw to the grounding surface before connecting the devices.

WARNING
NPorts with a power terminal block are intended to be mounted to a well-grounded mounting surface suchas a metal panel.

2-2

NPort 5000 Series
Type of Power Terminal Block

Getting Started
Shielded Ground (SG)Applicable Products

The Shielded Ground (sometimes called

NPort IA5000 Series

Protected Ground) contact is the left mostcontact of the 7-pin power terminal blockconnector when viewed from the angle
shown here. Connect the SG wire to an
appropriate grounded metal surface.
The Shielded Ground (sometimes called

NPort IA5000A Series

Protected Ground) contact is the left mostcontact of the 8-contact power terminal
block connector when viewed from theangle shown here. Connect the SG wire toan appropriate grounded metal surface.
The Shielded Ground (sometimes called

NPort 5200/5400 Series

Protected Ground) contact is the left most

NPort 5200A Series

contact of the 3-pin power terminal blockconnector when viewed from the angle
shown here. Connect the SG wire to an
appropriate grounded metal surface.
The Shielded Ground (sometimes called

NPort 5600 Series

Protected Ground) contact is the second
contact from the right of the 5-pin power
terminal block connector located on therear panel of NPort 5600 VDC models.
Connect the SG wire to the earth ground.

Connecting to the Network
Connect one end of the Ethernet cable to the NPort’s 10/100M Ethernet port and the other end of the cableto the Ethernet network. The NPort device server will indicate a valid connection to the Ethernet in thefollowing ways:•

The Ethernet LED maintains a solid green color when connected to a 100 Mbps Ethernet network.

•

The Ethernet LED maintains a solid orange color when connected to a 10 Mbps Ethernet network.

•

The Ethernet LED will flash when Ethernet packets are being transmitted or received.

ATTENTION
NPort IA5000/IA5000A/5600-8-DT series NPorts have two Ethernet ports that can be used to create an
open chain of NPort IA5000/IA5000A/5600-8-DT device servers. Be careful not to connect the Ethernet
ports of the two device servers at the ends of the chain.
In other words, NPort IA5000/IA5000A/5600-8-DT series NPorts do NOT support closed chains.

Connecting to a Serial Device
Connect a serial data cable between the NPort and the serial device. Serial data cables must be purchased
separately. They are not provided with the NPort.

2-3

NPort 5000 Series

Getting Started

LED Indicators
NPort 5100/5100A/P5150A Series
LED Name

LED Color

LED Function

Ready

Red

Steady on:
Blinking:

Power is on, and the NPort is booting up.
Indicates an IP conflict, or the DHCP or BOOTP server did not
respond properly.

Green

Steady on:
Blinking:

Power is on, and the NPort is functioning normally.
The device server has been located by NPort Administrator’sLocation function.

Link

Tx/Rx

Off

Power is off, or a power error condition exists.

OrangeThe device is connected to a 10 Mbps Ethernet connection.

Green

The device is connected to a 100 Mbps Ethernet connection.

OffThe Ethernet cable is disconnected, or has a short.

OrangeThe serial port is receiving data.

Green

The serial port is transmitting data.

Off

Data is NOT being transmitted or received through the serial port.

NPort 5200/5200A/5400 Series
LED Name

LED Color

LED Function

Ready

Red

Steady on:
Blinking:

Power is on, and the NPort is booting up.
Indicates an IP conflict, or the DHCP or BOOTP server did not
respond properly.

Green

Steady on:
Blinking:

Power is on, and the NPort is functioning normally.
The device server has been located by NPort Administrator’sLocation function.

OffPower is off, or a power error condition exists.

Link

OrangeThe device is connected to a 10 Mbps Ethernet connection.

(Ethernet)

Green

The device is connected to a 100 Mbps Ethernet connection.

OffThe Ethernet cable is disconnected, or has a short.

P1, P2,

OrangeThe serial port is receiving data.

(P3, P4)

GreenThe serial port is transmitting data.

Off

Data is NOT being transmitted or received through the serial port.

2-4

NPort 5000 Series

Getting Started

NPort 5600 Series (Rackmount)
LED Name

LED Color

Ready

Red

LED Function
Steady on:

Power is on and the NPort is booting up.

Blinking:

Indicates an IP conflict, or the DHCP or BOOTP server did not

Steady on:

Power is on, and the NPort is functioning normally

Blinking:

The device server has been located by NPort Administrator’s

respond properly.
Green

Location function.
OffPower is off, or a power error condition exists.

Tx/Rx,

OrangeThe serial port is receiving data.

P1 to P16

GreenThe serial port is transmitting data.

Off

Data is NOT being transmitted or received through the serial port.

Green

The Ethernet port is connected, but data is NOT being transmitted.

Blinking

The Ethernet port is connected, and data is being transmitted.

Off

The Ethernet port is disconnected.

LAN

PWR

Green

Power cable is connected and provides electricity properly.

OffPower cable is disconnected.

NPort 5600-8-DT/DTL Series
LED Name
PWR
Ready

LED Color

LED Function

Red

Power is on.

OffPower is off.

Green

Steady on:

The NPort is operational.

Blinking:

The NPort is responding to NPort Administrator’s Location
function, or the NPort is being reset to factory defaults.

Fault

Off

Power is off, or power error condition exists.

Red

Indicates an IP conflict, or the DHCP or BOOTP server did not respondproperly.

Off

No fault condition detected.

Off

Blinking:

Network is connected, data is being transmitted.

Green

Steady on

Network is connected, no data is being transmitted.

Off

Blinking

Network is connected, data is being transmitted.

In UseGreen

Serial port has been opened by server side software.

(P1 to P8)

OffSerial port is not currently opened by host side software.

Tx/Rx

Green (Tx)

Serial device is transmitting data.

(P1 to P8)

Orange(Rx)Serial device is receiving data.

OffNo data is flowing to or from the serial port.

ETH 1, ETH2

2-5

NPort 5000 Series

Getting Started

NPort 5000AI-M12 Series
LED Name

LED Color

LED Function

PWR

Green

Power is being supplied to the power input.

Ready

Red

Steady on:
Blinking:

Power is on, and the NPort is booting up.
Indicates an IP conflict, or the DHCP or BOOTP server did not
respond properly.

Green

Steady on:
Blinking:

Power is on, and the NPort is functioning normally
The device server has been located by NPort Administrator’sLocation function.

10M, 100M

P1, P2, P3, P4

OffPower is off, or a power error condition exists.

OrangeThe device is connected to a 10 Mbps Ethernet connection.

Green

The device is connected to a 100 Mbps Ethernet connection.

OffThe Ethernet cable is disconnected, or has a short.

OrangeThe serial port is receiving data.

Green

The serial port is transmitting data.

Off

Data is NOT being transmitted or received through the serial port.

NPort IA5000/IA5000A Series
LED Name

LED Color

LED Function

PWR1, PWR2RedPower is being supplied to power input PWR1, PWR2.

Ready

Red

Steady on:

Power is on, and the NPort IA is booting up.

Blinking:

Indicates an IP conflict, the DHCP or BOOTP server did not
respond properly, or a relay output was triggered. When theabove two conditions occur at the same time, check the relay
output first. If after resolving the relay output and the Ready
LED is still blinking, then there is an IP conflict, or the DHCP or
BOOTP server did not respond properly.

Green

Steady on:

Power is on and the NPort IA is functioning normally.

Blinking:

The device server has been located by NPort Administrator’sLocation function.

E1, E2

OffPower is off, or a power error condition exists.

OrangeThe device is connected to a 10 Mbps Ethernet connection.

Green

The device is connected to a 100 Mbps Ethernet connection.

OffThe Ethernet cable is disconnected, or has a short.

P1, P2,

OrangeThe serial port is receiving data.

(P3, P4)

GreenThe serial port is transmitting data.

Off

Data is NOT being transmitted or received through the serial port.

FX*

OrangeSteady on:

The fiber port is connected, but data is NOT being transmitted.

Blinking:

The fiber port is connected, and data is being transmitted.

*Only applies to NPort IA5000 fiber models.

2-6

NPort 5000 Series

Getting Started

Beeper Definition
Beeper Timing

Frequency (Length/Intervals/Times)

Definition

Startup

100 ms / 100 ms / 2

When the NPort is ready to run

Locating

100 ms / 900 ms / when user stops the

When the NPort is located by anfunction

utility such as DSU

RS-485 Port’s Adjustable Pull High/Low Resistor
For some applications, you may need to use termination resistors to prevent the reflection of serial signals.
When using termination resistors, it is important to set the pull high/low resistors correctly so that theelectrical signal is not corrupted. Refer to Appendix B for detailed instructions on how to set the pull
high/low resistor values for different models.

Configuration by Windows Utility
ATTENTION
Before installing and the configuring the NPort Administration suite, make sure your user privilege is set assystem administrator.

NPort Administration Suite is an integrated software suite that bundles NPort Administrator and the IP Serial
Library, providing everything you need to manage, monitor, and modify your NPort from a remote location.
With NPort Administrator, you can easily install and configure your NPort device server over the network.
Five different sets of functions are provided to ease the installation process: Configuration, Monitor, Porting
Monitor, COM Mapping, and IP Address Report.
In this section, we will cover only the “configuration of general settings” using NPort Administrator. For
more detailed information on how to use this suite of useful utilities, refer to Chapter 6.
You may also use the web console, serial console, or Telnet to configure the device server. Refer to thesection Configuration by Web Console, Configuration by Serial Console, and Configuration by
Telnet Console for additional information on using these consoles.

Installing NPort Administrator
Download and run the setup program from Moxa’s support website (https://www.moxa.com/support/). You
may find it in the Resource section under your product page. Run NPort Administrator when the installation
has been completed.

Searching for Device Servers over a LAN
The Broadcast Search function is used to locate all NPort 5400 device servers that are connected to thesame LAN as your computer. Since the Broadcast Search function searches by MAC address and not IP
address, all NPorts connected to the LAN will be located, regardless of whether or not they are part of thesame subnet as the host.

2-7

NPort 5000 Series

Getting Started

In NPort Administrator, click Search to search your LAN for NPort device servers. When your unit appears inthe search results, you may click Stop to end the search. You may also wait a few more moments for the
search to complete.

The Configuration screen will list the NPort device servers that were found on the LAN. If your unit cannot
be found, you may have a network problem. Check all cables and verify that your PC and device server areon the same LAN. If you still have problems, try connecting the device server directly to your PC.
Before configuring the NPort, you will need to unlock the NPort first. Right-click the unit in the Configuration
screen and select Unlock in the pop-up menu. Before configuring the NPort, you will need to unlock it first.
Right-click the unit in the Configuration screen and select Unlock in the pop-up menu.
The default login is:
Username: admin
Password: moxa
For the NPort 5100, 5200, and IA5000 Series, only the password is required to log in.

2-8

NPort 5000 Series

Getting Started

Adjusting General Settings
Right-click your unit in the Configuration screen and select Configure in the pop-up menu. If your device
server is password protected (the default username is account and the default password is moxa), first
select Unlock in the pop-up menu, and then click the Network tab in the configuration window. Select theModify checkbox for items you would like to modify. The device server must be assigned a unique IP
address that is valid for your network. Both fixed and dynamic IP addresses are supported. Consult withyour network administrator if you are not sure how to set these parameters.
Also, For the NPort 5100, 5200, and IA5000 Series, only the password is required to log in.
When you are ready to restart the device server with the new settings, click OK.

Static IP Addresses
For most applications, you will assign a fixed IP address to the device server. To assign a static (fixed) IP
address, the IP Configuration parameter must be set to Static, which is the default setting. You may thenmodify the IP Address and Netmask parameters.

Dynamic IP Addresses
For certain network environments, your device server’s IP address will be assigned by a DHCP or BOOTP
server. In this case, instead of assigning the device server’s IP address, you will need to configure thedevice server to receive its IP address from the appropriate server. Set the IP Configuration parameter to
DHCP, BOOTP, or DHCP/BOOTP, depending on your network environment. The IP Address andNetmask parameters will be unavailable for editing since these parameters will be assigned automatically.
If you are not sure whether you need to configure your device server for a dynamic or static IP address,
consult the administrator who set up the LAN.

Verifying Network Settings
If your device server has been configured correctly, you should be able to ping its IP address from your PC.
First, make sure that your PC and device server are on the same subnet, and then ping the device server’s
address. If no response is received, check your cables and network settings.

2-9

NPort 5000 Series

Getting Started

Configuring Device Port Operation Mode
This section covers configuration of a device port’s operation mode. The operation mode determines how
the device port will interact with the network. Which operation mode you select will depend on your specificapplication. Refer to the chart at the end of this section for guidance on selecting the most appropriate
operation mode. For additional information on each operation mode, refer to Chapter 4 and Chapter 5.

Adjusting Operation Mode Settings
The operation mode parameters for each device port can be configured through NPort Administrator. Open
your device server’s configuration window using the same method you used to adjust the network
parameters. On the Operating Mode screen, select the Modify check box and then select the device portthat you wish to configure. Click Settings to configure the selected device port.

Set the operating mode and associated parameters as needed. Refer to Chapter 4 and Chapter 5 foradditional information on operating modes and advanced settings. When you are ready to restart the device
server with the new settings, click OK.

2-10

NPort 5000 Series

Getting Started

Operation Mode Selection Chart

Configuring Serial Communication Parameters
This section covers the configuration of each device port’s serial communication parameters: baudrate, stop
bit, etc.

Serial Parameter Review
The following parameters need to be set correctly on the device port to ensure proper communication withyour device. Refer to your device’s documentation for the appropriate settings.
Parameter

Setting

Factory

Description

Necessity

The data transmission rate to andRequired

Default
Baudrate

Support standard

115200 bps

baudrates (bps):

from the attached serial device.

50/ 75/ 110/ 134/ 150/
300/ 600/ 1200 1800/
2400/ 4800/ 7200/
9600/ 19200/ 38400/
57600/ 115200/
230.4k/ 460.8k/
921.6k* The NPort
5110/5210/5230/5232I
Series, and IA 5000
Series are as low as
110 bps, and up to
230.4 kbps
Data bits

5, 6, 7, 8

8

The size of each data character.

RequiredStop bits

1, 1.5, 2

1

The size of the stop character.

Required

2-11

NPort 5000 Series

Getting Started

Parameter

Setting

ParityNone, Even, Odd,

Factory

Description

Necessity

Default
None

The parity that will be used. Even and Required

Space, MarkOdd parity provide rudimentary errorchecking; Space and Mark parity are
rarely used.

Flow control None, RTS/CTS,

RTS/CTSDTR/DSR, Xon/Xoff

The method used to suspend andRequiredresume data transmission to ensurethat data is not lost. RTS/CTS(hardware) flow control isrecommended.

FIFO

Enable, Disable

EnableControls whether the device port’s

Requiredbuilt-in 128-byte FIFO buffer is used.
When enabled, the FIFO helps reduce
data loss regardless of direction.
Interface*

RS-232

RS-232The serial interface that will be used.

RS-422The options that are available depend

2-wire RS-485

on the specific model of device server.

Required

4-wire RS-485*Supported interfaces vary by model; refer to your NPort’s datasheet for a list of supported serialinterfaces.

Adjusting Serial Parameters

The serial communication parameters for each device port can be configured through NPort Administrator.
Open your device server’s configuration window, using the same method you used to configure network
parameters. On the Serial screen, select the Modify check box and then select the device port you wish toconfigure. Click Settings to configure the selected device port.

2-12

NPort 5000 Series

Getting Started

Modify the parameters as needed. When you are ready to restart the device server with the new settings,
click OK.

Mapping COM Port to Device (only required when operation
mode is set to Real COM or RFC2217)
This section covers how to map the COM ports on a Windows PC to NPort device ports. The mapping willallow Windows software to access serial devices over the network as if they were local COM devices,
providing instant device networking without software migration. COM mapping is supported in Real COM and
RFC2217 modes only.
The following instructions are for device ports operating in Real COM mode. For device ports operating in
RFC2217 mode, follow the instructions for your particular driver. Real COM mode also supports TTY port
mapping on Linux and UNIX systems.

Specifying the Target Device Server
In NPort Administrator, click COM Mapping in the Function panel to open the COM Mapping window.
Right-click on an empty line in the COM Mapping window. Select Add Target in the pop-up menu to assign
your device server as the mapping target.

2-13

NPort 5000 Series

Getting Started

A list of NPort device servers that have been found by NPort Administrator will appear. Select your device
server and click Finish.

Assigning COM Port Number to Device Port
The COM Mapping screen shows a list of available device ports on the network. Right-click the target
device port and select COM Settings in the pop-up menu.

On the Basic Settings screen, select the COM port number that will be mapped to the device port. You canmap multiple COM ports at the same time by selecting the Auto Enumerating check box to number the
COM ports automatically.

2-14

NPort 5000 Series

Getting Started

On the Serial Parameters screen, adjust the settings to match your device. These settings, which are onlyused for serial printers, must also match the settings on the device port. Click OK when you are satisfied
with your changes.

Advanced Settings(See Chapter 6 for detailed information about NPort Administrator’s Advanced Settings.)
Tx Mode: In Hi-Performance mode, the driver immediately issues a “Tx Empty” response to the program
after sending data to the NPort. In Classical mode, the driver sends the “Tx Empty” response after
confirmation is received from the NPort. Classical mode is recommended if you want to ensure that all data
is sent out before further processing.
FIFO: Tells the driver whether or not to use FIFO transmission.
Network Timeout: Specifies when an open, close, or serial parameter change operation will time out.
Fast Flush: When enabled, the driver flushes only the local buffer on the host for a Win32 PurgeComm()
function call. When disabled, both the local and remote buffers are flushed. If your application uses
PurgeComm() and it performance seems sluggish, try enabling Fast Flush.
Always Accept Open Requests: Even if the driver cannot establish a connection with the NPort, the user's
software will still be able to open the mapped COM port, the same as with an onboard COM port.
Ignore TX Purge: The application can use Win32 API PurgeComm to clear the output buffer and terminate
outstanding overlapped write operations. Select Ignore TX Purge if you do not want the output buffer tobe purged.

2-15

NPort 5000 Series

Getting Started

Apply Change
Right-click COM Mapping in the Function panel. Select Apply Change in the pop-up menu to save thecurrent COM mapping settings. Your application will now be able to access the target serial device using the
COM port.

Configuration by Web Console
The Web Console is the most user-friendly way to configure NPort products. In this section, we cover a device server’s
general settings.

Opening Your Browser
1. Open your browser with the cookie functionality enabled. (To enable your browser for cookies, right-clickon your desktop’s Internet Explorer icon, select Properties, click on the Security tab, and then selectthe three Enable options as shown in the figure below.)

2. Type 192.168.127.254 in the Address input box (use the correct IP address if different from thedefault), and then press Enter.

2-16

NPort 5000 Series

Getting Started

3. For the overall NPort 5000 Series, you will be prompted to enter the username and password to accessthe NPort web console. Before configuring the NPort, you will need to unlock it first. Right-click the unit
in the Configuration screen and select Unlock in the pop-up menu. The default username and password
are admin and moxa, respectively. For the NPort 5100, 5200, and IA5000 Series, only the password isrequired to log in.
Web Interface for the NPort 5100, 5200, and IA5000 Series Only

Web Interface for the Overall NPort 5000 Series

ATTENTION
If you use other web browsers, remember to enable the functions to “allow cookies that are stored on yourcomputer” or “allow per-session cookies.” NPort device servers use cookies only for “password”
transmissions.

2-17

NPort 5000 Series

Getting Started

The NPort homepage will open. On this page, you can see a brief description of the Web Console’s functiongroups.
Web Interface for the NPort 5100, 5200, and IA5000 Series Only

Web Interface for the Overall NPort 5000 Series

ATTENTION
If you can’t remember the password, the ONLY way to start configuring the NPort is to load factory defaults
by using the Reset button located near the NPort’s Ethernet port.
Remember to use NPort Administrator (for NPort 5000 and NPort IA5000 Series) to export the configuration
file when you have finished the configuration. After using the Reset button to load factory defaults, yourconfiguration can be easily reloaded into NPort by using the NPort Administrator Import function. Refer to
Chapter 5 for details about using the Export and Import functions

2-18

NPort 5000 Series

Getting Started

Quick Setup (excluding the NPort 5100, 5200, and IA5000
Series)Quick Setup streamlines configuration of your NPort into three basic and quick steps that cover the mostcommonly-used settings. While in Quick Setup, you may click the Back button at any time to return to theprevious step, or click the Cancel button to reverse all settings. For more detailed settings, refer to the
Basic Settings, Network Settings, Serial Settings, and Operating Settings sections later in thischapter

Step 1/3
In Step 1/3, you must assign a valid IP address to the NPort before it will work in your network
environment. Your network system administrator should provide you with an IP address and related settings
for your network. In addition, the server name field is a useful way to specify the location or application ofdifferent NPort units.

Step 2/3
In Step 2/3, you must specify which operation mode you will use. If your operation mode is not Real COM,TCP Server, TCP Client, or UDP mode, click Cancel, return to the main menu, and choose Operating
Settings to select the correct settings.

2-19

NPort 5000 Series

Getting Started

Step 3/3
In Step 3/3, modify the Serial Settings.

Finish Settings
Review your settings on the Finish Settings page to confirm that they are correct and then click the
Save/Restart button to restart the device with the new settings.

NOTE

If you change the IP address, you will not be able to use the Home button to return to the Home Page.

2-20

NPort 5000 Series

Getting StartedExport/Import (Excluding the NPort 5100, 5200, and IA5000
SeriesExport/Import allows you to back up and recover your settings.

The exported configuration file can be encrypted for security purposes with a user-specified export password(the default password is moxa), which you may assign in Pre-shared Key. Click Download to write allconfiguration data to a fixed file name as follows: <Servername>.txt.
To import the configuration file, you will need to be sure that the pre-shared key stored in the system is thesame as the configuration file (which is assigned when exporting the configuration file) in order tosuccessfully import the configuration file.

2-21

NPort 5000 Series

Getting Started

If the firmware is not up to the version below, you many need to key in the password manually.
NPort 5100A Series Firmware v1.5
NPort 5200A Series Firmware v1.5
NPort 5150AI Series Firmware v1.4
NPort 5250AI Series Firmware v1.4
NPort 5450AI Series Firmware v1.4
NPort 5600 Series Firmware v3.9
NPort 5600 DT Series Firmware v2.6
NPort 5600 DTL Series Firmware v1.5
NPort IA5150A Series Firmware v1.4
NPort IA5450A Series Firmware v1.6
NOTE

The configuration encrypting function is not available in the NPort 5100, NPort 5200, and NPort IA5000
Series.

Refer to the table below for the firmware versions that support the encrypted configuration files in the Web
Console.
Model Name

Firmware version supporting encrypted configuration files.

NPort 5100A Series

Firmware v1.3 and up

NPort 5200A Series

Firmware v1.3 and up

NPort 5x50AI-M12 Series

Firmware v1.2 and up

NPort IA5150A, NPort IA5250A

Firmware v1.3 and up

NPort IA5450A

Firmware v1.4 and up

2-22

NPort 5000 Series

Getting Started

Basic Settings
Web Interface for the NPort 5100, 5200, and IA5000 Series Only

Web Interface for the Overall NPort Series

2-23

NPort 5000 Series

Getting Started

Web Interface for the NPort 5000AI-M12 Series OnlyNOTE

The NPort 5100/5100A does not support Time Settings.

Parameter

Setting

Factory Default

Description

Server name1 to 39 characters

NP[modelThis option is useful for specifying Optionalname]_[Serial

the location or application ofNo.]

different NPorts.

User selectable time

GMT (Greenwich

N/A

Requiredzone

Mean Time)

RequiredTime zone

Necessity

Not available in NPort
5100/5100A/5200/520
0A Series
Local time

User adjustable time

GMT (Greenwich

Click the Modify button to open

(1900/1/1-

Mean Time)the Modify time settings window

2037/12/31)

to input the correct local time.

Not available in NPort
5100/5100A/5200/
5200A Series
Time server

IP or Domain address

None

NPorts use SNTP (RFC-1769) for(only available inauto time calibration. Input the

4/8/16 ports models)correct Time server IP address

E.g., 192.168.1.1 oror domain name. Once the NPorttime.stdtime.gov.tw oris configured with the correct

time.nist.gov

Time server address, the NPort
will request time information fromthe Time server every 10
minutes.

Daylight

Setting 1: “Start Date: None

The NPort can offset the systemsavingMonth, Week, Day,

time to the values you have set in

Hour”

this settings.

2-24

Optional

NPort 5000 Series
Parameter

Getting Started
Setting

Factory Default

Description

Setting 2: “End Date:(This feature only applies to theMonth, Week, Day,

NPort 5000AI-M12 Series.)

Necessity

Hour”
Setting 3: “Offset:
hours”
htpp console

Enable or Disable

DisableThe options that are disabled byRequiredhttps console

Enable or Disable

Enabledefault—http Console, Telnet

Required

TLS v1.0/v1.1 Enable or Disable

DisableConsole, and Serial Console—are
for security reasons. In somefor HTTPS

cases, you may want to disable

consoleTelnetEnable or Disable

DisableRequiredutilities as an extra precaution to

consoleSerialone or most of these console

Enable or Disable

Enableprevent unauthorized users from

Requiredaccessing your NPort. Please refer

ConsolesMoxa Service

Enable or Disable

Enableto Chapter 3 “Cybersecurity

Beep Service

Enable or Disable

EnableBeeper Service is to provide audio Optional

Considerations” for detailed

Requiredsuggestions.
notification and warning according
to the different situations.
(This feature only applies to the
NPort 5000AI-M12 Series.)
Reset button

No or Yes

Select the Yes option to allow

No

protection

Required

limited use of the Reset Button.
In this case, the Reset Button canbe used for only 60 seconds; 60
s. after booting up, the Reset
Button will be disabled
automatically.

LCM read-

Writeable/Read-only

Writeable

The NPort 5000 front panel,

only

known as the LCM (Liquid Crystal

protection

Module), may be configured for

Optional

read-only or writeable access.
Read-only access allows settings
to be viewed but not changed.
Writeable access allows users in
the Administration group tochange the setting. This setting isonly available for the model thathas a font panel.

ATTENTION
If you disable both the http/https console and Telnet console, you can still use NPort Administrator toconfigure the NPort device servers either locally or remotely over the network. Refer to Chapter 5 fordetails. If you disable all the console and services, there is no alternative way to access the NPort device
servers neither locally nor remotely. The only way to gain control is to reset to factory default settings.

2-25

NPort 5000 Series

Getting Started

Network Settings
Web Interface for the NPort 5100, NPort 5200, and NPort IA5000 Series Only

Web Interface for the Overall NPort 5000 Series, excluding the NPort IA5000A Series

2-26

NPort 5000 Series

Getting Started

Web Interface for the NPort IA5000A Series

You must assign a valid IP address to the NPort before it will work in your network environment. Your
network system administrator should provide you with an IP address and related settings for your network.
The IP address must be unique within the network (otherwise, the NPort will not have a valid connection to
the network). You can choose from four possible IP configuration modes—Static, DHCP, DHCP/BOOTP,
and BOOTP—located under the web console screen’s IP configuration dropdown box.
MethodFunction Definition

StaticThe user must define the IP address, Netmask, and Gateway.

DHCP

The DHCP Server assigns the IP address, Netmask, Gateway, DNS, and Time Server

DHCP/BOOTP

The DHCP Server assigns the IP address, Netmask, Gateway, DNS, and Time Server, or
the BOOTP Server assigns the IP address (if the DHCP Server does not respond).

BOOTP

The BOOTP Server assigns the IP address.

2-27

NPort 5000 Series

Getting Started

Network Settings
Parameter

Setting

Factory

Description

Necessity
Required

Default
IP Address

E.g.,

192.168.127.

An IP address is a number

192.168.1.1

254

assigned to a network
device (such as a computer)as a permanent address on
the network. Computers use
the IP address to identify
and talk to each other overthe network. Choose aproper IP address that is
unique and valid in yournetwork environment.

Netmask

E.g.,

255.255.255.

A subnet mask represents

255.255.255.00

all of the network hosts at

Required

one geographic location, in
one building, or on the same
local area network. When apacket is sent out over the
network, the NPort will use
the subnet mask to check
whether the desired TCP/IP
host specified in the packet
is on the local network
segment. If the address ison the same network
segment as the NPort, aconnection is establisheddirectly from the NPort.
Otherwise, the connection isestablished through thegiven default gateway.
Gateway

E.g.,

None

192.168.1.1

A gateway is a network

Optional

gateway that acts as an
entrance to anothernetwork. Usually, thecomputers that control
traffic within the network orat the local Internet service
provider are gateway nodes.
The NPort needs to know
the IP address of the default
gateway computer in order
to communicate with thehosts outside the local
network environment. For
correct gateway IP address
information, consult withyour network administrator.

IP

StaticStaticN/A

Configuration DHCP
DHCP/BOOTP
BOOTP

2-28

RequiredNPort 5000 Series

Getting Started

Parameter

Setting

Factory

Multi-LAN

SwitchSwitchDescription

Necessity

Dual LAN can be used as a

Optional

Default
mode (for the Redundant LAN

redundant connection or

NPortdual IP.

Dual IPThe scenario for

IA5000A

redundancy is the NPort will

Series only)

automatically switch toworking connection in casethe other one lose
connectivity (due to failed
network component in the
NPort, port at theswitch/router stop working,etc.). As for dual IP
scenario, each port will haveits own IP address, but bothwill have the same MAC
address, as it is convenient
to connect the NPort todifferent network.

DNS server

E.g.,

1/ DNS

192.168.1.1

None

In order to use the NPort’s

Optional

DNS feature, you need toserver 2

configure the DNS server.
Doing so allows the NPort touse a host’s domain nameto access the host. The
NPort provides DNS server 1
and DNS server 2
configuration items toconfigure the IP address of
the DNS server. DNS Server
2 is included for use when
DNS server 1 is unavailable.
The NPort plays the role of
DNS client, in the sense that
the NPort will actively query
the DNS server for the IP
address associated with aparticular domain name.

LLDP Settings Enable or

EnableDisableNot available for the NPort

Optional

5600DT Rev 1.5 or earlier

ATTENTION
In Dynamic IP environments, the firmware will retry three times every 30 seconds until network settings are
assigned by the DHCP or BOOTP server. The Timeout for each try increases from 1 second, to 3 seconds, to
5 seconds.
If the DHCP/BOOTP Server is unavailable, the firmware will use the default IP address (192.168.127.254),
Netmask, and Gateway for IP settings.

2-29

NPort 5000 Series

Getting Started

Web Interface for the Overall NPort 5000 Series

SNMP Settings
Parameter

Setting

Factory

Description

Necessity

A community name is a plain-text

Optional

Default
Community

1 to 31 charactersName(e.g., MOXA)

Publicpassword mechanism that is used to
weakly authenticate queries to agentsof managed network devices.

Contact

1 to 31 characters

None

The SNMP contact information usually(e.g., Support,

includes an emergency contact name886- 89191230

and telephone or pager number.

Optional#300)
Location

1 to 39 characters

None

Specify the location string for SNMP

(E.g., floor 1, office

Optional

agents, such as the NPort. This string2)

is usually set to the street address
where the NPort is physically located.

SNMP Agent

V1, V2, V3 (V3 is

V1, V2 checked

Version V1,

available on 4/8/16 for 1/2-port

supports SNMP V1 and V2, where theV2, V3

ports model)

models.

4/8/16-port model supports V1, V2

V1, V2, V3

and V3. Select the version according

checked forto your environmental needs. Please

4/8/16-port

note that the 4/8/16-port model only

models..

supports standard MIB such as

The NPort 5000 1- and 2-port model

Optional

RFC1213/1317, which supports Set
server name, contact, location,
whereas the 1/2-port model only
supports Get, but not Set.
The following fields allow you to define usernames, passwords, and authentication parameters for two levelsof access: read-only and read/write. The name of the field will indicate which level of access it refers to. For
example, Read-only authentication mode allows you to configure the authentication mode for read-onlyaccess, whereas Read/write authentication mode allows you to configure the authentication mode forread/write access. For each level of access, you may configure the following:
Read-only

1 to 31 characters

None

Use this optional field to identify theusername

Optional

username for the specified level ofaccess.

Read-only

MD5, SHA

DisableUse this field to select MD5 or SHA as

authentication

the method of password

mode

encryption for the specified level of

Optional

access, or to disable authentication
Read-only

1 to 31 characters

Use this field to set the password forpasswordread only of access.

2-30

Optional

NPort 5000 Series

Getting Started

Parameter

Setting

Factory

Read-only

DEC, CBC

DisableDescription

Necessity

Use this field to enable or disable

Optional

Default
privacy mode

DES_CBC data encryption for the
specified level of access.

Read-only

1 to 31 characters

None

Use this field to define the encryption

privacy
Read/write

Optional

key for the specified level of access.
1 to 31 characters

None

Use this optional field to identify theusername

Optional

username for the specified level ofaccess.

Read/write

MD5, SHA

DisableUse this field to select MD5 or SHA as

authentication

the method of password

mode

encryption for the specified level of

Optional

access, or to disable authentication
Read/write

1 to 31 characters

Use this field to set the password for

only password
Read/write

DEC, CBC

DisableUse this field to enable or disable

only privacy

DES_CBC data encryption for themode

specified level of access.

Read/write

Optional

read/write access.

1 to 31 characters

None

Use this field to define the encryption

only privacy

Optional

Optional

key for the specified level of access

IP Address Report
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 asa 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 thedynamic 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 alsoavailable to help you develop your own software. Refer to Appendix E for details about the Auto IP
report protocol.
Parameter

Setting

Factory

Description

Necessity

Reports generated by the Auto report

Optional

Default
Auto report to E.g., 192.168.1.1 or
IP

None

URL

function will be automatically sent tothis IP address. In multiple-LAN modelversion, two IPs can be set for Auto
report. The report will be sent to each
IP when generated.

Auto report to E.g., 4001

4002

In multiple-LAN model version, two

UDP port

Optional

IPs can be set for Auto report. Reportwill be sent to each IP whengenerated.

Auto report

Time interval (inperiodseconds)

10

NA

2-31

Optional

NPort 5000 Series

Getting Started

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 5100, 5200, and IA5000 Series Only

Web Interface for the Overall NPort 5000 Series

To modify serial settings for a particular port, click on the Port Number under Serial Settings, locatedunder Main Menu on the left side of the browser window.
Web Interface for the NPort 5100, 5200, and IA5000 Series Only

2-32

NPort 5000 Series

Getting Started

Web Interface for the Overall NPort 5000 Series

ATTENTION
It is critical that the device port’s serial communication settings match the attached device. Refer to theuser’s manual for your serial device for the correct serial communication settings.

Parameter

Setting

Factory

Description

Necessity

Default
Port Alias

1 to 15 characters None

Port Alias is specially designed to allow easy Optional
identification of the serial devices that are(E.g., PLC-No.1)

connected to the NPort’s serial port.
Baud rate

Support standard

115200 bps

baudrates (bps):

The rate of data transmission to and from

Required

the attached serial device.

50/ 75/ 110/ 134/
150/ 300/ 600/
1200 1800/ 2400/
4800/ 7200/
9600/ 19200/
38400/ 57600/
115200/ 230.4k/
460.8k/ 921.6k* The NPort
5110/5210/
5230/5232I
Series, and IA
5000 series are as
low as 110 bps,
and up to 230.4kbps
Data bits

5, 6, 7, 8

8

When Data bits is set to 5 bits, the stop bits Required
setting will automatically change to 1.5
bits.

Stop bits

1, 1.5, 2

1

The size of the stop character.

2-33

RequiredNPort 5000 Series

Getting Started

Parameter

Setting

ParityNone, Even, Odd,

Factory

Description

Necessity

Even and Odd parity provide rudimentary

Required

Default
None

Space, Markerror-checking; Space and Mark parity are
rarely used.

Flow control

None, RTS/CTS,

RTS/CTS

The method used to suspend and resume

DTR/DSR,data transmission to ensure that data is not

Xon/Xoff

lost. If you can use it, RTS/CTS

Required(hardware) flow control is recommended.
FIFO

Enable, Disable

EnableControls whether or not the device port’s

Requiredbuilt-in 128-byte FIFO buffer is used. Whenenabled, the FIFO helps reduce data loss
regardless of direction.
Interface*

RS-232

RS-232The serial interface that will be used. The

RS-422

options that are available depend on the

2-wire RS-485

specific model of device server.

Required

4-wire RS-485*Supported interfaces vary by model. Refer to the datasheet of your NPort device to see which serialinterface it supports.

Operating Settings
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 andrefer to Chapters 4 and 5 for a detailed explanation of different operating modes and parameters.

2-34

NPort 5000 Series

Getting Started

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 5100, 5200, and IA5000 Series Only

Web Interface for the Overall NPort 5000 Series

2-35

NPort 5000 Series

Getting Started

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, theTelnet console, or serial console. Refer to Chapters 4 and 5 for details.
Web Interface for the NPort 5100, 5200, and IA5000 Series Only

Web Interface for the Overall NPort 5000 Series

2-36

NPort 5000 Series

Getting Started

Accessible IP Settings
Web Interface for the NPort 5100, 5200, and IA5000 Series Only

Web Interface for the Overall NPort 5000 Series

2-37

NPort 5000 Series

Getting Started

Accessible IP Settings allow you to add or block remote host IP addresses to prevent unauthorizedaccess. 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:•

Activate the Accessible IP list
Operation modes are NOT allowed for IPs NOT on the list. IPs that are not on the list will not be granted
when communicating with NPort via Operation mode•

Apply additional restrictions
All device services are NOT allowed for IPs NOT on the list. Services will not be granted for IPs that are
not on the list. Please note that all IPs will still have access if the IP list is empty, even though thefunction is enabled.
Tip: For exact IP identification, the netmask needs to be 255.255.255.255.

•

Only one host with a specific IP address can access the NPortEnter “[IP address]/255.255.255.255” (e.g., “192.168.1.1/255.255.255.255”).

•

Hosts on a specific subnet can access the NPortEnter “[IP address]/255.255.255.0” (e.g., “192.168.1.0/255.255.255.0”).

•

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

Disable192.168.1.120

192.168.1.120 / 255.255.255.255

192.168.1.1 to 192.168.1.254

192.168.1.0 / 255.255.255.0

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

Firmware Upgrading Compatibility Check
At times, Moxa needs to change the components within the NPort, which means the driver in the firmware
needs to be updated. However, the firmware cannot always contain all the versions of driver in one file;
therefore, in some occasions we need to separate the firmware for the older and newer versions ofhardware. Before you decide to update the firmware to a newer or older version, please make sure that the
firmware is compatible with your NPort hardware version. In most of the cases, if a firmware does not
specify for particular hardware version, it is supposed to support all models in the series and for any
hardware revision. If you are not sure, please refer the product website to check for instructions or refer tothe table below for specific cases, or otherwise, please consult your region’s technical support for
confirmation.
Corresponding
Product Series

ModelsSupporting Condition

FirmwareVersionNPort 5100
NPort 5400

NPort 5110 Models

All revisions

v2.10

NPort 5130/5150 Models

All revisions

v3.9

NPort 5410/5430 Models

Rev 2.x and priorv2.9

Rev. 3.2 and later

v3.14

NPort 5600-DT

All

Supporting NPort 5600-DTL Series

v2.9

NPort IA5000A

NPort IA5150A/IA5250A models

All revisions

v1.5

NPort IA5450A models

All revisions

v1.7

NPort IA5000
NPort 5000AI-M12

All

HW Rev 1.x

v1.7

HW Rev 2.0 and after

v2.0

NPort 5150AI-M12 models

All

v1.5

NPort 5250AI-M12 models

All

v1.5

NPort 5250AI-M12 models

All

v1.5

2-38

NPort 5000 Series

Getting Started

Account Management
The Account Management setting provides administrators the authority to add/delete/modify an user
account, grant access to the device users for specified function groups, and manage password and login
policy to ensure device is used by a proper set of people.

Notification Message
As an administrator, you are allowed to customize your Login Message and the Login Authentication
Failure Message to notify users with information you would like to provide.

The message will appear on the log-in page at the time of a successful login or login failure. Examples areshown below.

2-39

NPort 5000 Series

Getting Started

User AccountIn the NPort 5000 Series, the main function groups are highly correlated with the User Level set by theadministrator(s). Administrators are allowed to add user accounts to the NPort 5000 device by clicking the
Add button on the User Account page. You may also click on the current user to Edit or Delete theselected account.

The Add Account (Edit Account) page will show up for you to enter (modify) account information andassign password to this user. Also, the Administrator(s) are allowed to assign proper User Level to thisuser to limit his/her privileges of using NPort 5000.

2-40

NPort 5000 Series

Getting Started

Password and Login Policy
A user with an administrator role is authorized to determine the password and login policy of the NPort 5000
device.

Account Password Policy
Parameter

Setting

Password minimum length4-16 characters 4

Default

Password complexity strength Enable/Disable

Description
Define the minimum length of login password

Disablecheck:

Enable password complexity strength check will
enforce the password combination setting•

At least one digit (0-9)

Enable/Disable

DisableThe password must contain at least one number•

Mixed upper and lower

Enable/Disable

DisableThe password must contain an upper and a(0-9) when enabling this parametercase letters (A~Z, a~z)•

At least one special

lower case letter when enabling this parameter
Enable/Disable

Disablecharacters (~!@#$%^&*-The password must contain at least one special
character when enabling this parameter_|;:,.<>[]{}())
Password lifetime

0-180 days

90 days(0 for disable)

A password lifetime can be specified and asystem notification message will show up to
remind users to change the password if theoption is enabled.

Account Login Failure Lockout
Parameter

Setting

Default

Description

Account Login Failure Lockout

Enable/Disable

DisableAn account login failure lockout rule can be
defined and enforced when enabled.

••

Retry failure threshold
Lockout time

1-10 retry
1-60 minute(s)5 ifNumber of retries can be determined prior toenabledthe lockout

5 if

Lockout duration can be specified toenableddetermine time until next retry.

Auto Warning Settings
The NPort device server can automatically warn administrators of certain system, network, andconfiguration events. Depending on the event, different options for automatic notification are available.
These options are configured in the Auto Warning Settings.

2-41

NPort 5000 Series

Getting Started

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 5100, 5200, IA5000 Series

Web Interface for the Overall NPort 5000 Series

Mail Server
Parameter

Setting

Mail server

Factory

Description

Necessity

IP or Domain None

This optional field is for the IP address or

OptionalNamedomain name of your network mail server, if

Default

applicable. A mail server is required for the
NPort to send e-mail warnings ofadministrative events.

2-42

NPort 5000 Series

Getting Started

Parameter

Setting

Factory

User name1 to 15

None

Description

Necessity

This optional field is used if your mail server

Optional

Default
characters
Password

1 to 15

requires it.
Nonecharacters
From E-mail

1 to 63

address

characters

E-mail address

1 to 63

1/2/3/4

characters

This optional field is used if your mail server

Optional

requires it.
NoneThis optional field sets the “from” e-mailOptional

address that will show up in an automatic
warning e-mail.
None

These optional fields set the “destination” e-Optional

mail address for automatic e-mail warnings.

SNMP Trap Server
Parameter

Setting

Factory

Description

Necessity
Optional

Default
SNMP trap server

IP address or None

Selecting the version based on yourIP or domain

Domainenvironmental needs. We strongly suggest to

name

Name

that you change the community name fromthe default public to another name; it is forsecurity prevention reasons.

ATTENTION
Consult your network administrator or ISP for the proper mail server settings. The Auto warning function
may not work properly if it is not configured correctly. NPort SMTP AUTH supports LOGIN, PLAIN, CRAMMD5 (RFC 2554).

Event TypeWeb Interface for the NPort 5100, 5200 and IA5000 Series Only

2-43

NPort 5000 Series

Getting Started

Web Interface for the Overall NPort 5000 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 bootingup.
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.
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 SNMPtrap.
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.

2-44

NPort 5000 Series

Getting Started

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 NPortreboots. 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 areused 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 becanceled 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 IA5000 Series

Web Interface for the NPort IA5000A Series

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*.

2-45

NPort 5000 Series

Getting Started

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.
NOTE

Relay Output is only available for the NPort IA5000/IA5000A series. Users can connect to Monitor Relay Output from the web console to check which event is causing the warning. The relay output will becanceled if the abnormal state is restored, or if Acknowledge Event is selected from the web or Telnet
console. When the Relay Output is issuing a warning, the Ready LED will flash red until the warning event
ceases.

Parameter

Setting

Factory

Mail

Enable, Disable

DisableDescription

Necessity

This feature helps the administrator manage

Optional

Default
how the NPort sends e-mail to pre-defined email boxes when the enabled events (Coldstart, Warm start, Authentication failure, etc.)
occur. To configure this feature, click the
Event Type Mail checkbox.
Trap

Enable, Disable

DisableThis feature helps the administrator manage
how the NPort IA5000A sends an SNMP Trap
to a pre-defined SNMP Trap server when theenabled events (Cold start, Warm start,
Authentication failure, etc.) occur. To
configure this feature, click the Event TypeTrap checkbox.

ATTENTION
DCD and DSR signal changes are only applicable for the RS-232 interface.

2-46

Optional

NPort 5000 Series

Getting Started

MonitorMonitor Line
Click Line under Monitor to show the operation mode and status of each connection (IPx), for each of thefour serial ports.
Web Interface for the NPort 5100, 5200, and IA5000 Series Only

Web Interface for the Overall NPort 5000 Series

Monitor Async
Click Async under Monitor to show the current status of each of the four serial ports.
Web Interface for the NPort 5100, 5200, and IA5000 Series Only

2-47

NPort 5000 Series

Getting Started

Web Interface for the Overall NPort 5000 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 5100, 5200, and IA5000 Series Only

Web Interface for the Overall NPort 5000 Series

2-48

NPort 5000 Series

Getting Started

System Log Settings

NOTE

The NPort 5100, NPort 5200, and NPort IA5000 Series don’t support this function.
System Log Settings allow NPort users to customize network events that are logged by the NPort 5000.
Events are grouped into four categories, known as event groups, and the user selects which groups to log
as Local Log (on NPort 5000). The actual system events that would be logged for each system group are
listed under the column “Summary”. For example, if System was enabled, then System Cold Start eventsand System Warm Start events would be logged.
Local Log

Keep the log in the flash of NPort 5000 up to 512 items.

SystemSystem Cold Start

NPort 5000 cold start.

System Warm Start

NPort 5000 warm start.

Network
DHCP/BOOTP/PPPoE Get

IP of the NPort 5000 is refreshed.

IP/Renew
NTP

Time synchronization successful.

NTP Connect Fail

The NPot 5000 failed to connect to the NTP Server.

Mail Fail

Failed to deliver the email.

IP Conflict

There is an IP conflict on the local network.

Network Link Down

LAN 1 Link is down.

Config
Login Fail
IP Changed

Static IP address was changed.

Password Changed

Administrator Password was changed.

Config Changed

The NPort 5000’s configuration was changed.

Firmware Upgrade

Firmware was upgraded.

SSL Certificate Import

SSL Certificate was impoted.

Config Import

Config was impoted.

Config Export

Config was expoted.

OpModeConnect

Op Mode is in use

Disconnect

Op Mode switched from in use to disconnect.

Authentication Fail

The Authentication failed in terminal; reverse terminal; or dial in/out operation
modes

RestartSerial port was restarted.

2-49

NPort 5000 Series

Getting Started

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 theconsoles (e.g., web console), access to the NPort configuration settings will be denied.
Web Interface for the NPort 5100, 5200, IA5000 Series Only

Web Interface for the Overall NPort 5000 Series

ATTENTION
If you forget the NPort’s password, the ONLY way to configure the NPort is by using the hardware reset
button to load the factory defaults. Before you set a password for the first time, it is a good idea to export
the NPort’s complete configuration to a file. Your configuration can then be easily restored if necessary.

2-50

NPort 5000 Series

Getting Started

Load Factory Default
Web Interface for the NPort 5100, 5200, and IA5000 Series Only

Web Interface for the Overall NPort 5000 SeriesThis 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 Opentext input box, and then click OK.

3. When the Telnet window opens, you will be prompted to input the Console password (the default
username is admin and password is moxa; for the NPort 5100/5200/IA5000, it only requires thedefault password moxa); input the password and then press Enter.

2-51

NPort 5000 Series

Getting Started

4. Type 2 to select Network settings, and then press Enter.

5. Type 1 to select IP address and then press Enter.

2-52

NPort 5000 Series

Getting Started

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…

2-53

NPort 5000 Series

Getting Started

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.

2-54

NPort 5000 Series

Getting Started

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.

ATTENTION
The 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 theserial 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  Programs  PComm Lite  Terminal Emulator.
2. When the PComm Terminal Emulator window opens, first click on the Port Manager menu item andselect Open, or simply click on the Open icon.

3. The Property window opens automatically. From the Communication Parameter page, select theappropriate 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.

2-55

NPort 5000 Series

Getting Started

4. From the Property window’s Terminal page, select ANSI or VT100 for Terminal Type and then clickOK.
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.
8. The default username is admin, and the password is moxa.

2-56

NPort 5000 Series

Getting Started

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.

Testing Your NPort
After completing installation and configuration, you can do a simple test to ensure that your NPort willcommunicate successfully. Click on the appropriate link below to view a technical note that explains how totest 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

2-57

3
3.

Cybersecurity Considerations

With cyberattacks growing in number and sophistication, network device vendors are adding functions
geared towards protecting sensitive business and personal information. Moxa has dedicated itself in thisarea by developing measure to make sure all the products can and will meet the security standard, so
customers will use Moxa’s product without too much to worry about. There are certain details that Moxa
cannot do alone; customers and Moxa need to work together to build up a much secured environment to
defend against all kinds of cyberthreats. This chapter introduces the essential steps to enhance thecybersecurity of Moxa’s products. Customers may need to refer to other sections in the user manual for
exact settings or commands.The following topics are covered in this chapter: Updating Firmware
54B

 Turn Off Unused Service and Ports
5B

 Turn Off Moxa Service After Installation
134B

 Turn On Services That Are Necessary
135B Limited IP Access
56B Account and Password
57B

 System Log
58B Testing the Security Environment
59B

NPort 5000 Series

Cybersecurity Considerations

Updating Firmware
When a customer buys a product from Moxa or reseller, Moxa may have already pushed out a newer versionof firmware and that is likely to have enhanced the security features included. It is suggested to always
update to latest firmware. Please check with Moxa’s support website for further details.

Turn Off Unused Service and Ports
Imagine living in a house that has many entrances. If all the doors and windows are left unlocked or even
open, it sends a message of welcoming to intruders out there. It is always recommended to turn off services
and ports that are not in use to reduce the chances of being attacked.

Turn Off Moxa Service After Installation
Moxa Service is extremely helpful for first-time installation as it helps the device to be discovered in a local
area network (LAN). Once the installation is completed, this service should be turned off for safety reasons;however, once it is turned off, a utility such as Moxa’s DSU (Device Search Utility) is no longer seeking forthe device, and only by the IP and login with username and password will have the access to the product.

Turn On Services That Are Necessary
There are services that were designed some while ago, but then cybersecurity wasn’t much of an issue,
therefore the design’s considerations didn’t quite cover cybersecurity. Below is a list of services that arerecommended to turn on only when necessary:•

HTTP/HTTPS: If the web console is required to access the product, it is recommend to use HTTPS over
HTTP•

Telnet: Only enable Telnet if command line is required to manage the product•

SNMP: If using Simple Network Management Protocol for remote device monitoring and management,
this should be turned on. It is strongly advised to change the default community name once enabled andalso set SNMP to send a trap if authentication failures happen.

NOTE

Once all the settings are configured according to your needs, remember to save and restart the device sothat all the new settings are effective.Remember to export your settings.

NOTE

If all HTTP/HTTPS/Telnet/Serial consoles are turned off, then there is no other route to access the product.
The only way to recover it is to reset the device and start from the beginning. Please refer to the user
manual on how to reset the device

Limited IP Access
Limiting the number of IP addresses that can access the product is one of the most effective way of blocking
unwanted intruders. If there are only limited desktop/notebook/mobile devices that would access the
product, grant those IPs access.

3-2

NPort 5000 Series

Cybersecurity Considerations

Account and Password•

There is a default username and password for first-time installation; it is strongly suggested to change•

Use your own passwords for users of the devices. If possible, also change the default name of thethe password after installation has been done.
account, for example, don't name admin group "admin" before the device is deployed.
•

Use strong passwords. The devices support a function to check if the passwords are strong enough. You
can enable the function to help you check whether the passwords are strong enough.

•Use account login failure lockout feature to prevent unwelcome access

System Log
System log can contain all kinds of activities that are happening on your NPort, such as Login Fail, IP
Changed, Password Changed, Config Changed, etc. Check the log periodically to examine any abnormal
behavior.

Testing the Security Environment
Besides these devices that support those protective functions, network managers can follow a number ofrecommendations to protect their network and devices.
To prevent unauthorized access to a device, follow these recommendations:•

Testing tools for cybersecurity environment checks are available. Some may provide limited free use, forexample, Nessus. These tools help identify possible security leaks in the environment.

•

The device should be operated inside a secure network, protected by a firewall or router that blocks
attacks via the Internet.

•

Control access to the serial console as with any physical access to the device.

•

Avoid using insecure services such as Telnet and TFTP; the best way is to disable them completely.

•

Limit the number of simultaneous web server and Telnet sessions allowed. Periodically, change thepasswords.

•

Backup the configuration files periodically and compare the configurations to make sure the devices work
properly.

•

Audit the devices periodically to make sure they comply with these recommendations and/or any internal
security policies.

•

If there is a need to return the unit to Moxa, make sure encryption is disabled and that you had alreadybackup the current configuration before returning it.

NOTE

DISCLAIMER: Please note that above information and guide (the ”information”) are for the purpose of yourreference only. We do no guarantee a cyberthreat-free environment; these guidelines are to increase
security level to defend against cyberintrusions and do not guarantee that the above information will meetyour specific requirements. Furthermore, the above information is provided “as is”, and we make nowarranties, express, implied or otherwise, regarding its accuracy, completeness, or performanc

3-3

4
4.

Choosing the Proper Operation ModeIn this chapter, we describe the NPort device server’s various operation modes. The options include anoperation 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 5
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

Overview
NPort serial device servers network-enable traditional RS-232/422/485 devices. A serial device server is asmall computer equipped with a CPU, real-time OS, and TCP/IP protocols that can bi-directionally translatedata between the serial and Ethernet formats. NPort device servers that are connected to a network thatwith 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 fromvarious 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 numberof 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 forvarious 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 maindifference between the TCP and UDP protocols is that TCP guarantees delivery of data by requiring therecipient 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
The NPort comes equipped with COM drivers that work with
Windows systems, and also TTY drivers for Linux systems. The
driver establishes a transparent connection between host andserial device by mapping the IP:Port of the NPort’s serial port
to a local COM/TTY port on the host computer. Real COM Modealso supports up to 4 simultaneous connections, so thatmultiple hosts can collect data from the same serial device atthe same time.

ATTENTION
The driver used for Real COM Mode is bundled with NPort Administrator. The driver is installed on yourcomputer automatically when you install NPort Administration Suite.
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 thenredirects 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.

4-2

NPort 5000 Series

Choosing the Proper Operation Mode

ATTENTION
Real COM Mode allows several hosts to access the same NPort. The driver that comes with your NPortcontrols host access to attached serial devices by checking the host’s IP address. Refer to the Accessible
IP Settings section 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
In TCP Server Mode, the NPort is configured with a unique
IP:Port combination on a TCP/IP network. In this case, theNPort waits passively to be contacted by the host computer.
After the host computer establishes a connection with theserial device, it can then proceed with data transmission.
TCP Server mode also supports up to 4 simultaneousconnections, so that multiple hosts can collect data from thesame 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 configured
for TCP Server Mode.
2. Once the connection is established, data can betransmitted in both directions—from the host to the
NPort, and from the NPort to the host.

TCP Client Mode
In TCP Client Mode, the NPort can actively establish a TCP
connection with a pre-determined host computer when serial
data arrives. After the data has been transferred, the NPort
can disconnect automatically from the host computer byusing the TCP alive check time or Inactivity time
settings. Refer to Chapter 5 for detailed configuration
instructions. As illustrated in the figure, data transmission
proceeds as follows:
1. The NPort configured for TCP Client Mode requests a
connection from the host.
2. Once the connection is established, data can betransmitted in both directions—from the host to the
NPort, and from the NPort to the host.

4-3

NPort 5000 Series

Choosing the Proper Operation Mode

UDP Mode
Compared to TCP communication, UDP is faster and more
efficient. In UDP mode, you can unicast or multicast datafrom the serial device to one or multiple host computers, andthe serial device can also receive data from one or multiple
host computers, making this mode ideal for message display
applications.

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 theserial device is connected to the RS-232/422/485 port of the other NPort. The two NPort units are thenconnected to each other with a cross-over Ethernet cable, both are connected to the same LAN, or in a moreadvanced 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 notsupport 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 thedata over the Ethernet.

4-4

NPort 5000 Series

Choosing the Proper Operation Mode

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.

PPP Mode
PPP Mode is only supported by the NPort 5600 Series.
The NPort 5000 provides dial-in access for ISPs and enterprises that need a remote access solution. When auser at a remote site uses a PPP dial-up connection to access the NPort 5600, the NPort 5600 plays the roleof a dial-up server, but also ensures that the user has legal access to the network by verifying the user’s
identity with the NPort 5600 User Table.

Disabled Mode
When the Operation Mode for a particular port is set to Disabled, that port will be disabled.

4-5

5
5.

Advanced Operation Mode Settings

Your NPort’s serial ports can be configured to use one of several operation modes, such as Real COM modeor 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

Overview
A device port’s operation mode determines how the port interacts with the network. Depending on yourapplication 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.

RFC2217 Mode

Pair Connection Mode

Reverse Telnet Mode

UDP Mode

TCP Client Mode

TCP Server Mode

Real COM Mode

List of Parameters

Connection Management Parameters

TCP alive check time



















Max connection







Ignore jammed IP















Packing length











Delimiter 1 and 2











Delimiter process











Force transmit

Inactivity time

Allow driver control
Data Packing Parameters

Other Parameters

Local TCP port
Command portDestination IP address
Destination IP address 1 through 4Designated local port 1 through 4Local listen portConnection Control

Map <CR-LF>

When to Make Adjustments
The default settings for each operation mode are designed to work for most applications and usually do notneed to be modified. However, adjustments may be required for the following situations:•

You need to control network data packing using specific delimiter characters.

•

Multiple hosts will simultaneously access the attached device.

•

Data will be broadcast from the serial device to multiple network destinations.

Adjust Delimiters 1 and 2 and Delimiter process.
Adjust Max Connection, Ignore Jammed IP, and Allow driver control.
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
5-2

NPort 5000 Series

Advanced Operation Mode Settings

Using Pair Connection Modes
For some applications, you may want to configure two serial devices to communicate directly with eachother 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, andone device port on the other NPort to Pair Connection Slave mode. It doesn’t matter which NPort is themaster and which NPort is the slave.
For the device port configured for Pair Connection Slave mode, designate a Local TCP port to be used forcommunication. 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 canbe connected to the same network.

Parameter Summary

TCP alive check time
Setting Options: 0 to 99 minutes

PPP Mode

Pair Connection Mode

Default: 7 minutes
Description: Specifies the time counter to check if the TCP
connection is alive. If there is no response from the other end of
the connection after the specified time, then the TCP connection will
be closed. A setting of 0 means disabled. This is a good practice tofree up the device’s resources.


RFC2217 Mode

PPP Mode

Reverse Telnet Mode

UDP ModePair Connection Mode

Reverse Telnet Mode

UDP Mode

TCP Client ModeTCP Client Mode

TCP Server ModeTCP Server Mode

Real COM Mode

Real COM Mode

RFC2217 Mode

Connection Management Parameters

Inactivity time
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 noactivity for the specified time, the connection will be closed. A
setting of 0 means that 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 thanthe Force transmit time. Otherwise, the TCP connection may beclosed before data in the buffer can be transmitted.

5-3

PPP Mode

RFC2217 Mode

Pair Connection Mode

Reverse Telnet Mode

Setting Options: 1 to 8 (1 to 4 for the NPort 5100/NPort

UDP Mode

Max connection
5200/NPort 5400 Series)
Default: 1
Description: Specifies the maximum number of simultaneousconnections that the port will accept. When adjusting Max
connection, make sure that Ignore jammed IP and Allow drivercontrol are also configured correctly.

PPP Mode

RFC2217 Mode

Setting Options: Yes or No

Pair Connection Mode

Ignore jammed IP
Reverse Telnet Mode
UDP Mode

TCP Server Mode

TCP Client Mode

Real COM Mode

TCP Server Mode

Real COM Mode

Advanced Operation Mode Settings

TCP Client Mode

NPort 5000 Series

Default: No
Description: This field specifies how an unresponsive IP address ishandled when there are simultaneous connections to the device
port (see Max connection). Yes means that transmission to theother 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

PPP Mode

RFC2217 Mode

Pair Connection Mode

Setting Options: Yes or No

Reverse Telnet Mode

Allow driver control
UDP Mode
TCP Client Mode

Real COM ModeTCP Server Modeconnection is 2 or more.

Default: No
Description: Specifies whether or not the device port will respond todriver control commands when multiple simultaneous connections
are enabled (see Max connection).

Packing length
Setting Options: 0 to 1024

PPP Mode

Pair Connection Mode

Reverse Telnet Mode
UDP Mode
TCP Client ModeTCP Server Mode

Real COM Mode

RFC2217 Mode

Data Packing Parameters

Default: 0
Description: Controls data packing by the amount of data received.
Serial data accumulates in the device port’s buffer until it reaches
the specified length. When the specified amount of data has
accumulated in the buffer, the data is packed for networktransmission. A setting of 0 means that data will not be packed
until the buffer is full. 0 is the recommended setting, unless yourapplication has a specific need to limit packet sizes or improve
response times.

5-4

TCP Client Mode

UDP Mode

Delimiter 1 and 2


PPP Mode

RFC2217 Mode

Pair Connection Mode

Reverse Telnet ModeTCP Server Mode

Advanced Operation Mode Settings

Real COM Mode

NPort 5000 Series

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 thedelimiter 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 areenabled, 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 orparagraph in a separate packet. Data is packed according to the
Delimiter process parameter.
Delimiters must be incorporated into the data stream at thesoftware or device level.

ATTENTION
When the device port buffer is full, the data will be packed for network transmission, regardless of theDelimiter process
Setting Options: Do Nothing, Delimiter + 1, Delimiter + 2, Strip

PPP Mode

Pair Connection Mode

Reverse Telnet Mode
UDP Mode
TCP Client ModeTCP Server Mode

Real COM Mode

RFC2217 Modesettings for Delimiter 1, Delimiter 2, and Force transmit.

Delimiter
Default: Do Nothing
Description: Controls how data is packed when delimiter characters
are received. Note that this field has no effect if delimiters are notenabled (see Delimiters 1 and 2).
”Do nothing” will pack the accumulated data including delimiters.
”Delimiter + 1” will wait for an additional character before packing
the accumulated data.
”Delimiter + 2” will wait for two additional characters before
packing the accumulated data.
”Strip Delimiter” will pack the accumulated data but will not include

TCP Server Mode

TCP Client Mode

UDP Mode

Force transmit


PPP Mode

RFC2217 Mode

Pair Connection Mode

Reverse Telnet ModeReal COM Modethe delimiter characters in the packet.

Setting Options: 0 to 65535 ms
Default: 0 ms
Description: Controls data packing by the amount of time thatelapses between bits of data. As serial data is received, it
accumulates in the device port’s buffer. If serial data is notreceived for the specified amount of time, the data that is currently
in the buffer is packed for network transmission. A setting of 0means that data in the buffer will not be automatically packed
when additional data is not received from the device. When using
this field, make sure Inactivity time is disabled or set to a larger
value. Otherwise, the connection may be closed before the data inthe buffer can be transmitted.

5-5NPort 5000 Series

Advanced Operation Mode Settings

Local TCP port
Setting Options: 1 to 65535

Description: Specifies the TCP port number for communicating withthe attached device. Socket applications will need to use this port
number to refer to the device. For Pair Connection modes, this fieldused for the master’s Destination IP parameter.

Description: Specifies the TCP port number for Moxa IP-Serial
Library commands. You do not need to reference this port number
in your application when using the Moxa IP-Serial Library, since thelibrary automatically obtains the number from the device server.
Only change this setting if there is a port number conflict with

Setting Options: N/A

RFC2217 Mode

Pair Connection Mode

PPP Mode

Setting Options: N/A

RFC2217 Mode

Destination IP address 1 through 4

Pair Connection Mode
Reverse Telnet Mode

UDP Mode

Destination IP address

UDP Mode
PPP Mode

another application or device.

TCP Client Mode

Reverse Telnet Mode

Default: 966


TCP Client Mode

TCP Server Mode

PPP Mode

RFC2217 Mode

Pair Connection Mode

Reverse Telnet Mode

Setting Options: 1 to 65535

UDP Mode

Command port
TCP Client ModeTCP Server Mode

Real COM Mode

Default: 4001 for port 1, 4002 for port 2, etc.

specifies the slave’s port number, and the same value must beReal COM Mode

PPP Mode
RFC2217 Mode

Reverse Telnet Mode

UDP Mode

TCP Client Mode

TCP Server ModeTCP Server Mode

Real COM Mode

Real COM Mode

Pair Connection Mode

Other Parameters

Default: none
Description: Specifies the IP address for the slave end of a pairconnection.

Default: none
Description: Specifies the network host(s) that will access thedevice. Serial data will be transmitted to every address listed, andnetwork data will be sent to the device on a first-in-first-out basis.

5-6

PPP Mode

RFC2217 Mode

Pair Connection Mode

Default: none
Description: Specifies the TCP port number that will be used fordata transmission with the device port.

PPP Mode

RFC2217 Mode

Setting Options: 1 to 65535

Pair Connection Mode

Local listen port
Reverse Telnet Mode
UDP Mode

Reverse Telnet Mode

Setting Options: 1 to 65535

UDP Mode

Designated local port 1 through 4

TCP Client ModeTCP Client Mode

Advanced Operation Mode Settings

Default: 4001 for port 1, 4002 for port 2, etc.
Description: Specifies the UDP port number for network
communication to the serial device. Socket applications will need touse this port number to refer to the device.

PPP Mode

RFC2217 Mode

Pair Connection Mode

Setting Options: Startup/None, Any Character/None, Any

Reverse Telnet Mode

Connection Control
UDP Mode
TCP Client Mode

TCP Server Mode
TCP Server Mode
TCP Server Mode

Real COM Mode

Real COM Mode

Real COM Mode

NPort 5000 Series

Character/Inactivity Time, DSR On/DSR Off, DSR On/None, DCD
On/DCD Off, DCD On/None
Default: Startup/None
Description: Specifies how connections to the device areestablished and closed.
For example, “Startup/None” means that as soon as the device
server starts up, the TCP connection is opened, and the connection
can only be closed manually. “DCD On/DCD Off” means that the
TCP connection is opened when the DCD signal is on, and closed
when the DCD signal is off.
If you want to use the Inactivity Time parameter to close theconnection when the serial device is inactive, you must set
Connection Control to “Any Character/Inactivity time”.
Map <CR-LF>

PPP Mode

RFC2217 Mode

Pair Connection Mode

Reverse Telnet Mode

UDP Mode

TCP Client Mode

TCP Server Mode

Real COM Mode

Setting Options: CR, LF, or CR-LF
Default: CR-LF
Description: Specifies how the ENTER key is mapped from the
Ethernet port through the serial port. For certain terminal
applications, the Enter key needs to be translated specifically as a
CR character rather than CR-LF.

5-7

NPort 5000 Series

Advanced Operation Mode Settings

Web Console
Click Operating Settings to display the operating settings for each of the NPort’s serial ports.
Web Interface for the NPort 5100, 5200, and IA5000 Series Only

Web Interface for the Overall NPort 5000 Series

Real COM ModeWeb Interface for the NPort 5100, 5200, and IA5000A Series Only

5-8

NPort 5000 Series

Advanced Operation Mode Settings

Web Interface for the Overall NPort 5000 Series

Parameter

Setting

Factory

Description

Necessity

0 min: TCP connection is not closed due to an

Optional

Default
TCP Alive

0 to 99 min

7 min

Check Timeidle TCP connection.
1 to 99 min: The NPort automatically closes
the TCP connection if there is no TCP activity
for the given time. After the connection isclosed, the NPort starts listening for another
Real COM driver connection.
Max connection is set to 2 to 8 when the user RequiredMax

1 to 8Connection(1 to 4 for theneeds to receive data from different hosts

NPort 5100/

simultaneously. The factory default only allows

NPort 5200/

1 connection at a same. When Max Connection

NPort 5400

is set to 1, the Real COM driver on the specific

Series only)

host has full control.

1Max. Connection 1: Allows only 1 host’s RealCOM driver to open the specific NPort serial
port.
Max Connection 2 to 8: Allows 2 to 8 host’s
Real COM drivers to open the specific NPort
serial port, at the same time. When multiple
hosts’ Real COM drivers open the serial port at
the same time, the COM driver only provides apure data tunnel without control ability. That is,
this serial port parameter will use thefirmware’s settings, not the settings of yourapplication program (AP).
Application software that is based on the COM
driver will receive a driver response of“success” when the software uses any of theWin32 API functions. The firmware will only
send the data back to the driver on the host.
Data will be sent first-in-first-out when data

5-9

NPort 5000 Series
Parameter

Advanced Operation Mode Settings
Setting

Factory

Description

Necessity

Default
comes into the NPort from the Ethernet
interface.
IgnoreNo or YesNo

jammed IP

No: When Max connections > 1, and the serial

Optional

device is transmitting data, if any one of theconnected hosts is not responding, it will wait
until the data has been transmitted successfully
before transmitting the second group of data to
all hosts.
Yes: If you select Yes for “Ignore jammed IP,”the host that is not responding will be ignored,
but the data will still be transmitted to theother hosts.

Packing length 0 to 1024

0

0: The Delimiter Process will be followed,

Optional

regardless of the length of the data packet.
Greater than 0: If the data length (in bytes)
matches the configured value, the data will beforced out.
Delimiter 1

00 to FF

None

Delimiter 2

00 to FF

None

Once the NPort receives both delimiters

Optionalthrough its serial port, it immediately packs alldata currently in its buffer and sends it to the

Optional

NPort’s Ethernet port.
Delimiter

Do nothing,Do[Delimiter + 1] or [Delimiter + 2]: The data Optional

process

Delimiter + 1,

nothing

will be transmitted when an additional byte (forDelimiter + 2,

Delimiter +1), or an additional 2 bytes (forStrip Delimiter

Delimiter +2) of data is received after receiving
the Delimiter.
[Strip Delimiter]: When the Delimiter isreceived, the Delimiter is deleted (i.e.,
stripped), and the remaining data istransmitted.
[Do nothing]: The data will be transmitted
when the Delimiter is received.

Force
Transmit

0 to 65535 ms

0 ms

0: Disable the force transmit timeout.
1 to 65535: Forces the NPort’s TCP/IP protocol
software to try to pack serial data received
during the specified time into the same data
frame.
This parameter defines the time interval during
which the NPort fetches the serial data from its
internal buffer. If data is incoming through theserial port, the NPort stores the data in theinternal buffer. The NPort transmits data stored
in the buffer via TCP/IP, but only if the internalbuffer is full or if the force transmit timeinterval reaches the time specified under Force
Transmit timeout.

5-10

Optional

NPort 5000 Series

Advanced Operation Mode Settings

ATTENTION
When Max connection is set to two or more, the NPort will use a “multiconnection application” (i.e., two or
more hosts are allowed access to the port at the same time). When using a multiconnection application,
the NPort will use the serial communication parameters set in the console. All of the hosts connected to thatport must use the same serial settings. If one of the hosts opens the COM port with parameters that are
different from the NPort’s console setting, data communication may not work properly.

NOTE

Optimal force transmit timeout differs according to your application, but it must be at least larger than one
character interval within the specified baudrate. For example, assume that the serial port is set to 1200 bps,
8 data bits, 1 stop bit, and no parity. In this case, the total number of bits needed to send a character is 10
bits, and the time required to transfer one character is:
10 (bits) / 1200 (bits/s) * 1000 (ms/s) = 8.3 ms.
Therefore, you should set Force Transmit timeout greater than 8.3 ms. Force Transmit timeout is specified
in milliseconds and must be greater than 10 ms.
If you want to send the series of characters in a packet, the serial device attached to the NPort should sendcharacters with time delay less than Force Transmit timeout between characters and the total length of data
must be smaller than or equal to the NPort’s internal buffer size. The serial communication buffer size of the
NPort is 1 Kbyte per port.

RFC2217 ModeWeb Interface for the NPort 5000A and NPort IA5000A Series Only

5-11

NPort 5000 Series

Advanced Operation Mode Settings

Web Interface for the Overall NPort 5000 Series

Parameter

Setting

Factory

Description

Necessity

0 min: TCP connection is not closed due to an

Optional

Default
TCP Alive

0 to 99 min

7 min

Check Timeidle TCP connection.
1 to 99 min: The NPort automatically closes
the TCP connection if there is no TCP activity
for the given time. After the connection isclosed, the starts listening for another TCP
connection.

Local TCP Port 1 to 65535

4001

The TCP port that the NPort uses to listen toRequiredconnections, and that other devices must use
to contact the NPort. To avoid conflicts withwell- known TCP ports, the default is set to4001.
Packing length 0 to 1024

0

0: The Delimiter Process will be followed,

Optional

regardless of the length of the data packet.
Greater than 0: If the data length (in bytes)
matches the configured value, the data will beforced out.
Delimiter 1

00 to FF

None

Once the NPort receives both delimiters

Optionalthrough its serial port, it immediately packs all
Delimiter 2

00 to FF

None

data currently in its buffer and sends it to the

Optional

Delimiter

Do nothing,Do[Delimiter + 1] or [Delimiter + 2]: The data Optional

process

Delimiter + 1,

nothing

will be transmitted when an additional byte (forNPort’s Ethernet port.

Delimiter + 2,

Delimiter +1), or an additional 2 bytes (forStrip Delimiter

Delimiter +2) of data is received after receiving
the Delimiter.
[Strip Delimiter]: When the Delimiter isreceived, the Delimiter is deleted (i.e.,
stripped), and the remaining data istransmitted.
[Do nothing]: The data will be transmitted
when the Delimiter is received.

5-12

NPort 5000 Series

Advanced Operation Mode Settings

Parameter

SettingForce

0 to 65535 ms

Factory

Description

Necessity

0: Disable the force transmit timeout.

Optional

Default
Transmit

0 ms

1 to 65535: Forces the NPort’s TCP/IP protocol
software to try to pack serial data received
during the specified time into the same data
frame.
This parameter defines the time interval during
which the NPort fetches the serial data from its
internal buffer. If data is incoming through theserial port, the NPort stores the data in theinternal buffer. The NPort transmits data stored
in the buffer via TCP/IP, but only if the internalbuffer is full or if the force transmit timeinterval reaches the time specified under Force
Transmit timeout.

NOTE

Optimal force transmit timeout differs according to your application, but it must be at least larger than one
character interval within the specified baudrate. For example, assume that the serial port is set to 1200 bps,
8 data bits, 1 stop bit, and no parity. In this case, the total number of bits needed to send a character is 10
bits, and the time required to transfer one character is:
10 (bits) / 1200 (bits/s) * 1000 (ms/s) = 8.3 ms.
Therefore, you should set Force Transmit timeout to be larger than 8.3 ms. Force Transmit timeout isspecified in milliseconds and must be larger than 10 ms.
If you want to send the series of characters in a packet, the serial device attached to the NPort should sendcharacters with time delay less than Force Transmit timeout between characters and the total length of data
must be smaller than or equal to the NPort’s internal buffer size. The serial communication buffer size of the
NPort is 1 Kbyte per port.

TCP Server ModeWeb Interface for the NPort 5100, 5200, and IA5000 Series Only

5-13

NPort 5000 Series

Advanced Operation Mode Settings

Web Interface for Overall NPort 5000 Series

Parameter

Setting

Factory

Description

Necessity

0 min: TCP connection is not closed due to an

Optional

Default
TCP Alive

0 to 99 min

7 min

Check Timeidle TCP connection.
1 to 99 min: The NPort automatically closes
the TCP connection if there is no TCP activity
for the given time. After the connection isclosed, the NPort starts listening for another
Real COM driver connection.

Inactivity
Time

0 to 65535 ms

0 ms

0 ms: TCP connection is not closed due to an
idle serial line.
0-65535 ms: The NPort automatically closes
the TCP connection if there is no serial data
activity for the given time. After the connection
is closed, the NPort starts listening for another
TCP connection.
This parameter determines when the TCP
connection is in Closed or Listen status. The
connection is closed if there is no incoming oroutgoing data through the serial port during thespecific Inactivity time.
If the inactivity time is set to 0, the current TCP
connection is maintained until there is aconnection close request. Although inactivity
time is disabled, the NPort will check theconnection status between the NPort andremote host by sending “keep alive” packets
periodically. If the remote host does not
respond to the packet, it assumes that theconnection was closed down unintentionally.

5-14

Optional

NPort 5000 Series
Parameter

Advanced Operation Mode Settings
Setting

Factory

Description

Necessity

Default
The NPort will then force the existing TCP
connection to close.
Max connection is set to 2 to 8 when the user Required

Max

1~8

Connection(1 to 4 for theneeds to receive data from different hosts

NPort 5100/

simultaneously. The factory default only allows

NPort 5200/

1 connection at a same. When Max Connection

NPort 5400

is set to 1, the Real COM driver on the specific

Series)host has full control.

1Max. Connection 1: Allows only 1 host’s RealCOM driver to open the specific NPort serial
port.
Max Connection 2 to 8: Allows 2 to 8 host’s
Real COM drivers to open the specific NPort
serial port, at the same time. When multiple
hosts’ Real COM drivers open the serial port at
the same time, the COM driver only provides apure data tunnel without control ability. That is,
this serial port parameter will use firmware’s
settings, not the settings of your application
program (AP).
Application software that is based on the COM
driver will receive a driver response of“success” when the software uses any of theWin32 API functions. The firmware will only
send the data back to the driver on the host.
Data will be sent first-in-first-out when data
comes into the NPort from the Ethernet
interface.
IgnoreNo or YesNo

jammed IP

No: When Max connections > 1, and the serial

Optional

device is transmitting data, if any one of theconnected hosts is not responding, it will wait
until the data has been transmitted successfully
before transmitting the second group of data to
all hosts.
Yes: If you select Yes for “Ignore jammed IP,”the host that is not responding will be ignored,
but the data will still be transmitted to theother hosts.

Allow Driver

No or YesNo

If “max connection” is greater than 1, the NPort Optional
will ignore driver control commands from all

Controlconnected hosts. However, if you set “Allow
driver control” to Yes, control commands will be
accepted. Note that since the NPort may get
configuration changes from multiple hosts, themost recent command received will takeprecedence.
Packing length 0 to 1024

0

0: The Delimiter Process will be followed,

Optional

regardless of the length of the data packet.
Greater than 0: If the data length (in bytes)
matches the configured value, the data will beforced out.
Delimiter 1

00 to FF

None

Optional

5-15

NPort 5000 Series

Advanced Operation Mode Settings

Parameter

Setting

Factory

Delimiter 2

00 to FF

None

Description

Necessity

Once the NPort receives both delimiters

Optional

Default
through its serial port, it immediately packs alldata currently in its buffer and sends it to the
NPort’s Ethernet port.
Delimiter
process

Do nothing,Do[Delimiter + 1] or [Delimiter + 2]: The data Optional

Delimiter + 1,

nothing

will be transmitted when an additional byte (forDelimiter + 2,

Delimiter +1), or an additional 2 bytes (forStrip Delimiter

Delimiter +2) of data is received after receiving
the Delimiter.
[Strip Delimiter]: When the Delimiter isreceived, the Delimiter is deleted (i.e.,
stripped), and the remaining data istransmitted.
[Do nothing]: The data will be transmitted
when the Delimiter is received.

Force

0 to 65535 ms

0 ms

0: Disable the force transmit timeout.

Optional

1 to 65535: Forces the NPort’s TCP/IP protocol

Transmit

software to try to pack serial data received
during the specified time into the same data
frame.
This parameter defines the time interval during
which the NPort fetches the serial data from its
internal buffer. If data is incoming through theserial port, the NPort stores the data in theinternal buffer. The NPort transmits data stored
in the buffer via TCP/IP, but only if the internalbuffer is full or if the force transmit timeinterval reaches the time specified under Force
Transmit timeout.
Local TCP port 1 to 65535

4001

The TCP port that the NPort uses to listen toRequiredconnections, and that other devices must use
to contact NPort. To avoid conflicts with wellknown TCP ports, the default is set to 4001.
Commandport

1 to 65535

966

The command port is a listen TCP port for IP-

Optional

Serial Lib commands from the host. In order toprevent a TCP port conflict with otherapplications, the user can adjust the command
port to another port if needed.

ATTENTION
The Inactivity time should at least be set larger than that of Force transmit timeout. To prevent theunintended loss of data due to the session being disconnected, it is highly recommended that this value isset large enough so that the intended data transfer is completed.

ATTENTION
Delimiter 2 is optional. If left blank, then Delimiter 1 alone trips clearing of the buffer. If the size of theserial data received is greater than 1 KB, the NPort will automatically pack the data and send it to the
Ethernet. However, to use the delimiter function, you must at least enable Delimiter 1. If Delimiter 1 is left
blank and Delimiter 2 is enabled, the delimiter function will not work properly.

5-16

NPort 5000 Series

Advanced Operation Mode Settings

TCP Client ModeWeb Interface for the NPort 5100, 5200, and IA5000 Series Only

5-17

NPort 5000 Series

Advanced Operation Mode Settings

Web Interface for the Overall NPort 5000 Series

Parameter

Setting

Factory

Description

Necessity

0 min: TCP connection is not closed due to an

Optional

Default
TCP Alive

0 to 99 min

7 min

Check Timeidle TCP connection.
1 to 99 min: The NPort automatically closes
TCP connection if there is no TCP activity for the
given time. After the connection is closed, theNPort starts listening for another Real COM
driver connection.

Inactivity
Time

0 to 65535 ms 0 ms

0 ms: TCP connection is not closed due to an
idle serial line.
0-65535 ms: The NPort automatically closes
the TCP connection if there is no serial data
activity for the given time. After the connection
is closed, the NPort starts listening for another
TCP connection.
This parameter determines when the TCP
connection is in Closed or Listen status. The
connection is closed if there is no incoming oroutgoing data through the serial port during thespecific Inactivity time.
If the inactivity time is set to 0, the current TCP
connection is maintained until there isconnection close request. Although inactivity
time is disabled, the NPort will check theconnection status between the NPort and remote

5-18

Optional

NPort 5000 Series
Parameter

Advanced Operation Mode Settings
Setting

Factory

Description

Necessity

Default
host by sending “keep alive” packets
periodically. If the remote host does not respondto the packet, it assumes that the connection
was closed down unintentionally. The NPort willthen force the existing TCP connection to close.
IgnoreNo or YesNo

jammed IP

No: When Max connections > 1, and the serial

Optional

device is transmitting data, if any one of theconnected hosts is not responding, it will wait
until the data has been transmitted successfully
before transmitting the second group of data to
all hosts.
Yes: If you select Yes for “Ignore jammed IP,”the host that is not responding will be ignored,
but the data will still be transmitted to the otherhosts.

Allow Driver

No or YesNo

Control

If “max connection” is greater than 1, the NPort

Optional

will ignore driver control commands from allconnected hosts. However, if you set “Allow
driver control” to Yes, control commands will be
accepted. Note that since the NPort may get
configuration changes from multiple hosts, themost recent command received will takeprecedence.

Packing length 0 to 1024

0

0: The Delimiter Process will be followed,

Optional

regardless of the length of the data packet.
Greater than 0: If the data length (in bytes)
matches the configured value, the data will beforced out.
Delimiter 1

00 to FF

None

Delimiter 2

00 to FF

None

Delimiter

Do nothing,

Do nothing

Once the NPort receives both delimiters throughits serial port, it immediately packs all data
currently in its buffer and sends it to the NPort’s

Optional
Optional

Ethernet port.
process

Delimiter + 1,

[Delimiter + 1] or [Delimiter + 2]: The data

Optional

will be transmitted when an additional byte (forDelimiter + 2,

Delimiter +1), or an additional 2 bytes (forStrip Delimiter

Delimiter +2) of data is received after receiving
the Delimiter.
[Strip Delimiter]: When the Delimiter isreceived, the Delimiter is deleted (i.e., stripped),
and the remaining data is transmitted.
[Do nothing]: The data will be transmitted
when the Delimiter is received.

Force
Transmit

0 to 65535 ms 0 ms

0: Disable the force transmit timeout.
1 to 65535: Forces the NPort’s TCP/IP protocol
software to try to pack serial data received
during the specified time into the same data
frame.
This parameter defines the time interval during
which the NPort fetches the serial data from its
internal buffer. If data is incoming through theserial port, the NPort stores the data in theinternal buffer. The NPort transmits data stored

5-19

Optional

NPort 5000 Series
Parameter

Advanced Operation Mode Settings
Setting

Factory

Description

Necessity

Default
in the buffer via TCP/IP, but only if the internalbuffer is full or if the force transmit time intervalreaches the time specified under Force Transmit
timeout.
Destination IP

IP address oraddress 1

Domain Nameremote host (up to 4 hosts) whose IP address is(E.g.,

set by this parameter.

192.168.1.1)

The “Destination IP address” parameter can use

Destination IP

NoneAllows the NPort to connect actively to theRequiredeither IP address or Domain Name. For someaddress 2/3/4

applications, the user may need to send thedata actively to the remote destination domain
name.

Designated

TCP Port No.

5011 (PortLocal Port1)

1/2/3/4

5012 (PortN/A

Required2)5013 (Port3)
5014 (Port4)
Connection

Startup/None,

Startup/Non The meaning of each of the above settings iscontrol

Any Character/ e

Required

given in the table below. In general, both theNone,

Connect condition and Disconnect condition are

Any Character/given.

Inactivity
Time,
DSR ON/DSR OFF,DSR ON/None,
DCD ON/DCD OFF,DCD ON/None
Connect/Disconnect

Description

Startup/None (default)

A TCP connection will be established on startup, and will remain active indefinitely.

Any Character/None

A TCP connection will be established when any character is received from the serialinterface, and will remain active indefinitely.

Any Character/

A TCP connection will be established when any character is received from the serial

Inactivity Timeinterface, and will be disconnected when the Inactivity time out is reached.

DSR On/DSR Off

A TCP connection will be established when a DSR “On” signal is received, and will
be disconnected when a DSR “Off” signal is received.

DSR On/None

A TCP connection will be established when a DSR “On” signal is received, and willremain active indefinitely.

DCD On/DCD Off

A TCP connection will be established when a DCD “On” signal is received, and will

DCD On/None

A TCP connection will be established when a DCD “On” signal is received, and will

be disconnected when a DCD “Off” signal is received.
remain active indefinitely.

5-20

NPort 5000 Series

Advanced Operation Mode Settings

ATTENTION
The Inactivity time should at least be set larger than that of Force transmit timeout. To prevent theunintended loss of data due to the session being disconnected, it is highly recommended that this value isset large enough so that the intended data transfer is completed.
Inactivity time is ONLY active when “TCP connect on” is set to “Any character.”

NOTE

Delimiter 2 is optional. If left blank, then Delimiter 1 alone trips clearing of the buffer. If the size of theserial data received is greater than 1 KB, the NPort will automatically pack the data and send it to the
Ethernet. However, to use the delimiter function, you must at least enable Delimiter 1. If Delimiter 1 is left
blank and Delimiter 2 is enabled, the delimiter function will not work properly.

ATTENTION
Up to 4 connections can be established between the NPort and hosts. The connection speed or throughput
may be low if one of the four connections is slow, since the slow connection will slow down the other 3
connections.

UDP Mode
Web Interface for the NPort 5100, 5200, and IA5000 Series Only

5-21

NPort 5000 Series

Advanced Operation Mode Settings

Web Interface for the Overall NPort 5000 Series

Parameter

Setting

Factory

Description

Necessity

0: The Delimiter Process will be followed,

Optional

Default
Packing length 0 to 10240

regardless of the length of the data packet.
Greater than 0: If the data length (in bytes)
matches the configured value, the data will
be forced out.
Delimiter 1

00 to FF

None

Delimiter 2

00 to FF

None

Delimiter

Do nothing,

Do nothing

Once the NPort receives both delimiters
through its serial port, it immediately packs
all data currently in its buffer and sends it to

Optional
Optional

the NPort’s Ethernet port.
process

Delimiter + 1,

[Delimiter + 1] or [Delimiter + 2]: The

Optional

data will be transmitted when an additional

Delimiter + 2,

byte (for Delimiter +1), or an additional 2

Strip Delimiter

bytes (for Delimiter +2) of data is received
after receiving the Delimiter.
[Strip Delimiter]: When the Delimiter isreceived, the Delimiter is deleted (i.e.,
stripped), and the remaining data istransmitted.
[Do nothing]: The data will be transmitted
when the Delimiter is received.

Force
Transmit

0 to 65535 ms 0 ms

0: Disable the force transmit timeout.
1 to 65535: Forces the NPort’s TCP/IP
protocol software to try to pack serial data
received during the specified time into thesame data frame.
This parameter defines the time interval
during which the NPort fetches the serial datafrom its internal buffer. If data is incoming
through the serial port, the NPort stores the

5-22

Optional

NPort 5000 Series
Parameter

Advanced Operation Mode Settings
Setting

Factory

Description

Necessity

Default
data in the internal buffer. The NPorttransmits data stored in the buffer via TCP/IP,
but only if the internal buffer is full or if theforce transmit time interval reaches the time
specified under Force Transmit timeout.
Destination IP

IP address

Begin: Empty

address 1

range

End: Empty

Destination IP

E.g., Begin:address 2/3/4

192.168.1.1

N/A

Required

Port: 4001

N/A

Optional

4001

The UDP port that the NPort listens to, andRequiredEnd:
192.168.1.10
Local listen

1 to 65535

portthat other devices must use to contact the
NPort. To avoid conflicts with well-known UDP
ports, the default is set to 4001.

NOTE

Delimiter 2 is optional. If left blank, then Delimiter 1 alone trips clearing of the buffer. If the size of theserial data received is greater than 1 KB, the NPort will automatically pack the data and send it to the
Ethernet. However, to use the delimiter function, you must at least enable Delimiter 1. If Delimiter 1 is left
blank and Delimiter 2 is enabled, the delimiter function will not work properly.

UDP Multicast
A multicast is a packet sent by one host to multiple hosts. In multicast mode, each host that belongs to a
specific multicast group will receive multicast packets for that group. For a host to be configured as amulticast receiver over the Internet, the must inform the routers on its LAN. The Internet GroupManagement Protocol (IGMP) is used to communicate group membership information between hosts androuters on a LAN. The NPort 5000 Series supports IGMP version 2. The NPort 5100, NPort 5200, IA5000
Series do not support IGMP function.

Type the IP address (e.g., 239.1.1.1) assigned to the multicast group in the Begin column. The NPort willautomatically add the Group, and receive all packets from this group as required by the multicast function.

5-23

NPort 5000 Series

Advanced Operation Mode Settings

Pair Connection Mode
Pair Connection Mode employs two NPort device servers in tandem, and can be used to remove the 15meter distance limitation imposed by the RS-232 interface. One NPort is connected from its RS-232 port to
the COM port of a PC or other type of computer, such as a hand-held PDA, and the serial device isconnected to the RS-232 port of the other NPort. The two NPort device servers are then connected to eachother 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 Modetransparently transfers both data and modem control signals (although it cannot transmit the DCD signal)
between the two NPort device servers.

Pair Connection Master Mode
When using Pair Connection Mode, you must select Pair Connection Master Mode for the Operation modeof one of the NPort device servers. In effect, this NPort will be acting as a TCP client.
Web Interface for the NPort 5100, 5200, and IA5000 Series Only

Web Interface for the Overall NPort 5000 Series

Parameter

Setting

Factory

Description

Necessity

0 min: TCP connection is not closed due toRequired

Default
TCP Alive

0 to 99 min

7 min

Check Timean idle TCP connection.
1 to 99 min: The NPort closes the TCP
connection automatically if there is no TCP
activity for the given time.

Destination IP

IP address oraddress

Domainblank

The Pair Connection “Master” will contact the
network host that has this IP address. Data

Namewill be transmitted through the port No.

(E.g.,(4001 by default). Note that you must

192.168.1.1)
TCP Port

Optional

configure the same TCP port No. for the4001

device server acting as the Pair Connection“Slave.”5-24

RequiredNPort 5000 Series

Advanced Operation Mode Settings

Pair Connection Slave Mode
When using Pair Connection Mode, you must select Pair Connection Slave Mode for the Operation modeof one of the NPort device servers. In effect, this NPort will be acting as a TCP server.
Web Interface for the NPort 5100, 5200, and IA5000 Series Only

Web Interface for the Overall NPort 5000 Series

Parameter

Setting

Factory

Description

Necessity

0 min: TCP connection is not closed due toRequired

Default
TCP Alive

0 to 99 min

7 min

Check Timean idle TCP connection.
1 to 99 min: The NPort closes the TCP
connection automatically if there is no TCP
activity for the given time.

Local TCP port TCP port No.

4001

This Port No. must be the same port No. that(e.g.,

you set up for the Pair Connection “Master”

4001)

device server.

5-25

RequiredNPort 5000 Series

Advanced Operation Mode Settings

Ethernet Modem Mode (for the NPort IA5000/IA5000A, NPort
5000A, NPort 5000AI-M12, NPort 5100 Series only)
Web Interface for the NPort 5100 and IA5000 Series Only

Web Interface for the NPort IA5000A, 5000A, and 5000AI-M12 Series Only

Dial-in
The NPort listens for a TCP/IP connection request from the remote Ethernet modem or host. The NPort’s
response depends on the ATS0 value, as outlined below.
ATS0=0 (default):
The NPort will temporarily accept the TCP connection and then send the RING signal out through the serial
port. The serial controller must reply with “ATA” within 2.5 seconds to accept the connection request, after
which the NPort enters data mode. If no “ATA” command is received, the NPort will disconnect after sending
three “RING” signals.
ATS0≥0:
The NPort will accept the TCP connection immediately and then send the CONNECT <baud> command to
the serial port, in which <baud> represents the baudrate of the NPort’s serial port. After that, the NPort
immediately enters data mode.

Dial-out
The NPort accepts the AT command ATD <IP>:<TCP port> from the serial port and then requests a TCP
connection from the remote Ethernet Modem or PC. This is where <IP> is the IP address of the remote
Ethernet modem or PC, and <TCP port> is the TCP port number of the remote Ethernet modem or PC. Oncethe remote unit accepts this TCP connection, the NPort will send out the CONNECT <baud> signal via theserial port and then enter data mode.

Disconnection Request from the Local Site
When the NPort is in data mode, the user can drive the DTR signal to OFF, or send +++ from the local
serial port to the NPort. The NPort will enter command mode and return NO CARRIER via the serial port,
and then input ATH to shut down the TCP connection after 1 second.

5-26

NPort 5000 Series

NOTE

Advanced Operation Mode Settings

The “+++” command cannot be divided. The “+” character can be changed in register S2, and the guardtime, which prefixes and suffixes the “+++” in order to protect the raw data, can be changed in register
S12.

Disconnection Request from the Remote Site
After the TCP connection has been shut down by the remote Ethernet modem or PC, the NPort will send the
NO CARRIER signal via the serial port and then return to command mode.

AT Commands
The NPort supports the following common AT commands used with a typical modem:
No.

AT command

Description

1

ATA

Answer manually2

ATD <IP>:<Port>

Dial up the IP address: Port No.

3

ATE

ATE0=Echo OFF

Remarks

ATE1=Echo ON (default)
4

ATH

ATH0=On-hook (default)

5

ATI, ATI0, ATI1, ATI2

6

ATL

Speaker volume option

reply “OK” only

7

ATM

Speaker control option

reply “OK” only

8

ATO

On line command

9

ATP, ATT

Set Pulse/Tone Dialing mode

10

ATQ0, ATQ1

Quiet command (default=ATQ0)

11

ATSr=nChange the contents of S register

See “S registers”

12

ATSr?

Read the contents of S register

See “S registers”

13

ATV

Result code type

ATH1=Off-hook
Modem version

reply “OK” only

reply “OK” only

ATV0 for digit code
ATV1 for text code
0=OK
1=connect (default)
2=ring3=No carrier
4=error
14

ATZ

15

AT&C

Reset (disconnect, enter command mode and restore
the flash settings)
Serial port DCD control AT&C0=DCD always on
AT&C1=DTE detects connection by DCD on/off(default)

16

AT&D

Serial port DTR control AT&D0=recognize DTE always
ready AT&D1, AT&D2=reply DTE when DTR On(default)

17

AT&F

Restore manufacturer’s settings

18

AT&G

Select guard time

reply “OK” only

19

AT&R

Serial port RTS option command

reply “OK” only

20

AT&S

Serial port DSR control

reply “OK” only

21

AT&V

View settings

22

AT&W

Write current settings to flash for next boot up

5-27

NPort 5000 Series

Advanced Operation Mode Settings

S Registers
No.

S Register

Description & default value

1

S0

Ring to auto-answer (default=0)Remarks

2

S1

Ring counter (always=0)

3

S2

Escape code character (default=43 ASCII “+”)4

S3

Return character (default=13 ASCII)

5S4Line feed character (default=10 ASCII)

6S5Backspace character (default= 8 ASCII)

7S6Wait time for dial tone (always=2, unit=sec)

8

S7

Wait time for carrier (default=3, unit=sec)

9

S8

Pause time for dial delay (always=2, unit=sec)

no action applied

10

S9

Carrier detect response time (always=6, unit 1/10 sec)

no action applied

11

S10

Delay for hang up after carrier

no action applied

no action applied

no action applied(always=14, unit 1/10 sec)
12

S11

DTMF duration and spacing (always=100 ms)

13

S12

Escape code guard timeno action applied(default=50, unit 1/50 sec)
to control the idle time for “+++”Parameter

Setting

TCP Alive

0 to 99 min

Factory

Description

Necessity

0 min: TCP connection is not closed due toRequired

Default
7 min

Check Timean idle TCP connection.
1 to 99 min: The NPort closes the TCP
connection automatically if there is no TCP
activity for the given time.

Local TCP port 1 to 65535

4001

The TCP port that other devices must use tocontact this device. To avoid conflicts withstandard TCP ports, the default is set to4001.

Reverse Telnet ModeWeb Interface for the NPort 5100, 5200, and IA5000 Series Only

5-28

RequiredNPort 5000 Series

Advanced Operation Mode Settings

Web Interface for the Overall NPort 5000 Series

Parameter

Setting

Factory

Description

Necessity

Default
TCP Alive

0 to 99 min

0 min

Specifies the time slice for checking if the TCP Optional
connection is alive. If no response is received,

Check Timethe NPort will disconnect the original
connection.
Inactivity time 0 to 65535 ms 0

Idle time setting for auto-disconnection. 0

Optionalmin. means it will never disconnect.
Local TCP port 1 to 65535

4001

Each of the NPort’s serial ports is mapped to

Optionala TCP port. To avoid conflicts with TCP ports,
set port numbers to 4001 for port1, 4002 forport 2, etc. (like the default values).
Map <CR-LF>

CR, LF, or CRLF

CR-LF

If data received through the NPort’s Ethernet
port is sent using the “enter” command, thedata will be transmitted out the serial portwith an added:
1. “carriage return + line feed” if you selectthe <CR-LF> option (i.e., the cursor will
jump to the next line, and return to thefirst character of the line)
2. “carriage return” if you select the <CR>
option (i.e., the cursor will return to thefirst character of the line)
3. “line feed” if you select the <LF> option.
(i.e., the cursor will jump to the next line,
but not move horizontally)

5-29

Optional

NPort 5000 Series

Advanced Operation Mode Settings

PPPD Mode

PPPD (PPP on demand) is used for dial-in services, since it provides PPP services only when receiving arequest from a remote PC.
Destination IP address: This is the IP address of the remote dial-in/ dial-out server.
Source IP address: The Source IP address is IP address assigned to this serial port.
IP netmask: The IP netmask defines the netmask, also known as the subnet mask, for the PPP connection
TCP/IP compression (default=Disable): The setting of this field depends on whether the remote user’s
application requests compression.
Inactivity time (default=0 ms): This field specifies the idle time setting for auto-disconnection. A setting of
0 ms will cause the port to remain connected even if idle.
Link quality report (default=Disable): Setting this field to Enable allows the NPort 5000 to disconnect aconnection if the link noise exceeds a certain threshold.
Username: This is the dial-out user ID account.
Password: This is the dial-out user password.
Authentication type (default=None): This field allows you to configure the method used, if any, to verify
a user’s ID and authorization.
OptionDescription

Local

Verify the ID against the NPort 5000 User Table.

RADIUS

Verify the ID against the external RADIUS server.

RADIUS-Local

Radius authentication is tried first, switching to Local if unsuccessful.

Local-RADIUS

Authentication is performed locally first, switching to Radius if unsuccessful

TACACS+

Verify the ID against the external TACACS+ server.

TACACS+-Local

TACACS+ authentication is tried first, switching to Local if unsuccessful.

Local-TACACS+

Authentication is performed locally first, switching to Radius if unsuccessful

None

Authentication is not required.

Try next type on authentication denied (default=Disable): The field enables or disables the system to
try next type on first authentication denied.
Disconnect by (default=None): If this field is set as DCD-off, the connection will be disconnected when
the DCD signal is off. If this field is set as DSR-off, the connection will be disconnected when the DSR
signal is off.

5-30

NPort 5000 Series

Advanced Operation Mode Settings

Disabled ModeWeb Interface for the NPort 5100, 5200, and IA5000 Series Only

Web Interface for the Overall NPort 5000 Series

When Operation mode is set to Disabled, that particular port will be disabled. Select the Apply the above
settings to all serial ports checkbox to apply this setting to the other ports.

5-31

6
6.

Configuring NPort Administrator

The following topics are covered in this chapter: Overview
 Installing NPort Administrator
 Configuration
 Broadcast Search Unlock Password Protection
 Configuring NPort Upgrading the Firmware
 Export Configuration
 Import Configuration
 Monitor Port Monitor
 COM Mapping On-line COM Mapping Off-line COM Mapping COM Grouping Creating a COM Group Deleting a COM Group Adding a Port to a COM Group Removing a Port from a COM Group Modify Ports in a COM Group IP Address Report

NPort 5000 Series

Configuring NPort Administrator

Overview
Device Server Administrator lets you install and configure your NPort device server easily over the network.
Five function groups are provided to ease the installation process, allow off-line COM mapping, and provide
monitoring and IP location server functions.

ATTENTION
Before installing and the configuring the NPort Administration suite, make sure your user privilege is set assystem administrator.

Installing NPort Administrator
1. Once the Setup program starts running, click Next when the Welcome window opens to proceed with
the installation.

2. Click Next to install program files in the default directory, or select an alternative location.

6-2

NPort 5000 Series

Configuring NPort Administrator

3. Click Next to install the program using the default program name, or select a different name.

4. Click Install to proceed with the installation.

5. The Installing window reports the progress of the installation.

6-3

NPort 5000 Series

Configuring NPort Administrator

6. Click Next to proceed with the installation.

7. Click Finish to complete the installation of NPort Administration Suite.

6-4

NPort 5000 Series

Configuring NPort Administrator

Configuration
The Administrator-Configuration window is divided into four parts.
•

The top section contains the function list and online help area. (Windows NT does not support this .chm
file format.)•

The five Administrator function groups are listed in the left section.

•

A list of NPort serial device servers, each of which can be selected to process user requirements, isdisplayed in the right section.

•

The activity Log, which displays messages that record the user’s processing history, is shown in thebottom section.

Broadcast Search
The Broadcast Search function is used to locate all NPort units that are connected to the same LAN as
your computer. Since the Broadcast Search function searches by MAC address and not IP address, all NPort
units connected to the LAN will be located, regardless of whether or not they are part of the same subnet as
the host.
1. Position the cursor in the right middle section of the Administrator window and then click right-click, or
click the Search button on the toolbar.

6-5

NPort 5000 Series

Configuring NPort Administrator

2. The Broadcast Search window will open and display the Model, IP Address, MAC Address, and Progressof the search for that particular device.

3. When the search is complete, the Broadcast Search window will close, and the NPort units that werelocated will be displayed in the right panel of the Administrator window. If you found more than one
server connected to this network, refer to the MAC address sticker on your server(s) to determine which
server(s) are the ones you wish to configure. To configure an NPort, place the cursor over the row
displaying that NPort’s information, and then double click the left mouse button.

ATTENTION
Before modifying the NPort’s configuration, use Broadcast Search to locate all NPort units connected to theLAN, or use Specify by IP Address to locate a particular NPort.

Unlock Password Protection
The NPort device server is password protected (the default username is admin, password is moxa). The
status of the NPort device will be indicated by Lock. You will receive the following error, and you will not beable to right-click to open the configuration page.

NOTE

Only the NPort 5100/5200/IA5000 Series requires a password.

6-6

NPort 5000 Series

Configuring NPort Administrator

In this case, proceed as follows to “Unlock” the device server.
1. Select the NPort with “Lock” status, click the right mouse button, and then select Unlock.

2. After inputting the correct password, the Administrator will display an “Unlock ok” message.

3. The “Lock” status will change to “Unlock,” and the Administrator utility will keep this NPort in the Unlock
status throughout this Administrator session.

The meanings of the six “Status” states are given below (note that the term Fixed is borrowed from thestandard fixed IP address networking terminology):
Lock
The NPort is password protected, “Broadcast Search” was used to locate it, and the password has not yet
been entered from within the current Administrator session.
UnlockThe NPort is password protected, “Broadcast Search” was used to locate it, and the password has beenentered from within the current Administrator session. Henceforth during this Administrator session,
activating various utilities for this NPort will not require re-entering the server password.
Blank
The NPort is not password protected, and “Broadcast Search” was used to locate it.
Fixed
The NPort is not password protected, and “Search by IP address” was used to locate it.

6-7

NPort 5000 Series

Configuring NPort Administrator

Lock FixedThe NPort is password protected, “Specify by IP address” was used to locate it, and the password has not
yet been entered from within the current Administrator session.
Unlock FixedThe NPort is password protected, “Specify by IP address” was used to locate it, and the password has beenentered from within the current Administrator session. Henceforth during this Administrator session,
activating various utilities for this NPort will not require re-entering the server password.

Configuring NPortIn this section, we illustrate how to access the NPort’s configuration utility. You should first make sure thatyou can connect over the network from your computer to the NPort.
1. To start NPort Administrator, click Start  NPort Administration Suite  NPort Administrator.

2. Unlock the NPort you wish to configure if it is password protected. Right click the NPort and selectConfigure to start the configuration.

3. The progress bar shows that Administrator is retrieving configuration information from the specificNPort.

6-8

NPort 5000 Series

Configuring NPort Administrator

4. Refer to Chapter 2 for each parameter’s function definition. To modify the configuration, you must firstclick in the modify box to activate the parameter setting box.

ATTENTION
You can simultaneously modify the configurations of multiple NPort units that are of the same model. To
select multiple NPort units, hold down the Ctrl key when selecting additional NPort units, or hold down the
Shift key to select a group of NPort units.

Upgrading the Firmware
Follow these steps to upgrade the firmware of an NPort.
1. To start NPort Administrator, click Start  NPort Administration Suite  NPort Administrator.

6-9

NPort 5000 Series

Configuring NPort Administrator

2. Unlock the NPort you wish to configure. Right click a specific NPort and select the Upgrade Firmware
function to start upgrading the firmware.

3. Select the correct ROM file to download.

4. Wait while the Upgrade Firmware action is processed.

ATTENTION
You can simultaneously upgrade the firmware of multiple NPort units that are of the same model. To selectmultiple NPort units, hold down the Ctrl key when selecting an additional NPort, or hold down the Shift key
to select a block of NPort units.

6-10

NPort 5000 Series

Configuring NPort Administrator

Export Configuration
The Export Configuration function is a handy tool that can be used to produce a text file that contains thecurrent configuration of a particular NPort.
If you are using the NPort 5100 Series, NPort 5200 Series, or NPort IA5000 Series and Administration Suite
v1.22 or above, to export the configuration of an NPort, right-click NPort, select Export Configuration. An
Export Password window will pop up for the user to assign a password for the exported configuration file.
The exported configuration file will be encrypted for security purpose. You will need the same password you
use for the exported file to import the same file back into the NPort.

After assigning the export password, click the Browse button to set the file name and path, and then click
OK.

For the overall NPort 5000 Series with security enhanced firmware version, export configuration encryption
will be based on the Pre-shared key defined in the NPort (default is empty password, and you may configure
the password in Configuration -> Configuration Pre-shared Key. So when you are exporting theconfiguration file, you are only required to select the output file location. You may refer to page 2-21 for the
security firmware version for your NPort.

6-11

NPort 5000 Series

Configuring NPort Administrator

Import Configuration
The Import Configuration function is used to import an NPort configuration from a file into one or more of
the same NPort model. To import a configuration, first select the target servers, click the right mousebutton, and then select Import Configuration. Click on the Browse button to locate the configuration fileand press OK.

For the NPort 5100 Series, NPort 5200 Series, or NPort IA5000 Series and wtih NPort Administration Suite
v1.22 or above, an Import Password window will pop up, and you will need to enter the password that is
unique to the configuration file (which is assigned when exporting the configuration file) in order tosuccessfully import the configuration file.

For the overall NPort 5000 Series with a security enhanced firmware version, importing configuration
decryption will be based on the pre-shared key defined in the NPort. If the pre-shared key does not match,
you will see an error dialogue box on the screen.

You will then need to modify the pre-shared key in Configuration to match the encryption password of theconfiguration file before you can begin to import.

6-12

NPort 5000 Series

NOTE

Configuring NPort Administrator

If you do not remember the password of the encrypted configuration file, there is no alternative way todecrypt the file.

You will be able to confirm the import content before downloading the file.

Press OK to start downloading the configuration file. A window will pop up to indicate that import was
successful.

For firmware versions supporting encrypted configuration files, please refer to the table below.
Model Name

Firmware version supporting encrypted configuration files.

NPort 5110

Firmware v2.6 and up with NPort Administration Suite v1.22 and up

NPort 5130, NPort 5150

Firmware v3.6 and up with NPort Administration Suite v1.22 and up

NPort 5200 Series

Firmware v2.8 and up with NPort Administration Suite v1.22 and up

NPort 5400 Series

Firmware v3.11 and up with NPort Administration Suite v1.22 and up

NPort 5600-8-DT Series

Firmware v2.4 and up with NPort Administration Suite v1.22 and up

NPort 5000 Series

6-13

NPort 5000 Series

Configuring NPort Administrator

Model Name

Firmware version supporting encrypted configuration files.

NPort 5600-8-DTL Series

Firmware v1.3 and up with NPort Administration Suite v1.22 and up

NPort 5600 Series

Firmware v3.7 and up with NPort Administration Suite v1.22 and up

NPort 5100A Series

Firmware v1.3 and up (Support with both web console and NPort

NPort 5000A/IA5000A Series
Administration Suite v1.22 or above)
NPort 5200A Series

Firmware v1.3 and up (Support with both web console and NPort

NPort 5x50AI-M12 Series

Firmware v1.2 and up (Support with both web console and NPort

Administration Suite v1.22 or above)
Administration Suite v1.22 or above)
NPort IA5150A, NPort

Firmware v1.3 and up (Support with both web console and NPort

IA5250A

Administration Suite v1.22 or above)

NPort IA5450A

Firmware v1.4 and up (Support with both web console and NPort
Administration Suite v1.22 or above)

ATTENTION
1. You can simultaneously import the same configuration file into multiple NPort units of the same model.
To select multiple NPort units, hold down the Ctrl key when selecting an additional NPort, or holddown the Shift key to select a block of NPort units.
2. If you have an encrypted configuration file, you will need to use the NPort Administration Suite V1.22
or above to import an encrypted configuration file. On the other hand, if your configuration file is nonencrypted, it will also be accepted by the NPort Administration Suite V1.22 or above. (i.e. the NPort
Administration Suite will not ask you to key in the Import Password.

Monitor
Use the following method to start the Monitor function.

Broadcast Search ( Monitor ( Add Target
1. With Configuration selected under Function, use Broadcast Search to locate all NPorts on your LAN.

2. Next, click Monitor  Add Target and select your targets from the list, and then click OK.

6-14

NPort 5000 Series

Configuring NPort Administrator

Once the Monitor function is running:
1. The NPort list will appear on the Monitor screen.

2. Right click the panel and select Settings.

3. Select or de-select Monitor Items. Use the single arrowhead buttons to move highlighted items fromone box to the other. Use the double arrowhead buttons to move all items in one box to the other.

6-15

NPort 5000 Series

Configuring NPort Administrator

4. Select a Refresh Rate (the default is 3 seconds) on the General Settings page.

5. On the Advanced Settings page, select Display warning message for new event and/or Playwarning music for new event. In the second case, you must enter the path to the WAV file that you
want to be played. “New event” means that one of the NPort units in the monitor is “Alive” or “Not
Alive,” or has lost connection with the Monitor program.

6-16

NPort 5000 Series

Configuring NPort Administrator

6. Right click in the NPort list section and select Go to start Monitoring the NPort.

7. For this example, the NPort shown in the list will be monitored.

8. When one of the NPort units loses connection with the Monitor program, a warning alert will display
automatically. The warning music will be played at the same time.

9. In the Monitor screen, you can see that the NPort units that are “Not Alive” are shown in red color.

6-17NPort 5000 Series

Configuring NPort Administrator

10. If the NPort gets reconnected, a warning will be displayed to remind the user that the NPort is now“Alive.”11. The NPort units that were reconnected, and are now “Alive,” will be shown in black color.

Port Monitor
The process described here is the same as in the previous “Monitor” section. The only difference is that you
can select more items under Port Monitor than under Monitor.

6-18

NPort 5000 Series

Configuring NPort Administrator

Select or de-select Monitor Items. Use the single arrowhead buttons to move highlighted items from one
box to the other. Use the double arrowhead buttons to move all items in one box to the other.

COM Mapping
NPort Administration Suite comes with Windows Real COM drivers. After you install NPort Administration
Suite, there are two ways to set up the NPort’s serial port as your host’s remote COM port.
The first way is with On-line COM Mapping. On-line COM Mapping will check to make sure that the NPort isconnected correctly to the network and then install the driver on the host computer.
The second way is with Off-line COM Installation, without first connecting the NPort to the network. Off-line
COM Mapping can decrease the system integrator’s effort by solving different field problems. Via off-line
installation, users can first process software installation for the host, and then install the NPort to different
fields.
Use the following procedure to map COM ports:
1. On-line COM Mapping:
Connect the NPort to the network  Set the NPort’s IP address  Map COMs to your host  Apply
Change.
2. Off-line COM Mapping:
Map COMs to your host  Apply Change  Connect the NPort to the network  Configure the NPort’s IP
address.

On-line COM Mapping
1. Broadcast Search for NPort units on the network.

6-19

NPort 5000 Series

Configuring NPort Administrator

2. Select the COM Mapping function group.

3. Add the target to which you would like to map COM ports.

4. The NPort list that appears is the list generated by the previous Broadcast Search. Select the NPort towhich you would like to map COM ports.

5. Select COM Settings to modify COM No., default setting, etc.

6-20

NPort 5000 Series

Configuring NPort Administrator

6. Select the COM Number.
COM ports that are “In use” or “Assigned” will also be indicated in this drop-down list. If you selectmultiple serial ports or multiple NPort units, remember to check the “Auto Enumerating” function to use
the COM No. you select as the first COM No.

Hi-performance mode is the default for Tx mode. If the driver completes sending data out to the NPort
5200A, the driver will respond “Tx Empty” to the program.
Under classical mode, the driver will not notify the user’s program that Tx is completed until all Tx data
has been sent out from the NPort 5200A; this mode will cause lower throughput. If you want to ensurethat all data is sent out before further processing, classical mode is recommended.
Enable/Disable Tx/Rx FIFO. If disabled, the NPort 5200A will send one byte each time the Tx FIFO
becomes empty; and an Rx interrupt will be generated for each incoming byte. This will result in a faster
response and lower throughput. If you want to use XON/XOFF flow control, we recommend setting FIFO
to Disable.
Fast Flush (only flush local buffer)•

We have added one optional Fast Flush function to Moxa’s new NPort Real COM driver. NPort
Administrator Suite for NPort adds it after version 1.2.

•

For some applications, the user’s program will use the Win32 “PurgeComm()” function before it reads
or writes data. With our design, after the program uses this Purge Comm() function, the NPort driverwill keep querying the NPort’s firmware several times to make sure there is really no data queued in
the NPort firmware buffer, rather than just flushing the local buffer. This kind of design is usedbecause of some special considerations. However, it might take more time (on the order of several
hundred milliseconds) than a native COM1, because it needs to work via Ethernet. That’s why thenative COM ports on the motherboard can work fast with this function call, but the NPort requires
much more time. In order to accommodate other applications that require a faster response time,
the new NPort driver implements a new “Fast Flush” option. Note that by default, this function isdisabled.

•

To begin with, make sure there are some “PurgeComm()” functions being used in your application
program. In this kind of situation, you might find that your NPort exhibits a much poorer operation
performance than when using the native COM1 port. Once you have enabled the “Fast Flush”
function, you can check to see if there has been an improvement in performance.

•

By default, the optional “Fast Flush” function is disabled. If you would like to enable this function,from the “NPort Administrator,” double click the COM ports that are mapped to the NPort, and thenselect the “Fast Flush” checkbox. You should find that when “Fast Flush” is enabled, the NPort driverwill work faster with “PurgeComm().”6-21

NPort 5000 Series

Configuring NPort Administrator

Always Accept Open Requests: Even the driver cannot establish the connection to NPort, user's
software still can open the mapped COM port just like a onboard COM port.

Ignore TX Purge: The application can use Win32 API PurgeComm to clear the output buffer andterminate outstanding overlapped write operations. Select Ignore TX Purge if you do not want theoutput buffer to be purged.

7. The Serial Parameter settings shown here are the default settings when the NPort is powered on.
However, the program can redefine the serial parameters to different values after the program opens
the port via Win 32 API.

6-22

NPort 5000 Series

Configuring NPort Administrator

8. After setting the COM Mapping, remember to select Apply Change to save the information in the hostsystem registry. The host computer will not have the ability to use the COM port until after Apply
Change is selected.

9. Select Discard Change to tell Administrator NOT to save the COM Mapping information to the host.

10. To save the configuration to a text file, select Export COM Mapping. You will then be able to importthis configuration file to another host and use the same COM Mapping settings in the other host.

6-23

NPort 5000 Series

Configuring NPort Administrator

Off-line COM Mapping
1. Add a target by inputting the IP address and selecting the Model Name without physically connecting the
NPort to the network.

2. Modify the port settings as needed.

3. Right click in the NPort list section and select Apply Change.

6-24

NPort 5000 Series

Configuring NPort Administrator

COM Grouping
The “COM Grouping” function is designed to simulate the multi-drop behavior of serial communication overan Ethernet network. COM Grouping allows you to create a COM Group and redirect data from it to several
physical COM ports on NPort device servers. With COM Grouping, you will be able to control multiple
physical serial ports simultaneously by operating only one COM port.

Creating a COM Group
Follow the steps below to add multiple COM ports into one group:
1. Select serial port(s) for the group that you are going to create, and right-click to select COM Settings.

2. Select a COM number for this COM group. You may select one of the ports already assigned to amember of the COM Group. However, once the COM Group is configured, all of the original COM
number(s) within the group will be released simultaneously.

ATTENTION
The COM Grouping function only supports Windows NT, 2000, and later. The maximum number of ports foreach group is 32.

6-25

NPort 5000 Series

Configuring NPort Administrator

3. Select the Grouping selected port(s) together checkbox.

4. On the COM Grouping page, you can set “Read” and “Write” permissions for every serial port. It isnecessary to set Signal Status in order to control the data transmission with specified control signals(e.g., DTR/RTS). You can assign one serial port whose signals will be taken into account by the COM
Group.

5. Click OK, and confirm that the serial ports that were assigned. The COM Port column confirms that yourselected ports are labeled as part of a “Group.” You will be able to view the serial ports that wereassigned to and removed from the Group. Click Apply to apply the settings.

6. Finally, click Yes to confirm.

6-26

NPort 5000 Series

Configuring NPort Administrator

Deleting a COM Group
Follow the steps below to delete a COM Group and then auto-assign COM numbers for each port in theGroup:
1. Select all serial ports in the Group you are deleting and then right-click to select COM Settings.

2. Select a COM number for this COM group and check the Auto enumerating COM number for
selected ports to use the COM number you select as the first starting COM number, and then click OK.

3. You will be able to view the serial ports that were assigned to and removed from the Group. Click Apply
to apply the settings.

4. Finally, click Yes to confirm.

6-27

NPort 5000 Series

Configuring NPort Administrator

Adding a Port to a COM Group
Follow the steps below to add a serial port into an existing COM Group:
1. Select the serial port that you are adding and right-click to select COM Settings.

2. Select the COM number of the COM Group you are adding and check mark the Grouping selected
port(s) together check box and then click OK.

3. You will be able to view the serial ports that were assigned to and removed from the Group. Click Apply
to apply the settings.

4. Finally, click Yes to confirm.

6-28

NPort 5000 Series

Configuring NPort Administrator

Removing a Port from a COM Group
Follow the steps below to remove a serial port from a COM Group:
1. Select a serial port in the Group and right-click to select COM Settings.

2. Select a COM number that is not in use or assigned to a Group and click OK.

3. You will be able to view the serial ports that were assigned to and removed from the Group. Click Apply
to apply the settings.

4. Finally, click Yes to confirm.

6-29

NPort 5000 Series

Configuring NPort Administrator

Modify Ports in a COM GroupIn the following subsections we examine three ways in which the serial ports in a COM Group can be
modified:

Changing the COM Number of a COM Group
1. Select all serial ports in the Group and right-click to select COM Settings.

2. Select a COM number that is not in use or assigned to a Group.

3. Select the Grouping selected port(s) together checkbox and then click OK.

6-30

NPort 5000 Series

Configuring NPort Administrator

4. You will be able to view the serial ports that were assigned to and removed from the Group. Click Apply
to apply the settings.

5. Finally, click Yes to confirm.

Changing Advanced Settings and Serial Parameters of the COM Group
1. Check the port specified on the COM Grouping page as the signal port.

2. Select the ”Signal Status” controlled port and then right-click and select COM Settings.

6-31

NPort 5000 Series

Configuring NPort Administrator

3. The Advanced Settings and Serial Parameters pages will be available for modification.

Changing the Serial Port Specified as Signal Port for the COM Group
1. Select a serial port in the Group and then right-click and select COM Settings.

2. Check the Grouping selected port(s) together check box.

6-32

NPort 5000 Series

Configuring NPort Administrator

3. On COM Grouping page, you can specify one serial port whose signals will be taken into account by the
COM Group and change the Read/Write status for each serial port.

IP Address Report
When the NPort is used in a dynamic IP environment, users must spend more time with IP managementtasks. NPort serial device servers help out by periodically reporting their IP address to the IP location server,
in case the dynamic IP has changed.
1. Configure the NPort with Dynamic IP settings (DHCP, BOOTP, or DHCP/BOOTP). Assign the remote AutoIP report server’s IP address and UDP port.

6-33

NPort 5000 Series

Configuring NPort Administrator

2. Select the IP Address Report, and click the right mouse button to select Settings.

3. Configure the Local Listen Port to be the same as the NPort’s “Auto report to UDP port” setting.

4. Click Go to start receiving the Auto IP address report from the NPort.

6-34

7
7.

NPort CE Driver Manager for Windows CE

NPort CE Driver Manager for Windows CE applies to the NPort 5000 and NPort IA5000 Series only.
The following topics are covered in this chapter: Overview
 Installing NPort CE Driver Manager
 Using NPort CE Driver Manager

NPort 5000 Series

NPort CE Driver Manager for Windows CE

Overview
ATTENTION
Before installing and the configuring the NPort Administration suite, make sure your user privilege is set assystem administrator.

Installing NPort CE Driver Manager
1. Copy “NPortCab.cab” to Windows CE and start to install driver by double clicking on it.
2. Click on “OK” to complete the installation when the following screen appears.

3. Driver installation is now complete and the “NPortCab.cab” icon disappears from the screen. This is normalwhen installing drivers in Windows CE.

Using NPort CE Driver Manager
After you install NPort CE Driver Manager, you can set up the NPort’s serial ports as remote COM ports foryour Windows CE. Make sure that the serial port(s) on your NPort are set to Real COM mode when mapping
COM ports with NPort CE Driver Manager.
1. Go to Start  Programs  NPort CE Driver Manager.

7-2

NPort 5000 Series

NPort CE Driver Manager for Windows CE

2. Click on the COM Mapping page and then the “Search” button to scan for NPort servers

3. All NPort servers that were located will appear in the NPort CE Driver Manager window. Click on theserver whose COM ports you would like to map to and then select the port index. Note that multiple
selections are allowed.
4. Select the port(s) at the Port Index and then click on the “Add” button to map to the COM Port(s).

5. Return to the COM Setting page. You should be able to see the newly mapped COM Port(s).

7-3NPort 5000 Series

NPort CE Driver Manager for Windows CE

6. To configure the settings for a particular COM Port, select the row of the desired port, and then modify
the setting in the “Settings” panel, as shown below.

Tx Mode“Hi-Performance” is the default for Tx mode. After the driver sends data to the NPort server, the driver
immediately issues a “Tx Empty” response to the program. Under “Classical mode,” the driver will not
send the “Tx Empty” response until after confirmation is received from the NPort server’s serial port.
This causes lower throughput. Classical mode is recommended if you want to ensure that all data is sentout before further processing.
FIFO
If FIFO is disabled, the NPort server will transmit one byte each time the Tx FIFO becomes empty, andan Rx interrupt will be generated for each incoming byte. This will result in a faster response and lower
throughput.

7-4

8
8.

Linux Real TTY Drivers

The following topics are covered in this chapter: Basic Procedures
 Hardware Setup
 Installing Linux Real TTY Driver Files Mapping TTY Ports
 Mapping tty ports automatically Mapping tty ports manually Removing Mapped TTY Ports
 Removing Linux Driver Files

NPort 5000 Series

Linux Real TTY Drivers

Basic Procedures
To map an NPort 5000 serial port to a Linux host’s tty port, follow these instructions:
1. Set up the NPort 5000. After verifying that the IP configuration works and you can access the NPort
5000 (by using ping, telnet, etc.), configure the desired serial port on the NPort 5000 to Real COM
mode.
2. Install the Linux Real tty driver files on the host
3. Map the NPort serial port to the host’s tty port

Hardware Setup
Before proceeding with the software installation, make sure you have completed the hardware installation.
Note that the default IP address for the NPort 5000 is 192.168.127.254.
NOTE

After installing the hardware, you must configure the operating mode of the serial port on your NPort 5000
to Real COM mode.

Installing Linux Real TTY Driver FilesNOTE

The newest information, please refer to readme.txt on Linux Real TTY Driver

1. Obtain the driver file from Moxa’s website, at http://www.moxa.com. You may find it in the Resource
section under your product page.
2. Log in to the console as a super user (root).
3. Execute cd / to go to the root directory.
4. Copy the driver file npreal2xx.tgz to the / directory.
5. Execute tar xvfz npreal2xx.tgz to extract all files into the system.
6. Execute /tmp/moxa/mxinst.
For RedHat AS/ES/WS and Fedora Core1, append an extra argument as follows: # /tmp/moxa/mxinst
SP1
The shell script will install the driver files automatically.
7. After installing the driver, you will be able to see several files in the /usr/lib/npreal2/driver folder:> mxaddsvr (Add Server, mapping tty port)> mxdelsvr (Delete Server, unmapping tty port)> mxloadsvr (Reload Server)> mxmknod (Create device node/tty port)> mxrmnod (Remove device node/tty port)> mxuninst (Remove tty port and driver files)
At this point, you will be ready to map the NPort serial port to the system tty port.

8-2

NPort 5000 Series

Linux Real TTY Drivers

Mapping TTY Ports
Make sure that you set the operation mode of the desired NPort 5000 serial port to Real COM mode. After
logging in as a super user, enter the directory /usr/lib/npreal2/driver and then execute mxaddsvr to map
the target NPort serial port to the host tty ports. The syntax of mxaddsvr is as follows:
mxaddsvr [NPort IP Address] [Total Ports] ([Data port] [Cmd port])
The mxaddsvr command performs the following actions:
1. Modifies npreal2d.cf.
2. Creates tty ports in directory /dev with major & minor number configured in npreal2d.cf.
3. Restarts the driver.

Mapping tty ports automatically
To map tty ports automatically, you may execute mxaddsvr with just the IP address and the number ofports, as in the following example:# cd /usr/lib/npreal2/driver# ./mxaddsvr 192.168.3.4 16
In this example, 16 tty ports will be added, all with IP 192.168.3.4, with data ports from 950 to 965 andcommand ports from 966 to 981.

Mapping tty ports manually
To map tty ports manually, you may execute mxaddsvr and manually specify the data and command ports,
as in the following example:# cd /usr/lib/npreal2/driver# ./mxaddsvr 192.168.3.4 16 4001 966
In this example, 16 tty ports will be added, all with IP 192.168.3.4, with data ports from 4001 to 4016 andcommand ports from 966 to 981.

Removing Mapped TTY Ports
After logging in as root, enter the directory /usr/lib/npreal2/driver and then execute mxdelsvr to delete a
server. The syntax of mxdelsvr is:
mxdelsvr [IP Address]
Example:# cd /usr/lib/npreal2/driver# ./mxdelsvr 192.168.3.4
The following actions are performed when executing mxdelsvr:
1. Modify npreal2d.cf.
2. Remove the relevant tty ports in directory /dev.
3. Restart the driver.
If the IP address is not provided in the command line, the program will list the installed servers and total
ports on the screen. You will need to choose a server from the list for deletion.

8-3

NPort 5000 Series

Linux Real TTY Drivers

Removing Linux Driver Files
A utility is included that will remove all driver files, mapped tty ports, and unload the driver. To do this, you
only need to enter the directory /usr/lib/npreal2/driver, then execute mxuninst to uninstall the driver. This
program will perform the following actions:
1. Unload the driver.
2. Delete all files and directories in /usr/lib/npreal2
3. Delete directory /usr/lib/npreal2
4. Modify the system initializing script file.

8-4

9
9.

The following topics are covered in this chapter: Basic Procedures
92B

 Hardware Setup
93B Installing macOS TTY Driver Files
156B

 Mapping macOS TTY port
94B

 Uninstalling the Driver
95B

macOS TTY Drivers

NPort 5000 Series

macOS TTY Drivers

Basic Procedures
To map an NPort 5000 serial port to a Mac host’s tty port, follow these instructions:
1. Set up the NPort 5000. Verify the IP configuration works by using ping, telnet, etc.
2. Install the Mac driver files on the host.
3. Search or manually input the IP address of the NPort to set up virtual COM port.

Hardware Setup
Before proceeding with the software installation, make sure you have completed the hardware installation.
Please note the default IP address for the NPort 5000 is 192.168.127.254.

Installing macOS TTY Driver Files
NOTE

For the newest information, please refer to readme.txt on Mac TTY Driver. Resources location of productinformation, release note, and readme file: /usr/local/share/NPortConnect

1. Obtain the driver file from Moxa’s website, at http://www.moxa.com. You may find it in the Resource
section under your product page.

9-2

NPort 5000 Series

macOS TTY Drivers

2. Execute the installer package ‘moxa-macOS-tty-drivers-for-macOS-10.12-or-later-v1.0.pkg’.

3. Press Continue when the Introduction window opens to proceed with installation.

4. Press Continue in the Destination Select window

9-3

NPort 5000 Series

macOS TTY Drivers

5. Click Install to start the installation in the default directory, or select an alternative location.

6. Key in your system login username and password to confirm the authentication.

7. The Instaltion window reports the progress of the installation.

9-4

NPort 5000 Series

macOS TTY Drivers

8. Click Close to complete the installation of the NPort macOS tty driver.

Mapping macOS TTY port
1. In the menu bar, a NPortConnect icon should appear after the installation is completed.

2.

Click on the NPortConnect icon and select NPort Mapping for the port mapping function.

3. Click on + Add to enter the tty port setup.

9-5

NPort 5000 Series

macOS TTY Drivers

4. Click Search to find the NPort that is already setup in the Hardware Setup procedure. The Searchfunction is broadcast search to locate all the NPort units that are connected to the same LAN as yourMac. Since the Broadcast Search function searches by MAC address and not IP address, all NPort units
connected to the LAN will be located, regardless of whether or not they are part of the same subnet as
the host. Or, you can input the IP address manually to find the specific NPort.

5. Once search is completed, all the NPort found would appear on the list.

9-6

NPort 5000 Series

macOS TTY Drivers

6. Select the model types that are for the tty port mapping and click OK.

7. NPortConnect would auto assign the tty name and corresponding port number to the IP address of theselected NPort.

8. The tty name and port number are editable. Please note that these changed values are only for mapping
configuration and would not change the values in the NPort settings.

9-7

NPort 5000 Series

macOS TTY Drivers

9. When everything is set, click Apply to save the configuration.

Uninstalling the Driver
Run the following command to uninstall driver:$ sudo bash /usr/local/share/NPortConnect/uninstall.sh

9-8

10
10.

Linux Arm Drivers

The following topics are covered in this chapter: Introduction Porting to the Moxa UC-Series—Arm-based Computer Build binaries on a general Arm platform Cross-compiler and the Real TTY driver Moxa cross-compiling interactive script Manually build the Real TTY driver with a cross-compiler Deploy cross-compiled binary to target
 Porting to Raspberry Pi OS Porting to the Yocto Project on Raspberry Pi
 Prerequisite
 Create a Moxa layer for the Yocto Project Install a Moxa layer into the Yocto Project Deploy the Yocto image in Raspberry Pi
 Start the Real TTY driver in Raspberry Pi Set the default tty mapping to the Real TTY configuration
 (Optional): Use the SSL secure mode for the NPort 6000 Series Troubleshooting

NPort 5000 Series

Linux Arm Drivers

Introduction
This section is intended for programmers who are porting the NPort Real TTY driver to a specified Armbased platform. The following knowledge is recommended before reading the instructions in this guide.
•

Linux kernel programming•

Arm platform compiler•

The Yocto Project documentation•

Moxa UC-Series Manual•

Raspberry Pi Manual

Instructions in this section use examples of porting on the Moxa UC-Series Arm platform and Raspberry Pi.
You can apply the experience of porting Real TTY driver to other platforms.
The Real TTY driver fully supports all modern-day Linux distributions running on x86 environments, and thedriver core is also compatible with the Arm platform. This document will guide you on how to port the RealTTY driver core.
However, some platform-dependent services, such as installer, are not available. You may refer to theplatform’s documentation to fulfill the requirements.

Porting to the Moxa UC-Series—Arm-based
Computer
Build binaries on a general Arm platform
If your platform is powerful and consists of the necessary development tools, the driver can be built on theplatform directly. You can refer to README.TXT of Real TTY Driver to understand the requirement.
The step of building this driver in an Arm environment is the same as in x86 and x64 environments.

# ./mxinst

Cross-compiler and the Real TTY driver
NOTE

To cross-compile on a x86 or x64 Linux host, the target ARM environment's kernel source package andcross compiler toolchain must be installed first.
After installing and configuring the kernel source package and toolchain, you need to compile all of thesource code with the kernel source package and toolchain.
In this example, we install the cross-compiler for the Moxa UC-Series ARM-based computer. You can refer tothe product's manual for further detail.
1. Download the cross-compiler toolchain and the kernel source package webpage under the product page.

$ git clone https://github.com/Moxa-Linux/am335x-linux-4.4
2. Download the toolchain from the product's webpage. The toolchain, which is used by the UC Series, isarm-linux-gnueabihf. It is a script that will install the related packages. Execute the script and follow thesteps to install the Linux cross-compiler tools. You will need the root privilege to install the toolchain andthe kernel source.

# sh arm-linux-gnueabihf_6.3_Build_amd64_<build_date>.sh
If the script shows the notification message: "Please export these environment variables before using
toolchain", enter the following script command:# export PATH=$PATH:/usr/local/arm-linux-gnueabihf-6.3/usr/bin
10-2

NPort 5000 Series

Linux Arm Drivers

3. The kernel source, which is used by the UC Series, is am335x-linux-4.4. You need to configure thesefiles before starting to cross-compile.
Move the kernel source to /moxa/kernel and configure the kernel source.

# mv am335x-linuc-4.4 /moxa/kernel# cd /moxa/kernel# make uc3100_defconfig  Replace the UC 3100 with the UC Series that is being used.
# make modules_prepare
After the abovementioned steps, please follow the processes as set out in Section “Moxa cross-compilinginteractive script,” and Section “Manually build the Real TTY driver with a cross-compiler,” to cross-compile
Moxa's driver for the UC-Series platforms.
The NPort Real TTY driver, which includes the driver module, service daemons, and tools, needs to becompiled. The files are listed as follows:•

npreal2.ko: Real TTY kernel extension•

npreal2d: Daemon of Real COM communication•

npreal2d_redund: Daemon of Redundant COM mode only for the NPort CN2500/CN2600 Series.

•

mxloadsvr: Daemons reloading tool.

•

mxaddsvr: Port-mapping tool.

•

mxdelsvr: Port-unmapping tool.

•

mxsetsec: Secure mode setting tool.

•

mxcfmat: Internal-use only tool.

•

mxmknod: Internal-use only tool.

•

mxrmnod: Internal-use only tool.

•npreal2d.cf: Configuration template.

If it is preferred to build these binaries with automatic script, please refer to Section “Moxa cross-compilinginteractive script.” If you find the build script troublesome, or you prefer to build these binaries manually,please refer to Section “Manually build the Real TTY driver with a cross-compiler.”If you have generated the necessary binaries, please refer to Section “Deploy cross-compiled binary totarget” to deploy to the target platform.

Moxa cross-compiling interactive script
To simplify the processes above, Moxa has provided an interactive script, "mxcc", to cross-compile thesedrivers. You may execute ./mxcc in the Real TTY driver source directory to cross-compile the MOXA driver.
The steps are as follows:# ./mxcc
Enter target device architecture (ARCH) [arm]:
Enter cross-compiler (CROSS_COMPILE) [arm-linux-gnueabihf-]:
Enter target device kernel source directory [/moxa/kernel/]:If you wish to use secure communication with the NPort 6000 Series device, choose[Y] to enable the SSL function.
Note: This function supports Real COM with secure mode in the NPort 6000 Series
only.
Do you want to enable secure mode? [Y/N]: N
The polling mode allows you to open the tty port as nonblocking even if the NPort
is not connected.
Do you want to set the driver to polling mode? [Y/N]: N*******************************************************************MOXA NPort Server Real TTY Driver Series driver cross-compiling finished.

10-3

NPort 5000 Series

Linux Arm Drivers

When cross compiling is successful, the driver is outputted to output folder.
*******************************************************************The binaries will now be generated and placed in the output directory under the source code folder.

Manually build the Real TTY driver with a cross-compiler
To cross-compile npreal2 driver, users can find "Makefile" in the driversource folder, then run it.
# make -C KDIR=<KERNEL_SOURCE> M=<DRIVER_SOURCE> ARCH=<ARCH>
CROSS_COMPILE=<CROSS_COMPILE> KVER_MAJOR=<KERNEL_MAJOR>
KVER_MINOR=<KERNEL_MINOR> modules<KERNEL_SOURCE>: The directory of target kernel source.
<DRIVER_SOURCE>: The directory of the Real TTY driver source.
<ARCH>: The target Arm environment device's CPU architecture. For example, arm, arm64.
<CROSS_COMPILE>: The cross-compile toolchain path. If the toolchain is arm-linux-gnueabihf, and thepath of toolchain exists in your PATH environment variable, please enter "arm-linux-gnueabihf-" here.
<KERNEL_MAJOR>: The target Arm system kernel source's kernel major version. You can use the command"make kernelversion" to get the kernel source's major version.
For example:# make kernelversion
4.4.0|+--- kernel major version<KERNEL_MINOR>: The target Arm system kernel source's kernel minor version. You can use the command"make kernelversion" to get the kernel source's minor version.
For example:$ make kernelversion
4.4.0|+--- kernel minor version
The “make” command would be similar to the following example:# make -C KDIR=/moxa/kernel M=/home/user/moxa/source ARCH=arm CROSS_COMPILE=armlinux-gnueabihf- KVER_MAJOR=4 KVER_MINOR=4 modules
After using the "make" command to cross-compile the drivers, the driver file "npreal2.ko" can be found in
the source code directory.

To cross-compile the daemons and tools, please find "Makefile" in the driversource folder, then run it.
# make <TARGET> CROSS_COMPILE=<CROSS_COMPILE> CC=<C_COMPILE> CFLAGS=<C_FLAGS><TARGET>: Set one of npreal2d, preal2d_redund, and tools.
<CROSS_COMPILE>: The cross-compile toolchain path. If the toolchain is “arm-linux-gnueabihf”, and thepath of toolchain exists in your PATH environment variable, please enter "arm-linux-gnueabihf-" here.
<C_COMPILE>: The C compiler offered by the cross-compiler toolchain. It is "gcc" if the toolchain is "armlinux-gnueabihf-".
<C_FLAGS>: Please specify the preprocessor definitions of Real TTY driver here.
NOTE"-DNO_INIT" must be included or else the cross-compiler may return error messages.

10-4NPort 5000 Series

Linux Arm Drivers

Please see the definitions:•"-DNO_INIT": Disable the startup service.

•"-DOFFLINE_POLLING": Allow tty not to be blocked if the NPort is offline.

e.g.: To build TARGET=npreal2d with a polling feature, please use the following command:# make npreal2d CROSS_COMPILE="arm-linux-gnueabihf-" CC=gcc CFLAGS="-DNO_INIT DOFFLINE_POLLING"
After using the "make" command to cross compile the daemons and tools, the binaries can be found in thesource code directory.

(Optional) Build a secure mode connection to the NPort 6000 Series
When it is required to use a secure mode connection to the NPort 6000 Series, the npreal2d daemon should
be built manually because it needs extra OpenSSL library. This section introduces the secure mode npreal2d
building in addition to the OpenSSL library demonstration. OpenSSL is maintained by www.openssl.org.
Most of the Linux distributions have package management tools, such as apt-get or yum, which help you to
install OpenSSL library and development tools. In an Arm platform, it has to be built from the source code.
You may refer to OpenSSL's user guide to generate the library first. The instructions may vary amongst
different OpenSSL versions, cross-compilers, or building hosts.
The demonstration here illustrates the process that Moxa has built for the library for Real TTY driver and for
the Moxa's lab testing.
1. Create the folders below for OpenSSL products:$ cd ~$ mkdir openssl-lib$ cd openssl-lib$ mkdir openssl-arm$ mkdir ssl-arm
2. Check out the OpenSSL source code. We used a stable branch named OpenSSL-fips-2_0_9. The
command below will download the OpenSSL-fips-2_0_9 source code in the openssl folder.
$ git clone https://github.com/openssl/openssl.git -b OpenSSL-fips-2_0_9
3. The OpenSSL needs to be configured before executing the “make” command.

NOTE

The <openssl-arm> and <ssl-arm> are the folders that were created in the previous instruction. The crosscompiler toolchain "arm-linux-gnueabihf-" is used for the Moxa UC-serial computer.

$ cd openssl$ setarch i386 ./config no-asm no-shared enable-ssl3 enable-ssl3-method enabletls1_3 --prefix=<openssl-arm> --openssldir=<ssl-arm> --cross-compile-prefix=armlinux-gnueabihf4. Next, make and install the OpenSSL:$ make$ make install_sw
Finally, the headers and libraries will be constructed in the following hierarchy:
openssl-arm├── bin├── include└── lib├── engines├── libcrypto.a10-5

NPort 5000 Series

Linux Arm Drivers├── libssl.a└── pkgconfig
The following command is to build npreal2d with secure mode:$ arm-linux-gnueabihf-gcc -c ${CFLAGS} -DNO_INIT -DSSL_ON -DOPENSSL_NO_KRB5
npreal2d.c -I/home/user/openssl-lib/openssl-arm/include
If polling mode is preferred, change “${CFLAGS}” to “-DOFFLINE_POLLING”.

$ arm-linux-gnueabihf-gcc npreal2d.o -o npreal2d -lssl -lcrypto -ldl -lpthread L/home/user/openssl-lib/openssl-arm/lib/ -I/home/user/openssl-lib/opensslarm/include
The npreal2d binary will be generated.
NOTE

Only the npreal2d requires OpenSSL library; other binaries should follow Section “Manually build the RealTTY driver with a cross-compiler”.

NOTE

The secure mode is supported only if the NPort 6000 enables it. Please refer to NPort 6000 Series User
Manual to configure secure mode in the NPort 6000.

Deploy cross-compiled binary to target
You should find following binaries under the output or source code directory:
npreal2.ko
npreal2d
npreal2d_redundmxloadsvr
mxaddsvr
mxdelsvr
mxsetsec
A few necessary tools are available in the source code directory:
mxcfmatmxmknod
mxrmnodnpreal2d.cf
Follow the steps below to deploy to the target Arm platform.
1. Copy the npreal2.ko to the path /lib/modules/`uname -r`/kernel/drivers/char on the Arm platform.
2. Create a folder /usr/lib/npreal2/driver. Copy all the above files to that folder, except npreal2.ko.
3. Boot into the Arm platform and load the driver.

# modprobe npreal2
4. Change the directory to “/usr/lib/npreal2/driver” and run “mxaddsvr, mxdelsvr, or mxsetsec”, the sameas running them on x86 Linux.
5. The module can be unloaded by the following command:# modprobe -r npreal2

10-6

NPort 5000 Series

Linux Arm Drivers

Porting to Raspberry Pi OS
Raspberry Pi OS images are prebuilt by www.raspberrypi.org. You can install the image and start up thesystem. The process to build the Real TTY driver is the same as with x86 Linux. Please refer to README.txt
to check the system requirements.
You may use the rpi-source to install the kernel source packages for a more convenient option. Please referto the official website https://github.com/notro/rpi-source/wiki for more information.
rpi-source is a third-party package offering an integrated kernel resource for building a driver. The Real TTY
is tested with this package to see if it works well. However, the requirements may vary for different
Raspberry Pi OS versions. Please read the manual of the rpi-source to understand the know-how and thelimitations.

Porting to the Yocto Project on Raspberry Pi
Prerequisite
You are expected to be familiar with the Yocto Project. Please refer to https://docs.yoctoproject.org for the
Yocto Project documentation for further understanding. Also, it is encouraged to follow the procedures inthis guide unless you have sufficient knowledge about the Real TTY driver, the Yocto Project, and RaspberryPi.
The dunfell branch (3.1.9) is referred to throughout in this section. Please base it on this version before
reading the instructions in the Yocto Project documentation. You are required to build the Yocto image
successfully with the "Yocto Project Quick Build" document.
In the Yocto Project, you can select the platform you want to build. This guide installs Raspberry Pi BSP
Layer as a demonstration in the following steps:
1. Suppose the YoctoProject is installed in the /home/user/poky folder. Checkout the source code of the
Raspberry Pi BSP Layer.

$ cd /home/user/poky$ git clone https://git.yoctoproject.org/cgit/cgit.cgi/meta-raspberrypi -b
dunfell
2. A meta-raspberrypi folder will be checked out now. Use the following instructions to set up Raspberry Pi
BSP:$ source oe-init-build-env
3. Use a text editor to add the following content to the configuration file './conf/local.conf'.
4. Add the type 'rpi-sdimg' optionally if SD card is preferred
IMAGE_FSTYPES="tar.bz2 ext3 rpi-sdimg"
5. Change the machine name of your target# Use raspberrypi2 for Pi 2 board# Use raspberrypi3 for Pi 3 board
Use raspberrypi3-64 for 64-bit Pi 3 board
MACHINE ?= "raspberrypi3"
6. Use the text editor to add the following content to the configuration file './conf/bblayers.conf'

10-7

NPort 5000 Series

Linux Arm Drivers

7. Add this line '/home/user/poky/meta-raspberrypi' to BBLAYERSBBLAYERS ?= " \/home/user/poky/meta \/home/user/poky/meta-poky \/home/user/poky/meta-yocto-bsp \/home/user/poky/meta-raspberrypi \"8. Build the target core-image-base by following this command and the Raspberry Pi image will be
generated:$ bitbake core-image-baseOnce the above image runs on Raspberry Pi, go to the next section.

Create a Moxa layer for the Yocto ProjectIntroduction
Moxa RealTTY driver is packaged as a layer for Yocto. You can add or remove the driver by modifying the
BBLAYERS attribute in the bblayers.conf file.
The following sections describe how to create the meta-moxa layer for the dunfell branch (3.1.9). Note thatthe process may vary if your target uses a different branch. Please refer to Yocto's manual for complete
information.
An example is also available in the examples folder in the RealTTY driver.
You may follow the subsequent procedures to create the same meta-moxa layer.

Create an empty Moxa Layer
Use the following commands to create an empty layer, named meta-moxa.
1. Initiate the environment first. Suppose the project is installed in /home/user/poky.

$ cd /home/user/poky$ source oe-init-build-env
2. The above commands changed the directory to the built directory. Now, we change the directory back to
the Yocto root directory.

$ cd /home/user/poky
3. Create meta-moxa:
A message appears reminding you to add the layer later.

$ bitbake-layers create-layer meta-moxa
Note: Starting bitbake server.
Add your new layer with “bitbake-layers add-layer meta-moxa.”
The meta-moxa directory will be created in /home/user/poky:$ tree meta-moxa
meta-moxa├── conf│└── layer.conf├── COPYING.MIT├── README└── recipes-example└── example└── example_0.1.bb
The “recipes-example” folder is not necessary; it may be deleted at anytime.

10-8

NPort 5000 Series

Linux Arm Drivers

Create a recipe for the Real TTY kernel
Use the following commands to create a recipe for installing Real TTY kernel to the target platform.
1. Create a directory recipes-kernel in meta-moxa:$ cd /home/user/poky$ mkdir meta-moxa/recipes-kernel
2. The simplest way is to copy and modify from a hello example, which is available in the Yocto sourcecode:$ cp -r ./meta-skeleton/recipes-kernel/hello-mod ./metamoxa/recipes-kernel
The content of meta-moxa now is listed below:$ tree meta-moxa
meta-moxa/├── conf│└── layer.conf├── COPYING.MIT├── README└── recipes-kernel└── hello-mod├── files│├── COPYING│├── hello.c│└── Makefile└── hello-mod_0.1.bb
3. Delete the unnecessary files in hello-mod. Rename the hello-mod.

$ cd ./meta-moxa/recipes-kernel$ rm ./hello-mod/files/COPYING$ rm ./hello-mod/files/hello.c$ mv ./hello-mod/hello-mod_0.1.bb ./hello-mod/realtty-kernel_0.1.bb$ mv ./hello-mod realtty-kernel
4. Extract the Real TTY source code in /moxa. Copy the following files into hello-mod:$ cp /moxa/COPYING-GPL.TXT ./realtty-kernel/files/$ cp /moxa/npreal2.c ./realtty-kernel/files/$ cp /moxa/npreal2.h ./realtty-kernel/files/$ cp /moxa/np_ver.h ./realtty-kernel/files/
5. The content of the recipes-kernel now is listed below:$ tree ././└── realtty-kernel├── files│├── COPYING-GPL.TXT│├── Makefile│├── npreal2.c│├── npreal2.h│└── np_ver.h└── realtty-kernel_0.1.bb

10-9

NPort 5000 Series

Linux Arm Drivers

6. Modify the content of the file “./realtty-kernel/files/Makefile” as follows:
obj-m := npreal2.o
SRC := $(shell pwd)
all:$(MAKE) -C $(KERNEL_SRC) M=$(SRC)
modules_install:$(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules_installclean:
rm -f *.o *~ core .depend .*.cmd *.ko *.mod.c
rm -f Module.markers Module.symvers modules.orderrm -rf .tmp_versions Modules.symvers
7. Modify the content of the file './realtty-kernel/realtty-kernel_0.1.bb' as follows:
DESCRIPTION = "Linux kernel module for NPort"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING-GPL.TXT;md5=3c34afdc3adf82d2448f12715a255122"
inherit module
SRC_URI = " \file://Makefile \
file://npreal2.h \file://np_ver.h \file://npreal2.c \file://COPYING-GPL.TXT \"S = "${WORKDIR}"# The inherit of module.bbclass will automatically name module packages with the prefix"kernelmodule-" as required by the OpenEmbedded Core-build environment.
RPROVIDES_${PN} += "kernel-module-npreal2"

Create a recipe for the Real TTY utilities
Similar to creating a realtty-kernel recipe, create a recipe for facilitating the NPort management.
1. Create directory below in meta-moxa:$ cd /home/user/poky$ mkdir -p ./meta-moxa/recipes-utility/realtty-tools/files
2. Copy the Moxa driver which can be downloaded from the Moxa product web page directly. The driver’s
name format is npreal2_vM.N_BUILD-DATE.tgz.

$ cp /home/user/download/npreal2_vM.N_BUILD_DATE.tgz ./meta-moxa/recipesutility/realtty-tools/files/
3. Create a bb file ./meta-moxa/recipes-utility/realtty-tools/realtty-tools.bb,
which has the following content:
DESCRIPTION = "Service utilities for NPort"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://moxa//COPYING-GPL.TXT;md5=3c34afdc3adf82d2448f12715a255122"# OpenSSL is required for secured mode
DEPENDS = "openssl"# Specify the compressed driver file for SRC_URI
SRC_URI = "file://npreal2_vM.N_BUILD-DATE.tgz"
S = "${WORKDIR}"

10-10

NPort 5000 Series

Linux Arm Drivers# Specify the destination of RealTTY driver
DEST_DIR = "${D}${libdir}/npreal2/driver"
FILES_${PN} += "${libdir}/npreal2/driver/*"# If it is required to connect the NPort with the SSL secure mode (secure mode is available in the NPort
6000 Series only), unremark the following line:#SSL_MODE = "yes"do_compile () {${CC} -o mxaddsvr ${S}/moxa/mxaddsvr.c ${S}/moxa/misc.c${CC} -o mxdelsvr ${S}/moxa/mxdelsvr.c ${S}/moxa/misc.c${CC} -o mxcfmat ${S}/moxa/mxcfmat.c${CC} -o mxloadsvr -DNO_INIT ${S}/moxa/mxloadsvr.c ${S}/moxa/misc.c${CC} -o mxsetsec -DNO_INIT ${S}/moxa/mxsetsec.c ${S}/moxa/misc.c
if [ ${SSL_MODE} = "yes" ], then${CC} -o npreal2d_redund -lssl -lpthread -DSSL_ON -DOPENSSL_NO_KRB5 ${S}/moxa/redund_main.c${S}/moxa/redund.c${CC} -o npreal2d -lssl -DSSL_ON -DOPENSSL_NO_KRB5 ${S}/moxa/npreal2d.cor else${CC} -o npreal2d_redund -lpthread ${S}/moxa/redund_main.c ${S}/moxa/redund.c${CC} -o npreal2d ${S}/moxa/npreal2d.cfi}
do_install () {install -m 0755 -d ${DEST_DIR}
install -m 0755 ${S}/mxaddsvr ${DEST_DIR}
install -m 0755 ${S}/mxdelsvr ${DEST_DIR}
install -m 0755 ${S}/mxcfmat ${DEST_DIR}
install -m 0755 ${S}/mxloadsvr ${DEST_DIR}
install -m 0755 ${S}/mxsetsec ${DEST_DIR}
install -m 0755 ${S}/moxa/mxmknod ${DEST_DIR}
install -m 0755 ${S}/moxa/mxrmnod ${DEST_DIR}
install -m 0755 ${S}/npreal2d ${DEST_DIR}
install -m 0755 ${S}/npreal2d_redund ${DEST_DIR}
install -m 0755 ${S}/moxa/npreal2d.cf ${DEST_DIR}}# Ignore GNU_HASH (did not pass LDFLAGS)INSANE_SKIP_${PN} = "ldflags"
NOTE

The file name of SRC_URI must be the same as it was copied in the last step.

4. The content of meta-moxa is listed as below:$ tree meta-moxa
meta-moxa├── conf│└── layer.conf├── COPYING.MIT├── README├── recipes-kernel│└── realtty-kernel│├── files││├── COPYING-GPL.TXT││├── Makefile

10-11

NPort 5000 Series

Linux Arm Drivers││├── npreal2.c││├── npreal2.h││└── np_ver.h│└── realtty-kernel_0.1.bb└── recipes-utility└── realtty-tools├── files│└── npreal2_vM.N_BUILD-DATE.tgz└── realtty-tools.bb

Install a Moxa layer into the Yocto Project
1. Install the Moxa layer and Real TTY recipes into the Yocto Project.

$ cd /home/user/poky$ source oe-init-build-env
2. Use a text editor to add the following content to the configuration file:'./conf/bblayers.conf':
3. Add this line "/home/user/poky/meta-moxa' to BBLAYERSBBLAYERS ?= " \/home/user/poky/meta \/home/user/poky/meta-poky \/home/user/poky/meta-yocto-bsp \/home/user/poky/meta-raspberrypi \/home/user/poky/meta-moxa \"4. Use a text editor to add the following content to the configuration file:'./conf/local.conf':
IMAGE_INSTALL_append += " realtty-tools realtty-kernel"

Deploy the Yocto image in Raspberry Pi
Build the image with the Real TTY driver:$ cd /home/user/poky$ source oe-init-build-env$ bitbake core-image-base
An SD-card format image (.rpi-sdimg) is generated under/home/user/poky/build/tmp/deploy/images/raspberrypi3. It is suggested to use the Raspberry Pi official tool‘rpi-imager’ to burn the image into the SD-card and then boot it into the Linux kernel in Raspberry Pi.

Start the Real TTY driver in Raspberry Pi
After logging into the system, start the Real TTY driverroot@raspberrypi3:~# modprobe npreal2[

39.906812] npreal2: loading out-of-tree module taints kernel.

[

39.913379] MOXA Async/NPort server family Real TTY driver ttymajor 33 calloutmajor 38 verbose 1(Ver5.1)

10-12

NPort 5000 Series

Linux Arm Drivers

For example, we illustrate how to add a 4-port NPort with the IP address: 192.168.127.254
root@raspberrypi3:~# cd /usr/lib/npreal2/driverroot@raspberrypi3:/usr/lib/npreal2/driver# ./mxaddsvr 192.168.127.254 4
Adding Server...
ttyr00, cur00
ttyr01, cur01
ttyr02, cur02
ttyr03, cur03
Added Real Com IP : 192.168.127.254
Now the device node /dev/ttyr00 ~ /dev/ttyr03 is created for tty port use.

Set the default tty mapping to the Real TTY configuration
You may use the Real TTY configuration file, npreal2d.cf that we set up in 4.5, as the default settings when
deploying to a new Raspberry Pi image.
1. Copy and replace npreal2d.cf in the NPort Real TTY driver folder'/moxa' extracted in the build system.
2. tar -zxvf new_npreal2_driver.tgz /moxa
3. Go back to “Create a recipe for the Real TTY utilities”, change the name ofnpreal2_vM.N_BUILD_DATE.tgz with the file name in step 2.)
4. Rebuild the image.

(Optional): Use the SSL secure mode for the NPort 6000
Series
You may use the NPort secure mode (SSL) to connect between Raspberry Pi and the NPort 6000 Series
securely. The following instructions are for this purpose:
1. Open the realtty-tools bb file with a text editor.
(./meta-moxa/recipes-utility/realtty-tools/realtty-tools.bb)
2. If it is required to connect the NPort with the SSL secure mode (secure mode is available in the NPort
6000 Series only), unremark the following line: SSL_MODE = "yes"3. Repeat “Deploy the Yocto image in Raspberry Pi” and “Start the Real TTY driver in Raspberry Pi” again,
executing the following command to enable the serial port after the

NPort mapping. Remember toenable secure mode in the NPort.

root@raspberrypi3:/usr/lib/npreal2/driver# ./mxsetsec

Troubleshooting
If the following error is encountered during the building of the image,
ERROR: Task (/home/user/poky/meta/recipes-devtools/binutils/binutils_2.34.bb:do_compile) failed withexit code '1'
It is suggested to compile binutils first, then compile the entire image:$ bitbake binutils -c do_compile$ bitbake core-image-base

10-13

11
11.

The following topics are covered in this chapter: Overview
 What is IP Serial Library?
 Why Use IP Serial Library?
 How to Install IP Serial Library IP Serial LIB Function Groups
 Example Program

IP Serial LIB

NPort 5000 Series

IP Serial LIB

Overview
What is IP Serial Library?
IP Serial Library is a Windows library with frequently used serial command sets and subroutines. IP Serial
Library is designed to reduce the complexity and poor efficiency of serial communication over TCP/IP. For
example, Telnet can only transfer data, but it can’t monitor or configure the serial line’s parameters.

Why Use IP Serial Library?
For programmers familiar with serial communication, IP Serial Library provides well-designed function callsthat have the same style as Moxa’s PComm Library.
IP Serial Library is amazingly simple and easy to understand. By including it in your VB, C, or Delphi
programming environment, you can program your own TCP/IP application with the ability to control serial
communication parameters.
The NPort serial device server uses 2 TCP ports for communication between the NPort and host computer’s
Real COM driver. The NPort uses a data port and command port to provide pure data transfer without
decode and encode. Compared to using only one TCP port to control serial communication (such as RFC2217), IP Serial Library uses a command port to communicate with the NPort from the user’s program. IP
Serial Library not only runs with excellent efficiency but also runs without any decode or encode problems.

How to Install IP Serial Library
IP Serial Lib comes with the NPort Administration Suite. Refer to the IPSerial directory for more detail about
the function definitions.

11-2

NPort 5000 Series

IP Serial LIB

IP Serial LIB Function Groups
Server Control

Port Control

Input/Output Data

Port Status

Miscellaneous

nsio_init

nsio_open

nsio_read

nsio_lstatus

nsio_breaknsio_end

nsio_closensio_SetReadTimeouts

nsio_data_status

nsio_break_on

nsio_resetserver

nsio_ioctl

nsio_write

nsio_break_off

nsio_checkalive

nsio_flowctrl

nsio_SetWriteTimeouts

nsio_breakcountInquirynsio_DTR
nsio_RTS
nsio_lctrl
nsio_baud
nsio_resetport

Example Programchar NPort 5100A-Nip=”192.168.1.10”;
char buffer[255];/*data buffer, 255 chars */int portid;/* port handle */int port = 1;/*1st port */nsio_init();portid = nsio_open(NPort 5100Aip, port);

nsio_ioctl(portid, B9600, (BIT_8 | STOP_1 |P_NONE) );sleep(1000);/*initial IP Serial Library *//*1st port, NPort 5100A IP=192.168.1.10*//*set 9600, N81 *//* wait for 1000 ms for data */nsio_read(port, buffer, 200);/* read 200 bytes from port 1 */nsio_close(portid);/* close this serial port */nsio_end();/* close IP Serial Library */

11-3

12
12.

Android API Instructions

The following topics are covered in this chapter: Overview
 How to Start MxNPortAPI
 MxNPortAPI Function Groups
 Example ProgramNPort 5000 Series

Android API Instructions

Overview
If you want to remote control your serial devices on an Android platform, then the MxNPortAPI is a simple
application programming tool that you can use.The MxNPortAPI helps programmers develop an Android
application to access the device server by TCP/IP.
The MxNPortAPI provides frequently used serial command sets like port control, input/output, etc., and thestyle of developed Android application is similiar to MOXA Driver Manager. For more details of the provided
functions, please refer the “MxNPortAPI Function Groups” section.
This MxNPortAPI is layered between the Android application and Android network manager framework. This
Android library is compatible with Java 1.7, Android 3.1 (Honeycomb - API version 12), and later versions.

How to Start MxNPortAPI
You can download the MxNPortAPI from Moxa’s website at http://www.moxa.com, and develop theapplication program in popular Oss, such as Windows, Linux, or Mac. (You may find it in the Resource
section under your product page.)(You can refer the Android studio website to see the system requirements for development environment:
https://developer.android.com/studio/index.html?hl=zh-tw#Requirements).

12-2

NPort 5000 Series

Android API Instructions

To start your application program, please unzip the MxNPortAPI file and refer to the index (.html) under the
Help directory.

For more details about the installation, please refer to the Overview section.

MxNPortAPI Function Groups
The supported functions in this API are listed below:
Port Control

Input/Output

Port Status Inquiry

Miscellaneous

open

read

getBaud

setBreak

close

write

getFlowCtrl

setIoctlMode

getIoctlMode

setFlowCtrl

getLineStatus

setBaud

getModemStatus

setRTS

getOQueue

setDTR
flush

12-3

NPort 5000 Series

Android API Instructions

Example Program
To make sure this API is workable with the device server on an Android platform, see the example program
below:
Thread thread = new Thread(){@Override
public void run() {/* Enumerate and initialize NPorts on system */List<MxNPort> NPortList = MxNPortService.getNPortInfoList();if(NPortList!=null){MxNPort.IoctlMode mode = new MxNPort.IoctlMode();mode.baudRate = 38400;
mode.dataBits = MxNPort.DATA_BITS_8;
mode.parity = MxNPort.PARITY_NONE;
mode.stopBits = MxNPort.STOP_BITS_1;
MxNPort mxNPort = NPortList.get(0); /* Get first NPort device */try {byte[] buf = {'H','e','l','l','o',' ','W','o','r','l','d'};mxNPort.open(); /*open port*/
mxNPort.setIoctlMode(mode); /*serial parameters setting*/
mxNPort.write(buf, buf.length); /*write data*/
mxNPort.close(); /*close port*/} catch (MxException e){/*Error handling*/}}}};
thread.start();

12-4

13
13.

Introduction to LCM Display

Typically, you will use either NPort Administrator or the web console to configure the NPort 5600-8-DT
series (standard temperature models), NPort 5600 series (standard temperature models) and
NPort 5410/5430 series (standard temperature models). These are not the only options forconfiguration. For basic onsite configuration, you can use the LCM console built into the device server,
without requiring a connection to the network or a laptop.
In this chapter, we will introduce the basic operation and menu options of LCM display.
The following topics are covered in this chapter: Basic Operation
 Detailed Menu Options

NPort 5000 Series

Introduction to LCM Display

Basic Operation
If the NPort is working properly, the LCM panel will display a green color. The red Ready LED will also lightup, indicating that the NPort is receiving power. After the red Ready LED turns to green, you will see adisplay similar to:

N
1

P
9

5
2

4
.

1
1

0
6

_
8

6
.

1
1

4
2

0
7

5
.

2

5

4

This is where•

NP5410is the NPort’s name

•

61405

is the NPort’s serial number•

192.168.127.254

is the NPort’s IP address

There are four push buttons on the NPort’s nameplate. Going from left to right, the buttons are:
ButtonName

Actionmenu

menu

activates the main menu, or returns to a lower level

up cursor

scrolls up through a list of items shown on the LCM panel’s second line

down cursor

scrolls down through a list of items shown on the LCM panel’s second lineselselectselects the option listed on the LCM panel’s second line

The buttons are manipulated in a manner similar to the way a modern cellular phone operates. As you movethrough the various functions and setting options, note that the top line shows the current menu or
submenu name, and the bottom line shows the submenu name or menu item which is activated by pressing
the SEL button.

Detailed Menu Options
The best way to explain all of the NPort’s LCM functions is to refer to the tree graph shown in the next page.
There are three main levels—1, 2, and 3—with each level represented by a separate column. The first thing
to remember is that the menu button is used to move back and forth between the LCM panel’s default
screen, and main menu screen:

N
1

P
9

5
2

4
.

1
1

0
6

_
8

6
.

1
1

4
2

0
7

5
.

2

5

M
S

a
e

i
r

n
v

e

M
r

e

n
s

U
e

t

t

i

n

g

4

↓

In addition, you only need to remember to:•

Use the SEL button to move up one level (i.e., left to right on the tree graph)•

Use the MENU button to move down one level (i.e., right to left on the tree graph)•

Use the cursor keys,  and , to scroll between the various options within a level (i.e., up and down on
the tree graph).

As you use the buttons to operate the LCM display, you will notice that with very few exceptions, moving up
one level causes the bottom line of the display to move to the top line of the display. You will also noticethat the bottom three options in level 2, and all of the options in level 3 have either a C or D attached. The
meaning is as follows:•

C = configurable
I.e., you are allowed to change the setting of this option

13-2

NPort 5000 Series•

Introduction to LCM Display

D = display only
I.e., the setting for this option is displayed, but it cannot be changed (This does NOT necessarily meanthat the number does not change; only that you cannot change it)

Main Menu
Server setting

Serial numberD

Server nameC

Firmware ver

D

Model nameD

Network

Ethernet statusD

setting

MAC addressD

IP config

C

IP address

C

NetmaskC

GatewayC

DNS server 1

C

Serial set

Op Mode set

DNS server 2

C

Select port

C

Baudrate

C

Data bitC

Stop bitC

ParityC

Flow control

C

Tx/Rx fifo

C

InterfaceC

Tx/Rx bytes

DLine status

D

Select port

C

Select mode

C[mode]
Real COMTCP server

TCP client

UDP svr/cli

Alive timeout

Alive timeout

Alive timeout

Delimiter 1

C

Max connection

Inact. time

Inact. time

Delimiter 2

C

Delimiter 1

Max connection

Delimiter 1

Force Tx

C

Delimiter 2

Delimiter 1

Delimiter 2

Dest IP start-1

C

Force Tx

Delimiter 2

Force Tx

Dest IP end-1

C

Force Tx

Dest IP-1

Dest port-1

C

Local TCP port

TCP port-1

Dest IP start-2

C

Command port

Dest IP-2

Dest IP end-2

C

TCP port-2

Dest port-2

C

Dest IP-3

Dest IP start-3

C

TCP port-3

Dest IP end-3

C

Dest IP-4

Dest port-3

C

TCP port-4

Dest IP start-4

C

TCP connect

Dest IP end-4

C

Dest port-4

C

Local port
ConsoleC

Web consoleC

Telnet console

C

Ping

C

Save/Restart

C

13-3

NPort 5000 Series

Introduction to LCM Display

The part of the LCM operation that still requires some explanation is how to edit the configurable options. In
fact, you will only encounter two types of configurable options.
The first type involves entering numbers, such as IP addresses, Netmasks, etc. In this case, you change thenumber one digit at a time. The up cursor (△) is used to decrease the highlighted digit, the down cursor(▽) is used to increase the highlighted digit, and the SEL button is used to move to the next digit. When thelast digit has been changed, pressing SEL simply enters the number into the NPort’s memory. The second
type of configurable option is when there are only a small number of options from which to choose(although only one option will be visible at a time). Consider the PARITY attribute under PORT SETTING as
an example. Follow the tree graph to arrive at the following PARITY screen. The first option, NONE, isdisplayed, with a down arrow all the way to the right. This is an indication that there are other options fromwhich to choose.

P
N

a
o

r
n

i
e

t

P
O

a
d

r
d

i

t

P
E

a
v

r
e

i
n

t

P
M

a
a

r
r

i
k

t

P
S

a
p

r
a

i
c

t
E

Y

↓

Press the down cursor button once to see Odd as the second option.

Y↑↓

Press the down cursor button again to see Even as the third option.

Y↑↓

Press the down cursor button again to see Space as the fourth option.

Y↑↓

Press the down cursor button yet again to see the last option, Space.

Y↑

To choose the desired option, press the SEL button when the option is showing on the screen.

13-4

A
A.

Pinouts and Cable Wiring

The following topics are covered in this appendix:
 Port Pinout Diagrams
 Ethernet Port Pinouts
 Serial Port Pinouts
 Cable Wiring Diagrams
 Ethernet Cables
 Serial Cables

NPort 5000 Series

Pinouts and Cable Wiring

Port Pinout Diagrams
Ethernet Port Pinouts
Ethernet RJ45

Ethernet M12 (For NPort 5000AI-M12 only)

Pin

Signal

1

Tx+

2

Tx-

3

Rx+

6

Rx-

Ethernet M12:

Housing: shield
Power M12:
PIN

Description

1

Input V+2

Not assigned

3

Input V-4

Not assigned

5Function groundDB9 Male RS-232 Port Pinouts

Serial Port Pinouts
Pin Assignment

Applicable Products

Pin

RS-232

NPort 5110, NPort 5150,

1

DCD

NPort 5110A, NPort

2

RxD

5150A, NPort P5150A,

3

TxD

NPort_5000AI-M12,

4

DTR

5

GND

6

DSR

7

RTS

8

CTS

9

–

NPort 5210A, NPort
5250A, NPort 5410,
NPort 5410/5450/5450I,
NPort 5610-8-DT, 56508-DT, 5650I-8-DT,
5610-8-DTL/DTL-T,
5650-8-DTL/DTL-T, and5650I-8-DTL/DTL-T,
NPort IA5150/5250
NPort IA5150A/5250A

A-2

NPort 5000 Series
Pin
DB9 Male RS-422/485 Port Pinouts

NPort 5130, NPort 5150,
NPort 5130A, NPort

1

TxD-(A)–

5150A, NPort P5150A,

2

TxD+(B)–

NPort_5000AI-M12,

3

RxD+(B)

Data+(B)

NPort 5250A, NPort
5450/5450I, 5650-8-DT,

4RxD-(A)

Data-(A)

5

GND

GND

6

–

–

7

–

–

8

–

–

5650I-8-DT, 5650-8DTL/DTL-T, and5650I-8-DTL/DTL-T,
NPort IA5150/5250,
NPort IA5250A

signals.

Pinouts

8-pin RJ45 RS-232 Port2-wire RS-485

Note: The NPort IA5150A Series’s DB9 ports only support RS-232
Pin

RS-232

NPort 5210/5210I,

1

DSR

NPort 5610-8-DT-J,

2

RTS

NPort 5610, NPort 5650-

3

GND

8-DT-J

4

TxD

5

RxD

6

DCD

7

CTS

8

DTR

Pin

Pinouts

8-pin RJ45 RS-422/485 Port

RS-422 / 4-wire
RS-485

Port Pinouts

8-pin RJ45 RS-232/422/ 485

Pinouts and Cable Wiring

RS-422

2-wire RS-

4-wire RS-485

485

1

–

–

2

–

–

3

TxD+

–

4

TxD-

–

5

RxD-

Data-

6

RxD+

Data+

7

GND

GND

8

–

–

Pin

RS-232

1
2

NPort 5630

RS-422

2-wire RS-

NPort 5650, NPort 5650-

4-wire RS-485

485

8-DT-J

DSR

–

–

RTS

TxD+

–

3

GND

GND

GND

4

TxD

TxD-

–

5

RxD

RxD+

Data+

6

DCD

RxD-

Data-

7

CTS

–

–

8

DTR

–

–

A-3

NPort 5000 Series

Pinouts and Cable Wiring

Terminal Block RS-232 & RS-422/485 Pinouts

NPort 5230

IA5150, NPort
IA5150A

Pinouts

Terminal Block RS-422/ 485 Port

NPort 5230A, NPortPin

2-wire RS-485

RS-422, 4-wire RS-485

1–

TxD+(B)2–

TxD-(A)3

Data+(B)

RxD+(B)

4

Data-(A)RxD-(A)

5

GND

GND

422/485 Pinouts

Terminal Block RS-

NPort 5430/5430I

Console Port Pinouts

RJ45 Connector

Pin

RS-232

Applies only to DT

1

DSR

models.

2

RTS

3

GND

4

TxD

5

RxD

6

DCD

7

CTS

8

DTR

A-4

Pinouts and Cable Wiring
NPort IA5150/5250

Output Pinouts

Power Input and Relay

NPort 5000 Series

V2+

V2-

V1+

V1-

Shielded

DC

DC

Relay

Relay

DC

DC

Ground

Power

Power

outputoutput

Power

Power

input 1

input 1

input 2

input 2

Pinouts

Power Input and Relay Output

NPort IA5000A

PWR1

PWR2

RELAY

Shielded

DC Power

DC Power

Normal Open/Close, Relay

Ground

Input

Input

outputCable Wiring Diagrams
Ethernet Cables

A-5

NPort 5000 Series

Pinouts and Cable Wiring

Serial Cables

Female DB9 to Male DB25 (RS-232)

Female DB9 to Male DB9 (RS-232)

Serial Cable Wiring Diagrams

A-6

8-pin RJ45 to DB25 Male (RS-232)

8-pin RJ45 to DB25 Female (RS-232)

8-pin RJ45 to DB9 Male (RS-232)
232)

8-pin RJ45 to DB9 Female (RS-NPort 5000 Series
Pinouts and Cable Wiring

NPort 5210, NPort 5610/5650 (RS-232)

A-7

422/4-wire RS-485)

422/4-wire RS-485)

422/4-wire RS-485)

8-pin RJ45 to DB25 Female (RS- 8-pin RJ45 to DB9 Male (RS-8-pin RJ45 to DB25 Male (RS422/4-wire RS-485)

8-pin RJ45 to DB9 Female (RS-NPort 5000 Series
Pinouts and Cable Wiring

NPort 5630 (RS-422/4-wire RS-485)

A-8

8-pin RJ45 to DB9 Male
(2-wire RS-485)

wire RS-485)(2-wire RS-485)

8-pin RJ45 to DB25 Male (2- 8-pin RJ45 to DB25 Female(2-wire RS-485)

8-pin RJ45 to DB9 Female

NPort 5000 Series
Pinouts and Cable Wiring

NPort 5630 (2-wire RS-485)

A-9

(RS-422/4-wire RS-485)

422/4-wire RS-485)

422/4-wire RS-485)

422/4-wire RS-485)

8-pin RJ45 to DB25 Female (RS- 8-pin RJ45 to DB9 Male (RS- 8-pin RJ45 to DB9 Female

8-pin RJ45 to DB25 Male (RS-NPort 5000 Series
Pinouts and Cable Wiring

NPort 5650 (RS-422/4-wire RS-485)

A-10

8-pin RJ45 to DB9 Male
(2-wire RS-485)

wire RS-485)(2-wire RS-485)

8-pin RJ45 to DB25 Male (2- 8-pin RJ45 to DB25 Female(2-wire RS-485)

8-pin RJ45 to DB9 Female

NPort 5000 Series
Pinouts and Cable Wiring

NPort 5650 (2-wire RS-485)

A-11

NPort 5000 Series

Pinouts and Cable Wiring

Bable Wiring for NPort 5600-8-DT/DTL Series
Serial Cable Wiring Diagrams

Serial Device
RJ45

DB9(F)

DB9(M)

DB25(M)

DB25(F)

DSR

1

6

4

6

20

RTS

2

7

8

4

5

CTS

GND

3

5

5

7

7

GND

TxD

4

3

2

2

3

RxD

RxD

5

2

3

3

2

TxD
DCD

6

1

1

8

8

CTS

7

8

7

5

4

RTS

DTR

8

4

6

20

6

DSR

Serial Device
RJ45

DB9(F)

DB9(M)

DB25(M)

DB25(F)

TxD+

2

2

3

3

2

GND

3

5

5

7

7

GND

TxD-

4

1

1

8

8

RxD-

Cables

RxD+

RxD+

5

3

2

2

3

TxD+

RxD-

6

4

6

20

6

TxD-

NPort
2-wire RS-485

DTR

DCD

NPort

Cables

RS-422, 4-wire RS-485

RS-232 Cables

NPort

Serial Device
RJ45

DB9(F)

DB9(M)

DB25(M)

DB25(F)

GND

3

5

5

7

7

GND

Data+

5

3

2

2

3

Data+

Data-

6

4

6

20

6

Data-

A-12

NPort 5000 Series

Pinouts and Cable Wiring

Pin Assignments for DB9 and DB25 Connectors
Pin Assignments for DB9 Male and Female Connectors
DB9 Male Connector

DB9 Female Connector

Pin Assignments for DB25 Male and Female Connectors
DB25 Male Connector

DB25 Female Connector

A-13

B
B.

Adjustable Pull High/low Resistors for
the RS-485 Port

In some critical environments, you may need to add termination resistors to prevent the reflection of serial
signals. When using termination resistors, it is important to set the pull high/low resistors correctly so thatthe electrical signal is not corrupted. Since there is no resistor value that works for every environment, DIP
switches or Jumpers are used to set the pull high/low resistor values for each RS-485 port.

ATTENTION
Do not use the 1 kΩ setting on NPorts when using the RS-232 interface. Doing so will degrade the RS-232
signals and shorten the maximum allowed communication distance.

NPort 5130/5150 Series (Jumpers)
To set a termination resistor to 150 kΩ, make sure that the two jumpers (JP3 and JP4) assigned to theserial port are not shorted by jumper caps. This is the default setting.
To set a termination resistor to 1 kΩ, make sure that the two jumpers (JP3 and JP4) assigned to theserial port are shorted by jumper caps.

NPort 5000 Series

Adjustable Pull High/low Resistors for the RS-485 Port

NPort 5130A/5150A (Jumpers)
To set a pull high/low resistor to 150 kΩ, make sure that the two jumpers (JP3 and JP4) assigned tothe serial port are not shorted by jumper caps. This is the default setting.
To set a pull high/low resistor to 1 kΩ, make sure that the two jumpers (JP3 and JP4) assigned to theserial port are shorted by jumper caps.

NPort P5150A (DIP Switches)

SW

1

2

3

Pull-highPull-low

Terminator

resistor

resistor

ON

1 kΩ

1 kΩ

120 Ω

OFF

150 kΩ*

150 kΩ*–** Default

B-2

NPort 5000 Series

Adjustable Pull High/low Resistors for the RS-485 Port

NPort 5450 Models (DIP Switches)
To set the pull high/low resistors to 150 KΩ, make sure both of the assigned DIP switches are in the
OFF position. This is the default setting.
To set the pull high/low resistors to 1 KΩ, make sure both of the assigned DIP switches are in the ON
position.
Pull high/low resistors for the RS-485 Port1

2

3

Pull High

Pull Low

Terminator

ON

1 KΩ

1 KΩ

120 Ω

OFF

150 KΩ

150 KΩ–

SW

Default

NPort 5630/5650 Series (DIP Switches)
Pull high/low resistors for the RS-485 PortSW

Default

1

2

3

Pull High

Pull Low

Terminator

ON

1 KΩ

1 KΩ

120 Ω

OFF

150 KΩ

150 KΩ–

To set the pull high/low resistors to 150 KΩ, make sure both of the assigned DIP switches are in the
OFF position. This is the default setting.

B-3

NPort 5000 Series

Adjustable Pull High/low Resistors for the RS-485 Port

To set the pull high/low resistors to 1 KΩ, make sure both of the assigned DIP switches are in the ON
position.

NPort 5650-8-DT/DTL Series (DIP Switches)•

NPort 5650-8-DT: Use the DIP switches on the bottom panel to configure each device port’s pull
high/low resistors. You will need to unscrew the DIP switch cover to access the DIP switches.

•

NPort 5650-8-DTL: Remove the top cover to access the DIP switches used to configure each device
port’s pull high/low resistors (note that SW4 is reserved for future use).

The pull high/low resistor values for each device port are set as follows:SW

Default

1

2

3

Pull High

Pull Low

Terminator

ON

1 KΩ

1 KΩ

120 Ω

OFF

150 KΩ

150 KΩ–

B-4

NPort 5000 Series

Adjustable Pull High/low Resistors for the RS-485 Port

NPort 5230A/5250A (DIP Switches)

SW

1

2

Pull-high resistor

Pull-low resistor

3
Terminator

ON

1 KΩ

1 KΩ

120 Ω

OFF

150 KΩ*

150 KΩ*–** Default

NPort IA5000 Series (DIP Switches)
NPort IA5150 Models

NPort IA5250 Models

The DIP switches are located beneath the DIP switch panel on the side of the unit.
To add a 120 Ω termination resistor, set switch 3 to ON; set switch 3 to OFF (the default setting) todisable the termination resistor.
To set the pull high/low resistors to 150 KΩ, set switches 1 and 2 to OFF. This is the default setting.
To set the pull high/low resistors to 1 KΩ, set switches 1 and 2 to ON.
Switch 4 on the port’s assigned DIP switch is reserved.

B-5

NPort 5000 Series

Adjustable Pull High/low Resistors for the RS-485 Port

When setting up your RS-485 and RS-422 networks, you should use termination resistors to prevent signal
reflections. The NPort IA5000 Series has built-in pull high/low resistors and terminators, so you can consider
to enable them when has a communication problem by the default settings with RS-485 and RS-422
networks. The following figures illustrate how to properly configure termination for a 2-wire RS-422/RS485
network, and a 4-wire RS485 network. You will usually only need to install termination resistors (typically120 Ω) on the first and last devices on your network.
Setting up terminators for a 2-wire RS422/RS485 network

Setting up terminators for a 4-wire RS485 network

B-6

NPort 5000 Series

Adjustable Pull High/low Resistors for the RS-485 Port

NPort IA5000A Series (DIP Switches)
The DIP switches are located on the PCB board; you will need to take off the covers to access them. To set
the pull-high resistor to 150 KΩ, flip DIP1 to “OFF,” and then set the pull-low resistor to 150 KΩ, and thenflip DIP2 to “OFF.” To set the pull-high resistor to 1 KΩ, flip DIP1 to “ON,” and then set the pull-low resistor
to 1 KΩ, and then flip DIP2 to “ON.” Make sure that DIP3 is “ON” to enable the 120Ω terminator. The
default settings for the pull-high and pull-low resistors, and the terminators are all at “OFF.”
NPort IA5150A/IA5250A Series

NPort IA5450A Series
Please follow the instructions below to change the pull-high/low DIP switch settings.
Step 1: Remove the case

Step 2: Remove the first tier

B-7

NPort 5000 Series

Adjustable Pull High/low Resistors for the RS-485 Port

Step 3: Remove the 4 pillars

Step 4: Pull-high/low DIP switches are on the backside of the board

From right to left, the DIP switches are used for port 1 to port 4. SW1 is used for port 1, SW2 for port 2,
SW3 for port 3, and SW4 for port 4. The functions of DIP1, DIP2, and DIP3 are shown in the following table(DIP4 is reserved).
Pull-high/low Resistors for the RS-485 PortSW

Default

DIP1

DIP2

DIP3

Pull-highPull-low

Terminator

ON

1 kΩ

1 kΩ

120 kΩ

OFF

150 kΩ

150 kΩ

–

B-8

C
C.

Well-Known Port Numbers

In this appendix, which is included for your reference, we provide a list of well-known port numbers that
may cause network problems if you set the NPort to one of these ports. Refer to RFC 1700 for well-known
port numbers, or refer to the following introduction from the IANA.
The port numbers are divided into three ranges: the well-known Ports, the Registered Ports, and the
Dynamic and/or Private Ports.
•

The Well-Known Ports range from 0 through 1023.

•

The Registered Ports range from 1024 through 49151.

•

The Dynamic and/or Private Ports range from 49152 through 65535.

The well-known ports are assigned by the IANA, and on most systems, can only be used by systemprocesses or by programs executed by privileged users. The following table shows famous port numbers
among the well-known port numbers. For more details, please visit the IANA website at
http://www.iana.org/assignments/port-numbers.
TCP Socket

Application Service0

reserved

1

TCP Port Service Multiplexor

2

Management Utility

7

Echo

9

Discard11

Active Users (systat)13

Daytime15

Netstat

20

FTP data port

21

FTP CONTROL port

23

Telnet25

SMTP (Simple Mail Transfer Protocol)

37

Time (Time Server)

42

Host name server (names server)

43

Whois (nickname)49(Login Host Protocol) (Login)53

Domain Name Server (domain)

79

Finger protocol (Finger)

80

World Wide Web HTTP

119

Network news Transfer Protocol (NNTP)

123

Network Time Protocol

213

IPX

160 – 223

Reserved for future use

NPort 5000 Series

Well-Known Port Numbers

UDP Socket

Application Service0

reserved

2

Management Utility

7

Echo

9

Discard11

Active Users (systat)13

Daytime35

Any private printer server

39

Resource Location Protocol

42

Host name server (names server)

43

Whois (nickname)49(Login Host Protocol) (Login)53

Domain Name Server (domain)

69

Trivial Transfer Protocol (TETP)

70

Gopler Protocol

79

Finger Protocol

80

World Wide Web HTTP

107

Remote Telnet Service

111

Sun Remote Procedure Call (Sunrpc)

119

Network News Transfer Protocol (NNTP)

123

Network Time Protocol (nnp161

SNMP (Simple Network Mail Protocol)

162

SNMP Traps

213

IPX (Used for IP Tunneling)

C-2

D
D.

SNMP Agents with MIB II & RS232/422/485 Like Groups

The NPort has built-in SNMP (Simple Network Management Protocol) agent software. It supports SNMP
Trap, RFC1317 RS-232 like group and RFC 1213 MIB-II. The following table lists the standard MIB-II group,
as well as the variable implementation for the NPort device server.

RFC1213 MIB-II Supported SNMP Variables:
System MIB

Interfaces MIB

IP MIB

ICMP MIB

SysDescr

itNumber

ipForwarding

IcmpInMsgs

SysObjectID

ifIndexipDefaultTTL

IcmpInErrors

SysUpTime

ifDescr

ipInreceives

IcmpInDestUnreachs

SysContact

ifTypeipInHdrErrors

IcmpInTimeExcds

SysName

ifMtu

ipInAddrErrors

IcmpInParmProbs

SysLocation

ifSpeedipForwDatagrams

IcmpInSrcQuenchs

SysServices

ifPhysAddress

ipInUnknownProtos

IcmpInRedirects

ifAdminStatus

ipInDiscards

IcmpInEchos

ifOperStatus

ipInDelivers

IcmpInEchoReps

ifLastChange

ipOutRequests

IcmpInTimestamps

ifInOctets

ipOutDiscards

IcmpTimestampReps

ifInUcastPkts

ipOutNoRoutes

IcmpInAddrMasks

ifInNUcastPkts

ipReasmTimeout

IcmpOutMsgs

ifInDiscards

ipReasmReqds

IcmpOutErrors

ifInErrors

ipReasmOKs

IcmpOutDestUnreachs

ifInUnknownProtos

ipReasmFails

IcmpOutTimeExcds

ifOutOctets

ipFragOKs

IcmpOutParmProbs

ifOutUcastPkts

ipFragFails

IcmpOutSrcQuenchs

ifOutNUcastPkts

ipFragCreates

IcmpOutRedirects

ifOutDiscards

ipAdEntAddr

IcmpOutEchos

ifOutErrors

ipAdEntIfIndex

IcmpOutEchoReps

ifOutQLen

ipAdEntNetMask

IcmpOutTimestamps

ifSpecific

ipAdEntBcastAddr

IcmpOutTimestampReps

ipAdEntReasmMaxSize

IcmpOutAddrMasks

IpNetToMediaIfIndex

IcmpOutAddrMaskReps

IpNetToMediaPhysAddress
IpNetToMediaNetAddress
IpNetToMediaType
IpRoutingDiscards

NPort 5000 Series

SNMP Agents with MIB II & RS-232/422/485 Like Groups

UDP MIBTCP MIBSNMP MIB

UdpInDatagrams

tcpRtoAlgorithm

snmpInPkts

UdpNoPorts

tcpRtoMin

snmpOutPkts

UdpInErrors

tcpRtoMax

snmpInBadVersions

UdpOutDatagrams

tcpMaxConn

snmpInBadCommunityNames

UdpLocalAddress

tcpActiveOpens

snmpInASNParseErrs

UdpLocalPort

tcpPassiveOpens

snmpInTooBigs

tcpAttempFails

snmpInNoSuchNames

Address Translation MIB

tcpEstabResets

snmpInBadValues

AtIfIndex

tcpCurrEstab

snmpInReadOnlys

AtPhysAddress

tcpInSegs

snmpInGenErrs

AtNetAddress

tcpOutSegs

snmpInTotalReqVars

AtNetAddress

tcpRetransSegs

snmpInTotalSetVars

tcpConnState

snmpInGetRequests

tcpConnLocalAddress

snmpInGetNexts

tcpConnLocalPort

snmpInSetRequests

tcpConnRemAddress

snmpInGetResponses

tcpConnRemPort

snmpInTraps

tcpInErrs

snmpOutTooBigs

tcpOutRsts

snmpOutNoSuchNames
snmpOutBadValues
snmpOutGenErrs
snmpOutGetRequests
snmpOutGetNexts
snmpOutSetRequests
snmpOutGetResponses
snmpOutTraps
snmpEnableAuthenTraps

RFC1317: RS-232 MIB objects
Generic RS-232-like Group
rs232Number

RS-232-like General Port

RS-232-like Asynchronous Port

Table

Group

rs232PortTable

rs232AsyncPortTable

rs232PortEntry

rs232AsyncPortEntry

rs232PortIndex

rs232AsyncPortIndex

rs232PortTypers232AsyncPortBits

rs232PortInSigNumber

rs232AsyncPortStopBits

rs232PortOutSigNumber

rs232AsyncPortParity

rs232PortInSpeed
rs232PortOutSpeed
The Input Signal Table

The Output Signal Table

rs232InSigTable

rs232OutSigTable

rs232InSigEntry

rs232OutSigEntry

rs232InSigPortIndex

rs232OutSigPortIndex

rs232InSigName

rs232OutSigName

rs232InSigState

rs232OutSigState

D-2

E
E.

Auto IP Report Protocol

The NPort Series provides several ways to configure Ethernet IP addresses. One of them is DHCP Client.
When you set up the NPort to use DHCP Client to configure Ethernet IP addresses, it will automatically senda DHCP request over the Ethernet to find the DHCP Server. And then the DHCP Server will send an available
IP address to the NPort. The NPort will use this IP address for a period of time after receiving it. But the
NPort will send a DHCP request again to the DHCP Server. Once the DHCP Server realizes that this IP
address is to be released to another DHCP Client, the NPort then will receive a different IP address. For thisreason, users sometimes find that the NPort will use different IP addresses, not a fixed IP address.
In order to know what IP address the NPort is using, you need to set up parameters in Network Settings via
the Web browser. The figure below is the NPort Web console configuration window. Enter the IP address andthe Port number of the PC that you want to send this information to.

And then you can develop your own programs to receive this information from the NPort. Here is NPort’s
Auto IP Report Protocol. We provide an example for you to easily develop your own programs. You can findthis example on Moxa’s website.

Auto IP Report Format“Moxa”, 4 bytes

Info[0]Info[1]…

Info[n]NPort 5000 Series

Auto IP Report Protocol

Info [n]FieldID

LengthData

Length1

1

Variable, Length is “Length Field”

ID ListID Value

Description

LengthNote

1Server Name

Variable

ASCII char

2

Hardware ID

2

Little-endian

3

MAC Address

6

6 bytes MAC address. If the MAC address is"00-90-E8-01-02-03", the MAC[0] is 0,
MAC[1] is 0x90(hex), MAC[2] is 0xE8(hex),
and so on.

4

Serial Number

4, DWORD

Little-endian5

IP Address

4, DWORD

Little-endian

6

Netmask

4, DWORD

Little-endian

7

Default Gateway

4, DWORD

Little-endian8

Firmware Version

4, DWORD

Little-endian

9

AP ID

4, DWORD

Little-endianVer1.3.4= 0x0103040

AP ID & Hardware ID Mapping Table
Product

Device ID

AP ID

NPort 5110

0x51100x80015110

NPort 5130

0x51300x80005100

NPort 5150

0x51500x80005100

NPort 5110A

0x511A

0x80015100

NPort 5130A

0x513A

0x80015100

NPort 5150A

0x515A

0x80015100

NPort 5210

0x03220x80000312

NPort 5230

0x03120x80000312

NPort 5232

0x03320x80000312

NPort 5232I

0x13320x80000312

NPort 5210A

0x521A

0x80015200

NPort 5230AI

0x524A

0x80015200

NPort 5250A

0x523A

0x80015200

NPort 5250AI

0x526A

0x80015200

NPort 5410

0x05040x80005000

NPort 5430

0x05340x80005000

NPort 5430I

0x15340x80005000

NPort 5610-8

0x56180x80005610

NPort 5610-160x56130x80005610

NPort 5630-8

0x56380x80005610

NPort 5630-16

0x56330x80005610

NPort 5150AI-M12

0x515B

0x80015101

NPort 5250AI-M12

0x525B

0x80015201

NPort 5450AI-M12

0x545B

0x80015401

NPort-IA5150

0x51510x80005250

NPort-IA5150I

0x51520x80005250

NPort-IA5150-S-SC

0x51530x80005250

NPort-IA5150I-S-SC

0x51540x80005250

NPort-IA5150-M-SC

0x51550x80005250

E-2

NPort 5000 Series
Product

Auto IP Report Protocol
Device ID

AP ID

NPort-IA5150I-M-SC

0x51560x80005250

NPort-IA5250

0x52510x80005250

NPort-IA5250I

0x52500x80005250

NPort IA5150A

0x527A

0x80005201

NPort IA5150A-M-SC

0x52BA

0x80005201

NPort IA5150AI

0x528A

0x80005201

NPort IA5250A

0x529A

0x80005201

NPort IA5250AI

0x52AA

0x80005201

NPort IA5450A

0x540A

0x80015400

NPort IA5450AI

0x541A

0x80015400

NPort P5150A

0x51570x80015100

E-3

F
F.

Compliance Notice

CE WarningThis is a Class A product. In a domestic environment, this product may cause radio interference, in whichcase the user may be required to take appropriate measures.

Federal Communications Commission Statement
This device complies with part 15 of the FCC Rules. Operation is subject to the following two conditions: (1)This device may not cause harmful interference, and (2) this device must accept any interference received,
including interference that may cause undesired operation.

FCC WarningThis equipment has been tested and found to comply with the limits for a Class A digital device, pursuant topart 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmfulinterference when the equipment is operated in a commercial environment. This equipment generates,
uses, and can radiate radio frequency energy and, if not installed and used in accordance with the
instruction manual, may cause harmful interference to radio communications. Operation of this equipment
in a residential area is likely to cause harmful interference, in which case the user will be required to correct
the interference at his or her own expense.