background image

 

 

NPort W2150A-W4/W2250A-W4 Series User 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 

© 2023 Moxa Inc. All rights reserved. 

Trademarks 

The MOXA logo is a registered trademark of Moxa Inc. 

All other trademarks or registered marks in this manual belong to their respective manufacturers. 

Disclaimer 

 

Information in this document is subject to change without notice and does not represent a commitment 
on the part of Moxa. 

 

Moxa provides this document as is, without warranty of any kind, either expressed or implied, including, 
but 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. 

Technical Support Contact Information 

www.moxa.com/support 

 

 

Summary of Contents for NPort W2150A-W4 Series

Page 1: ...NPort W2150A W4 W2250A W4 Series User Manual Version 1 0 January 2023 www moxa com products 2023 Moxa Inc All rights reserved...

Page 2: ...s 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 p...

Page 3: ...Mode 19 Pair Connection Modes 19 Ethernet Modem Mode 19 Reverse Terminal Mode 20 5 Installing and Configuring the Software 21 Overview 21 Device Search Utility DSU 21 Installing the DSU 21 Finding NP...

Page 4: ...start Ports 105 12 Android API Instructions 106 Overview 106 How to Start MxNPortAPI 107 MxNPortAPI Function Groups 108 Example Program 108 A SNMP Agents with MIB II RS 232 Like Groups 109 RFC1213 MIB...

Page 5: ...bleshoot any connection problems The NPort W2150A W4 W2250A W4 Series offers different operation modes to ensure compatibility with standard network APIs including TCP Server Mode TCP Client Mode and...

Page 6: ...ration using built in Ethernet or WLAN Secure boot for Moxa only authorized firmware allowed to run Remote configuration with HTTPS SSH Secure data access with WEP WPA WPA2 Fast roaming for quick auto...

Page 7: ...User Manual 7 2 Getting Started Overview This chapter presents the hardware features of the NPort W2150 W4 W2250A W4 Series and explains how to connect the hardware Panel Layout NPort W2150A W4 W2150A...

Page 8: ...N connection with AP Infrastructure Off Wireless not enabled Port 1 Port 2 Orange Serial port is receiving data Green Serial port is transmitting data Off No data is flowing to or from the serial port...

Page 9: ...r certain RS 422 or RS 485 environments S4 Port 1 S5 Port 2 DIP 1 Pull high resistor DIP 2 Pull low resistor DIP 3 Termination resistor DIP 4 Reserved ON 1 K 1 K 120 OFF 150 K 150 K N A Default S5 is...

Page 10: ...or 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 opera...

Page 11: ...e Ethernet LED indicates a valid connection to a 10 Mbps Ethernet network A flashing Ethernet LED indicates that Ethernet packets are being transmitted or received Connecting the Power Connect the VDC...

Page 12: ...d ATTENTION Make sure that the Ethernet cable is connected before powering up the NPort Factory Default IP Settings Network Interface IP Configuration IP Address Netmask LAN Static 192 168 126 254 255...

Page 13: ...login account and password then press ENTER Default login is admin and password is moxa 4 You will login to the Overview page 5 Press N or use the cursor keys to select Network and press ENTER 6 Press...

Page 14: ...eway enter the desired values directly For IP configuration LAN speed and Ethernet bridge press ENTER to open a submenu and select between the available options 8 Press ESC to return to the menu When...

Page 15: ...s 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 W2150A W4 W2250A W4 Series general settings Please refer to Chapter...

Page 16: ...e Monitor function may 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...

Page 17: ...ll be hosted or started from the NPort serial port or from the network The major difference between the TCP and UDP protocols is that TCP guarantees delivery of data by requiring the recipient to send...

Page 18: ...at a time Third party drivers supporting RFC 2217 are widely available on the Internet and can implement virtual COM mapping TCP Server Mode In TCP Server mode the NPort serial port is assigned an IP...

Page 19: ...t can then communicate transparently to a device attached to the other NPort as if a serial cable connected the two devices Both data and modem control signals are exchanged except for DCD signals Thi...

Page 20: ...itches UPS units and other devices including the NPort W2x50A W4 have Console AUX or COM ports to which a terminal can be physically connected for console management With the NPort W2x50A W4 the devic...

