Moxa Manual
Moxa Manual
Moxa Manual
www.moxa.com/product
The software described in this manual is furnished under a license agreement and may be used only in accordance
with the terms of that agreement.
Copyright Notice
Trademarks
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 not
limited 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 the
information herein to correct such errors, and these changes are incorporated into new editions of the publication.
www.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 India
Tel: +91-80-4172-9088
Fax: +91-80-4132-1045
Table of Contents
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:
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.
• Windows Utilities: NPort Administrator; Device Search Utility and Windows Driver Manager
• Web Console
• Serial Console**
• Telnet Console
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 electrical
codes 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 with
other 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.
• 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.
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 such
as a metal panel.
2-2
NPort 5000 Series Getting Started
• 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.
2-3
NPort 5000 Series Getting Started
LED Indicators
2-4
NPort 5000 Series Getting Started
2-5
NPort 5000 Series Getting Started
2-6
NPort 5000 Series Getting Started
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 the
section Configuration by Web Console, Configuration by Serial Console, and Configuration by
Telnet Console for additional information on using these consoles.
2-7
NPort 5000 Series Getting Started
In NPort Administrator, click Search to search your LAN for NPort device servers. When your unit appears in
the 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 are
on 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; the default username and password is admin and moxa
respectively.
2-8
NPort 5000 Series Getting Started
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 then
modify 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 the
device 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 and
Netmask 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.
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.
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
2-9
NPort 5000 Series Getting Started
parameters. On the Operating Mode screen, select the Modify check box and then select the device port
that 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 for
additional 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
The following parameters need to be set correctly on the device port to ensure proper communication with
your device. Refer to your device’s documentation for the appropriate settings.
* 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. Required
Stop bits 1, 1.5, 2 1 The size of the stop character. Required
2-11
NPort 5000 Series Getting Started
Parity None, Even, Odd, None The parity that will be used. Even and Required
Space, Mark Odd parity provide rudimentary error-
checking; Space and Mark parity are
rarely used.
Flow control None, RTS/CTS, RTS/CTS The method used to suspend and Required
DTR/DSR, Xon/Xoff resume data transmission to ensure
that data is not lost. RTS/CTS
(hardware) flow control is
recommended.
FIFO Enable, Disable Enable Controls whether the device port’s Required
built-in 128-byte FIFO buffer is used.
When enabled, the FIFO helps reduce
data loss regardless of direction.
Interface* RS-232 RS-232 The serial interface that will be used. Required
RS-422 The options that are available depend
2-wire RS-485 on the specific model of device server.
4-wire RS-485
*Supported interfaces vary by model; refer to your NPort’s datasheet for a list of supported serial
interfaces.
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 that you
wish to configure. Click Settings to configure the selected device port.
Modify the parameters as needed. When you are ready to restart the device server with the new settings,
click OK.
2-12
NPort 5000 Series Getting Started
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.
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.
A list of NPort device servers that have been found by NPort Administrator will appear. Select your device
server and click Finish.
2-13
NPort 5000 Series Getting Started
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 can
map multiple COM ports at the same time by selecting the Auto Enumerating check box to number the
COM ports automatically.
On the Serial Parameters screen, adjust the settings to match your device. These settings, which are only
used for serial printers, must also match the settings on the device port. Click OK when you are satisfied
with your changes.
2-14
NPort 5000 Series Getting Started
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.
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 to
be purged.
Apply Change
Right-click COM Mapping in the Function panel. Select Apply Change in the pop-up menu to save the
current COM mapping settings. Your application will now be able to access the target serial device using the
COM port.
2-15
NPort 5000 Series Getting Started
2. Type 192.168.127.254 in the Address input box (use the correct IP address if different from the
default), and then press Enter.
3. For the overall NPort 5000 Series, you will be prompted to enter the username and password to access
the NPort web console. (The default username is admin; password is moxa.) For the NPort
5100/5200/IA5000 series, only the password is requried (the default password is moxa).
2-16
NPort 5000 Series Getting Started
Web Interface for the NPort 5100, 5200, and IA5000 Series Only
ATTENTION
If you use other web browsers, remember to enable the functions to “allow cookies that are stored on your
computer” or “allow per-session cookies.” NPort device servers use cookies only for “password”
transmissions.
The NPort homepage will open. On this page, you can see a brief description of the Web Console’s function
groups.
2-17
NPort 5000 Series Getting Started
Web Interface for the NPort 5100, 5200, and IA5000 Series Only
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, your
configuration 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
previous 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 this
chapter
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 of
different 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
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 Started
The exported configuration file can be encrypted for security purposes with a user-specified export password
(default is empty password), which you may assign in Pre-shared Key. Click Download to write all
configuration 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 the
same as the configuration file (which is assigned when exporting the configuration file) in order to
successfully import the configuration file.
If the firmware is not up to the version below, you many need to key in the password manually.
2-21
NPort 5000 Series Getting Started
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.
Basic Settings
Web Interface for the NPort 5100, 5200, and IA5000 Series Only
2-22
NPort 5000 Series Getting Started
2-23
NPort 5000 Series Getting Started
ATTENTION
If you disable both the Web console and Telnet console, you can still use NPort Administrator to
configure NPort device servers either locally or remotely over the network. Refer to Chapter 5 for details.
2-24
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-25
NPort 5000 Series Getting Started
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.
Network Settings
2-26
NPort 5000 Series Getting Started
2-27
NPort 5000 Series Getting Started
DNS server 1/ E.g., 192.168.1.1 None In order to use the NPort’s DNS Optional
DNS server 2 feature, you need to configure
the DNS server. Doing so
allows the NPort to use a host’s
domain name to access the
host. The NPort provides DNS
server 1 and DNS server 2
configuration items to
configure 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 a
particular domain name.
LLDP Settings Enable or Disable Enable Not 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-28
NPort 5000 Series Getting Started
SNMP Settings
Parameter Setting Factory Description Necessity
Default
Community 1 to 39 characters public A community name is a plain-text Optional
Name (E.g., MOXA) password mechanism that is used to
weakly authenticate queries to agents
of managed network devices.
Contact 1 to 39 characters None The SNMP contact information usually Optional
(E.g., Support, 886- includes an emergency contact name
89191230 #300) and telephone or pager number.
Location 1 to 39 characters None Specify the location string for SNMP Optional
(E.g., Floor 1, office 2) agents, such as the NPort. This string
is usually set to the street address
where the NPort is physically located.
SNMP Agent V1, V2 V1, V2 Select the version according to your Optional
Version checked environmental needs. Please note that
the NPort 5000 Series only supports
‘Get’, but not ‘Set’.
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 as
a client, must know the IP address of the server. If the DHCP server assigns a new IP address to the NPort,
the host must have some way of determining the NPort’s new IP address.
NPort products help out by reporting their IP address periodically to the IP location server, in case the
dynamic IP has changed. The parameters shown below are used to configure the Auto IP report function.
There are two ways to develop an “Auto IP report Server” to receive NPort’s Auto IP report.
2-29
NPort 5000 Series Getting Started
Auto report to E.g., 4001 4002 In multiple-LAN model version, two Optional
UDP port IPs can be set for Auto report. Report
will be sent to each IP when
generated.
Auto report Time interval (in 10 NA Optional
period seconds)
Serial Settings
The Serial Settings page is where you set the serial communication parameters for each device port.
Settings include baudrate, parity, and flow control. Each device port can be configured independently.
Web Interface for the NPort 5100, 5200, and IA5000 Series Only
To modify serial settings for a particular port, click on the Port Number under Serial Settings, located
under Main Menu on the left side of the browser window.
Web Interface for the NPort 5100, 5200, and IA5000 Series Only
2-30
NPort 5000 Series Getting Started
ATTENTION
It is critical that the device port’s serial communication settings match the attached device. Refer to the
user’s manual for your serial device for the correct serial communication settings.
* 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 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. Required
2-31
NPort 5000 Series Getting Started
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 and
refer to Chapters 4 and 5 for a detailed explanation of different operating modes and parameters.
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.
2-32
NPort 5000 Series Getting Started
Web Interface for the NPort 5100, 5200, and IA5000 Series Only
For each mode, the default settings should work for most applications. Modify these settings only if
absolutely necessary for your application. The operation mode and related parameters can be configured
through the web console. The same parameters can also be configured using NPort Administrator, the
Telnet console, or serial console. Refer to Chapters 4 and 5 for details.
Web Interface for the NPort 5100, 5200, and IA5000 Series Only
2-33
NPort 5000 Series Getting Started
Accessible IP Settings
Web Interface for the NPort 5100, 5200, and IA5000 Series Only
2-34
NPort 5000 Series Getting Started
Accessible IP Settings allow you to add or block remote host IP addresses to prevent unauthorized
access. Access to the NPort is controlled by an IP address. That is, if a host’s IP address is in the accessible
IP table, then the host will be allowed to access the NPort. Three setting types are described below:
2-35
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 are
shown below.
2-36
NPort 5000 Series Getting Started
User Account
In the NPort 5000 Series, the main function groups are highly correlated with the User Level set by the
administrator(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 the
selected account.
The Add Account (Edit Account) page will show up for you to enter (modify) account information and
assign password to this user. Also, the Administrator(s) are allowed to assign proper User Level to this
user to limit his/her privileges of using NPort 5000.
2-37
NPort 5000 Series Getting Started
2-38
NPort 5000 Series Getting Started
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.
2-39
NPort 5000 Series Getting Started
Mail Server
Parameter Setting Factory Description Necessity
Default
Mail server IP or Domain None This optional field is for the IP address or Optional
Name domain name of your network mail server, if
applicable. A mail server is required for the
NPort to send e-mail warnings of
administrative events.
User name 1 to 15 None This optional field is used if your mail server Optional
characters requires it.
Password 1 to 15 None This optional field is used if your mail server Optional
characters requires it.
From E-mail 1 to 63 None This optional field sets the “from” e-mail Optional
address characters address that will show up in an automatic
warning e-mail.
E-mail address 1 to 63 None These optional fields set the “destination” e- Optional
1/2/3/4 characters mail address for automatic e-mail warnings.
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, CRAM-
MD5 (RFC 2554).
Event Type
Web Interface for the NPort 5100, 5200 and IA5000 Series Only
2-40
NPort 5000 Series Getting Started
The Event Type parameters are used to configure which events will generate an automatic warning from the
NPort device server, and how that warning will be issued. For each listed event, certain automatic warning
options are available. If Mail is selected, an e-mail will be sent. If Trap is selected, an SNMP trap will be
sent. The Relay Output option is available for NPort IA5000/IA5000A series.
Cold start
Refers to starting the system from power off (contrast this with warm start). When performing a cold start,
the NPort will automatically issue an auto warning message by e-mail, or send an SNMP trap after booting
up.
Warm start
A warm start refers to restarting the computer without turning the power off. When performing a warm
start, the NPort will automatically send an e-mail, or send an SNMP trap after rebooting.
Authentication failure
An authentication failure event is triggered when the user inputs an incorrect password from the Console or
Administrator. When an authentication failure occurs, the NPort will immediately send an e-mail or SNMP
trap.
IP address changed
An IP address changed event is triggered when the user has changed the NPort’s IP address. When the IP
address changes, the NPort will send an e-mail with the new IP address before the NPort reboots. If the
NPort is unable to send an e-mail message to the mail server within 15 seconds, the NPort will reboot
anyway, and abort the e-mail auto warning.
2-41
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 NPort
reboots. If the NPort is unable to send an e-mail message to the mail server within 15 seconds, the NPort
will reboot anyway, and abort the e-mail auto warning.
Power failure (this event type is only applicable to NPort IA5000/IA5000A series)
NPort IA5000/IA5000A series NPorts have two DC power inputs for redundancy. Different approaches are
used to warn engineers automatically, including by email and by relay output. Users can connect to Monitor
Relay Output from the web console to check which event caused the warning. The relay output will be
canceled after the power recovers, or by selecting “acknowledge event” using the web console or Telnet.
When the Relay Output is sending a warning, the Ready LED will flash red until the warning event ceases.
2-42
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*.
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 be
canceled 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.
ATTENTION
DCD and DSR signal changes are only applicable for the RS-232 interface.
Monitor
Monitor Line
Click Line under Monitor to show the operation mode and status of each connection (IPx), for each of the
four serial ports.
2-43
NPort 5000 Series Getting Started
Web Interface for the NPort 5100, 5200, and IA5000 Series Only
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-44
NPort 5000 Series Getting Started
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
2-45
NPort 5000 Series Getting Started
System Log Settings allow NPort users to customize network events that are logged by the NPort 6000.
Events are grouped into four categories, known as event groups, and the user selects which groups to log
under either the Local Log or Remote Log server. 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 events and System Warm Start events would be logged.
Local Log Keep the log in the flash of NPort 6000 up to 512 items.
Remote Log Keep the log in the remote defined Log Server.
You will need to assign a remote Log Server in the System Management /
Misc. Network Settings / Remote Log Settings if remote log is checked.
System
System Cold Start NPort 6000 cold start.
System Warm Start NPort 6000 warm start.
Network
DHCP/BOOTP/PPPoE Get IP of the NPort 6000 is refreshed.
IP/Renew
NTP Time synchronization successful.
NTP Connect Fail The NPot 6000 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 6000’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.
2-46
NPort 5000 Series Getting Started
OpMode
Connect 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
Restart Serial port was restarted.
Change Password
You can set a password to restrict access to the NPort’s configuration parameters. (The default password for
NPort is moxa.) If a user does not enter the correct password when accessing the NPort through one of the
consoles (e.g., web console), access to the NPort configuration settings will be denied.
Web Interface for the NPort 5100, 5200, IA5000 Series Only
2-47
NPort 5000 Series Getting Started
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.
This function will reset all of the NPort’s settings to the factory default values. Be aware that previous
settings will be lost.
1. From the Windows desktop, click on Start and then select Run.
2. Type telnet 192.168.127.254 (use the correct IP address if different from the default) in the Open
text input box, and then click OK.
2-48
NPort 5000 Series Getting Started
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 the
default password moxa); input the password and then press Enter.
6. Use the Backspace key to erase the current IP address, type in the new IP address, and then press
Enter.
2-49
NPort 5000 Series Getting Started
2-50
NPort 5000 Series Getting Started
10. Type y and then press Enter to save the new IP address and restart the NPort.
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 the
serial cable from the NPort to your computer’s serial port.
1. Connect the NPort’s serial port 1 directly to your computer’s male RS-232 serial port. From the Windows
desktop click Start Programs PComm Lite Terminal Emulator.
2. When the PComm Terminal Emulator window opens, first click on the Port Manager menu item and
select Open, or simply click on the Open icon.
2-51
NPort 5000 Series Getting Started
3. The Property window opens automatically. From the Communication Parameter page, select the
appropriate COM port for the connection, COM1 in this example, and 19200 for Baud Rate, 8 for Data
Bits, None for Parity, and 1 for Stop Bits.
4. From the Property window’s Terminal page, select ANSI or VT100 for Terminal Type and then click
OK.
5. If you select Dumb Terminal as the terminal type, some of the console functions—especially the
Monitor function—may not work properly.
6. Press the “ ` ” key continuously and then power on the NPort.
7. The NPort will automatically switch from data mode to console mode as it receives a continuous string of
“ ` ” characters.
2-52
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.
2-53
NPort 5000 Series Getting Started
2-54
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 this
area 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 the
cybersecurity 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
Turn Off Unused Service and Ports
Turn Off Moxa Service After Installation
Turn On Services That Are Necessary
Limited IP Access
Account and Password
System Log
Testing the Security Environment
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 version
of 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.
• 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 and
also 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 so
that all the new settings are effective.
NOTE If all HTTP/HTTPS/Telnet/SSH/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
• Use your own passwords for users of the devices. If possible, also change the default name of the
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.
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 tools for cybersecurity environment checks are available. Some may provide limited free use, for
example, 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, Telnet, and SSH sessions allowed.
• 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 already
backup the current configuration before returning it.
NOTE DISCLAIMER: Please note that above information and guide (the ”information”) are for the purpose of your
reference 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 meet
your specific requirements. Furthermore, the above information is provided “as is”, and we make no
warranties, express, implied or otherwise, regarding its accuracy, completeness, or performanc
3-3
4
4. Choosing the Proper Operation Mode
In this chapter, we describe the NPort device server’s various operation modes. The options include an
operation mode that uses a driver installed on the host computer, and operation modes that rely on TCP/IP
socket programming concepts. After choosing the proper operation mode in this chapter, refer to Chapter 5
for detailed configuration parameter definitions.
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 a
small computer equipped with a CPU, real-time OS, and TCP/IP protocols that can bi-directionally translate
data between the serial and Ethernet formats. NPort device servers that are connected to a network that
with access to the Internet can be accessed from a computer located anywhere in the world.
Traditional SCADA and data collection systems rely on serial ports (RS-232/422/485) to collect data from
various kinds of instruments. Since NPort serial device servers network-enable instruments equipped with
an RS-232/422/485 communication port, your SCADA and data collection system will be able to access all
instruments connected to a standard TCP/IP network, regardless of whether the devices are used locally or
at a remote site.
An NPort serial device server is an external IP-based network device that allows you to expand the number
of serial ports for a host computer on demand. As long as your host computer supports the TCP/IP protocol,
you won’t be limited by the host computer’s bus limitation (such as ISA or PCI), or lack of drivers for
various operating systems.
In addition to providing socket access, the NPort also comes with a Real COM / TTY driver that transmits all
serial signals intact. This means that you can continue using your existing COM/TTY-based software, without
needing to invest in additional software.
Three different socket modes are available: TCP Server, TCP Client, and UDP Server/Client. The main
difference between the TCP and UDP protocols is that TCP guarantees delivery of data by requiring the
recipient to send an acknowledgement to the sender. UDP does not require this type of verification, making
it possible to offer speedier delivery. UDP also allows data to be unicast to only one IP address, or multicast
to groups of IP addresses.
ATTENTION
The driver used for Real COM Mode is bundled with NPort Administrator. The driver is installed on your
computer 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 then
redirects it through the host’s Ethernet card. At the other end of the connection, the NPort accepts the
Ethernet frame, unpacks the TCP/IP packet, and then sends it transparently to the appropriate serial device
attached to one of the NPort’s serial ports.
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 NPort
controls 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).
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 data
from the serial device to one or multiple host computers, and
the serial device can also receive data from one or multiple
host computers, making this mode ideal for message display
applications.
Ethernet Modem Mode is designed for use with legacy operating systems, such as MS-DOS, that do not
support TCP/IP Ethernet. By connecting one of NPort’s serial ports to the MS-DOS computer’s serial port, it
is possible to use legacy software originally designed to transmit data via modem, but now transmit the
data over the Ethernet.
4-4
NPort 5000 Series Choosing the Proper Operation 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 a
user at a remote site uses a PPP dial-up connection to access the NPort 5600, the NPort 5600 plays the role
of 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 mode
or Reverse Telnet mode. In this chapter, we explain the settings for every parameter of every operation
mode.
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 your
application and device, you may have the option of choosing between two or more operating modes. For
each mode, the default settings should work for most applications. Modify these settings only if absolutely
necessary for your application. The operation mode and related parameters can be configured through NPort
Administrator. The same parameters may also be configured using the web console, Telnet console, or serial
console.
List of Parameters
Pair Connection Mode
Reverse Telnet Mode
TCP Server Mode
RFC2217 Mode
UDP Mode
• You need to control network data packing using specific delimiter characters.
Adjust Delimiters 1 and 2 and Delimiter process.
• Multiple hosts will simultaneously access the attached device.
Adjust Max Connection, Ignore Jammed IP, and Allow driver control.
• Data will be broadcast from the serial device to multiple network destinations.
Adjust Destination IP 1 through 4.
• You are using Pair Connection modes to connect two serial devices over Ethernet.
Adjust Local TCP port and Destination IP Address
5-2
NPort 5000 Series Advanced Operation Mode Settings
For the device port configured for Pair Connection Slave mode, designate a Local TCP port to be used for
communication. For the device port configured for Pair Connection Master mode, enter the slave’s IP
address and Local TCP port as the Destination IP.
Once both device ports have been configured, the attached serial devices will communicate over Ethernet as
if they were connected by a serial cable. The two NPorts can be connected by an Ethernet cable, or they can
be connected to the same network.
Parameter Summary
Inactivity time
Setting Options: 0 to 99 minutes
Real COM Mode
RFC2217 Mode
PPP Mode
TCP Client Mode
UDP Mode
Default: 7 minutes
Description: Specifies the time limit for keeping the connection open if
no data flows to or from the serial device. If there is no activity for the
specified time, the connection will be closed. A setting of 0 means that
the connection will remain open even if data is never received.
For many applications, the serial device may be idle for long periods of
time, so 0 is an appropriate setting. If you wish to use Inactivity time
with TCP Client mode, you must set Connection Control to Any
Character/Inactivity Time (see Connection Control).
When adjusting Inactivity time, make sure that it is greater than the
Force transmit time. Otherwise, the TCP connection may be closed
before data in the buffer can be transmitted.
Inactivity time
Setting Options: 0 to 65535 ms
Real COM Mode
RFC2217 Mode
PPP Mode
TCP Client Mode
UDP Mode
Default: 0
Description: Specifies the time limit for keeping the connection open if
no data flows to or from the serial device. If there is no activity for the
specified time, the connection will be closed. A setting of 0 means that
the connection will remain open even if data is never received.
For many applications, the serial device may be idle for long periods of
time, so 0 is an appropriate setting. If you wish to use Inactivity time
with TCP Client mode, you must set Connection Control to Any
Character/Inactivity Time (see Connection Control).
When adjusting Inactivity time, make sure that it is greater than the
Force transmit time. Otherwise, the TCP connection may be closed
before data in the buffer can be transmitted.
5-3
NPort 5000 Series Advanced Operation Mode Settings
Max connection
Setting Options: 1 to 4
RFC2217 Mode
PPP Mode
TCP Client Mode
UDP Mode
Mode
Reverse Telnet
connections that the port will accept. When adjusting Max connection,
make sure that Ignore jammed IP and Allow driver control are also
configured correctly.
Ignore jammed IP
Setting Options: Yes or No
Real COM Mode
RFC2217 Mode
PPP Mode
TCP Client Mode
UDP Mode
Default: No
RFC2217 Mode
PPP Mode
TCP Client Mode
UDP Mode
Default: No
RFC2217 Mode
PPP Mode
TCP Client Mode
UDP Mode
Default: 0
5-4
NPort 5000 Series Advanced Operation Mode Settings
Delimiter 1 and 2
Setting Options: Enable, 0 to FF
RFC2217 Mode
PPP Mode
TCP Client Mode
UDP Mode
Serial data accumulates in the device port’s buffer until the delimiter
character(s) are received, after which the data is packed for network
transmission. If only one delimiter character is needed, be sure to
enable Delimiter 1 only. If both Delimiter 1 and 2 are enabled, both
characters must be received in sequence for data packing to occur. For
example, the carriage return character could be used as a delimiter in
order to transmit each sentence or paragraph in a separate packet.
Data is packed according to the Delimiter process parameter.
ATTENTION
When the device port buffer is full, the data will be packed for network transmission, regardless of the
settings for Delimiter 1, Delimiter 2, and Force transmit.
Delimiter process
Setting Options: Do Nothing, Delimiter + 1, Delimiter + 2, Strip
Real COM Mode
RFC2217 Mode
PPP Mode
TCP Client Mode
UDP Mode
Delimiter
Default: Do Nothing
”Strip Delimiter” will pack the accumulated data but will not include the
delimiter characters in the packet.
Force transmit
Setting Options: 0 to 65535 ms
Real COM Mode
RFC2217 Mode
PPP Mode
TCP Client Mode
UDP Mode
Default: 0 ms
5-5
NPort 5000 Series Advanced Operation Mode Settings
Other Parameters
Local TCP port
Real COM Mode Setting Options: 1 to 65535
RFC2217 Mode
PPP Mode
TCP Client Mode
UDP Mode
Mode
Description: Specifies the TCP port number for communicating with the
Reverse Telnet
attached device. Socket applications will need to use this port number
to refer to the device. For Pair Connection modes, this field specifies
the slave’s port number, and the same value must be used for the
master’s Destination IP parameter.
Command port
Setting Options: 1 to 65535
Real COM Mode
RFC2217 Mode
PPP Mode
TCP Client Mode
UDP Mode
Default: 966
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 the library
automatically obtains the number from the device server. Only change
this setting if there is a port number conflict with another application or
device.
Destination IP address
Setting Options: N/A
Real COM Mode
RFC2217 Mode
PPP Mode
TCP Client Mode
UDP Mode
Default: none
RFC2217 Mode
PPP Mode
TCP Client Mode
UDP Mode
Default: none
Description: Specifies the network host(s) that will access the device.
Serial data will be transmitted to every address listed, and network
data will be sent to the device on a first-in-first-out basis.
5-6
NPort 5000 Series Advanced Operation Mode Settings
PPP Mode
RFC2217 Mode
TCP Client Mode
UDP Mode
Description: Specifies the TCP port number that will be used for data
transmission with the device port.
RFC2217 Mode
PPP Mode
TCP Client Mode
UDP Mode
Pair Connection Mode Default: 4001 for port 1, 4002 for port 2, etc.
Connection Control
Setting Options: Startup/None, Any Character/None, Any
Real COM Mode
PPP Mode
RFC2217 Mode
TCP Client Mode
UDP Mode
Map <CR-LF>
Setting Options: CR, LF, or CR-LF
Real COM Mode
PPP Mode
RFC2217 Mode
TCP Client Mode
UDP Mode
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 NPort 5100, 5200, and IA5000A Series Only
5-8
NPort 5000 Series Advanced Operation Mode Settings
5-9
NPort 5000 Series Advanced Operation Mode Settings
5-10
NPort 5000 Series Advanced Operation Mode Settings
ATTENTION
When Max connection is set to 2, 3, or 4, the NPort will use a “multi connection application” (i.e., 2, 3, or 4
hosts are allowed access to the port at the same time). When using a multi connection application, the
NPort will use the serial communication parameters set in the console. All of the hosts connected to that
port 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:
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 send
characters 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 Mode
Web Interface for the NPort 5000A and NPort IA5000A Series Only
5-11
NPort 5000 Series Advanced Operation Mode Settings
5-12
NPort 5000 Series Advanced Operation Mode Settings
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:
Therefore, you should set Force Transmit timeout to be larger than 8.3 ms. Force Transmit timeout is
specified 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 send
characters 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.
Web Interface for the NPort 5100, 5200, and IA5000 Series Only
5-13
NPort 5000 Series Advanced Operation Mode Settings
5-14
NPort 5000 Series Advanced Operation Mode Settings
5-15
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 the
unintended loss of data due to the session being disconnected, it is highly recommended that this value is
set 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 the
serial 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
Web Interface for the NPort 5100, 5200, and IA5000 Series Only
5-17
NPort 5000 Series Advanced Operation Mode Settings
5-18
NPort 5000 Series Advanced Operation Mode Settings
Ethernet port.
Delimiter Do nothing, Do nothing [Delimiter + 1] or [Delimiter + 2]: The data Optional
process Delimiter + 1, will be transmitted when an additional byte (for
Delimiter + 2, Delimiter +1), or an additional 2 bytes (for
Strip Delimiter Delimiter +2) of data is received after receiving
the Delimiter.
[Strip Delimiter]: When the Delimiter is
received, 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 0 to 65535 ms 0 ms 0: Disable the force transmit timeout. Optional
Transmit 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 the
serial port, the NPort stores the data in the
internal buffer. The NPort transmits data stored
5-19
NPort 5000 Series Advanced Operation Mode Settings
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 serial
interface, and will remain active indefinitely.
Any Character/ A TCP connection will be established when any character is received from the serial
Inactivity Time interface, 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 will
remain active indefinitely.
DCD On/DCD Off A TCP connection will be established when a DCD “On” signal is received, and will
be disconnected when a DCD “Off” signal is received.
DCD On/None A TCP connection will be established when a DCD “On” signal is received, and will
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 the
unintended loss of data due to the session being disconnected, it is highly recommended that this value is
set 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 the
serial 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
5-22
NPort 5000 Series Advanced Operation Mode Settings
NOTE Delimiter 2 is optional. If left blank, then Delimiter 1 alone trips clearing of the buffer. If the size of the
serial 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 a
multicast receiver over the Internet, the must inform the routers on its LAN. The Internet Group
Management Protocol (IGMP) is used to communicate group membership information between hosts and
routers on a LAN. The NPort 5000 Series supports IGMP version 2. The NPort 5100, NPort 5200, IA5000
Series do not support IGMP function.
5-23
NPort 5000 Series Advanced Operation Mode Settings
Type the IP address (e.g., 239.1.1.1) assigned to the multicast group in the Begin column. The NPort will
automatically add the Group, and receive all packets from this group as required by the multicast function.
Pair Connection Mode employs two NPort device servers 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 port to
the COM port of a PC or other type of computer, such as a hand-held PDA, and the serial device is
connected to the RS-232 port of the other NPort. The two NPort device servers are then connected to each
other with a cross-over Ethernet cable, both are connected to the same LAN, or in a more advanced setup,
they communicate with each other over a WAN (i.e., through one or more routers). Pair Connection Mode
transparently transfers both data and modem control signals (although it cannot transmit the DCD signal)
between the two NPort device servers.
Web Interface for the NPort 5100, 5200, and IA5000 Series Only
5-24
NPort 5000 Series Advanced Operation Mode Settings
Web Interface for the NPort 5100, 5200, and IA5000 Series Only
5-25
NPort 5000 Series Advanced Operation Mode Settings
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. Once
the remote unit accepts this TCP connection, the NPort will send out the CONNECT <baud> signal via the
serial port and then enter data mode.
5-26
NPort 5000 Series Advanced Operation Mode Settings
NOTE The “+++” command cannot be divided. The “+” character can be changed in register S2, and the guard
time, which prefixes and suffixes the “+++” in order to protect the raw data, can be changed in register
S12.
AT Commands
The NPort supports the following common AT commands used with a typical modem:
S Registers
No. S Register Description & default value Remarks
1 S0 Ring to auto-answer (default=0)
2 S1 Ring counter (always=0) no action applied
3 S2 Escape code character (default=43 ASCII “+”)
4 S3 Return character (default=13 ASCII)
5-27
NPort 5000 Series Advanced Operation Mode Settings
Web Interface for the NPort 5100, 5200, and IA5000 Series Only
5-28
NPort 5000 Series Advanced Operation Mode Settings
5-29
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 a
request 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 6000 to disconnect a
connection if the link noise exceeds a certain threshold.
Authentication type (default=None): This field allows you to configure the method used, if any, to verify
a user’s ID and authorization.
Option Description
Local Verify the ID against the NPort 6000 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 Mode
Web Interface for the NPort 5100, 5200, and IA5000 Series Only
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
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 as
system administrator.
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.
6-3
NPort 5000 Series Configuring NPort Administrator
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, is
displayed in the right section.
• The activity Log, which displays messages that record the user’s processing history, is shown in the
bottom 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 Progress
of the search for that particular device.
3. When the search is complete, the Broadcast Search window will close, and the NPort units that were
located 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 the
LAN, or use Specify by IP Address to locate a particular NPort.
6-6
NPort 5000 Series Configuring NPort Administrator
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 the
standard 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.
Unlock
The NPort is password protected, “Broadcast Search” was used to locate it, and the password has been
entered 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 Fixed
The 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 Fixed
The NPort is password protected, “Specify by IP address” was used to locate it, and the password has been
entered 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 NPort
In this section, we illustrate how to access the NPort’s configuration utility. You should first make sure that
you 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 select
Configure to start the configuration.
3. The progress bar shows that Administrator is retrieving configuration information from the specific
NPort.
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 first
click 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.
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.
ATTENTION
You can simultaneously upgrade the firmware of multiple NPort units that are of the same model. To select
multiple 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 the
current 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 the
configuration 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 mouse
button, and then select Import Configuration. Click on the Browse button to locate the configuration file
and 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 to
successfully 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 the
configuration file before you can begin to import.
6-12
NPort 5000 Series Configuring NPort Administrator
NOTE If you do not remember the password of the encrypted configuration file, there is no alternative way to
decrypt 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.
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
6-13
NPort 5000 Series Configuring NPort Administrator
NPort 5600-8-DT Series Firmware v2.4 and up with NPort Administration Suite v1.22 and up
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
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 hold
down 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 non-
encrypted, 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.
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
3. 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.
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 Play
warning 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 is
connected 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.
6-19
NPort 5000 Series Configuring NPort Administrator
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 to
which you would like to map COM ports.
6-20
NPort 5000 Series Configuring NPort Administrator
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 ensure
that 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.
• 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 driver
will 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 used
because 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 the
native 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 is
disabled.
6-21
NPort 5000 Series Configuring NPort Administrator
• 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 then
select the “Fast Flush” checkbox. You should find that when “Fast Flush” is enabled, the NPort driver
will work faster with “PurgeComm().”
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 and
terminate outstanding overlapped write operations. Select Ignore TX Purge if you do not want the
output 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 host
system 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 import
this configuration file to another host and use the same COM Mapping settings in the other host.
6-23
NPort 5000 Series Configuring NPort Administrator
6-24
NPort 5000 Series Configuring NPort Administrator
3. Right click in the NPort list section and select Apply Change.
COM Grouping
The “COM Grouping” function is designed to simulate the multi-drop behavior of serial communication over
an 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.
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 a
member 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.
6-25
NPort 5000 Series Configuring NPort Administrator
ATTENTION
The COM Grouping function only supports Windows NT, 2000, and later. The maximum number of ports for
each group is 32.
4. On the COM Grouping page, you can set “Read” and “Write” permissions for every serial port. It is
necessary 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.
6-26
NPort 5000 Series Configuring NPort Administrator
5. Click OK, and confirm that the serial ports that were assigned. The COM Port column confirms that your
selected ports are labeled as part of a “Group.” You will be able to view the serial ports that were
assigned to and removed from the Group. Click Apply to apply the settings.
1. Select all serial ports in the Group you are deleting and then right-click to select COM Settings.
6-27
NPort 5000 Series Configuring NPort Administrator
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.
1. Select the serial port that you are adding and right-click to select COM Settings.
6-28
NPort 5000 Series Configuring NPort Administrator
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.
1. Select a serial port in the Group and right-click to select COM Settings.
6-29
NPort 5000 Series Configuring NPort Administrator
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.
6-30
NPort 5000 Series Configuring NPort Administrator
3. Select the Grouping selected port(s) together checkbox and then click OK.
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.
6-31
NPort 5000 Series Configuring NPort Administrator
2. Select the ”Signal Status” controlled port and then right-click and select COM Settings.
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.
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.
6-33
NPort 5000 Series Configuring NPort Administrator
IP Address Report
When the NPort is used in a dynamic IP environment, users must spend more time with IP management
tasks. 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 Auto
IP report server’s IP address and UDP port.
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.
6-34
NPort 5000 Series Configuring NPort Administrator
4. Click Go to start receiving the Auto IP address report from the NPort.
6-35
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.
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 as
system administrator.
3. Driver installation is now complete and the “NPortCab.cab” icon disappears from the screen. This is
normal when installing drivers in Windows CE.
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 the
server 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 sent
out before further processing.
FIFO
If FIFO is disabled, the NPort server will transmit 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.
7-4
8
8. Linux Real TTY Drivers
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.
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.
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.
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
7. After installing the driver, you will be able to see several files in the /usr/lib/npreal2/driver folder:
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
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:
1. Modifies npreal2d.cf.
2. Creates tty ports in directory /dev with major & minor number configured in npreal2d.cf.
# 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
# cd /usr/lib/npreal2/driver
In this example, 16 tty ports will be added, all with IP 192.168.3.4, with data ports from 4001 to 4016 and
command ports from 966 to 981.
Example:
# cd /usr/lib/npreal2/driver
# ./mxdelsvr 192.168.3.4
1. Modify npreal2d.cf.
8-3
NPort 5000 Series Linux Real TTY Drivers
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-4
9
9. IP Serial LIB
Overview
What is IP Serial Library?
Why Use IP Serial Library?
How to Install IP Serial Library
IP Serial LIB Function Groups
Example Program
NPort 5000 Series IP Serial LIB
Overview
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 RFC
2217), 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.
9-2
NPort 5000 Series IP Serial LIB
Example Program
char NPort 5100A-Nip=”192.168.1.10”;
char buffer[255]; /*data buffer, 255 chars */
int port = 1; /*1st port */
int portid; /* port handle */
nsio_init(); /*initial IP Serial Library */
portid = nsio_open(NPort 5100Aip, port); /*1st port, NPort 5100A IP=192.168.1.10
nsio_ioctl(portid, B9600, (BIT_8 | STOP_1 | */
P_NONE) ); /*set 9600, N81 */
sleep(1000); /* 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 */
9-3
10
10. Android API Instructions
Overview
How to Start MxNPortAPI
MxNPortAPI Function Groups
Example Program
NPort 5000 Series
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 the
style 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.
(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).
10-2
NPort 5000 Series
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.
10-3
NPort 5000 Series
Example Program
To make sure this API is workable with the device server on an Android platform, see the example program
below:
10-4
11
11. 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 for
configuration. 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.
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 light
up, indicating that the NPort is receiving power. After the red Ready LED turns to green, you will see a
display similar to:
N P 5 4 1 0 _ 6 1 4 0 5
1 9 2 . 1 6 8 . 1 2 7 . 2 5 4
This is where
The buttons are manipulated in a manner similar to the way a modern cellular phone operates. As you move
through 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.
N P 5 4 1 0 _ 6 1 4 0 5
1 9 2 . 1 6 8 . 1 2 7 . 2 5 4
M a i n M e n U
S e r v e r s e t t i n g ↓
• 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 notice
that 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
11-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 mean
that the number does not change; only that you cannot change it)
Main Menu
Server setting Serial number D
Server name C
Firmware ver D
Model name D
Network Ethernet status D
setting MAC address D
IP config C
IP address C
Netmask C
Gateway C
DNS server 1 C
DNS server 2 C
Serial set Select port C
Baudrate C
Data bit C
Stop bit C
Parity C
Flow control C
Tx/Rx fifo C
Interface C
Tx/Rx bytes D
Line status D
Op Mode set Select port C
Select mode C
[mode]
Real COM TCP server TCP client UDP svr/cli
11-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 the
number 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 the
last 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, is
displayed, with a down arrow all the way to the right. This is an indication that there are other options from
which to choose.
P a r i t Y
N o n e ↓
Press the down cursor button once to see Odd as the second option.
P a r i t Y ↑
O d d ↓
Press the down cursor button again to see Even as the third option.
P a r i t Y ↑
E v e n ↓
Press the down cursor button again to see Space as the fourth option.
P a r i t Y ↑
M a r k ↓
Press the down cursor button yet again to see the last option, Space.
P a r i t Y ↑
S p a c E
To choose the desired option, press the SEL button when the option is showing on the screen.
11-4
A
A. Pinouts and Cable Wiring
Housing: shield
Power M12:
PIN Description
1 Input V+
2 Not assigned
3 Input V-
4 Not assigned
5 Function ground
A-2
NPort 5000 Series Pinouts and Cable Wiring
6 – – DTL/DTL-T, and
7 – – 5650I-8-DTL/DTL-T,
NPort IA5150/5250,
8 – –
NPort IA5250A
Note: The NPort IA5150A Series’s DB9 ports only support RS-232
signals.
7 CTS
8 DTR
485
1 --- ---
2 --- ---
3 TxD+ ---
4 TxD- ---
5 RxD- Data-
6 RxD+ Data+
Pinouts
7 GND GND
8 --- ---
Pin RS-232
4-wire RS-485 485 8-DT-J
A-3
NPort 5000 Series Pinouts and Cable Wiring
NPort 5230
IA5150, NPort
IA5150A
4 Data-(A) RxD-(A)
5 GND GND
NPort 5430/5430I
Terminal Block RS-
422/485 Pinouts
3 GND
4 TxD
5 RxD
6 DCD
7 CTS
8 DTR
A-4
NPort 5000 Series Pinouts and Cable Wiring
NPort IA5150/5250
NPort IA5000A
Power Input and Relay Output
Ethernet Cables
A-5
NPort 5000 Series Pinouts and Cable Wiring
Serial Cables
Serial Cable Wiring Diagrams
Female DB9 to Male DB9 (RS-232)
Female DB9 to Male DB25 (RS-232)
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) 8-pin RJ45 to DB9 Female (RS-
232)
NPort 5000 Series
A-7
NPort 5210, NPort 5610/5650 (RS-232)
Pinouts and Cable Wiring
8-pin RJ45 to DB25 Male (RS- 8-pin RJ45 to DB25 Female (RS- 8-pin RJ45 to DB9 Male (RS- 8-pin RJ45 to DB9 Female (RS-
422/4-wire RS-485) 422/4-wire RS-485) 422/4-wire RS-485) 422/4-wire RS-485)
NPort 5000 Series
A-8
NPort 5630 (RS-422/4-wire RS-485)
Pinouts and Cable Wiring
8-pin RJ45 to DB25 Male (2- 8-pin RJ45 to DB25 Female 8-pin RJ45 to DB9 Male 8-pin RJ45 to DB9 Female
wire RS-485) (2-wire RS-485) (2-wire RS-485) (2-wire RS-485)
NPort 5000 Series
A-9
NPort 5630 (2-wire RS-485)
Pinouts and Cable Wiring
8-pin RJ45 to DB25 Male (RS- 8-pin RJ45 to DB25 Female (RS- 8-pin RJ45 to DB9 Male (RS- 8-pin RJ45 to DB9 Female
422/4-wire RS-485) 422/4-wire RS-485) 422/4-wire RS-485) (RS-422/4-wire RS-485)
NPort 5000 Series
A-10
NPort 5650 (RS-422/4-wire RS-485)
Pinouts and Cable Wiring
8-pin RJ45 to DB25 Male (2- 8-pin RJ45 to DB25 Female 8-pin RJ45 to DB9 Male 8-pin RJ45 to DB9 Female
wire RS-485) (2-wire RS-485) (2-wire RS-485) (2-wire RS-485)
NPort 5000 Series
A-11
NPort 5650 (2-wire RS-485)
Pinouts and Cable Wiring
NPort 5000 Series Pinouts and Cable Wiring
TxD 4 3 2 2 3 RxD
RxD 5 2 3 3 2 TxD
DCD 6 1 1 8 8 DCD
CTS 7 8 7 5 4 RTS
DTR 8 4 6 20 6 DSR
RxD+ 5 3 2 2 3 TxD+
RxD- 6 4 6 20 6 TxD-
Data+ 5 3 2 2 3 Data+
Data- 6 4 6 20 6 Data-
A-12
NPort 5000 Series Pinouts and Cable Wiring
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 that
the 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.
To set a termination resistor to 1 kΩ, make sure that the two jumpers (JP3 and JP4) assigned to the
serial port are shorted by jumper caps.
NPort 5000 Series Adjustable Pull High/low Resistors for the RS-485 Port
To set a pull high/low resistor to 1 kΩ, make sure that the two jumpers (JP3 and JP4) assigned to the
serial port are shorted by jumper caps.
SW 1 2 3
Pull-high Pull-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
To set the pull high/low resistors to 1 KΩ, make sure both of the assigned DIP switches are in the ON
position.
To set the pull high/low resistors to 1 KΩ, make sure both of the assigned DIP switches are in the ON
position.
B-3
NPort 5000 Series Adjustable Pull High/low Resistors for the RS-485 Port
• NPort 5600-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 1 2 3
Pull High Pull Low Terminator
ON 1 KΩ 1 KΩ 120 Ω
Default OFF 150 KΩ 150 KΩ –
SW 1 2 3
Pull-high resistor Pull-low resistor Terminator
ON 1 KΩ 1 KΩ 120 Ω
OFF 150 KΩ* 150 KΩ* –*
* Default
B-4
NPort 5000 Series Adjustable Pull High/low Resistors for the RS-485 Port
B-5
NPort 5000 Series Adjustable Pull High/low Resistors for the RS-485 Port
B-6
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 are assigned by the IANA, and on most systems, can only be used by system
processes 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.
C-2
D
D. SNMP Agents with MIB II & RS-
232/422/485 Link 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.
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 send
a 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 this
reason, 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 and
the 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 find
this example on Moxa’s website.
Info [n]
Field ID Length Data
Length 1 1 Variable, Length is “Length Field”
ID List
ID Value Description Length Note
1 Server 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-endian
5 IP Address 4, DWORD Little-endian
6 Netmask 4, DWORD Little-endian
7 Default Gateway 4, DWORD Little-endian
8 Firmware Version 4, DWORD Little-endian
Ver1.3.4= 0x0103040
9 AP ID 4, DWORD Little-endian
E-2
NPort 5000 Series Auto IP Report Protocol
E-3
F
F. Compliance Notice
CE Warning
This is a Class A product. In a domestic environment, this product may cause radio interference, in which
case the user may be required to take appropriate measures.
FCC Warning
This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to
part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful
interference 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.