NPort 5600-8-DT Users Manual v4
NPort 5600-8-DT Users Manual v4
NPort 5600-8-DT Users Manual v4
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
1. Introduction...................................................................................................................................... 1-1
Overview ...........................................................................................................................................1-2
Product Features ................................................................................................................................1-2
Package Checklist ...............................................................................................................................1-2
2. Overview of Hardware ...................................................................................................................... 2-1
Panel Layout ......................................................................................................................................2-2
Top and Rear View ......................................................................................................................2-2
Front View..................................................................................................................................2-2
Bottom View ...............................................................................................................................2-3
LED Indicators....................................................................................................................................2-4
Top Panel Indicators ....................................................................................................................2-4
Ethernet Port Indicators ...............................................................................................................2-4
Pin Assignments .................................................................................................................................2-4
Ethernet Port Pinouts ...................................................................................................................2-4
Device Port Pinouts......................................................................................................................2-5
Console Port Pinouts ....................................................................................................................2-5
Product Specifications .........................................................................................................................2-6
3. Basic Installation .............................................................................................................................. 3-1
Before You Begin ................................................................................................................................3-2
Required Items ...........................................................................................................................3-2
Wiring Guidelines ........................................................................................................................3-2
STEP 1: Connect network, serial device, and power ................................................................................3-3
Connect to Network .....................................................................................................................3-3
Attach Serial Device ....................................................................................................................3-3
Connect Power ............................................................................................................................3-4
STEP 2: Configure the device server’s general settings ............................................................................3-4
Install NPort Administrator ...........................................................................................................3-4
Search for Device Server on LAN...................................................................................................3-4
Adjust General Settings ...............................................................................................................3-5
Verify Network Settings ...............................................................................................................3-6
STEP 3: Configure device port operation mode .......................................................................................3-6
Adjust Operation Mode Settings ....................................................................................................3-6
STEP 4: Configure serial communication parameters ...............................................................................3-8
Review Serial Parameters .............................................................................................................3-8
Adjust Serial Parameters ..............................................................................................................3-8
STEP 5: Map COM port to device ..........................................................................................................3-9
Specify Target Device Server ...................................................................................................... 3-10
Assign COM Port Number to Device Port....................................................................................... 3-10
Apply Change ........................................................................................................................... 3-11
4. General Settings................................................................................................................................ 4-1
Overview ...........................................................................................................................................4-2
Basic Settings ....................................................................................................................................4-2
Network Settings ................................................................................................................................4-3
Serial Settings....................................................................................................................................4-5
Operating Settings ..............................................................................................................................4-6
Accessible IP Settings .........................................................................................................................4-6
Auto Warning Settings.........................................................................................................................4-7
Email and SNMP trap ...................................................................................................................4-7
Event Type .................................................................................................................................4-8
Change Password ...............................................................................................................................4-9
5. Introduction to Operation Modes ...................................................................................................... 5-1
Overview ...........................................................................................................................................5-2
Real COM Mode ..................................................................................................................................5-2
RFC2217 Mode ...................................................................................................................................5-3
TCP Server Mode ................................................................................................................................5-3
TCP Client Mode .................................................................................................................................5-3
UDP Mode..........................................................................................................................................5-4
Pair Connection Modes ........................................................................................................................5-4
Reverse Telnet Mode ...........................................................................................................................5-4
Disabled Mode....................................................................................................................................5-4
6. Operation Mode Advanced Settings................................................................................................... 6-1
Overview ...........................................................................................................................................6-2
List of Parameters .......................................................................................................................6-2
When to Make Adjustments ..........................................................................................................6-2
Using Pair Connection Modes................................................................................................................6-3
Parameter Details ...............................................................................................................................6-3
Connection Management Parameters .............................................................................................6-3
Data Packing Parameters .............................................................................................................6-4
Other Parameters ........................................................................................................................6-6
7. Using the Web Console...................................................................................................................... 7-1
Overview ...........................................................................................................................................7-2
Web Browser Settings .........................................................................................................................7-2
Basic Navigation .................................................................................................................................7-3
Device Server Settings ........................................................................................................................7-4
Special Functions................................................................................................................................7-4
Monitor ......................................................................................................................................7-4
Load Factory Defaults ..................................................................................................................7-5
8. Using NPort Administrator ................................................................................................................ 8-1
Overview ...........................................................................................................................................8-2
Installing NPort Administrator ..............................................................................................................8-2
Basic Navigation .................................................................................................................................8-5
Window Layout ...........................................................................................................................8-5
Activating a Function ...................................................................................................................8-5
Configuration .....................................................................................................................................8-6
Finding Your Device Server...........................................................................................................8-6
Status........................................................................................................................................8-7
Device Server Parameters ............................................................................................................8-8
Firmware and Configuration Management..................................................................................... 8-10
Monitor ........................................................................................................................................... 8-11
Finding Your Device Server......................................................................................................... 8-11
Monitoring Parameters ............................................................................................................... 8-12
Activating the Monitor................................................................................................................ 8-13
Port Monitor ..................................................................................................................................... 8-15
COM Mapping ................................................................................................................................... 8-15
Finding Your Device Server......................................................................................................... 8-16
COM Mapping Settings ............................................................................................................... 8-17
Saving COM Mapping Settings..................................................................................................... 8-19
COM Grouping.................................................................................................................................. 8-20
Creating a COM Group ............................................................................................................... 8-20
Deleting a COM Group ............................................................................................................... 8-22
Adding a Port to a COM Group .................................................................................................... 8-23
Removing a Port from a COM Group ............................................................................................ 8-24
Modifying Ports in a COM Group .................................................................................................. 8-25
IP Address Report ............................................................................................................................. 8-28
Automatic Message Log ..................................................................................................................... 8-29
9. NPort CE Driver Manager for Windows CE ......................................................................................... 9-1
Overview ...........................................................................................................................................9-2
Installing NPort CE Driver Manager .......................................................................................................9-2
Using NPort CE Driver Manager ............................................................................................................9-2
10. Other Configuration Interfaces ....................................................................................................... 10-1
Overview ......................................................................................................................................... 10-2
LCM Console .................................................................................................................................... 10-2
Main Menu Server setting ....................................................................................................... 10-2
Main Menu Network setting..................................................................................................... 10-2
Main Menu Serial set .............................................................................................................. 10-2
Main Menu Op Mode set ......................................................................................................... 10-3
Main Menu Console ................................................................................................................ 10-3
Main Menu LCM passwd prot ................................................................................................... 10-3
Main Menu Reset btn prot ....................................................................................................... 10-3
Main Menu Ping ..................................................................................................................... 10-3
Main Menu Save/Restart......................................................................................................... 10-3
Telnet Console ................................................................................................................................. 10-3
Serial Console .................................................................................................................................. 10-3
11. TTY Drivers for Linux and UNIX....................................................................................................... 11-1
Linux Real TTY Drivers ...................................................................................................................... 11-2
Basic Steps............................................................................................................................... 11-2
Installing Linux Real TTY Driver Files ........................................................................................... 11-2
Mapping TTY Ports..................................................................................................................... 11-2
Removing Mapped TTY Ports....................................................................................................... 11-3
Removing Linux Driver Files........................................................................................................ 11-3
UNIX Fixed TTY Drivers ..................................................................................................................... 11-4
Installing the UNIX Driver .......................................................................................................... 11-4
Configuring the UNIX Driver ....................................................................................................... 11-4
12. The IP Serial Library ....................................................................................................................... 12-1
Overview ......................................................................................................................................... 12-2
IP Serial Library Function Groups........................................................................................................ 12-2
Example Program ............................................................................................................................. 12-3
13. Troubleshooting .............................................................................................................................. 13-1
Connection Problems......................................................................................................................... 13-1
Operation Mode Problems .................................................................................................................. 13-1
Real COM Mode......................................................................................................................... 13-1
TCP Server Mode....................................................................................................................... 13-2
TCP Client Mode ........................................................................................................................ 13-2
UDP Mode ................................................................................................................................ 13-2
Serial Data Problems......................................................................................................................... 13-3
A. Cable Wiring...................................................................................................................................... A-1
RS-232 Cables ...................................................................................................................................A-2
RS-422, 4-wire RS-485 Cables .............................................................................................................A-2
2-wire RS-485 Cables..........................................................................................................................A-2
DB9 and DB25 Connectors ...................................................................................................................A-2
DB9 Connectors ..........................................................................................................................A-2
DB25 Connectors ........................................................................................................................A-3
B. SNMP Agent with MIB II & RS-232-Like Group ................................................................................. B-1
C. IP Report Protocol ............................................................................................................................ C-1
IP Address Report Structure.................................................................................................................C-1
Hardware and AP ID............................................................................................................................C-2
Example ............................................................................................................................................C-2
D. Compliance Notice............................................................................................................................. D-1
1
1. Introduction
The Moxa NPort 5600-8-DT Series, a line of advanced serial device servers, makes it easy to enable your serial
devices for network operation. The NPort 5600-8-DT Series includes the following five models:
RS-232 models
• NPort 5610-8-DT
• NPort 5610-8-DT-J
RS-232/422/485 models
• NPort 5650-8-DT
• NPort 5650-8-DT-J
• NPort 5650I-8-DT
Overview
Product Features
Package Checklist
NPort 5600-8-DT Series Introduction
Overview
Your NPort 5600-8-DT Series device server provides instant Ethernet network access to industrial devices
through a serial connection. Devices such as PLCs, meters, and sensors can use the device server to connect
to an IP-based Ethernet LAN, making the devices accessible from anywhere over a local LAN or the Internet.
The device server’s space-saving design makes it ideal for many applications:
• Central monitoring and control of card readers, alarms, and electronic gate security systems in campus
dormitories
• Dial-up access to private company servers
• Management of server farm devices (routers, hubs, switches) through serial console ports
• Network access to medical diagnostic equipment
The device server provides different operation modes, such as TCP Server mode or UDP mode, to ensure
compatibility with software using standard network APIs (Winsock or BSD Sockets). Real COM and Real TTY
drivers are included to allow easy, transparent operation using virtual COM/TTY ports over a TCP/IP network.
The drivers help preserve your software investment by providing instant network access with minimum
disruption to existing systems.
Configuration can be done manually or using automatic IP protocols (DHCP or BOOTP) through the web console.
NPort Administrator, a Windows utility, is provided for straightforward installation as well as storage and
retrieval of all system parameters.
The NPort 5600-8-DT device server has several features for better versatility and easier maintenance. Two
Ethernet ports are provided on the device server, allowing you to connect another network device through the
NPort without requiring an additional hub. You can daisy chain multiple NPort 5600-8-DT units together. A
built-in automatic warning system can send an e-mail or SNMP trap for certain events, such as network
disconnection or password change.
Product Features
The device server includes the following features:
Package Checklist
The Standard Accessories are shipped with each NPort 5600-8-DT device server. The Optional Accessories can
be ordered separately.
Standard Accessories
• NPort Document & Software CD
• NPort 5600-8-DT Quick Installation Guide
• Power cord
• Power adapter
• DIN-rail kit
1-2
NPort 5600-8-DT Series Introduction
Optional Accessories
• DK-35A: DIN-rail mounting kit (35 mm)
• CBL-RJ45M9-150: 8-pin RJ45 to male DB9 cable, 150 cm
• CBL-RJ45F9-150: 8-pin RJ45 to female DB9 cable, 150 cm
• CBL-RJ45M25-150: 8-pin RJ45 to male DB25 cable, 150 cm
• CBL-RJ45F25-150: 8-pin RJ45 to female DB25 cable, 150 cm
• NP21101: Male DB25 to female DB9 RS-232 cable, 30 cm
NOTE Please notify your sales representative if any of the above items are missing or damaged
1-3
2
2. Overview of Hardware
The NPort 5600-8-DT is a rugged and easy-to-use device networking product. Use this chapter to familiarize
yourself with the hardware and specifications.
Panel Layout
Top and Rear View
Front View
Bottom View
LED Indicators
Top Panel Indicators
Ethernet Port Indicators
Pin Assignments
Ethernet Port Pinouts
Device Port Pinouts
Console Port Pinouts
Product Specifications
NPort 5600-8-DT Series Overview of Hardware
Panel Layout
Front View
NPort 5610-8-DT, 5650-8-DT, 5650I-8-DT
Power switch
V+ V-
LAN ETH2 Port 1 Port 3 Port 5 Port 7
12-48 VDC ETH1
Power switch
ETH1
V+ V-
LAN 1 2 3 4 5 6 7 8
12-48 VDC
2-2
NPort 5600-8-DT Series Overview of Hardware
Bottom View
Item Description
PWR LED Indicates power input status (red)
Ready and Fault LEDs Indicates normal operation (green) or IP conflict (red)
Link LED Flashes when Ethernet is connected
InUse LEDs Flashes when device port is transmitting or receiving data (green)
Device port Tx LEDs Flashes when device port is transmitting data (green)
Device port Rx LEDs Flashes when device port is receiving data (orange)
LCM console display Displays server settings
Input buttons Navigates server settings
Power switch Turns server on and off
Terminal block power input For connection to DC power source
Power input For power jack connection to AC power source here
Ethernet port For Ethernet network cable connection
Device ports (DB9 or RJ45) For attachment of serial devices
RS-232 console port For access to serial console (CPU embedded UART Port 1)
Reset button Press and hold with a pointed object for 5 seconds to load factory defaults
DIP switches for pull high/low Remove cover to adjust pull high/low resistors (150K/1K) on the NPort
resistors 5650-8-DT, 5650-8-DT-J, and 5650I-8-DT
2-3
NPort 5600-8-DT Series Overview of Hardware
LED Indicators
Pin Assignments
2-4
NPort 5600-8-DT Series Overview of Hardware
2-5
NPort 5600-8-DT Series Overview of Hardware
Product Specifications
Ethernet Interface
Number of Ports: 2 (1 IP)
Speed: 10/100 Mbps, auto MDI/MDIX
Connector: 8-pin RJ45
Magnetic Isolation Protection: 1.5 KV built-in
Serial Interface
Number of Ports: 8
Serial Standards:
NPort 5610-8-DT: RS-232
NPort 5650-8-DT: RS-232/422/485
Connector:
NPort 5610-8-DT/5650-8-DT/5650I-8-DT: DB9 male
NPort 5610-8-DT-J/5650-8-DT-J: RJ45 (8 pins)
Serial Line Protection:
15 KV ESD protection for all signals
2 KV isolation protection (NPort 5650I-8-DT only)
RS-485 Data Direction Control: ADDC® (automatic data direction control)
Pull High/Low Resistor for RS-485: 1 KΩ, 150 KΩ
Terminator for RS-485: 120 Ω
Serial Signals
RS-232: TxD, RxD, RTS, CTS, DTR, DSR, DCD, GND
RS-422: Tx+, Tx-, Rx+, Rx-, GND
RS-485-4w: Tx+, Tx-, Rx+, Rx-, GND
RS-485-2w: Data+, Data-, GND
Software
Network Protocols: ICMP, IP, TCP, UDP, DHCP, BOOTP, Telnet, DNS, SNMP V1, HTTP, SMTP, SNTP, Rtelnet,
ARP, RFC2217
Configuration Options: Web Console, Telnet Console, Serial Console, Windows Utility
Windows Real COM Drivers: Windows 95/98/ME/NT/2000, Windows XP/2003/Vista/2008/7 x86/x64,
Embedded CE 5.0/6.0, XP Embedded
Fixed TTY Drivers: SCO Unix, SCO OpenServer, UnixWare 7, UnixWare 2.1, SVR 4.2, QNX 4.25, QNX 6,
Solaris 10, FreeBSD, AIX 5.x, HP-UX 11i
Linux Real TTY Drivers: Linux kernel 2.4.x, 2.6.x
Physical Characteristics
Housing: Metal, IP30 protection
Weight:
NPort 5610-8-DT: 1760 g
NPort 5610-8-DT-J: 1170 g
NPort 5650-8-DT: 1770 g
NPort 5650-8-DT-J: 1710 g
NPort 5650I-8-DT: 1850 g
2-6
NPort 5600-8-DT Series Overview of Hardware
Dimensions:
Without ears: 197 x 44 x 125 mm (7.76 x 1.73 x 4.92 in)
With ears: 229 x 46 x 125 mm (9.01 x 1.81 x 4.92 in)
With DIN-Rail kit on bottom panel: 197 x 53 x 125 mm (7.76 x 2.09 x 4.92 in)
Environmental Limits
Operating Temperature: 0 to 55°C (32 to 131°F)
Operating Humidity: 5 to 95% RH
Storage Temperature: -20 to 70°C (-4 to 158°F)
Power Requirements
Input Voltage: 12 to 48 VDC
Power Consumption:
NPort 5610-8-DT:
611 mA @ 12 V, 300 mA @ 24 V, 140 mA @ 48 V
NPort 5610-8-DT-J:
611 mA @ 12 V, 300 mA @ 24 V, 140 mA @ 48 V
NPort 5650-8-DT:
615 mA @ 12 V, 300 mA @ 24 V, 156 mA @ 48 V
NPort 5650I-8-DT:
1066 mA @ 12 V, 510 mA @ 24 V, 200 mA @ 48 V
NPort 5650-8-DT-J:
615 mA @ 12 V, 300 mA @ 24 V, 156 mA @ 48 V
Regulatory Approvals
EMC: CE (EN55022 Class A, EN55024), FCC Part 15 Subpart B Class A
Safety: UL (UL60950-1), EN60950-1
Reliability
Alert Tools: Built-in buzzer and RTC (real-time clock)
Automatic Reboot Trigger: Built-in WDT (watchdog timer)
MTBF (meantime between failures): 163356 hrs
Warranty
Warranty Period: 5 years
Details: See www.moxa.com/warranty
2-7
3
3. Basic Installation
The NPort 5600-8-DT device server is designed to coordinate between your network, your host computer, and
your serial device. Installation of the device server should occur in stages to ensure that each connection is
recognized. This chapter will guide you through a typical installation with a Windows PC. For certain
applications or environments, you may be guided to other chapters for additional information.
In these instructions, a Windows PC is used for configuration. For Linux or UNIX environments, please refer to
Chapter 10.
Step 5: Map host COM ports to device ports (for Real COM mode)
Required Items
Make sure that you have the following items before beginning your installation:
Wiring Guidelines
The following guidelines will help ensure trouble-free signal communication with the device server.
• Use separate paths to route wiring for power and devices to avoid interference. Do not run signal or
communication wiring and power wiring in the same wire conduit. The rule of thumb is that wiring that
shares similar electrical characteristics can be bundled together.
• If power wiring and device wiring paths must cross, make sure the wires are perpendicular at the
intersection point.
• Keep input wiring and output wiring separate.
• Label all wiring to each device in the system for easier testing and troubleshooting
3-2
NPort 5600-8-DT Series Basic Installation
ATTENTION
Wiring Safety Precautions
Disconnect power source
Do not install or wire this unit or any attached devices with the power connected. Disconnect the power before
installation by removing the power cord before installing and/or wiring your unit.
Follow maximum current ratings
Calculate the maximum possible current in each power wire and common wire. Observe all electrical codes
dictating the maximum current allowable for each wire size.
If the current goes above the maximum ratings, the wiring could overheat, causing serious damage to your
equipment.
Use caution - unit may get hot
The unit will generate heat during operation, and the casing may feel hot to the touch. Take care when handling
unit. Be sure to leave adequate space for ventilation.
Connect to Network
After placing the device server in its location, plug one end of the network cable into one of the device server’s
Ethernet ports. Plug the other end of the cable to the network. There are two Ethernet ports on the NPort
5600-8-DT so you can easily daisy-chain multiple units together.
Termination resistors may be needed when connecting RS-485 devices to your NPort, in order to prevent the
reflection of serial signals. The device port’s pull high/low resistors must then be set correctly to prevent signal
corruption. DIP switches are located on the bottom of your NPort 5600-8-DT for adjustment of each device
port’s pull high/low resistors. You will need to unscrew the DIP switch cover to access the DIP switches.
3-3
NPort 5600-8-DT Series Basic Installation
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
Do not use the 1 KΩ setting when using RS-232. Doing so will degrade the RS-232 signals and reduce the
effective communication distance.
ATTENTION
Grounding and wire routing helps limit the effects of noise due to electromagnetic interference (EMI). Before
attaching any serial devices, run your ground wire from your grounding surface to the device server’s
grounding contact at the rear panel. Secure the connection with the provided screw.
Connect Power
Connect the 12 to 48 VDC power line to the NPort 5600-8-DT’s terminal block or power jack. The “Ready” LED
will initially glow red. When the system is ready, the “Ready” LED will turn green.
• NPort 5600-8-DT Series device server with live connection to the network
• Windows PC with live connection to the same network (see Chapter 10 for Linux/UNIX installations)
• NPort Documentation & Software CD
3-4
NPort 5600-8-DT Series Basic Installation
In the configuration window, go to the “Network” tab. For any parameter that you wish to change, click the
appropriate “Modify” box and make the desired adjustments. The device server must be assigned a valid,
unique IP address for operation in your network. Both fixed and dynamic IP addresses are supported. Please
consult with your network administrator if you are not sure how to set these parameters.
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.
3-5
NPort 5600-8-DT Series Basic Installation
• NPort 5600-8-DT Series device server with live connection to the network
• Windows PC with live connection to the same network and NPort Administrator installed
Make sure that NPort Administrator is open with your device server listed in the configuration pane. You should
also have an understanding of your intended device networking application and the appropriate settings.
3-6
NPort 5600-8-DT Series Basic Installation
Using Yes
Real COM Yes
Moxa
mode with
driver? Yes Using socket
Moxa driver
program?
No
RFC2217
No
mode with 3rd
party driver
Client
RFC2217
mode
or
TCP Server Need to
Yes
mode with IP control serial
Pair
No
Connection
modes
(master +
slave)
Yes Console
management
Reverse
application?
Telnet mode
No
Contact Moxa
for guidance
3-7
NPort 5600-8-DT Series Basic Installation
• NPort 5600-8-DT Series device server with live connection to the network
• Windows PC with live connection to the same network and NPort Administrator installed
Make sure that NPort Administrator is open with your device server listed in the configuration pane. You should
also know the serial communication parameters for the attached device and intended application.
3-8
NPort 5600-8-DT Series Basic Installation
Make adjustments to the parameters as necessary. When you are ready to restart the device server with the
new settings, click “OK”.
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 in Linux and UNIX systems.
3-9
NPort 5600-8-DT Series Basic Installation
In the Basic Settings tab, select the COM port number that will be mapped to the device port. You can map
multiple COM ports at the same time, in which case the “Auto Enumerating” feature may be used to
automatically number the COM ports.
3-10
NPort 5600-8-DT Series Basic Installation
Advanced Settings
For additional details on Advanced Settings in NPort
Administrator, please refer to Chapter 8.
FIFO: This tells the driver whether or not to use the FIFO.
Network Timeout: This 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 performance seems
sluggish, try enabling Fast Flush.
Apply Change
Right-click COM Mapping in the Function panel and select “Apply Change” in the context menu to save the
current COM mapping settings. Your application will now be able to access the target serial device using the
COM port.
3-11
4
4. General Settings
The NPort 5600-8-DT is easily configured to suit your network environment and your application. This chapter
goes over general settings for your device server.
Overview
Basic Settings
Network Settings
Serial Settings
Operating Settings
Accessible IP Settings
Auto Warning Settings
Email and SNMP trap
Event Type
Change Password
NPort 5600-8-DT Series General Settings
Overview
The NPort 5600-8-DT can be configured through NPort Administrator, the web console, the Telnet console, or
the serial console. For each of these configuration interfaces, parameters are organized by type. For this
chapter, screenshots from the web console are used to illustrate the available parameters, but the same
parameters can be modified using the other interfaces.
Basic Settings
Server name (default = blank): This is an optional free text field for your own use. It does not affect operation
of the NPort device server. It can be used to help differentiate one device server from another.
ATTENTION
There is a risk of explosion if the real-time clock battery is replaced incorrectly!
The real time clock is powered by a lithium battery. We strongly recommend that you obtain assistance from
a Moxa support engineer before replacing the battery. Please contact the Moxa RMA service team if you need
to change the battery.
Time zone (default = GMT Greenwich Mean Time): This field shows the currently selected time zone and
allows you to select a different time zone.
Local time: This field shows the time that you last opened or refreshed the browser, using the NPort’s built-in
real-time clock. You can adjust the real-time clock using this field. Make sure that you first select the correct
time zone.
Time server (default = blank): This optional field is for your time server’s IP address or domain name, if a time
server is used in your network. The NPort 5600-8-DT supports SNTP (RFC-1769) for automatic time calibration.
The device server will request time information from the specified time server every 10 minutes.
Web console (default = Enable): This field enables or disables access to the web console.
Telnet console (default = Enable): This field enables or disables access to the Telnet console.
LCM password protect (default = No): This field enables or disables password protection for the LCM console.
The LCM console refers to the LCD control panel on the top panel of the device server, which may be used for
basic configuration.
4-2
NPort 5600-8-DT Series General Settings
Reset button protect (default = No): This field enables or disables reset button operation.
ATTENTION
If you disable both the web console and Telnet console, you can still use the LCM console or NPort Administrator
to configure your NPort device server.
Network Settings
IP Address (default = 192.168.127.254): This field is for the IP address that will be assigned to your NPort
device server. All device ports on the device server will share this IP address. An IP address is a number
assigned to a network device (such as a computer) as a permanent address on the network. Computers use the
IP address to identify and talk to each other over the network. Choose a proper IP address that is unique and
valid in your network environment. If your device server will be assigned a dynamic IP address, set the “IP
configuration” parameter appropriately.
ATTENTION
You must assign a valid IP address to your NPort 5600-8-DT before it will work in your network environment.
Your network system administrator should provide you with a unique IP address and related settings for your
network
Netmask (default = 255.255.255.0): This field is for the subnet mask. A subnet mask represents all of the
network hosts at one geographic location, in one building, or on the same local area network. When a packet
is sent out over the network, the NPort device server will use the subnet mask to check whether the desired
TCP/IP host specified in the packet is on the local network segment. If the address is on the same network
segment as the device server, a connection is established directly from the device server. Otherwise, the
connection is established through the gateway as specified in the “Gateway” parameter.
Gateway (default = blank): This field is for the IP address of the gateway, if applicable. A gateway is a network
computer that acts as an entrance to another network. Usually, the computers that control traffic within the
network or at the local Internet service provider are gateway nodes. The NPort device server needs to know the
IP address of the default gateway computer in order to communicate with the hosts outside the local network
environment. Consult your network administrator if you do not know how to set this parameter.
IP configuration (default = Static): This field determines how the device server’s IP address will be assigned.
Four options are available:
4-3
NPort 5600-8-DT Series General Settings
Option Description
Static User-defined IP address, netmask, gateway.
DHCP DHCP server-assigned IP address, netmask, gateway, DNS, and time server
DHCP/BOOTP DHCP server-assigned IP address, netmask, gateway, DNS, and time server,
or BOOTP server-assigned IP address (if the DHCP server does not respond)
BOOTP BOOTP server-assigned IP address
DNS server 1 (default = blank): This field is for the DNS server’s IP address, if applicable. This allows the
NPort device server to use domain names instead of IP addresses to access hosts.
Domain Name System (DNS) is the way that Internet domain names are identified and translated into IP
addresses. A domain name is an alphanumeric name, such as www.moxa.com, that it is usually easier to
remember than the numeric IP address. A DNS server is a host that translates a text-based domain name into
an IP address in order to establish a TCP/IP connection. When the user wants to visit a particular website, the
user’s computer sends the domain name (e.g., www.moxa.com) to a DNS server to request that website’s
numeric IP address. When the IP address is received from the DNS server, the user’s computer uses that
information to connect to the website’s web server.
The NPort will play the role of a DNS client, actively querying the DNS server for the IP address associated with
a particular domain name. The following device server parameters on the NPort 5600-8-DT support the use of
domain names in place of IP addresses: Time Server, Destination IP Address (in TCP Client mode), Mail Server,
SNMP Trap Server, Destination Address (in Pair Connection mode), and SMTP Server.
DNS server 2: This is field is for an alternate DNS server’s IP address, if applicable.
Community name (default = public): This optional field is for the community name, which is a plain-text
password mechanism for weak authentication of queries to agents of managed network devices.
Contact (default = blank): This optional field is for SNMP contact information, such as an emergency contact
name and telephone or pager number.
Location (default = blank): This optional field may be used to specify the location string for SNMP agents. This
string is usually set to the street address where the NPort is physically located.
IP Address Reports:
The IP Address report settings are used when the NPort’s IP address is configured by DHCP or BOOTP (i.e.,
dynamic rather than static IP address). Using these settings, the NPort can be configured to send periodic IP
address reports to a network host. For example, if the NPort is operating as a server (TCP or UDP modes), then
the host, operating as a client, must know the NPort’s IP address. If the DHCP server assigns a new IP address
to NPort, the host needs to be notified of the NPort’s new IP address. The IP address reports can be used to
resolve this situation.
Please refer to Chapter 8 for details on receiving automatic IP reports in NPort Administrator. Please refer to
Appendix C for details on the IP report protocol.
The NPort’s IP address report must be received by a network host using one of the following methods:
Auto report to UDP port (default = blank): This optional field specifies the UDP port number to use when
sending IP address reports.
Auto report period (default = 10 seconds): This optional field specified how often to send IP address reports.
4-4
NPort 5600-8-DT Series General Settings
Serial Settings
Serial Settings is where you set the serial communication parameters for each device port, such as baudrate,
parity, and flow control. Each device port can be configured independently.
ATTENTION
It is critical that the device port’s serial communication settings match the attached device. Please refer to the
user’s manual for your device to verify the serial communication settings.
Port alias (default = blank): This optional text field can be used to help you differentiate one device port from
another.
FIFO (default = Enable): This is a required field. A 128-byte FIFO is provided for each device port in both Tx
and Rx directions. Disable the FIFO if the attached serial device does not have its own FIFO to prevent data loss
during communication.
Interface (default = RS-232): This is a required field. For the NPort 5610-8-DT and 5610-8-DT-J, only the
RS-232 setting is available.
4-5
NPort 5600-8-DT Series General Settings
Operating Settings
Operating Settings is where each device port’s operation mode and associated parameters are configured.
Please refer to Chapters 5 and 6 for an explanation of the different operating modes and parameters.
Accessible IP Settings
The Accessible IP list allows you enable only certain IP addresses to connect to the NPort device server and
attached devices. When the accessible IP list is enabled, only IP addresses that are on the list will be able to
connect to the NPort. You can allow single IP addresses or a range of IP addresses by using a combination of
IP address and netmask, as follows:
4-6
NPort 5600-8-DT Series General Settings
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.
Mail Server (default = blank): This optional field is for the IP address or domain name of your network mail
server, if applicable. The mail server is required for the NPort to send e-mail warnings of administrative events.
User name (default = blank): This optional field is used if your mail server requires it.
Password (default = blank): This optional field is used if your mail server requires it.
From E-mail address (default = blank): This optional field sets the “From” e-mail address that will show up
in an automatic warning e-mail.
E-mail address 1 through 4 (default = blank): These optional fields set the destination e-mail address for
automatic e-mail warnings.
ATTENTION
Consult your network administrator or ISP if you are unsure how to set the mail server settings. The NPort’s
automatic warning function may not work properly if the settings are incorrect. The NPort supports SMTP AUTH
with LOGIN, PLAIN, CRAM-MD5 (RFC 2554).
4-7
NPort 5600-8-DT Series General Settings
SNMP trap server (default = blank): This optional field is for the IP address or domain name of your SNMP
trap server, if applicable. The SNMP trap server is required for the NPort to send SNMP traps for certain
administrative events.
Event Type
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.
Cold start: The NPort has booted up after being powered off.
Warm start: The NPort has rebooted without turning the power off.
Authentication failure: The user has entered the wrong password when trying to access the NPort
configuration parameters from NPort Administrator or one of the consoles (e.g., web console).
IP address changed: The user has changed the NPort’s IP address. Please note that for this event, the NPort
will reboot with the new IP address without sending an automatic warning e-mail if the NPort is unable to reach
the mail server within 15 seconds.
Password changed: The user has changed NPort’s password. Please note that for this event, the NPort will
reboot with the new password without sending an automatic warning e-mail if the NPort is unable to reach the
mail server within 15 seconds.
Ethernet1, Ethernet 2 link down: The Ethernet connection is down or the Ethernet cable has been
disconnected.
DCD changed, Ports 1 through 8: The device port’s DCD (Data Carrier Detect) signal has changed, or the
modem connection status has changed. For example, a DCD change to high indicates that the attached modem
has established a valid connection to another modem. A DCD change to low indicates that the connection line
is down.
4-8
NPort 5600-8-DT Series General Settings
DSR changed, Ports 1 through 8: The device port’s DSR (Data Set Ready) signal has changed, or the
attached device has no power. For example, a DSR change to high indicates that the DCE (Data Communication
Equipment) is powered on. A DSR change to low indicates that the DCE is powered off.
ATTENTION
DCD and DSR signal changes are only applicable for the RS-232 interface.
Change Password
You can set a password to restrict access to the NPort’s configuration parameters. If a user does not enter the
password, access to the NPort configuration settings will be denied, whether it is through NPort Administrator
or through one of the consoles (e.g., web console). In order to remove password protection, leave the New
password and Retype password parameters blank.
ATTENTION
If you forget the NPort’s password, the ONLY way to configure the NPort is by using the hardware reset button
load the factory defaults.
Before you set a password for the first time, it is a good idea to export the NPort’s completed configuration to
a file. Your configuration can then be easily restored if necessary. For additional information on configuration
management, please refer to Chapter 8.
4-9
5
5. Introduction to Operation Modes
In this chapter, we describe the various device port operation modes available on the NPort 5600-8-DT. The
operation mode determines how the device port will interact with the network. The selection of operation mode
will depend on your specific application. After choosing the proper operation mode in this chapter, please refer
to Chapter 6 for information on configuring the operation mode advanced settings.
Overview
Real COM Mode
RFC2217 Mode
TCP Server Mode
TCP Client Mode
UDP Mode
Pair Connection Modes
Reverse Telnet Mode
Disabled Mode
NPort 5600-8-DT Series Introduction to Operation Modes
Overview
The NPort 5600-8-DT connects RS-232/422/485 devices to an Ethernet network. In a typical application, a
traditional SCADA and data collection system relies on serial devices to collect data from various kinds of
instruments. With the NPort device server, the SCADA and data collection system can access instrument data
over a standard TCP/IP network, whether the devices are used locally or at a remote site.
Each device port on the NPort 5600-8-DT is configured independently of the other device ports, with its own
serial communication parameters and operation mode. A device port’s operation mode determines how it
interacts with the network, and different modes are available to encompass a wide variety of applications and
devices.
Real COM and RFC2217 modes allow serial-based software to access the device port as if it were a local serial
port on a PC. These modes are appropriate when your application relies on Windows or Linux software that was
originally designed for locally attached COM or TTY devices. With these modes, you can access your devices
from the network using your existing COM/TTY-based software, without investing in additional software.
Three different socket modes are available for user-developed socket programs: TCP Server, TCP Client, and
UDP Server/Client. For TCP applications, the appropriate mode depends on whether the connection will be
hosted or initiated from the device port or from the network. The main difference between the TCP and UDP
protocols is that TCP guarantees delivery of data by requiring the recipient to send an acknowledgement to the
sender. UDP does not require this type of verification, making it possible to offer speedier delivery. UDP also
allows multicasting of data to groups of IP addresses and would be suitable for streaming media or non-critical
messaging applications such as LED message boards.
Pair Connection Slave and Master modes are designed for serial-to-serial communication over Ethernet, in
order to overcome traditional limitations with serial transmission distance.
Reverse Telnet mode is designed for connections to servers that will host terminal sessions through the
device port. This mode is typically used for console management applications, but can also be used to upgrade
legacy servers to network operation.
Driver Mode
Port 2 Port 4 Port 6 Port 8
RS-232/422/485
Device
ATTENTION
Real COM drivers are installed automatically with NPort Administrator.
Real COM mode allows you to continue using your serial communications software to access devices that are
now attached to your NPort device server. On the host, the NPort Real COM driver automatically intercepts data
sent to the COM port, packs it into a TCP/IP packet, and redirects it to the network. At the other end of the
connection, the NPort device server accepts the Ethernet frame, unpacks the TCP/IP packet, and sends the
serial data to the appropriate device.
5-2
NPort 5600-8-DT Series Introduction to Operation Modes
ATTENTION
In Real COM mode, several hosts can have simultaneous access control over the device port. If necessary, you
can limit access by using the Accessible IP settings. Please refer to Chapter 4 for additional information about
Accessible IP settings.
RFC2217 Mode
RFC-2217 mode is similar to Real COM mode, since it relies on a driver to transparently map the device port to
a virtual COM port on a host computer. The RFC2217 standard defines general COM port control options based
on the Telnet protocol and supports one connection at a time. Third party drivers supporting RFC-2217 are
widely available on the Internet and can be used to implement virtual COM mapping.
1 Request a
both directions—from the host to the device, and from the connection RS-232/422/485
device to the host. 2 Proceed with Device
data transmission
1 Request a
both directions between the host and device. connection RS-232/422/485
2 Proceed with Device
data transmission
5-3
NPort 5600-8-DT Series Introduction to Operation Modes
UDP Mode
UDP is similar to TCP but is faster and more efficient. Data can UDP Mode
be broadcast to or received from multiple network hosts.
However, UDP does not support verification of data and would
not be suitable for applications where data integrity is critical.
Directly proceed with
It is ideal for message display applications. data transmission
TCP/IP (no connection required)
Ethernet
RS-232/422/485
Device
Port 1
Port 4
Port 3
Port 6
Port 5
Port 8
Port 7
Master
WAN (i.e., through one or more routers). A device attached to
TCP/IP
one NPort can then communicate transparently to a device Ethernet
attached to the other NPort, as if the two devices were
connected by a serial cable. Both data and modem control Pair Connection
Slave
signals are exchanged, except for DCD signals. This can be
Port 2 Port 4 Port 6 Port 8
NPort 5600-8-DT
Port 2 Port 4 Port 6 Port 8
RS-232
Disabled Mode
A device port can be disabled by selecting the Disabled operation mode.
5-4
6
6. Operation Mode Advanced Settings
Each device port on the NPort 5600-8-DT operates in one of the available operation modes, such as Real COM
mode or Reverse Telnet mode. For each operation mode, different parameters can be configured. This chapter
explains the settings for every parameter for every operation mode.
Overview
List of Parameters
When to Make Adjustments
Using Pair Connection Modes
Parameter Details
Connection Management Parameters
Data Packing Parameters
Other Parameters
NPort 5600-8-DT Series Operation Mode Advanced Settings
Overview
The device port operation mode determines how the port interacts with the network. Depending on your
application and device, more than one operating mode may be suitable. When setting the operation mode,
different parameters may be adjusted depending on the operation mode.
For each mode, the default settings should work for most applications. Modify these settings only if absolutely
necessary for your application. The operation mode and related parameters can be configured through NPort
Administrator. The same parameters may also be configured using the web console, Telnet console, or serial
console.
RFC2217 Mode
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.
6-2
NPort 5600-8-DT Series Operation Mode Advanced Settings
• You are using Pair Connection modes to connect two serial devices over Ethernet. Adjust Local TCP port
and Destination IP Address.
For the device port in Pair Connection Slave mode, designate a Local TCP port to be used for communication.
For the device port in 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 device servers can be connected by an Ethernet cable, or they
can be connected to the same network.
Parameter Details
RFC2217 Mode
TCP Client Mode
UDP Mode
Default: 7 minutes
Description: This is the time limit for keeping the connection open if a
host does not respond to “TCP alive check” packets. If the host does not
respond within the specified time, the connection will be closed. A setting
of 0 means that the connection will remain open even if the host never
responds.
Inactivity time
Range: 0 to 65535 ms
Real COM Mode
RFC2217 Mode
TCP Client Mode
UDP Mode
Default: 0
Description: This 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 is 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.
6-3
NPort 5600-8-DT Series Operation Mode Advanced Settings
Max connection
Range: 1 to 4
RFC2217 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
adjusted correctly.
Ignore jammed IP
Range: Yes or No
Real COM Mode
RFC2217 Mode
TCP Client Mode
UDP Mode
Default: No
Description: This field specifies how an unresponsive IP address is
handled when there are simultaneous connections to the device port (see
Max connection). “Yes” means that transmission to the other hosts will
not be suspended if one IP address becomes unresponsive. “No” means
that all transmission will be suspended if one IP address becomes
unresponsive, and will resume when all hosts have responded. “Yes” is
the recommended setting when Max connection is 2 or more.
RFC2217 Mode
TCP Client Mode
UDP Mode
Default: No
Description: This specifies whether the device port will respond to driver
control commands when multiple simultaneous connections are enabled
(see Max connection).
RFC2217 Mode
Reverse Telnet Mode
TCP Client Mode
UDP Mode
Default: 0
Description: This controls data packing by the amount of data received.
Serial data accumulates in the device port’s buffer until it reaches the
specified length. When the specified amount of data has accumulated in
the buffer, the data is packed for network transmission. A setting of 0
means that data will not be packed until the buffer is full. 0 is the
recommended setting, unless your application has a specific need to limit
packet sizes or improve response times.
6-4
NPort 5600-8-DT Series Operation Mode Advanced Settings
Delimiter 1 and 2
Range: 0 to FF, Enable
RFC2217 Mode
Reverse Telnet 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
Range: Do Nothing, Delimiter + 1, Delimiter + 2, Strip
Real COM Mode
RFC2217 Mode
Reverse Telnet Mode
TCP Client Mode
UDP Mode
Delimiter
Default: Do Nothing
Description: This controls how data is packed when delimiter characters
are received. Note that this field has no effect if delimiters are not
enabled (see Delimiters 1 and 2).
”Delimiter + 2” will wait for two additional characters before packing the
accumulated data.
”Strip Delimiter” will pack the accumulated data but will not include the
delimiter characters in the packet.
Force transmit
Range: 0 to 65535 ms
Real COM Mode
RFC2217 Mode
TCP Client Mode
UDP Mode
Default: 0 ms
Description: This controls data packing by the amount of time that
elapses between bits of data. As serial data is received, it accumulates in
the device port’s buffer. If serial data is not received for the specified
amount of time, the data that is currently in the buffer is packed for
network transmission. A setting of 0 means that data in the buffer will not
be automatically packed when no further data is received from the
device. When using this field, make sure that Inactivity time is disabled or
set to a larger value. Otherwise the connection may be closed before the
data in the buffer can be transmitted.
6-5
NPort 5600-8-DT Series Operation Mode Advanced Settings
Other Parameters
Local TCP port
Range: 1 to 65535
Real COM Mode
RFC2217 Mode
TCP Client Mode
UDP Mode
Reverse Telnet
attached device. Socket applications will need to refer to the device using
this port number. 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
Range: 1 to 65535
Real COM Mode
RFC2217 Mode
TCP Client Mode
UDP Mode
Default: 966
Description: This 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. Change this
setting only if there is a port number conflict with another application or
device.
Destination IP address
Range: N/A
Real COM Mode
RFC2217 Mode
TCP Client Mode
UDP Mode
Default: none
Description: This specifies the IP address for the slave end of a pair
connection.
RFC2217 Mode
TCP Client Mode
UDP Mode
Default: none
Description: This 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.
RFC2217 Mode
TCP Client Mode
UDP Mode
Default: none
Description: This specifies the TCP port number that will be used for data
transmission with the device port.
6-6
NPort 5600-8-DT Series Operation Mode Advanced Settings
RFC2217 Mode
Reverse Telnet Mode
TCP Client Mode
UDP Mode
Connection Control
RFC2217 Mode
Range: Startup/None, Any Character/None, Any Character/Inactivity
Real COM Mode
UDP Mode
Map <CR-LF>
Range: CR, LF, or CR-LF
Default: CR-LF
Pair Connection Mode
Reverse Telnet Mode
RFC2217 Mode
6-7
7
7. Using the Web Console
The NPort 5600-8-DT’s web console allows it to be managed from anywhere on the network using a standard
web browser. This chapter explains how to use the web console.
Overview
Web Browser Settings
Basic Navigation
Device Server Settings
Special Functions
Monitor
Load Factory Defaults
NPort 5600-8-DT Series Using the Web Console
Overview
The NPort can be configured from anywhere on the network through its web console. Simply point the browser
to the device server’s IP address to open the web console. Network settings, operation mode, and other items
can all be modified through the browser. This is a handy option for configuration if you cannot or do not wish
to install NPort Administrator.
ATTENTION
All device server settings can be accessed using the web console. However, certain functions such as port
monitoring or configuration export are only available through NPort Administrator. Please refer to Chapter 8 for
more details on using NPort Administrator.
On the Security tab, click “Custom Level…” and enable these two
items:
Allow cookies that are stored on your computer
Allow per-session cookies (not stored)
ATTENTION
If you are not using Internet Explorer, cookies are usually enabled through a web browser setting such as
“allow cookies that are stored on your computer” or “allow per-session cookies.”
7-2
NPort 5600-8-DT Series Using the Web Console
Basic Navigation
To open the web console, enter your device server’s IP address in the website address line. If you are
configuring the NPort for the first time, you will use the default IP address, 192.168.127.254.
If prompted, enter the console password. You will only be prompted for a password if you have enabled
password protection on the device server. The password will be transmitted with MD5 encryption over the
Ethernet.
The left panel is the navigation panel, where you select the parameters that you wish to see or modify. Certain
folders can be expanded by clicking the adjacent “+” symbol.
The right panel is the main window, where parameters are displayed and modified. For example, if you click
Basic Settings in the navigation panel, the main window will show a page of basic settings that you can
configure.
After you have made changes on a page, you must click the Submit button in the main window before jumping
to another page. Your changes will be lost if you do not click Submit.
After you have finished modifying the desired pages, you must save and restart the device server for the new
settings to take effect. You may complete this in one step by clicking Save/Restart after you submit a change.
Changes will not take effect until they are saved and the NPort is restarted. If you restart the NPort without
saving your configuration, all configuration changes will be lost.
7-3
NPort 5600-8-DT Series Using the Web Console
• Basic Settings
• Network Settings
• Serial Settings
• Accessible IP Settings
• Auto Warning Settings
• Change Password
• For details on Operating Settings, please refer to Chapter 5.
Special Functions
There are several special functions that are available in the web console. These functions are not available on
NPort Administrator.
Monitor
Select one of the Monitor functions in the navigation panel to monitor traffic on the NPort device server. Refresh
your browser to display updated status.
Line
Monitor each device port’s operation mode and connection status (IPx).
Async
7-4
NPort 5600-8-DT Series Using the Web Console
Async-Settings
This will load the NPort’s factory default configuration. All parameters will be reset, and the current
configuration settings will be lost. It is strongly recommended that you first save your configuration to a file so
that it can be restored if necessary. Please refer to Chapter 8 for details on importing and exporting your
configuration in NPort Administrator.
7-5
8
8. Using NPort Administrator
Overview
Installing NPort Administrator
Basic Navigation
Window Layout
Activating a Function
Configuration
Finding Your Device Server
Status
Device Server Parameters
Firmware and Configuration Management
Monitor
Finding Your Device Server
Monitoring Parameters
Activating the Monitor
Port Monitor
COM Mapping
Finding Your Device Server
COM Mapping Settings
Saving COM Mapping Settings
COM Grouping
Creating a COM Group
Deleting a COM Group
Adding a Port to a COM Group
Removing a Port from a COM Group
Modifying Ports in a COM Group
IP Address Report
Automatic Message Log
NPort 5600-8-DT Series Using NPort Administrator
Overview
The NPort Administration Suite provides everything you need to manage, monitor, and modify your NPort from
a remote location. It includes NPort Administrator and the IP Serial Library.
With NPort Administrator, you can easily install and configure your NPort device server over the network. You
can also run NPort Administrator from one location to manage multiple device servers.
1. When you run the setup program from the Document and Software CD, a Welcome window will appear.
Click Next to proceed.
2. Click Next to accept the proposed installation directory, or click Browse… to select an alternative location.
8-2
NPort 5600-8-DT Series Using NPort Administrator
3. Click Next to accept the proposed Start menu folder, or select a different folder.
8-3
NPort 5600-8-DT Series Using NPort Administrator
6. A special notice will appear. Click Next after reading the notice.
8-4
NPort 5600-8-DT Series Using NPort Administrator
Basic Navigation
Window Layout
NPort Administrator is designed to make it easy to configure, monitor, or manage any NPort 5600-8-DT on your
network. The interface is organized into four areas as follows:
Activating a Function
All functions in NPort Administrator are activated by first selecting the function, then selecting the target device
server, and finally selecting the specific command:
2. If your device server is already listed in the right panel, you may skip to the next step. If the list of device
servers is empty, you will need to “find” your device server. Right-click the desired function in the function
panel to open the function context menu. You will need to add device servers to the list by selecting a
command such as “Search” or “Add Target”.
8-5
NPort 5600-8-DT Series Using NPort Administrator
3. Once your device server is on the list for the desired function, right-click the target device server to open
the function context menu. Activate the desired command from this context menu. You may also select the
target device server and then open the function context menu from the menu bar.
Configuration
Select the Configuration function to configure your NPort, import and export its configuration, or update its
firmware.
Broadcast Search: This searches for all NPort units on the LAN. Since this search is based on MAC address,
rather than IP address, it will be able to find units that are not on the same subnet as your PC. You may click
Stop as soon as your device server is found.
Specify by IP Address: This allows you to find your device server manually by entering its IP address.
8-6
NPort 5600-8-DT Series Using NPort Administrator
Status
The NPort may be password-protected to prevent unauthorized configuration changes. Please refer to Chapter
4 for additional information on password protection. The status will be shown in the list of available device
servers. There are six possible statuses for device servers on the network.
Status Description
Lock The unit was located by broadcast search. It is password-protected, and the
correct password has not been provided during this session.
Unlock The unit was located by broadcast search. Password protection has not been
set up for the unit.
(blank) The unit was located by broadcast search. Password protection has not been
set up for the unit.
Fixed The unit was manually located by “Search IP” and has no password protection.
Lock Fixed The unit was manually located by “Search IP”. It is password protected, and
the current password has not been provided during this session.
Unlock Fixed The unit was manually located by “Search IP”. It was password-protected, but
the correct password has been provided for this session.
If you wish to configure a unit that is Locked or Lock Fixed, you will need to unlock the unit first as described
below:
1. Select the Unlock command in the function context menu for the target device server.
3. If the correct password is provided, you will receive an “Unlock ok” message.
8-7
NPort 5600-8-DT Series Using NPort Administrator
Assign IP Address: This allows you to set the target NPort’s IP address quickly, instead of digging through
pages of configuration parameters.
Parameters are grouped into tabs. Please refer to Chapter 4 for a description of all general settings for the
NPort 5600-8DT. Click a Modify checkbox to enable changes to the associated parameter. Click OK to
implement changes.
8-8
NPort 5600-8-DT Series Using NPort Administrator
ATTENTION
You can configure multiple units simultaneously, as long as the units are the same model. Simply hold down the
Ctrl or Shift key when selecting the target device servers.
Web: This opens the target device server’s web console. Please refer to Chapter 7 for details on using the web
console.
8-9
NPort 5600-8-DT Series Using NPort Administrator
Upgrade Firmware: This allows you to upload new firmware to the target NPort device server. You can obtain
firmware updates for your NPort 5600-8-DT at www.moxa.com.
It will take a few moments for the NPort’s firmware to be updated. Do not disconnect the network, the NPort,
or your PC at any time during the update.
ATTENTION
You can update the firmware of multiple units simultaneously, as long as the units are the same model. Simply
hold down the Ctrl or Shift key when selecting the target device servers.
Import/Export Configuration: These commands are used to save or restore the target device server’s
configuration. All configuration settings can be stored on a file to be restored later, from anywhere on the
network.
8-10
NPort 5600-8-DT Series Using NPort Administrator
Follow the onscreen instructions to save or restore the target unit’s configuration.
ATTENTION
You can import the configuration of multiple units simultaneously, as long as the units are the same model.
Simply hold down the Ctrl or Shift key when selecting the target device servers.
Monitor
You can use NPort Administrator for live monitoring of your NPort over the network. Different parameters and
events may be monitored, and you can receive pop-up warnings for certain events.
Add Target: This selects NPort device servers on the LAN for monitoring. You may need to click “Rescan” to
search the network again for NPort device servers. Once a device server has been found, select it in order to
add it to the Monitor list. You can also select “Input manually” to enter a specific IP address and model for
monitoring.
Remove Target: This removes a device server from the monitor list.
Load Configured COM Port: If COM ports have been mapped to NPort device servers, this command
automatically adds those device servers to the monitor list.
8-11
NPort 5600-8-DT Series Using NPort Administrator
Monitoring Parameters
The Settings command specifies which items of information will be monitored, how often the information is
refreshed, and how notification of events will occur.
In the Monitor Items tab, you may select which items of information will be monitored.
8-12
NPort 5600-8-DT Series Using NPort Administrator
In the General Settings tab, you may select the monitoring refresh rate, which is how often the monitor
function will check the status of each NPort on the monitor list. The default is 3 seconds.
The monitor list will now be monitored live, as indicate by “Running” in the header.
8-13
NPort 5600-8-DT Series Using NPort Administrator
If you configured the monitor function with warnings enabled, a notification will appear if a monitored device
server goes off-line.
NPorts that are off-line will be also displayed in red in the monitor list.
If the NPort is able to re-establish the connection, another notification will appear indicating that the NPort
5600-8-DT is now “Alive”. The monitor list will be updated accordingly.
8-14
NPort 5600-8-DT Series Using NPort Administrator
Port Monitor
The Port Monitor function is identical to the Monitor function, but with many additional items that can be
monitored, as shown below.
In addition, each item on the port monitor list will be an individual device port on an NPort device server. Each
device port can be selected or deselected for monitoring.
COM Mapping
The NPort Administrator Suite is installed with Real COM drivers that work with Windows 95 and above. These
drivers transparently connect a COM port on the PC to a device port on the NPort device server. This allows a
local application to use COM5, for example, to communicate with a device attached to the NPort. Use the COM
Mapping function to define the mapping assignments.
8-15
NPort 5600-8-DT Series Using NPort Administrator
ATTENTION
A device port must be operating in Real COM mode in order to be used in COM mapping.
You may need to click “Rescan” to search the network again for NPort device servers. Once your device server
has been found, select it in order to add it to the COM mapping list. You can also select “Input manually” to
enter a specific IP address and model.
To remove a device server from the COM mapping list, use the Remove Target command in the function
context menu.
ATTENTION
You can configure COM mapping even if your device server is off-line (not connected). When using the Add
Target command, simply select the “Input manually” option and enter the IP address and model. This is a
useful option for certain field installations where COM mapping must be set up before the NPort is physically
installed.
8-16
NPort 5600-8-DT Series Using NPort Administrator
ATTENTION
You can map multiple COM ports in one step by holding down the Ctrl or Shift key when selecting the target
device ports.
In the Basic Settings tab, the COM Number parameter selects the COM port that will be mapped to the device
port. The drop-down list shows available COM ports with status.
Status Description
in use Already being used by system or already mapped to an NPort device port
assigned Assigned to an NPort device port but changes have not been applied yet
current Assigned to currently selected device port, changes have not been applied yet
The “Auto Enumerating” parameter can be used when mapping multiple device ports at the same time. When
the parameter is checked, this option automatically assigns available COM numbers sequentially. If not
checked, you will need to configure COM mapping for each device port separately.
In the Advanced Settings tab, you may configure how serial data is transmitted from the PC to the NPort
device port.
8-17
NPort 5600-8-DT Series Using NPort Administrator
Tx Mode
Hi-Performance is the default for Tx mode. After the driver sends data to the NPort, 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. This causes lower throughput. Classical mode is
recommended if you want to ensure that all data is sent out before further processing.
FIFO
When “FIFO” is disabled, the selected device port will send one byte each time the Tx FIFO becomes empty, and
an Rx interrupt will be generated for each incoming byte. This will cause a faster response time but lower
throughput.
Network Timeout
“Network Timeout” specifies how long the driver will wait for the attached serial device to respond to an open,
close or serial parameter change operation. If a response is received by the specified time, the operation will
time out. The default value is 5000 milliseconds.
Fast Flush
“Fast Flush” is designed to improve response times for applications that use the Win32 PurgeComm() function.
When Fast Flush is enabled, the Real COM driver only flushes the local buffer on the host when it receives the
PurgeComm() function call. When disabled, applications that use PurgeComm() may perform markedly slower,
because the Real COM driver will need to also flush the remote buffer, which requires repeated queries of the
NPort to make sure no data is queued in the remote buffer. The repeated queries can cause a performance hit
due to the additional time spent communicating over the network, typically about several hundred milliseconds
when compared to COM ports. If your application uses PurgeComm() and performance seems sluggish, try
enabling Fast Flush.
In the Serial Parameters tab, the COM port’s serial communication parameters are defined.
8-18
NPort 5600-8-DT Series Using NPort Administrator
You can also save COM mapping settings to a text file, which can then be used to duplicate the COM mapping
on another host. Use the Export COM Mapping command in the function context menu to save the current
COM mapping settings. Use the Import COM Mapping command to load COM mapping settings from a
previously saved file.
8-19
NPort 5600-8-DT Series Using NPort Administrator
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.
ATTENTION
The COM Grouping function only supports Windows NT, 2000, and later. The maximum number of ports for
each group is 32.
8-20
NPort 5600-8-DT Series Using NPort Administrator
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.
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.
8-21
NPort 5600-8-DT Series Using NPort Administrator
1. Select all serial ports in the Group you are deleting and then right-click to select COM Settings.
2. Select a COM number for this COM group and check the Auto enumerating COM number for selected
ports to use the COM number you select as the first starting COM number, and then click OK.
3. You will be able to view the serial ports that were assigned to and removed from the Group. Click Apply to
apply the settings.
8-22
NPort 5600-8-DT Series Using NPort Administrator
1. Select the serial port that you are adding and right-click to select COM Settings.
2. Select the COM number of the COM Group you are adding and check mark the Grouping selected port(s)
together check box and then click OK.
You will be able to view the serial ports that were assigned to and removed from the Group. Click Apply to
apply the settings.
8-23
NPort 5600-8-DT Series Using NPort Administrator
1. Select a serial port in the Group and right-click to select COM Settings.
2. Select a COM number that is not in use or assigned to a Group and click OK.
3. You will be able to view the serial ports that were assigned to and removed from the Group. Click Apply to
apply the settings.
8-24
NPort 5600-8-DT Series Using NPort Administrator
1. Select all serial ports in the Group and right-click to select COM Settings.
3. Select the Grouping selected port(s) together checkbox and then click OK.
8-25
NPort 5600-8-DT Series Using NPort Administrator
4. You will be able to view the serial ports that were assigned to and removed from the Group. Click Apply to
apply the settings.
1. Check the port specified on the COM Grouping page as the signal port.
2. Select the ”Signal Status” controlled port and then right-click and select COM Settings.
8-26
NPort 5600-8-DT Series Using NPort Administrator
3. The Advanced Settings and Serial Parameters pages will be available for modification.
Changing the Serial Port Specified as Signal Port for the COM Group
1. Selecta serial port in the Group and then right-click and select COM Settings.
8-27
NPort 5600-8-DT Series Using NPort Administrator
3. On COM Grouping page, you can specify one serial port whose signals will be taken into account by the
COM Group and change the Read/Write status for each serial port.
IP Address Report
The IP Address Report function receives automatic IP reports from appropriately configured NPort device
servers. Use the Settings command in the function context menu to designate the UDP port number that the
NPort will use when sending IP address reports. This must correspond with the network settings on the NPort
device server.
On the NPort device server, the Auto report to IP parameter must be set to the IP address of the PC that is
running NPort Administrator.
8-28
NPort 5600-8-DT Series Using NPort Administrator
Select Go from the function context menu to begin monitoring for IP address reports. The IP Address Report
window will begin displaying IP reports as they are received. Select Stop from the context menu to suspend
monitoring, and Clear to clear the current display of reports.
Please refer to Chapter 4 for information on configuring the NPort to send automatic IP reports. Please refer to
Appendix C for information on the IP report protocol.
8-29
9
9. NPort CE Driver Manager for Windows CE
Overview
Installing NPort CE Driver Manager
Using NPort CE Driver Manager
NPort 5600-8-DT Series NPort CE Driver Manager for Windows CE
Overview
NPort CE Driver Manager is designed for use with NPort 5000 serial ports that are set to Real COM mode. The
software manages the installation of drivers that allow you to map unused COM ports on your PC to serial ports
on the NPort 5000. These drivers are designed for use with Windows CE 5.0/6.0. When the drivers are installed
and configured, devices that are attached to serial ports on the NPort 5000 will be treated as if they were
attached to your PC’s own COM ports.
Click on “OK” to complete the installation when the following screen appears.
Driver installation is now complete and the “NPortCab.cab” icon disappear from the screen. This is normal when
installing drivers in Windows CE.
9-2
NPort 5600-8-DT Series NPort CE Driver Manager for Windows CE
Click on the COM Mapping page and then the “Search” button to scan for NPort servers.
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.
Select the port(s) at the Port Index and then click on the “Add” button to map to the COM Port(s).
Return to the COM Setting page. You should be able to see the newly mapped COM Port(s).
9-3
NPort 5600-8-DT Series NPort CE Driver Manager for Windows CE
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.
9-4
10
10. Other Configuration Interfaces
Overview
LCM Console
Main Menu Server setting
Main Menu Network setting
Main Menu Serial set
Main Menu Op Mode set
Main Menu Console
Main Menu LCM passwd prot
Main Menu Reset btn prot
Main Menu Ping
Main Menu Save/Restart
Telnet Console
Serial Console
NPort 5600-8-DT Series Other Configuration Interfaces
Overview
Typically, you will use either NPort Administrator or the web console to configure the NPort 5600-8-DT. 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. You may also connect to the serial
console over the serial console port, or to the Telnet console over one of the Ethernet ports.
LCM Console
The LCM console refers to the LCD control panel on the top panel of the NPort 5600-8-DT. The LCM console can
be used to view and modify basic settings, such as IP address. The MENU button activates the main menu. It
is also used to cancel a selection and return to a previous menu. The UP and DOWN buttons navigate between
available options. The SEL button selects an option or enters a submenu.
• Serial number
• Server name
• Firmware ver
• Model name
• Ethernet1 statu
• Ethernet2 statu
• MAC address
• IP config
• IP address
• Netmask
• Baud rate
• Data bit
• Stop bit
• Parity
• Flow control
• Tx/Rx fifo
• Interface
• Tx/Rx bytes
• Line status
10-2
NPort 5600-8-DT Series Other Configuration Interfaces
• Web console
• Telnet console
Telnet Console
You can use Telnet to open a terminal session with the NPort 5600-8-DT over one of the Ethernet ports. Simply
Telnet to your device server’s IP address. You will be presented with a text menu displaying the NPort
5600-8-DT general settings, which you will be able to view and modify. Please refer to Chapter 4 for a
description of the available settings.
If you are unable to connect to the Telnet console, it may be because it has been disabled through the LCM
console.
Serial Console
You can connect to the serial console port to open the serial console. Connect to the console port with a
serial-based terminal or terminal emulator program, such as Windows HyperTerminal. You may also download
PComm Lite at www.moxa.com. The terminal type should be set as ANSI or VT100, and the serial
communication parameters should be set as 19200, 8, N, 1 (19200 for baud rate, 8 for data bits, None for
parity, and 1 for stop bits). As soon as the connection is open, you will be presented with a text menu displaying
the NPort 5600-8-DT general settings. Please refer to Chapter 4 for a description of the available settings.
10-3
11
11. TTY Drivers for Linux and UNIX
Basic Steps
Follow these instructions to map a TTY port to a device port:
Install the NPort device server and set the target device port to Real COM mode.
Map the host’s TTY port to the target device port on the NPort.
ATTENTION
The target device port must be operating in Real COM mode in order to map TTY ports.
1. Obtain the driver file from the Document and Software CD, or from the Moxa website at
http://www.moxa.com.
2. Log in to the console as a super user (root).
Execute tar xvfz npreal2xx.tgz to extract all files into the system.
Execute /tmp/moxa/mxinst.
For RedHat AS/ES/WS and Fedora Core1, append an extra argument as follows:
# /tmp/moxa/mxinst SP1
The shell script will install the driver files automatically.
After installing the driver, you will be able to see several files in the /usr/lib/npreal2/driver folder:
At this point, you may map the TTY port to the NPort serial port.
11-2
NPort 5600-8-DT Series TTY Drivers for Linux and UNIX
1. Modify npreal2d.cf.
2. Create TTY ports in directory /dev with major and minor number configured in npreal2d.cf.
3. Restart the driver.
# cd /usr/lib/npreal2/driver
# ./mxaddsvr 192.168.3.4 16
In this example, 16 TTY ports will be added, all with IP 192.168.3.4, with data ports from 950 to 965 and
command ports from 966 to 981.
# cd /usr/lib/npreal2/driver
# ./mxaddsvr 192.168.3.4 16 4001 966
In this example, 16 TTY ports will be added, all with IP 192.168.3.4, with data ports from 4001 to 4016 and
command ports from 966 to 981.
Example:
# cd /usr/lib/npreal2/driver
# ./mxdelsvr 192.168.3.4
1. Modify npreal2d.cf.
2. Remove the relevant TTY ports in directory /dev.
3. Restart the driver.
If the IP address is not provided in the command line, the program will list the installed servers and total ports
on the screen. You will need to choose a server from the list for deletion.
11-3
NPort 5600-8-DT Series TTY Drivers for Linux and UNIX
You can refer to moxattyd.cf for detailed descriptions of the various configuration parameters. Please note
that “Device Name” depends on the OS. See the Device Naming Rule section in README.TXT for more
information.
To start the moxattyd daemon after system bootup, add an entry into /etc/inittab using the TTY name you
defined in moxattyd.cf, as in the following example:
ts:2:respawn:/usr/etc/moxattyd/moxattyd –t 1
pts/[n]
ttyp[n]
11-4
NPort 5600-8-DT Series TTY Drivers for Linux and UNIX
The value of [n] should be equal or larger than 11 in order to prevent conflicts with the device names of
functional keys in some UNIX systems.
Starting moxattyd
Execute the command init q or reboot your UNIX operating system.
11-5
12
12. The IP Serial Library
Overview
IP Serial Library Function Groups
Example Program
NPort 5600-8-DT Series The IP Serial Library
Overview
What is the IP Serial Library?
The IP Serial Library is a Windows library with frequently used serial command sets and subroutines. It is
designed to reduce the complexity and improve the efficiency of serial communication over TCP/IP. For
example, Telnet can transfer data but cannot monitor or configure the serial line’s parameters.
With the Real COM driver, two TCP ports are required for communication between the NPort and the host
computer. The IP Serial Library requires one command port to communicate with the NPort. Serial
communication can be controlled with just one TCP port (e.g., RFC 2217). The IP Serial Library not only runs
with excellent efficiency but also runs without any decode or encode problems.
12-2
NPort 5600-8-DT Series The IP Serial Library
Example Program
char nportip=“192.168.1.10”; /*data buffer, 255 chars */
char buffer[255]; /*1st port */
int port = 1; int portid; nsio_init(); /* port handle */
portid = nsio_open(nportip, port); nsio_ioctl(portid, /*initial IP Serial Library */
B9600, (BIT_8 | STOP_1 | P_NONE) ); /*1st port, nport IP=192.168.1.10 */
sleep(1000); /*set 9600, N81 */
nsio_read(port, buffer, 200); nsio_close(portid); /* wait for 1000 ms for data */
nsio_end(); /* read 200 bytes from port 1 */
/* close this serial port */
/* close IP Serial Library */
12-3
13
13. Troubleshooting
In this chapter, we describe a straightforward procedure that can be used to troubleshoot problems you
encounter when operating your NPort. We recommend that you follow these step by step instructions first
before contacting Moxa’s technical support team.
Connection Problems
Step 1: Does the Ethernet LED light up?
If not, try the following:
Step 2: Does your hub, switch, or NIC’s “Link” LED light up?
If not, try the following:
Step 3: Can you ping the device server from your host?
If not, try the following:
• Select the proper operation mode for the device port in the web console or in NPort Administrator.
Remember, each device port is set to Real COM mode by default.
• Save changes and restart the device server to activate new settings.
Step 2: Are you able to open the device port on the NPort?
If not, try the following:
• If the device server is across a router or firewall, try opening TCP ports between 950 and 965 and between
966 and 981.
• Verify that access rights are correctly defined in the Accessible IP Table.
• Check for DHCP issues by having the DHCP server assign a fixed IP to the NPort.
• See if the selected TCP port is occupied by checking connection status.
• Make sure there are no COM port conflicts and no one else is using the same COM number.
• Apply and save any configuration changes.
• Disable the FIFO if the attached device experiences significant data loss.
• If confirmation of device response is critical, set Tx mode to “Classical mode”.
• If performance is sluggish, enable Fast Flush.
• Verify that the TCP listen port matches your TCP client program.
• Check for DHCP issues by having the DHCP server assign a fixed IP to the NPort.
• Check that Accessible IP settings are blank or include the host’s IP address.
• See if the selected TCP port is occupied by checking connection status.
• Verify that the TCP destination port matches your TCP server program.
• Check for DHCP issues by having the DHCP server assign a fixed IP to the NPort.
• Verify that the NPort’s Destination IP matches your host’s IP address.
UDP Mode
Is the remote UDP program properly receiving and transmitting data?
If not, try the following:
13-2
NPort 5600-8-DT Series Troubleshooting
• Make sure there are no cable wiring issues. 3 or 8-wire cabling should be used for RS-232, point-to-point
4-wire cabling for RS-422, and daisy-chain 2 or 4-wire cabling for RS-485.
• Verify that all serial communication settings correspond with the attached device.
• Make sure there are no cable length issues. At 9600 bps, RS-232 cables should be no longer than 15 m,
RS-422 cables no longer than 1.2 km, and RS-485 cables no longer than 1.2 km.
• Check for RS-422 or RS-485 driving issues, such as terminator problems or pull
high/low settings.
• Check flow control settings. If you are using RTS/CTS flow control, you must have appropriate RTS and
CTS wiring.
13-3
A
A. Cable Wiring
RS-232 Cables
RS-422, 4-wire RS-485 Cables
2-wire RS-485 Cables
DB9 and DB25 Connectors
DB9 Connectors
DB25 Connectors
NPort 5600-8-DT Series Cable Wiring
RS-232 Cables
NPort Serial Device
DB9 Connectors
A-2
NPort 5600-8-DT Series Cable Wiring
DB25 Connectors
Male DB25 Connector Female DB25 Connector
1 1
14 2 TxD (out) 14
RxD (in) 2
3 RxD (in) TxD (out) 3
4 RTS (out) CTS (in) 4
5 CTS (in) RTS (out) 5
6 DSR (in) DTR (out) 6
7 GND GND 7
DTR (out) 20 20 DSR (in)
8 DCD (in) DCD (in) 8
25 25
13 13
A-3
B
B. SNMP Agent with MIB II & RS-232-Like
Group
SNMP (Simple Network Management Protocol) agent software is built into the NPort 5600-8-DT. It supports
SNMP Trap, the RFC1317 RS-232-like group, and RFC1213 MIB-II. The following table lists the standard MIB-II
group and the variable implementation for the NPort 5600-8-DT.
B-2
NPort 5600-8-DT Series SNMP Agent with MIB II & RS-232-Like Group
B-3
C
C. IP Report Protocol
There are several ways to configure the IP address of the NPort device server. One of them is DHCP Client.
When you set up the device server to use DHCP Client for IP address configuration, it will automatically send a
DHCP request over the network to find the DHCP server. The DHCP server will then send an available IP address
to the NPort with an expiration time. The NPort will use this IP address until the expiration time has been
reached. When the expiration time has been reached, the process will repeat, and NPort will send another
DHCP request to the DHCP server. Therefore, an NPort may end up using more than one IP address while it is
connected to the network.
The NPort has a built-in IP address report function that will send its IP data to a specific IP address and port
number when it is configured with a dynamic IP address. In the web console, the IP report parameters may be
configured under Network Settings. Enter the IP address and the port number of the PC that is to receive this
information, as well as the reporting interval
To interpret the IP address report, the destination PC needs to have NPort Administrator installed with the IP
Address Report function activated. You may also use develop your own application to receive the IP address
report by referring to the IP report protocol described here. An example program is provided on the Moxa
website at www.moxa.com.
Hardware and AP ID
Each model is assigned a Hardware ID and AP ID as shown below:
Hardware ID AP ID Product
0x5700 0x80015610 5610-8-DT
0x5702 0x80015610 5650-8-DT
0x5703 0x80015610 5650I-8-DT
0x5704 0x80015610 5610-8-DT-J
0x5706 0x80015610 5650-8-DT-J
Example
The following example shows the first 22 bytes of a typical IP address report:
item length
item length
item length
hardwa
item ID
item ID
item ID
report header server name re ID MAC address
“Moxa” “TEST” 0x516 00-90-E8-01-02-03
HEX 4D 4F 58 41 01 04 54 45 53 54 02 02 16 05 03 06 00 90 E8 01 02 03
ASCII “M” “O” “X” “A” “T” “E” “S” “T”
C-2
D
D. Compliance Notice
CE Warming
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 Warming
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 own expense.