Page 21: ...dows 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...

Page 22: ...NPort W2150A W4 W2250A W4 Series User Manual 22 3 Select a destination location and click Next to proceed 4 Show if you wish to create a desktop icon and click Next to proceed...

Page 23: ...ng 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 base...

Page 24: ...nlock Device Servers 1 Select the device and click Un Lock 2 Enter password and click OK Modifying NPort IP Addresses 1 Once the Device Search Utility DSU has found NPort device servers on the LAN you...

Page 25: ...y clicking Assign IP Sequentially Click OK to proceed 3 The selected NPort will be restarted by the Device Search Utility DSU with the new IP address Upgrading NPort Firmware 1 Once the Device Search...

Page 26: ...firmware for the selected unit Do not disconnect or power off the unit while the firmware is being upgraded 4 When the displayed status is OK click Close to complete the process ATTENTION The Device S...

Page 27: ...port must be configured for Real COM mode when being mapped to a COM port Installing NPort Windows Driver Manager 1 Download the NPort Windows Driver Manager from Moxa website https www moxa com suppo...

Page 28: ...NPort W2150A W4 W2250A W4 Series User Manual 28 4 Select a destination location and click Next to proceed 5 Select a folder for the program shortcuts and click Next to proceed...

Page 29: ...W4 W2250A W4 Series User Manual 29 6 Verify the installation parameters and click Install to proceed 7 If you see a warning that the software has not passed Windows Logo testing click Continue Anyway...

Page 30: ...ort Windows Driver Manager adds a COM port to your PC that is mapped to an NPort serial port The destination NPort serial port must be set to Real COM mode 1 In NPort Windows Driver Manager click Add...

Page 31: ...Windows Driver Manager will list each available serial port and will automatically assign a new COM port to each one The new COM port will not be accessible by the host system until it has been activ...

Page 32: ...the host computer will communicate with the new COM port as if it were physically attached Since the COM mappings are stored in the host system registry they will still be in effect if the PC is rest...

Page 33: ...program after sending data to the NPort In Classical mode the driver sends the Tx Empty response after confirmation is received from the NPort Classical mode is recommended if you want to ensure that...

Page 34: ...work connection is lost The buffer size is 4 KBytes Return error if network is unavailable If this option is disabled the driver will not return any error even when a connection cannot be established...

Page 35: ...ryption option select the Keep connection option to encrypt COM port communications immediately without restarting the COM ports This may speed up opening and closing of the COM port for your host but...

Page 36: ...W4 Series User Manual 36 8 To save all COM mapping settings to a text file right click a COM port and select Export in the context menu After the settings have been exported to a file they can be imp...

Page 37: ...he default file path is C Program Files NPortDrvManager as shown below The main files that support the NPort command line tool are npcli exe and GIdMap dat You may move these two files to your preferr...

Page 38: ...ied COM number COM_NO or all RealCOM ports 3 NPort devices operation npcli devicd search npcli device set ID network ip IP_ADDR mask SUBNET gateway IP_ADDR password CIPHER npcli device apply ID passwo...

Page 39: ...he driver file from https www moxa com support support_home aspx isSearchShow 1 2 Log in to the console as a super user root 3 Execute cd to go to the root directory 4 Copy the driver file npreal2xx t...

Page 40: ...2 driver mxdelsvr 192 168 3 4 The following actions are performed when executing mxdelsvr 1 Change npreal2d cf 2 Remove the relevant TTY ports in directory dev 3 Restart the driver If the IP address i...

Page 41: ...the configuration The configuration used by moxattyd is defined in the text file moxattyd cf which is in the same directory You may use vi or any text editor to change the file as follows ttyp1 192 16...

Page 42: ...editor to change the file For more configuration information refer to moxattyd cf which contains detailed descriptions of the various configuration parameters Find the process ID PID of the moxattyd p...

Page 43: ...er s IP address in the website address line If you are configuring the NPort for the first time over an Ethernet cable you will use the default IP address 192 168 126 254 There are two account types a...

Page 44: ...adjacent symbol 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 mus...

Page 45: ...t allows you to add time information to functions such as the automatic warning e mail or SNMP trap This field shows the current time according to the NPort s built in real time clock This is not a li...

Page 46: ...ain Name System DNS is how 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 t...

