Moxa W2X50A Users Manual

NPort W2150A/W2250A Series
User’s Manual
Edition 10.1, September 2018
www.moxa.com/product
© 2018 Moxa Inc. All rights reserved.
NPort W2150A/W2250A Series
User’s Manual
The software described in this manual is furnishe d under a license agr eeme nt and may be used only in accordance
with the terms of that agreement.
Copyright Notice
Trademarks
The MOXA logo is a registered trademark of Moxa Inc.
All other trademarks or registered marks in this manual belong to their respective manufacturer s .
Disclaimer
Information in this document is subject to change without no tic e and doe s no t repres e nt a co mmitment o n the part of Moxa.
Moxa provides this document as is, witho ut warr anty of any kind, either expressed or implied, includ ing , but not limited to, its particular purpos e . Moxa reserves the right to make improve ments and /or change s to this manual, or to the products and/or the programs describ ed in this manual, at any time .
Information provided in this manual is intend e d to be accurate and reliable. However, Moxa assumes no resp o ns ibility 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 correc t such er rors, and these changes are incorporated into ne w editio ns of the publication.
Technical Support Contact Information
www.moxa.com/support
Moxa Americas
Toll-free: 1-888-669-2872 Tel: +1-714-528-6777 Fax: +1-714-528-6778
Moxa Europe
Tel: +49-89-3 70 03 99-0 Fax: +49-89-3 70 03 99-99
Moxa India
Tel: +91-80-4172-9088 Fax: +91-80-4132-10 45
Moxa China (Shanghai office)
Toll-free: 800-820-5036 Tel: +86-21-5258-9955 Fax: +86-21-5258-55 05
Moxa Asia-Pacific
Tel: +886-2-8919-1230 Fax: +886-2-8919-1231
Table of Contents
1. Introduction ...................................................................................................................................... 1-1
Overview ........................................................................................................................................... 1-2
Package Checklist ...............................................................................................................................1-2
Product Features ................................................................................................................................1-3
Serial Port Pin Assignments ..................................................................................................................1-3
2. Getting Started.................................................................................................................................. 2-1
Overview ........................................................................................................................................... 2-2
Panel Layout ...................................................................................................................................... 2-2
LED Indicators .................................................................................................................................... 2-3
Top Panel LED Indicators ..............................................................................................................2-3
End Panel LED Indicators ..............................................................................................................2-3
Pull High/Low Resistors for RS-422/485 ................................................................................................. 2-4
Placement Options ..............................................................................................................................2-5
Connecting the Hardware.....................................................................................................................2-5
Connecting to the Network ...........................................................................................................2-6
Connecting the Power ..................................................................................................................2-6
Connecting to a Serial Device .......................................................................................................2-6
3. Initial IP Configuration ..................................................................................................................... 3-1
Overview ........................................................................................................................................... 3-2
Factory Default IP Settings ..................................................................................................................3-2
Using ARP to Assign an IP Address ........................................................................................................3-2
Using the Telnet Console to an Assign IP Address ...................................................................................3-3
Using the Serial Console to an Assign IP Address ....................................................................................3-6
4. Introduction to Operation Modes ...................................................................................................... 4-1
Overview ........................................................................................................................................... 4-2
Real COM Mode .................................................................................................................................. 4-2
RFC2217 Mode ................................................................................................................................... 4-3
TCP Server Mode ................................................................................................................................4-3
TCP Client Mode ................................................................................................................................. 4-3
UDP Mode .......................................................................................................................................... 4-4
Pair Connection Modes ........................................................................................................................4-4
Ethernet Modem Mode .........................................................................................................................4-4
5. Installing and Configuring the Software ........................................................................................... 5-1
Overview ........................................................................................................................................... 5-2
Device Search Utility (DSU) .................................................................................................................5-2
Installing the DSU .......................................................................................................................5-2
Finding NPort Device Servers on a Network .................................................................................... 5-4
Modifying NPort IP Addresses ........................................................................................................5-5
Upgrading NPort Firmware ............................................................................................................5-6
NPort Windows Driver Manager ............................................................................................................5-7
Installing NPort Windows Driver Manager .......................................................................................5-7
Adding Mapped Serial Ports ........................................................................................................ 5-10
Configuring Mapped Serial Ports .................................................................................................. 5-13
Command-Line Installation/Removal ............................................................................................ 5-17
Linux Real TTY Drivers ...................................................................................................................... 5-19
Basic Steps ............................................................................................................................... 5-19
Installing Linux Real TTY Driver Files ........................................................................................... 5-19
Mapping TTY Ports ..................................................................................................................... 5-20
Removing Mapped TTY Ports ....................................................................................................... 5-20
Removing Linux Driver Files ........................................................................................................ 5-21
UNIX Fixed TTY Drivers ..................................................................................................................... 5-21
Installing the UNIX Driver........................................................................................................... 5-21
Configuring the UNIX Driver ....................................................................................................... 5-22
6. Web Console: Basic Settings ............................................................................................................. 6-1
Overview ........................................................................................................................................... 6-2
Basic Settings .................................................................................................................................... 6-4
7. Web Console: Network Settings ........................................................................................................ 7-1
Overview ........................................................................................................................................... 7-2
Network Settings ................................................................................................................................7-2
General Settings .........................................................................................................................7-2
Ethernet/Bridge Settings ..............................................................................................................7-3
WLAN Settings ............................................................................................................................7-6
Advanced Settings ..................................................................................................................... 7-24
8. Web Console: Serial Port Settings ..................................................................................................... 8-1
Overview ........................................................................................................................................... 8-2
Serial Port Settings ......................................................................................................................8-2
Communication Parameters ........................................................................................................ 8-21
Data Buffering/Log .................................................................................................................... 8-22
9. Web Console: System Management ................................................................................................... 9-1
Overview ........................................................................................................................................... 9-2
System Management ...........................................................................................................................9-2
Misc. Network Settings .................................................................................................................9-2
Auto Warning Settings .................................................................................................................9-6
Maintenance ............................................................................................................................. 9-10
Certificate ................................................................................................................................ 9-14
10. Web Console: System Monitoring .................................................................................................... 10-1
Overview ......................................................................................................................................... 10-2
System Monitoring ............................................................................................................................ 10-2
Serial Status ............................................................................................................................. 10-2
System Status .......................................................................................................................... 10-4
11. Web Console: Restart ...................................................................................................................... 11-1
Overview ......................................................................................................................................... 11-2
Restart ............................................................................................................................................ 11-2
Restart System ......................................................................................................................... 11-2
Restart Ports............................................................................................................................. 11-3
12. Android API Instructions ................................................................................................................ 12-1
Overview ......................................................................................................................................... 12-2
How to Start MxNPortAPI ........................................................................................................... 12-2
MxNPortAPI Function Groups .............................................................................................................. 12-3
Example Program ............................................................................................................................. 12-3
A. SNMP Agents with MIB II & RS-232-Like Groups .............................................................................. A-1
RFC1213 MIB-II Supported SNMP Variables ...........................................................................................A-1
System MIB ................................................................................................................................A-1
Interfaces MIB ............................................................................................................................A-1
IP MIB .......................................................................................................................................A-1
ICMP MIB ...................................................................................................................................A-2
UDP MIB ....................................................................................................................................A-2
Address Translation .....................................................................................................................A-2
TCP MIB .....................................................................................................................................A-2
SNMP MIB ..................................................................................................................................A-2
RFC1317: RS-232 MIB Objects .............................................................................................................A-3
Generic RS-232-like Group ...........................................................................................................A-3
RS-232-like General Port Table .....................................................................................................A-3
RS-232-like Asynchronous Port Group ............................................................................................A-3
The Input Signal Table .................................................................................................................A-3
The Output Signal Table ...............................................................................................................A-3
B. Well-Known Port Numbers ................................................................................................................ B-1
C. Ethernet Modem Commands .............................................................................................................. C-1
Dial-in Operation ................................................................................................................................C-1
Dial-out .............................................................................................................................................C-1
Disconnection Request from Local S ite ..................................................................................................C-1
Disconnection Request from Remote Site ...............................................................................................C-1
AT Commands ....................................................................................................................................C-2
S Registers ........................................................................................................................................C-3
D. Federal Communication Commission Interference Statement ........................................................... D-1
E. FCC Warning Statement .................................................................................................................... E-1
The following topics are covered in this chapte r:
Overview
Package Checklist
Product Features
Serial Port Pin Assignments
1
1. Introduction
NPort W2150A/W2250A Seri es Introduction
Overview
In this chapter, we introduce the basic features and specifications of the NPort W2150A/W2250A and NPort W2150A/W2250A-T, ref er red to collectively as the NPort W2150A/W2250A Series.
The NPort W2150A/W2250A Series of wireless device servers are used to connect RS-232/422/485 serial devices or Ethernet devices, including PLCs , meters , and sensors, to a wireless LAN. Your communications software will be able to access the serial devices or Ethernet devices from anywhere over a local LAN, WLAN, or the Internet. Moreover , the WLAN enviro nme nt offers an excellent solution for applicatio ns in which the serial devices and Ethernet devices are move d freq ue ntly from place to place.
The NPort W2150A/W2250A supports both automatic IP configuration proto cols (D HC P, BOOT P) and manual configuration using a standard web browser. Both IP configuration methods ensure quick and ef fe c tive installation. In addition, a utility ca lle d “N Por t Windows Dr iver Manager” makes port mapping easy.
The external antenna can be adjusted for maximum signal streng th. You can also choose to use your own antenna for additional flexibility and scalability. A signal strength indic a to r on the front panel makes it easier for you to troubleshoot any connectio n problems.
The NPort W2150A/W2250A Series offers different operation modes to ensure co mpa tibility with standard network APIs, including TCP Server Mode , TCP Clie nt Mode, and UDP Mode. Real COM/TTY drivers are provided to allow legacy ser ial-bas e d sof tware to communicate over an IP network instantly. This preserves your software investment w hile providing all the advantages of ne twor king your serial devices.
For easier management, the NPort W2150A/W2250A inc ludes features such as password authentication, IP filtering, 64-bit and 128 -bit WEP encryption, and SNMP support.
Package Checklist
Standard Accessories
• 1 NPort W2150A or NPort W2250A wireless device server
• 1 antenna 2.4/5 GHz: ANT-WDB-ARM-02
• 100 to 240 VAC power adapter (excluding T models)*
• 1 Ethernet cable: CBL-RJ458P-100
Quick installation guide (printed)
•Warranty card
NOTE The package includes one power adapter suitable for your region.
Optional Accessories
DK35A: DIN-rail mounting kit (35 mm)
Power-jack-to-terminal-block po we r c able (P/N : 9199000000900)
NOTE Please notify your sales representative if any of the above items is missing or damaged.
1-2
NPort W2150A/W2250A Seri es Introduction
Product Features
Supports wireless client: links any serial or Ethernet device to an IEEE 802.11a/b/g/n network
• Web-based configuration over Ethernet or WLAN
Enhanced remote configuration with HTTPS, SSH
Secure data access with WEP, WPA, WPA2
Built-in WLAN site survey tool
Fast Roaming for quick automatic switching between access points
• Per-port offline port buffering and serial data log
• Dual power inputs via power jack and terminal block
Serial Port Pin Assignments
Pin RS-232 RS-422/ RS-485 (4W) RS-485 (2W)
1 DCD TxD-(A) – 2 RXD TxD+(B) – 3 TXD RxD+(B) Data+(B) 4 DTR RxD-(A) Data-(A) 5 GND GND GND 6 DSR – 7 RTS – 8 CTS – 9 –
1-3
The following topics are covered in this chapte r:
Overview
Panel Layout
LED Indicators
¾ To p Panel LED Indicators ¾ End Panel LED Indicators
Pull High/Low Resistors for RS-422/485
Placement Options
Connecting the Hardware
¾ C o nne c ting to the Network ¾ C onnecting the Power ¾ C onnecting to a Serial Device
2
2. Getting Started
NPort W2150A/W2250A Seri e s Getting Started
Overview
This chapter presents the hardware features of the NPort W2150/W2250A Series and explains how to connect the hardware.
Panel Layout
NPort W2150A/W2150A-T NPort W2250A/W2250A-T
2-2
NPort W2150A/W2250A Seri e s Getting Started
LED Indicators
Top Panel LED Indicators
Name Color Function
Steady on: Power is on, and the NPort is booting up.
Ready
WLAN
Serial 1 Serial 2
Signal Strength
(5 LEDS)
Red
Green
Off Power is off, or a power error condition exis ts .
Green
Off Wireless not enabled.
Orange Serial port is receiving data.
Green Serial port is transmitting data.
Off No data is flowing to or from the serial port.
Red
Green
Blinking: An I P co nf lic t ex is ts , or the DHCP/ B OOT P serv er did not
respond pr operly. Steady on: The NPor t is functioning normally. Blinking: The unit is re s po nd ing to Loc ate f unc tion.
Steady on: Wireless enabled Blinking: The NPor t c a n’t establish WLAN connection with AP
(Infrastructure) or station (Ad-Hoc)
1 Red - the signal strength (RSSI) is worse than -88 dBm 2 Red - the signal strength (RSSI) is between -87 to -79 dBm 3 Green - the signal strength (RSSI ) is betw e e n -78 to -68 dB m 4 Green - the signal strength (RSSI ) is betw e e n -67 to -60 dB m 5 Green - the signal strength (RSSI ) is betw e e n -59 to -45 dB m
End Panel LED Indicators
Name Color Function
10 Mbps Ethernet connection 100 Mbps Ethernet connection
Ethernet
Orange
Green
Off Ethernet cable is disconnected
2-3
NPort W2150A/W2250A Seri e s Getting Started
Pull High/Low Resistors for RS-422/485
You may need to set the pull high/low resistor s when ter m ination r esistors are used for certain RS-422 or RS-485 environments.
S2 (Serial 1) S3 (Serial 2)
ON .ƻ .ƻ ƻ
OFF .ƻ .ƻ *N/A *Default S3 is for NPort W2250A only
Pull high resistor
DIP 1
DIP 2
Pull low resistor
DIP 3
Terminal resistor
DIP 4
Reserved
ATTENTION
'RQRWXVHWKH.ƻVHWWLQJZKLOHLQ56-232 mode. Doing so will degrade the RS-232 signals and re d uce the effective communication distance.
2-4
NPort W2150A/W2250A Seri e s Getting Started
Placement Options
The NPort can be placed on a desktop or other horizontal surface. You can also install the NPort on a DIN­rail or on the wall.
Wall Mounting DIN-Rail Mounting
Connecting the Hardware
ATTENTION
Before connecting the hardware, follow these important wiring safety precautio ns :
Disconnect power source
Do not install or wire this unit or any attached device s with the pow er connected. Disconnect the power before installation by removing the power cor d bef or e installing and/or wiring your unit.
Follow maximum curre nt ratings
Calculate the maxim um pos sible current in each power wire and common wir e . 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 be too hot to touch. Take care when handling the unit. Be sure to leave adequate space for ventilatio n.
The following guidelines will help e ns ure tr o uble -f re e sig n al communic ation with the NPort.
Use separate paths to route wiring for power and devices to avoid interfer ence. Do not run signal or
communication wiring and power wiring in the same wire conduit. The r ule of thumb is that wir ing that shares similar electrical characteristics can be bundled toge t h er.
• 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
2-5
NPort W2150A/W2250A Seri e s Getting Started
Connecting to the Network
Use the supplied Ethernet cable to connect the NPort to your Ethernet network. If the cable is properly connected, the NPort will indicate a valid conne ction to the Ethernet as follows:
A green Ethernet LED indicates a valid connection to a 100 Mbps Etherne t ne twork .
An orange Ethernet LED indicates a valid connectio n to a 10 Mbps Ether ne t ne twor k .
A flashing Ethernet LED indicates that Ethernet packets are being trans mitte d or re c e ive d .
Connecting the Power
Connect the VDC power line (12 to 48 V) to the NPort’s power jack or terminal block (recommended for only one connection at a time). If power is proper ly conne c t e d , the “R e a dy ” LED w ill initially glow red. When the system is ready, the “Ready” LED will turn green.
Connecting to a Serial Device
Use a serial cable to connect your serial device to a serial port on the NPort.
2-6
3. Initial IP Configuration
The following topics are covered in this chapte r:
Overview
Factory Default IP Settings
Using ARP to Assign an IP Address Using the Telnet Console to an Assign IP Address
Using the Serial Console to an Assign IP Address
3
NPort W2150A/W2250A Seri e s Initial IP Configuration
Overview
This chapter presents sev er a l way s to a s s ign the NPort’s IP address for the firs t time . Ple ase re fe r to Chapter 2 for instructions on connec ting to the network.
The web console is the recommended method for configuring the NPort. Please refer to Chapter 5 and 6 for details on using the web console for configuratio n.
ATTENTION
The LAN and WLAN interfaces cannot be used at the same time if you don't enable the Ethernet Bridge mode (please refer to Chapter 7 for mor e details ). If the Ethernet link is active, then WLAN connectio ns will be disabled. If the WLAN connection is active, then the Ethernet link will be disabled.
ATTENTION
Make sure that the Ethernet cable is connected befor e pow er ing up the NPor t.
Factory Default IP Settings
Network Interfac e IP Configuration IP Address Netmask
LAN Static 192.168.126.254 255.255.255.0 WLAN Static 192.168.127.254 255.255.255.0
If your NPort is configured to obtain its IP settings from a DHCP or BOOTP server but is unable to get a response, it will use the factory de fault IP address and netmask.
ATTENTION
If you forget the IP address of yo ur NPort, you can look it up using the Device Se arc h U tility (DSU). After the Device Search Utility (DSU ) has fo und all NPorts on the network, each unit will be listed with its I P address. Please refer to Ch apte r 11 for additional information on using the Dev ic e S e arc h Utility (DSU).
Using ARP to Assign an IP Address
The ARP (Address Resolution Protocol) command can be used to assign an IP address to the NPort. The ARP command tells your computer to associate the NPort’s MAC address with the specified IP address. You must then use Telnet to access the NPort, at which point the device server’s IP address will be re co nfigured. This method only works when the NPort is configured with default I P setting s .
1. Select a valid IP address for your NPor t. Co nsult with your network administrator if ne ces sar y .
2. Obtain the NPort’s MAC address from the label on its bottom panel.
3. From the DO S prompt, execute the arp -s command with the desired IP address and the NPort’s MAC address, as in the following example:
arp -s 192.168.200.100 00-90-E8-xx-xx-xx
In this example, 192.168.200.100 is the new IP address that will be assigned to the NPort, and 00-90­E8-xx-xx-xx is the NPor t’ s MAC addr ess .
4. From the DOS prompt, execute a special Te lne t co mmand using po rt 6000, as in the following example:
telnet 192.168.200.100 6000
In this example, 192.168.200.100 is the new IP address that will be assigned to the NPort.
3-2
NPort W2150A/W2250A Seri e s Initial IP Configuration
5. You will see a message indicating that the connection failed.
The NPort will automatically reboot with the new IP addre s s. You c a n ver ify that the c o nfigur atio n was successful by connecting to the new IP address with Telnet, ping, the web console, or the Device Search Utility (DSU).
Using the Telnet Console to an Assign IP Address
1. Select Run… from the Windows Start menu.
2. Enter telnet 192.168.126.254 (the NPort’s default IP address ) and c lick [OK].
3. Enter your login account and password, then press ENTER. (Default login is admin and password is moxa.)
3-3
NPort W2150A/W2250A Seri e s Initial IP Configuration
4. You will login to the Overview page.
5. Press N or use the cursor keys to select Network and press ENTER.
6. Press E or use the cursor keys to select Ethernet and press ENTER.
3-4
NPort W2150A/W2250A Seri e s Initial IP Configuration
7. Use the cursor keys to navigate between the different fields. For IP address, Netmask, and Gateway, enter the desired values directly. For IP configuration and LAN speed, press ENTER to open a submenu and select between the available options.
8. Press ESC to return to the menu. When prompted, press Y to save the configuration changes.
3-5
NPort W2150A/W2250A Seri e s Initial IP Configuration
The NPort will reboot with the new IP settings. You can telnet to the new IP to login again.
Using the Serial Console to an Assign IP Address
Before using the NPort’s serial c o nso le , turn off the power and use a serial cable to connect the NPort console port to your computer’s s er ial port. Port 1 on the NPort serves as the console port. Use Port 1 connecting 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 ANSI or VT100, and the serial communication parameters should be set as 19200, 8, N, 1 (19200 fo r b a ud rate, 8 for data bits, None for parity, and 1 for stop b its). As soo n as the co nne c tio n is open, you will b e presented with a text menu display ing the NPor t W2150A/W2250A Series general setting s . Ple ase refer to Chapter 4 for a description of the available setting s . The following instructions, we recommend us ing PComm Terminal Emulator, which can be downloaded free of charge from configuration procedure.
1. Connect your PC’s serial port to the NPort’s co nsole por t.
2. Open your terminal emulator program, suc h as Windows HyperTer minal. We r eco mmend using PComm Terminal Emulator, which can be downloaded for free at www.moxa.com
3. In your terminal emulator program, config ure the communication parameters for the serial port on the PC. The parameters should be set to 19200 for baud rate, 8 for data bits, None for parity, an d 1 for stop bits.
. The terminal type should be set as
www.moxa.com, to carry out the
.
3-6
NPort W2150A/W2250A Seri e s Initial IP Configuration
4. In your terminal emulator progr am, set the te r m inal typ e to ANSI or VT100. If you select Dumb Terminal as the terminal type, some of the console functions—especially the “Monitor” functio n— m ay
not work properly.
5. Hold the grave accent key (`) down and power up the NPort.
The continuous string of grave accent characters triggers the NPort to switch from data mode to console mode.
3-7
NPort W2150A/W2250A Seri e s Initial IP Configuration
6. The serial console will open and will be functionally identical to the Telnet console. Please refer to the Telnet console section for instruc tio ns on how to naviga te the co nso le and co nfig ure the IP settings.
3-8
4. Introduction to Operation Modes
The following topics are covered in this chapter:
Overview
Real COM Mode
RFC2217 Mode TCP Server Mode
TCP Client Mode
UDP Mode Pair Connection Modes
Ethernet Modem Mode
4
NPort W2150A/W2250A Series Introduction to Operation Modes
Overview
This chapter introduces the different serial port operation modes that are available on the NPort W2150A/W2250A Series . Each se rial port on the NPort is configured independ ently of the other ports, with its own serial communication parameters and oper ation mode. The serial 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 NPort serial 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-d ev eloped socket programs: TCP Serve r , TCP Client, and UDP Server/Client. For TCP applications, the appropriate mode depends on whether the connection will be hosted or initiated from the NPort serial port or from the network. The main difference between the TCP and UDP protocols is that TCP guarantee s delivery of data by requiring the recip ie n t to se nd an acknowledgement to the sende r . UD P does not re q uire this typ e of ver ification, making it possible to offer speedier delivery. UDP also allows multicasting of data to gro u p s of IP addresses and would be suitab le for streaming media or noncritical messaging applic atio ns such as LED messag e board s .
Pair Connection Slave and Master modes are designed for serial-to-serial communication over Ethernet, in order to overcome traditional limitations w ith se rial transmission distance.
In Ethernet Modem mode, the NPort acts as an Ethernet modem, providing a network connection to a host through the serial port.
Real COM Mode
Real COM mode is designed to work with NPort drivers that are installed on a network host. COM drivers are provided for Windows systems, and TTY drivers are provided for Linux and UNI X sys te m s . The driver establishes a transparent connec tion to the attached serial device by mapping a local serial port to the NPort serial port. Real COM mode supports up to four simultaneous connectio ns , so multiple hosts can collect data from the attached device at the same time.
ATTENTION
Real COM drivers are installed and config ur ed thro ugh NPort Windows Driver Manager.
Real COM mode allows you to continue using your ser ial communicatio ns s of tw a re to access devic e s that ar e 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 redirec ts it to the network . At the other e nd of the connection, the NPort device server acce pts the Ethernet frame, unpacks the TCP/IP packet, and sends the serial data to the appropr iate dev ice.
4-2
NPort W2150A/W2250A Series Introduction to Operation Modes
ATTENTION
In Real COM mode, several hosts can have simultaneous access control over the NPort serial port. If necessary, you can limit access by using the NPort’s Accessible IP settings. Please refer to Chapter 8 for additional information on Accessible IP settings.
RFC2217 Mode
RFC-2217 mode is similar to Real COM mode, s ince it re lie s o n a drive r to trans p ar e ntly map a virtual COM port on a host computer to a serial port on the NPort. 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.
TCP Server Mode
In TCP Server mode, the NPort serial port is assigned an IP:port address that is unique on your TCP/IP network. It waits for the host compute r to establish a connection to the attached serial device. This operation mode also supports up to e ight simultaneous connections, so multiple hos ts can collect data from the attached device at the same time. Data transmission proceeds as follows: A host requests a connection to the NPort serial port. Once the connection is established, data can be transmitted in both direct io ns—from the host to the device, and from the device to the host.
TCP Client Mode
In TCP Client mode, the NPort actively establishe s a TCP connection to a specific network host when data is received from the attache d se r ia l device. After the data has been transferred, the NPort can automatically disconnect from the host computer through the Inactivity time settings. Pleas e re fe r to Chapter 7 for details on these parameters . Data transmission proceeds as follows: The NPort requests a connection from the hos t. The connection is established and data can be transmitted in both direct io ns betw e e n the host and device.
4-3
NPort W2150A/W2250A Series Introduction to Operation Modes
UDP Mode
UDP is similar to TCP but is faster and more efficient. Data can be broadcast to or received from multiple network hosts. However , UDP does no t support verification of da ta and would no t be suitable for applications wh ere d ata integ rity is critical. It is ideal for message dis p lay app lic ations.
Pair Connection Modes
Pair Connection Master and Slave modes connect two NPort device se rvers over a network for serial-to­serial communication. A device attached to one NPort can then communicate transparently to a device attached to the other NPort, as if the two devices were connected by a serial cable. Both data and modem control signals are exchanged, except for DCD signals. This can be used to overcome traditional limitations with serial communic ation distance and introduces many new possibilities for serial-based device control.
Ethernet Modem Mode
Ethernet Modem mode is designed for use with legacy operating systems, such as MS-DOS, that do not support TCP/IP Ethernet. By connecting the pro perly configured NPort serial port to the MS -DO S computer’s serial port, it is possible to use legacy software to transmit data over the Ether ne t when the software was originally designed to transmit data over a modem.
4-4
NPort W2150A/W2250A Series Introduction to Operation Modes
4-5
5
5. Installing and Configuring the Software
The following topics are covered in this chapter:
Overview
Device Search Utility (DSU)
¾ Installing the DSU ¾ Finding NPort Device Servers on a Network ¾ Modifying NPort IP Addresses ¾ Upgrading NPort Firmware
NPort Windows Driver Manager
¾ Installing NPort Windows Driver Manage r ¾ Adding Mapped Se rial Ports ¾ C onfiguring Mapped Serial Ports ¾ Command-Line Installation/Removal
Linux Real TTY Drivers
¾ Basic Steps ¾ Installing Linux Real TTY Driver Files ¾ Map p ing TTY Ports ¾ R e moving Mapped TTY Ports ¾ Removing Linux Driver Files
UNIX Fixed TTY Drivers
¾ I nstalling the UNIX Driver ¾ C onfiguring the UNIX Driver
NPort W2150A/W2250A Se ri e s Installing and Configuring the Software
Overview
This chapter describes how to install and use the NPor t Windo ws Driver Manager, the Device Search Utility (DSU), and NPort Linux and UNIX drivers. You may downlo ad the s e items fr o m Moxa ’ s webs ite that is provided with the NPort W2150A/W2250A Series.
NPort Windows Driver Manager is a utility that installs and manages NPort COM drivers for COM mapping. The Device Search Utility (DSU) is a utility for the management of NPort device servers over the network. You may also use the Device Search Utility (DS U ) to up grade the firmware.
Device Search Utility (DSU)
Installing the DSU
1. Download the DSU from Moxa’s website:
https://www.moxa.com/support/download.aspx?type=support&id=10137
You may double click on the executable file. Once the program starts running , c lic k Yes to proceed.
2. The installation wizard will open. Click Next to proceed.
5-2
NPort W2150A/W2250A Se ri e s Installing and Configuring the Software
3. Select a destination location and click Next to proceed.
4. Indicate if you wish to create a desktop icon and click Next to proc eed.
5-3
NPort W2150A/W2250A Se ri e s Installing and Configuring the Software
5. Verify the installation parameter s and click Install to proceed.
6. The wizard will begin installing the files . After the files have been installed, click Finish to complete the installation.
Finding NPort Device Servers on a Network
You can use the Device Search Utility (DSU) to look up or change the IP address of any NPort device server on the network. Since the utility searches for devices based on their MAC address rather than IP address, all NPort units that are connect to the LAN will be located, regar dless of whether or not they are part of the same subnet as the host.
1. In the Device Search Utility (DSU), click Search on the main toolbar.
5-4
Loading...
+ 69 hidden pages