NPort W2004 Series User’s Manual First Edition, November 2004 www.moxa.com/product Moxa Technologies Co., Ltd. Tel: +886-2-8919-1230 Fax: +886-2-8919-1231 Web: www.moxa.com MOXA Technical Support Worldwide: support@moxa.com.tw The Americas support@moxa.
NPort W2004 Series User’s Manual 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 Copyright 2004 Moxa Technologies Co., Ltd. All rights reserved. Reproduction without permission is prohibited. Trademarks MOXA is a registered trademark of The Moxa Group. All other trademarks or registered marks in this manual belong to their respective manufacturers.
Table of Contents Chapter 1 Introduction ..................................................................................................1-1 Overview.................................................................................................................................. 1-2 Package Checklist .................................................................................................................... 1-2 Product Features .....................................................................
Real TTY and Fixed TTY Installation ................................................................................... 6-19 Installing the Real TTY driver.................................................................................... 6-19 Installing the fixed TTY driver................................................................................... 6-21 Appendix A SNMP Agents with MIB II & RS-232 Like Groups ..................................... A-1 Appendix B Well Known Port Numbers .............
1 Chapter 1 Introduction Moxa’s NPort W2004 Series of wireless serial device servers give you an easy way to connect your RS-232/422/485 serial devices to a WLAN. The 4-port NPort W2004 is ideal for environments where a LAN is not available, or where serial devices are moved frequently.
NPort W2004 User’s Manual Introduction Overview Moxa’s NPort W2004 wireless device server is the ideal choice for connecting your RS-232/422/485 serial devices—such as PLCs, meters, and sensors—to a Wired Ethernet LAN and Wireless LAN. Your communications software will be able to access the serial devices from anywhere over a local LAN, WLAN, or the Internet. Moreover, the WLAN environment offers an excellent solution for applications in which the serial devices are moved frequently from place to place.
NPort W2004 User’s Manual Introduction Product Features ! ! ! ! ! ! ! ! Connect any serial device to WiFi 802.11g/b network 4 RS-232/422/485 ports, at up to 460.
NPort W2004 User’s Manual Introduction Software Features Protocols Utilities Configuration ICMP, IP, TCP, UDP, DHCP, Telnet, DNS, SNMP, HTTP, SMTP, SNTP, SSH, SSL, HTTPS Windows utility for Windows 98/ME/2000/XP/2003 Web browser, serial/telnet console, or Windows utility Power Requirements Power Input Power Consumption 12-48 VDC 685 mA @ 12V; 184 mA @ 24V, 340 mA @ 24V Mechanical Specifications Material SECC sheet metal (1 mm) Environmental Operating Temperature Storage Temperature 0 to 60°C (32 to
2 Chapter 2 Getting Started This chapter includes information about installing NPort W2004.
NPort W2004 User’s Manual Getting Started Panel Layout Reset button Power inputs Top View Antenna Device Server DIN-Rail Mount Ready WLAN LEDs P1 P2 P3 P4 10M LED Ethernet port 100M LED Serial Console port Signal Strength Signal Strength LEDs Ethernet RS-232 Console P3 P4 P1 P2 RS-232/422/485 8-pin RJ45 serial ports NPort W2004 Front View Side View Connecting the Hardware This section describes how to connect NPort W2004 to serial devices for first time testing purposes.
NPort W2004 User’s Manual Getting Started Wiring Requirements ATTENTION Safety First! Be sure to disconnect the power cord before installing and/or wiring your device. Wiring Caution! 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.
NPort W2004 User’s Manual Getting Started Connecting to a Serial Device Connect the serial data cable between NPort W2004 and the serial device. Serial data cables are optional accessories for NPort W2004. Refer to Chapter 1 under Optional Accessories in the Ordering Information section for information about the RJ45-to-DB25 and RJ45-to-DB9 cables. LED Indicators LED Indicators—The front panel of NPort W2004 has eleven LED indicators, as described in the following table.
3 Chapter 3 Initial IP Address Configuration When setting up your NPort W2004 for the first time, the first thing you should do is configure the IP address. Select one of the initial IP Address configuration methods to configure NPort W2004’s IP Address. For more details about network settings, see the Network Settings section from Chapter 5, Web Console Configuration.
NPort W2004 User’s Manual Initial IP Configuration Installation Procedure for First-time Users STEP 1: After removing NPort W2004 from the box, use a cross-over Ethernet cable to connect directly to your computer’s Ethernet port. STEP 2: Attach the power adaptor to the NPort W2004 and then plug the adaptor into an electrical outlet. STEP 3: Use the Web console to configure the NPort W2004 via the Ethernet port. NOTE We recommend that you use the web console to configure NPort W2004.
NPort W2004 User’s Manual Initial IP Configuration Telnet Console 1. 2. From the Windows desktop, click on Start and then select Run Type telnet 192.168.126.254 (default IP address) in the Open text input box, and then click on OK. When the Telnet window opens, if you are prompted to input the Console password, input the password and then press Enter .Note that this page will only appear if the NPort W2004 is password protected.
NPort W2004 User’s Manual Initial IP Configuration << Main Menu >> (1) General Settings (2) Ethernet Configuration (3) WLAN Configuration (4) View Settings (5) Back to the Main Menu (6) Quit Key in your selection: 2 5. Type 2 to select IP Address and then press Enter, then use the Backspace key to erase the current IP address, type in the new IP address, and then press Enter.
NPort W2004 User’s Manual Initial IP Configuration << Main Menu >> (1) Time Settings (2) Network Settings (3) Serial Port Settings (4) System Management (q) Quit Key in your selection: 4 ----------------------------------------------<< Main Menu >> (1) Misc. Network Settings (2) Auto Warning Settings (3) System Status (4) Maintenance (m) Back to Main Menu (q) Quit Key in your selection: 4 8. Type 4 and then type y to Restart the system.
NPort W2004 User’s Manual Initial IP Configuration Serial Console (19200, n, 8, 1) Before configuring the NPort W2004 via the serial console, turn off the power and use a serial cable to connect the NPort W2004 to your computer’s serial port. We suggest using MOXA PComm Terminal Emulator, which can be downloaded free of charge from www.moxa.com, to carry out the configuration procedure. 1. Connect NPort W2004’s serial port 1 directly to your computer’s male RS-232 serial port. 2.
NPort W2004 User’s Manual Initial IP Configuration 6. Input the password when prompted. 7. Start by configuring the IP address under Network Settings. Refer to the Telnet Console section for instructions on how to configure the rest of the IP settings.
4 Chapter 4 Choosing the Proper Operation Mode In this chapter, we describe the various NPort W2004 operation modes. The options include an operation mode that uses a driver installed on the host computer, and operation modes that rely on TCP/IP socket programming concepts. After choosing the proper operation mode in this chapter, refer to Chapter 5 for detailed configuration parameter definitions.
NPort W2004 User’s Manual Choosing the Proper Operation Mode Overview NPort W2004 wireless Serial Device Servers are used to network-enable traditional RS-232/422/485 devices. A Serial Device Server is a tiny computer equipped with a CPU, real-time OS, and TCP/IP protocols that can bi-directionally translate data between the serial and Ethernet formats.
NPort W2004 User’s Manual Choosing the Proper Operation Mode TCP Client Mode TCP Client Mode TCP/IP WLAN 1 After the data has been transferred, NPort W2004 can disconnect automatically from the host computer by using the TCP alive check time or Inactivity time settings.
NPort W2004 User’s Manual Choosing the Proper Operation Mode Real COM Mode Device Server NPort W2004 comes equipped with Real COM Mode COM drivers that work with Windows TCP/IP 95/98/ME/NT/2000/XP systems. The WLAN driver establishes a transparent connection between host and serial device by mapping the IP:Port of the NPort W2004’s serial port to a local COM port on the host computer.
5 Chapter 5 Web Console Configuration The Web Console is the most user-friendly method available to configure NPort W2004 Series. This chapter introduces the Web Console function groups and function definitions.
NPort W2004 User’s Manual Web Console Configuration Configuring Your Browser Before opening your browser, you need to enable cookies. 1. To enable your browser for cookies, right click on your desktop Internet Explorer icon, select Properties, and then click on the Security tab. 2. Enable the three options shown in the figure below, and then click on OK.
NPort W2004 User’s Manual Web Console Configuration 3. Type 192.168.126.254 (the default IP address) in your browser’s Address box (use the correct IP address if different from the default), and then press Enter. 4. Input the password. NPort W2004 allows only one user. The username is set to admin and the default password is also set to admin. You may NOT change the username, but you can change the password at any time. Note that the login function cannot be disabled. 5.
NPort W2004 User’s Manual Web Console Configuration Time Settings NPort W2004 has a built-in Real-Time Clock that allows you to add real-time information to functions such as Auto warning “Email” or “SNMP Trap.” ATTENTION First time users should select the time zone first. The Console will display the “real time” according to the time zone compared to GMT. If you would like to modify the real time clock, select “Local time.” NPort W2004’s firmware will modify the GMT time according to the Time Zone.
NPort W2004 User’s Manual Time server Setting IP Address or Domain Name (E.g., 192.168.1.1, time.stdtime.gov.tw, or time.nist.gov) Web Console Configuration Factory Default Necessity None Optional NPort W2004 uses SNTP (RFC-1769) for auto time calibration. Input the correct “Time server” IP address or domain name. Once NPort W2004 is configured with the correct Time server address, NPort W2004 will request time information from the “Time server” every 10 minutes.
NPort W2004 User’s Manual Web Console Configuration In order to use NPort W2004’s DNS feature, you need to configure the DNS server. Doing so allows NPort W2004 to use a host’s domain name to access the host. NPort W2004 provides DNS server 1 and DNS server 2 configuration items to configure the IP address of the DNS server. DNS Server 2 is included for use when DNS sever 1 is unavailable.
NPort W2004 User’s Manual Web Console Configuration A netmask is used to group network hosts into subnets. When a packet is sent out over the network, the NPort W2004 will use the netmask to check whether the desired TCP/IP host specified in the packet is on the same subnet as the NPort. If the address is on the same subnet, a connection is established directly between the NPort W2004 and the host. If the host is not on the same subnet, the packet is sent to the Gateway address. Gateway Setting E.g., 192.
NPort W2004 User’s Manual Web Console Configuration interface. For detailed information about configuring IP configuration, IP address, Netmask, and Gateway, see the previous section, “Ethernet Configuration.” Wireless LAN You may choose from two different WLAN modes—Infrastructure Mode and Ad-hoc Mode— which are illustrated in the following diagrams.
NPort W2004 User’s Manual Web Console Configuration SSID Enter the name of the wireless network (SSID) that the W2004 is connected to. Channel Select a radio channel for the wireless network from the pull-down menu. In infrastructure mode, the AP will specify the channel automatically. In Ad-hoc mode, the user must use the pull-down menu to specify the channel. ATTENTION Click on the Wizard to configure the WLAN IP address quickly.
NPort W2004 User’s Manual Web Console Configuration Serial Port Settings Serial port settings are configured by port. Operation Modes The Serial Port parameters that appear in the right pane of the browser window when Serial Port Settings # Port 1/2/3/4 # Operation Modes is selected are dependent on which of the four operation modes is selected. We consider each operation mode separately.
NPort W2004 User’s Manual Web Console Configuration ATTENTION When Max connection is set to 2, 3, or 4, NPort W2004 will use a “multi connection application” (i.e., 2, 3, or 4 hosts are allowed access to the port at the same time). When using a multi connection application, NPort W2004 will use the serial communication parameters set in the console. All of the hosts connected to that port must use the same serial settings.
NPort W2004 User’s Manual Web Console Configuration than or equal to 10 ms. If you want to send a series of characters in the same packet, the serial device attached to NPort W2004 should send that series of characters during a time interval less than the Force transmit timeout, and the total length of data must be less than or equal to NPort W2004’s internal buffer size. The serial communication buffer size for NPort W2004 is 1 KB per port.
NPort W2004 User’s Manual Web Console Configuration ATTENTION The Inactivity time should be set at least larger than that of Force transmit timeout. To prevent the unintended loss of data due to the session being disconnected, it is highly recommended that this value is set large enough so that the intended data transfer can be completed.
NPort W2004 User’s Manual Web Console Configuration ATTENTION Delimiter 2 is optional. If left blank, then Delimiter 1 alone trips clearing of the buffer. If the size of the serial data received is greater than 1 KB, the NPort W2004 will automatically pack the data and send it to the Ethernet. However, to use the delimiter function, you must at least enable Delimiter 1. If Delimiter 1 is left blank and Delimiter 2 is enabled, the delimiter function will not work properly.
NPort W2004 User’s Manual Command port Setting 1 to 65535 Web Console Configuration Factory Default Necessity 966 Optional The “Command port” is a listen TCP port for IP-Serial Lib commands from the host. In order to prevent a TCP port conflict with other applications, the user can set the Command port to another port if needed. IP-Serial Lib will automatically check the Command Port on NPort W2004 so that the user does not need to configure the program.
NPort W2004 User’s Manual Web Console Configuration 0-65535 ms: NPort W2004 automatically closes the TCP connection if there is no serial data activity for the given time. After the connection is closed, NPort W2004 starts listening for another host’s TCP connection. This parameter defines the maintenance status as Closed or Listen for the TCP connection. The connection is closed if there is no incoming or outgoing data through the serial port during the specific Inactivity time.
NPort W2004 User’s Manual Force transmit Setting 0 to 65535 ms 0: Disable force transmit timeout. Web Console Configuration Factory Default Necessity 0 Optional 1 to 65535: Forces the NPort W2004’s TCP/IP protocol software to try to pack serial data received during the specified time into the same data frame. This parameter defines the time interval during which NPort W2004 fetches the serial data from its internal buffer.
NPort W2004 User’s Manual Web Console Configuration UDP Mode Data Packing Delimiter 1/2 Setting 00 to FF (hex) Factory Default Necessity None Optional Once the NPort W2004 receives both delimiters through its serial port, it immediately packs all data currently in its buffer and sends it to the NPort W2004’s Ethernet port. ATTENTION Delimiter 2 is optional. If left blank, then Delimiter 1 alone trips clearing of the buffer.
NPort W2004 User’s Manual Web Console Configuration during the specified time into the same data frame. This parameter defines the time interval during which NPort W2004 fetches the serial data from its internal buffer. If data is incoming through the serial port, NPort W2004 stores the data in the internal buffer.
NPort W2004 User’s Manual Web Console Configuration Port 1/2/3/4 Port alias Setting Factory Default Necessity 1 to 15 characters None Optional (e.g., PLC-No. 1) “Port alias” is included to allow easy identification of the serial devices that are connected to NPort W2004’s serial port. Serial Parameters ATTENTION Check the serial communication parameters in your Serial Device’s user’s manual.
NPort W2004 User’s Manual Web Console Configuration Data Bits Setting Factory Default Necessity 5, 6, 7, 8 8 Required When the user sets Data bits to 5 bits, the Stop bits setting will automatically change to 1.5 bits. Stop Bits Setting Factory Default 1, 1.5, 2 1 Stop bits will be set to 1.5 when Data bits is set to 5 bits.