Page 47: ...est will time out after one second the second request will time out after three seconds and the third request will timeout after five second If the DHCP server is unavailable the NPort will use the fa...

Page 48: ...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 LAN When a packet is sent out over the...

Page 49: ...Configuration IP Configuration Default Static Options Static DHCP Description This field determines how the NPort s IP address will be assigned Static IP address netmask and gateway are user defined D...

Page 50: ...connection is established directly from the device server Otherwise the connection is established through the gateway as specified in the Gateway parameter Gateway Default Options IP address e g 192...

Page 51: ...access point AP Example of Infrastructure Mode After setting the Network type you will need to adjust the General and Security settings to establish the wireless connection General Settings for WLAN...

Page 52: ...GHz band is used for communication which differs from the RF band used by 802 11b and 802 11g Consequently 802 11a devices cannot communicate with 802 11b or 802 11g devices Multi mode 802 11a b g AP...

Page 53: ...es will scan all available channels and roam between APs as specified by the SSID It scans the channel when booting up and will associate with the highest signal strength AP Only when the associated A...

Page 54: ...P For example when the signal strength to the old AP is 70 dBm When the new AP is 69 dBm the device server will keep the connection to the old one If the new AP is 68 dBm the device server will switch...

Page 55: ...ements Tunneled authentication is supported depending on the EAP method selected WPA PSK This is an unmanaged authentication option in Infrastructure Mode Instead of a unique key for each user a pre s...

Page 56: ...from weak keys AES CCMP This is a powerful encryption method that is only available for WPA WPA2 WPA PSK and WPA2 PSK authentication methods Advanced Encryption Standard AES is the block cipher syste...

Page 57: ...Manual Generate WEP keys by passphrase Description This field specifies whether the WEP key will be generated manually or through a user specified passphrase A passphrase is equivalent to a free text...

Page 58: ...umber of characters required for each key depends on WEP key length and WEP key format WEP Key Length WEP Key Format Key Length 64bits ASCII 5 characters HEX 10 characters 128bits ASCII 13 characters...

Page 59: ...ort s user certificate and user private key must already be installed on the RADIUS server PEAP Protected Extensible Authentication Protocol PEAP is a proprietary protocol which was developed by Micro...

Page 60: ...ccess to the WLAN The RADIUS server s trusted server certificate must already be installed on the NPort To install a trusted server certificate visit the corresponding page in the System Management Ce...

Page 61: ...RP packets with its IP address to inform the network how to find this legacy device Gratuitous ARP Default Enabled Options Enable Disable Description Gratuitous ARP requests provide duplicate IP addre...

Page 62: ...nsole Serial Port Settings Operation Modes Each serial port on the NPort is configured through the hyperlink below the column of Operating mode Click the link of Real COM It will show the Port setting...

Page 63: ...additional settings will be available for configuration For an introduction to the different operation modes please refer to Chapter 4 Real COM This serial port will operate in Real COM mode RFC2217 T...

Page 64: ...to the packet within the specified time the NPort will force the existing TCP connection to close Max connection Default 1 Options 1 to 8 Description This field specifies the maximum number of connect...

Page 65: ...received from multiple hosts that are connected to the port Disable Driver control commands will be ignored Enable Control commands will be accepted with the most recent command received taking preced...

Page 66: ...will be packed including delimiters Delimiter 1 One additional character must be received before the data in the serial port s buffer is packed Delimiter 2 Two additional characters must be received...

Page 67: ...remain open even if there is no response to the keep alive packets 1 to 99 If the remote host does not respond to the packet within the specified time the NPort will force the existing TCP connection...

Page 68: ...ters Delimiter 1 One additional character must be received before the data in the serial port s buffer is packed Delimiter 2 Two additional characters must be received before the data in the serial po...

Page 69: ...packets 0 The TCP connection will remain open even if there is no response to the keep alive packets 1 to 99 If the remote host does not respond to the packet within the specified time the NPort will...

Page 70: ...be determined by the NPort Any host that opens the COM port connection must use identical serial communication settings Ignore jammed IP Default Disable Options Disable Enable Description This field s...

Page 71: ...wn Default always high Options always low always high Description This field specifies what happens to the RTS and DTR signals when the Ethernet connection goes down For some applications serial devic...

Page 72: ...he data Force transmit Default 0 ms Options 0 to 65535 Description This field controls data packing by the time that elapses between bits of data When using this field make sure that Inactivity time i...

Page 73: ...eep alive packets 0 The TCP connection will remain open even if there is no response to the keep alive packets 1 to 99 If the remote host does not respond to the packet within the specified time the N...

Page 74: ...s 1 to 65535 Description This field specifies the TCP port number that will be used for data transmission with the serial port Connection control Default Startup None Options Startup None Any Characte...

Page 75: ...e specified delimiter character s are received 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 will be...

Page 76: ...s 1 stop bit and no parity In this case the total number of bits needed to send a character is 10 bits and the time required to transfer one character is 8 3 ms so the force transmit time to be larger...

Page 77: ...erial data will accumulate in the serial port s buffer until the buffer is full or until the specified delimiter character s are received For example the carriage return character could be used as a d...

Page 78: ...a bits 1 stop bit and no parity In this case the total number of bits needed to send a character is 10 bits and the time required to transfer one character is 8 3 ms so the force transmit time to be l...

Page 79: ...at the opposite end of the Pair Connection and the TCP port number for communication with the serial port The port number must match with that serial port s TCP port setting TCP port Default 4001 Opt...

Page 80: ...spond to the packet within the time specified in this field the NPort W2150A W4 W2250A W4 will force the existing TCP connection to close For socket and device control modes the NPort W2150A W4 W2250A...

Page 81: ...lias Default Options free text e g Secondary console connection Description This is an optional free text field to help you differentiate one serial port from another It does not affect operation of t...

Page 82: ...ial port for both Tx and Rx directions To prevent data loss during serial communication this should be set to Disabled if the attached serial device does not have a FIFO Interface Default RS 232 Optio...

Page 83: ...logging 64K Default Disable Options Enable Disable Description This field specifies whether data logs for the serial port will be stored on system RAM Each serial port is allotted 64 KB for data logg...

Page 84: ...restrict access to the NPort by IP address Only IP addresses on the list will be allowed access to the NPort You may add a specific address or range of addresses by using a combination of IP address...

Page 85: ...located under Misc Network Settings in the System Management folder This page is used to configure the SNMP Agent on the NPort SNMP Default Enable Options Enable Disable Description This field enables...

Page 86: ...isable Options Disable MD5 SHA Description This field specifies the type of authentication to use for read only access Read Only Password Default Options free text e g password123 Description This fie...

Page 87: ...icate users for reverse terminal access and is useful if you do not have an external RADIUS server for authentication The NPort User Table stores up to 64 entries with fields for User Name and Passwor...

Page 88: ...ail IP Changed Password Changed Firmware Upgrade SSL Certificate Import Config Import Config Export Wireless Certificate Import Serial Data Log Export Op Mode Connect Disconnect Restart Auto Warning S...

Page 89: ...pecify how the NPort will notify you of DCD and DSR events for each serial port Mail refers to sending an e mail to a specified address Trap refers to sending an SNMP trap A change in the DCD Data Car...

Page 90: ...n select My server requires authentication and enter the username and password From e mail address Default Options free text e g jsmith xyz com Description This field specifies the e mail address that...

Page 91: ...e SSH console Serial Console and Reset button HTTP Console Default Enable Options Enable Disable Description This field enables or disables access to the HTTP web console HTTPS Console Default Enable...

Page 92: ...rovides a convenient way to test an Ethernet connection or verify an IP address Enter the IP address or domain name in the Destination field and click Activate The results will be displayed immediatel...

Page 93: ...N You may import the existing configuration file of the NPort W2x50A Series to facilitate the process Please note 1 If your NPort W2x50A Series is configured as BOOTP of the IP configuration Web conso...

Page 94: ...wnload to begin the process A window should appear asking you to open or save the configuration text file Load Factory Default The Load Factory Default page is located under Maintenance in the System...

Page 95: ...assword protection ATTENTION If you forget the password the ONLY way to configure the NPort is by loading the factory defaults with the reset button All settings will be lost Before setting the passwo...

Page 96: ...address of the wireless interface You can also import a certificate Select or browse for the certificate file in the Select SSL certificate key file field WPA Server Certificate Import The WPA Server...

Page 97: ...ort uses WPA WPA2 TLS The trusted server certificate of the RADIUS server must also be installed in the NPort WPA User Key Import The WPA User Key Import page is located under Certificate in the Syste...

Page 98: ...cate Key Delete page is located under Certificate in the System Management folder This page is where you can delete certificates or WPA keys that have been installed on the model When you click Submit...

Page 99: ...the NPort web console These functions allow you to monitor many aspects of your operation System Monitoring Serial Status Serial to Network Connections The Serial to Network Connections page is locate...

Page 100: ...x packets to device for the current connection RxCnt number of Rx packets from device for the current connection TxTotalCnt number of Tx packets since the NPort was powered on RxTotalCnt number of Rx...

Page 101: ...Status in the System Monitoring folder On this page you can view the current communication settings for each serial port System Status Network Connections The Network Connections page is located unde...

Page 102: ...stem Monitoring folder This is where you can download the current data log for a serial port Select the desired serial port in the Select port field Select the desired data format in the Download form...

Page 103: ...tool for an engineer to troubleshoot if there is any issue with the wireless connection To clear the log contents click Clear log Click Download to save the log to a txt file for an engineer to troub...

Page 104: ...NPort W2150A W4 W2250A W4 Series User Manual 104 The WLAN Status page is located under System Status in the System Monitoring folder This is where you can view the current WLAN settings and status...

Page 105: ...es will not be effective until they are saved and the NPort is rebooted Restart Restart System The Restart System page is in the Restart folder Click Restart to restart the NPort and the new settings...

Page 106: ...the device server by TCP IP The MxNPortAPI provides frequently used serial command sets like port control input output etc and the style of developed Android application is similar to MOXA Driver Mana...

Page 107: ...s such as Windows Linux or Mac You can refer the Android studio website to see the system requirements for development environment https developer android com studio index html hl zh tw Requirements T...

Page 108: ...rm see the example program below Thread thread new Thread Override public void run Enumerate and initialize NPorts on system List MxNPort NPortList MxNPortService getNPortInfoList if NPortList null Mx...

Page 109: ...rStatus ifOutOctets ifIndex ifLastChange ifOutUcastPkts ifDescr ifInOctets ifOutNUcastPkts ifType ifInUcastPkts ifOutDiscards ifMtu ifInNUcastPkts ifOutErrors ifSpeed ifInDiscards ifOutQLen ifPhysAddr...

Page 110: ...n AtIfIndex AtNetAddress AtPhysAddress TCP MIB tcpRtoAlgorithm tcpEstabResets tcpConnLocalPort tcpRtoMin tcpCurrEstab tcpConnRemAddress tcpRtoMax tcpInSegs tcpConnRemPort tcpMaxConn tcpOutSegs tcpInEr...

Page 111: ...2PortOutSigNumber rs232PortInSpeed rs232PortOutSpeed RS 232 like Asynchronous Port Group rs232AsyncPortTable rs232AsyncPortIndex rs232AsyncPortStopBits rs232AsyncPortEntry rs232AsyncPortBits rs232Asyn...

Page 112: ...on most systems can only be used by system processes or by programs executed by privileged users The following table shows famous port numbers among the well known port numbers For more details please...

Page 113: ...l 42 Host name server names server 43 Whois nickname 49 Login Host Protocol Login 53 Domain Name Server domain 69 Trivial Transfer Protocol TETP 70 Gopher Protocol 79 Finger Protocol 80 World Wide Web...

Page 114: ...ta mode Dial out The NPort accepts ATD commands such as ATD 192 168 1 1 4001 from the serial port It will then request a TCP connection from the specified remote Ethernet modem or PC Once the remote u...

Page 115: ...se Tone Dialing mode reply OK only 10 ATQ0 ATQ1 Quiet command default ATQ0 11 ATSr n Change the contents of S register see S registers 12 ATSr Read the contents of S register see S registers 13 ATV Re...

Page 116: ...e character default 8 ASCII 7 S6 Wait time for dial tone always 2 unit sec no action applied 8 S7 Wait time for carrier default 3 unit sec 9 S8 Pause time for dial delay always 2 unit sec no action ap...

Reviews: