Moxa Technologies NPort 5110 Series User Manual Download Page 1

 

 

NPort 5000 Series User Manual 

NPort 5000/5000A/IA5000/IA5000A/5000AI-M12 Series 

Version 6.7, July 2022 

www.moxa.com/products 

 

© 2022 Moxa Inc. All rights reserved. 

 

 

Summary of Contents for NPort 5110 Series

Page 1: ...NPort 5000 Series User Manual NPort 5000 5000A IA5000 IA5000A 5000AI M12 Series Version 6 7 July 2022 www moxa com products 2022 Moxa Inc All rights reserved...

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

Page 3: ...eries 24 Export Import Excluding the NPort 5100 5200 and IA5000 Series 26 Basic Settings 28 Network Settings 31 Serial Settings 37 Operating Settings 40 Accessible IP Settings 42 Firmware Upgrading Co...

Page 4: ...a COM Group 123 Deleting a COM Group 125 Adding a Port to a COM Group 126 Removing a Port from a COM Group 127 Modify Ports in a COM Group 128 IP Address Report 132 7 NPort CE Driver Manager for Wind...

Page 5: ...g 160 11 IP Serial LIB 161 Overview 161 What is IP Serial Library 161 Why Use IP Serial Library 161 How to Install IP Serial Library 161 IP Serial LIB Function Groups 162 Example Program 162 12 Androi...

Page 6: ...30A 5150A Series NPort 5210A 5230A 5250A Series NPort 5150AI M12 5250AI M12 5450AI M12 Series NPort P5150A Series The NPort 5000A device servers are designed to make serial devices network ready in an...

Page 7: ...connect the power cord before installing and or wiring your NPort Device Server Wiring Caution Calculate the maximum possible current allowed in each power wire and common wire Observe all electrical...

Page 8: ...ntended to be mounted to a well grounded mounting surface such as a metal panel Type of Power Terminal Block Shielded Ground SG Applicable Products The Shielded Ground sometimes called Protected Groun...

Page 9: ...ting up Blinking Indicates an IP conflict or the DHCP or BOOTP server did not respond properly Green Steady on Power is on and the NPort is functioning normally Blinking The device server has been loc...

Page 10: ...lt Red Indicates an IP conflict or the DHCP or BOOTP server did not respond properly Off No fault condition detected Off Blinking Network is connected data is being transmitted ETH 1 ETH2 Green Steady...

Page 11: ...t IA5000 fiber models Beeper Definition Beeper Timing Frequency Length Intervals Times Definition Startup 100 ms 100 ms 2 When the NPort is ready to run Locating 100 ms 900 ms when user stops the func...

Page 12: ...t page Run NPort Administrator when the installation has been completed Searching for Device Servers over a LAN The Broadcast Search function is used to locate all NPort 5400 device servers that are c...

Page 13: ...like to modify The device server must be assigned a unique IP address that is valid for your network Both fixed and dynamic IP addresses are supported Consult with your network administrator if you ar...

Page 14: ...ll interact with the network Which operation mode you select will depend on your specific application Refer to the chart at the end of this section for guidance on selecting the most appropriate opera...

Page 15: ...mode and associated parameters as needed Refer to Chapter 4 and Chapter 5 for additional information on operating modes and advanced settings When you are ready to restart the device server with the n...

Page 16: ...evice Required Data bits 5 6 7 8 8 The size of each data character Required Stop bits 1 1 5 2 1 The size of the stop character Required Parity None Even Odd Space Mark None The parity that will be use...

Page 17: ...evice server with the new settings click OK Mapping COM Port to Device only required when operation mode is set to Real COM or RFC2217 This section covers how to map the COM ports on a Windows PC to N...

Page 18: ...w Select Add Target in the pop up menu to assign your device server as the mapping target A list of NPort device servers that have been found by NPort Administrator will appear Select your device serv...

Page 19: ...ltiple COM ports at the same time by selecting the Auto Enumerating check box to number the COM ports automatically On the Serial Parameters screen adjust the settings to match your device These setti...

Page 20: ...ushes only the local buffer on the host for a Win32 PurgeComm function call When disabled both the local and remote buffers are flushed If your application uses PurgeComm and it performance seems slug...

Page 21: ...then select the three Enable options as shown in the figure below 2 Type 192 168 127 254 in the Address input box use the correct IP address if different from the default and then press Enter 3 For th...

Page 22: ...00 Series Only Web Interface for the Overall NPort 5000 Series ATTENTION If you use other web browsers remember to enable the functions to allow cookies that are stored on your computer or allow per s...

Page 23: ...way to start configuring the NPort is to load factory defaults by using the Reset button located near the NPort s Ethernet port Remember to use NPort Administrator for NPort 5000 and NPort IA5000 Seri...

Page 24: ...ettings and Operating Settings sections later in this chapter Step 1 3 In Step 1 3 you must assign a valid IP address to the NPort before it will work in your network environment Your network system a...

Page 25: ...nish Settings Review your settings on the Finish Settings page to confirm that they are correct and then click the Save Restart button to restart the device with the new settings NOTE If you change th...

Page 26: ...specified export password the default password is moxa which you may assign in Pre shared Key Click Download to write all configuration data to a fixed file name as follows Servername txt To import th...

Page 27: ...ware v1 5 NPort IA5150A Series Firmware v1 4 NPort IA5450A Series Firmware v1 6 NOTE The configuration encrypting function is not available in the NPort 5100 NPort 5200 and NPort IA5000 Series Refer t...

Page 28: ...NPort 5000 Series User Manual 28 Basic Settings Web Interface for the NPort 5100 5200 and IA5000 Series Only Web Interface for the Overall NPort Series...

Page 29: ...Domain address only available in 2 4 8 16 ports models E g 192 168 1 1 or time stdtime gov tw or time nist gov None NPorts use SNTP RFC 1769 for auto time calibration Input the correct Time server IP...

Page 30: ...ton In this case the Reset Button can be used for only 60 seconds 60 s after booting up the Reset Button will be disabled automatically Required LCM read only protection Writeable Read only Writeable...

Page 31: ...NPort 5000 Series User Manual 31 Network Settings Web Interface for the NPort 5100 NPort 5200 and NPort IA5000 Series Only...

Page 32: ...NPort 5000 Series User Manual 32 Web Interface for the Overall NPort 5000 Series excluding the NPort IA5000A Series...

Page 33: ...lid connection to the network You can choose from four possible IP configuration modes Static DHCP DHCP BOOTP and BOOTP located under the web console screen s IP configuration dropdown box Method Func...

Page 34: ...t 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 NPort a connection is e...

Page 35: ...to configure the DNS server Doing so allows the NPort to use a host s domain name to access the host The NPort provides DNS server 1 and DNS server 2 configuration items to configure the IP address of...

Page 36: ...he 1 2 port model only supports Get but not Set Optional The following fields allow you to define usernames passwords and authentication parameters for two levels of access read only and read write Th...

Page 37: ...lly to the IP location server in case the dynamic IP has changed The parameters shown below are used to configure the Auto IP report function There are two ways to develop an Auto IP report Server to...

Page 38: ...s located under Main Menu on the left side of the browser window Web Interface for the NPort 5100 5200 and IA5000 Series Only Web Interface for the Overall NPort 5000 Series ATTENTION It is critical t...

Page 39: ...bits Required Stop bits 1 1 5 2 1 The size of the stop character Required Parity None Even Odd Space Mark None Even and Odd parity provide rudimentary error checking Space and Mark parity are rarely...

Page 40: ...Chapters 4 and 5 for a detailed explanation of different operating modes and parameters Click on Operating Settings under Main Menu to display the operating settings for the NPort s serial ports To m...

Page 41: ...r your application The operation mode and related parameters can be configured through the web console The same parameters can also be configured using NPort Administrator the Telnet console or serial...

Page 42: ...NPort 5000 Series User Manual 42 Accessible IP Settings Web Interface for the NPort 5100 5200 and IA5000 Series Only Web Interface for the Overall NPort 5000 Series...

Page 43: ...4 192 168 0 0 255 255 0 0 192 168 1 1 to 192 168 1 126 192 168 1 0 255 255 255 128 192 168 1 129 to 192 168 1 254 192 168 1 128 255 255 255 128 Firmware Upgrading Compatibility Check At times Moxa nee...

Page 44: ...ion groups and manage password and login policy to ensure device is used by a proper set of people Notification Message As an administrator you are allowed to customize your Login Message and the Logi...

Page 45: ...nts to the NPort 5000 device by clicking the Add button on the User Account page You may also click on the current user to Edit or Delete the selected account The Add Account Edit Account page will sh...

Page 46: ...Disable The password must contain an upper and a lower case letter when enabling this parameter At least one special characters _ Enable Disable Disable The password must contain at least one special...

Page 47: ...nt options for automatic notification are available These options are configured in the Auto Warning Settings Auto warning E mail and SNMP trap The Email and SNMP trap parameters are used to configure...

Page 48: ...t will show up in an automatic warning e mail Optional E mail address 1 2 3 4 1 to 63 characters None These optional fields set the destination e mail address for automatic e mail warnings Optional SN...

Page 49: ...e mail or send an SNMP trap after booting up Warm start A warm start refers to restarting the computer without turning the power off When performing a warm start the NPort will automatically send an...

Page 50: ...Users can connect to Monitor Relay Output from the web console to check which event caused the warning The relay output will be canceled after the power recovers or by selecting acknowledge event usin...

Page 51: ...ort IA5000 IA5000A series Users can connect to Monitor Relay Output from the web console to check which event is causing the warning The relay output will be canceled if the abnormal state is restored...

Page 52: ...ch connection IPx for each of the four serial ports Web Interface for the NPort 5100 5200 and IA5000 Series Only Web Interface for the Overall NPort 5000 Series Monitor Async Click Async under Monitor...

Page 53: ...Overall NPort 5000 Series Monitor Async Settings Click Async Setting under Monitor to show the run time settings for each of the four serial ports Web Interface for the NPort 5100 5200 and IA5000 Seri...

Page 54: ...tem Warm Start NPort 5000 warm start Network DHCP BOOTP PPPoE Get IP Renew IP of the NPort 5000 is refreshed NTP Time synchronization successful NTP Connect Fail The NPot 5000 failed to connect to the...

Page 55: ...cess to the NPort configuration settings will be denied Web Interface for the NPort 5100 5200 IA5000 Series Only Web Interface for the Overall NPort 5000 Series ATTENTION If you forget the NPort s pas...

Page 56: ...sing Telnet to connect to your NPort IA5000A over the network Figures in this section were generated using the NPort IA5450AI 1 From the Windows desktop click on Start and then select Run 2 Type telne...

Page 57: ...NPort 5000 Series User Manual 57 4 Type 2 to select Network settings and then press Enter 5 Type 1 to select IP address and then press Enter...

Page 58: ...NPort 5000 Series User Manual 58 6 Use the Backspace key to erase the current IP address type in the new IP address and then press Enter 7 Press any key to continue...

Page 59: ...ries User Manual 59 8 Type m and then press Enter to return to the main menu 9 Type s and then press Enter to Save Restart the system 10 Type y and then press Enter to save the new IP address and rest...

Page 60: ...er and connect the serial cable from the NPort to your computer s serial port 1 Connect the NPort s serial port 1 directly to your computer s male RS 232 serial port From the Windows desktop click Sta...

Page 61: ...ole functions especially the Monitor function may not work properly 6 Press the key continuously and then power on the NPort 7 The NPort will automatically switch from data mode to console mode as it...

Page 62: ...r completing installation and configuration you can do a simple test to ensure that your NPort will communicate successfully Click on the appropriate link below to view a technical note that explains...

Page 63: ...welcoming to intruders out there It is always recommended to turn off services and ports that are not in use to reduce the chances of being attacked Turn Off Moxa Service After Installation Moxa Serv...

Page 64: ...pening on your NPort such as Login Fail IP Changed Password Changed Config Changed etc Check the log periodically to examine any abnormal behavior Testing the Security Environment Besides these device...

Page 65: ...uarantee a cyberthreat free environment these guidelines are to increase security level to defend against cyberintrusions and do not guarantee that the above information will meet your specific requir...

Page 66: ...n NPort serial device server is an external IP based network device that allows you to expand the number of serial ports for a host computer on demand As long as your host computer supports the TCP IP...

Page 67: ...NPort 5000A NPort 5000AI M12 NPort IA5000A NPort 5600 and NPort 5600 8 DT DTL Series RFC 2217 mode is similar to Real COM mode in that a driver is used to establish a transparent connection between a...

Page 68: ...Pair Connection Mode employs two NPort units in tandem and can be used to remove the 15 meter distance limitation imposed by the RS 232 interface One NPort is connected from its RS 232 422 485 port to...

Page 69: ...connected devices need to use the CR LF conversion function when controlling then users must choose Reverse Telnet mode PPP Mode PPP Mode is only supported by the NPort 5600 Series The NPort 5000 pro...

Page 70: ...ttings 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 we...

Page 71: ...on one of the NPorts to Pair Connection Master mode and one device port on the other NPort to Pair Connection Slave mode It doesn t matter which NPort is the master and which NPort is the slave For t...

Page 72: ...tions 1 to 8 1 to 4 for the NPort 5100 NPort 5200 NPort 5400 Series Default 1 Description Specifies the maximum number of simultaneous connections that the port will accept When adjusting Max connecti...

Page 73: ...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...

Page 74: ...to use this port number to refer to the device For Pair Connection modes this field specifies the slave s port number and the same value must be used for the master s Destination IP parameter Command...

Page 75: ...ivity Time DSR On DSR Off DSR On None DCD On DCD Off DCD On None Default Startup None Description Specifies how connections to the device are established and closed For example Startup None means that...

Page 76: ...0 Series User Manual 76 Web Interface for the NPort 5100 5200 and IA5000 Series Only Web Interface for the Overall NPort 5000 Series Real COM Mode Web Interface for the NPort 5100 5200 and IA5000A Ser...

Page 77: ...a same When Max Connection is set to 1 the Real COM driver on the specific host has full control Max Connection 1 Allows only 1 host s Real COM driver to open the specific NPort serial port Max Conne...

Page 78: ...2 of data is received after receiving the Delimiter Strip Delimiter When the Delimiter is received the Delimiter is deleted i e stripped and the remaining data is transmitted Do nothing The data will...

Page 79: ...10 bits 1200 bits s 1000 ms s 8 3 ms Therefore you should set Force Transmit timeout greater than 8 3 ms Force Transmit timeout is specified in milliseconds and must be greater than 10 ms If you want...

Page 80: ...he Delimiter Process will be followed regardless of the length of the data packet Greater than 0 If the data length in bytes matches the configured value the data will be forced out Optional Delimiter...

Page 81: ...ding to your application but it must be at least larger than one character interval within the specified baudrate For example assume that the serial port is set to 1200 bps 8 data bits 1 stop bit and...

Page 82: ...n if there is no serial data activity for the given time After the connection is closed the NPort starts listening for another TCP connection This parameter determines when the TCP connection is in Cl...

Page 83: ...in first out when data comes into the NPort from the Ethernet interface Required Ignore jammed IP No or Yes No No When Max connections 1 and the serial device is transmitting data if any one of the c...

Page 84: ...is full or if the force transmit time interval reaches the time specified under Force Transmit timeout Optional Local TCP port 1 to 65535 4001 The TCP port that the NPort uses to listen to connection...

Page 85: ...NPort 5000 Series User Manual 85 TCP Client Mode Web Interface for the NPort 5100 5200 and IA5000 Series Only...

Page 86: ...Necessity TCP Alive Check Time 0 to 99 min 7 min 0 min TCP connection is not closed due to an idle TCP connection 1 to 99 min The NPort automatically closes TCP connection if there is no TCP activity...

Page 87: ...ng the second group of data to all hosts Yes If you select Yes for Ignore jammed IP the host that is not responding will be ignored but the data will still be transmitted to the other hosts Optional A...

Page 88: ...11 Port 1 5012 Port 2 5013 Port 3 5014 Port 4 N A Required Connection control Startup None Any Character None Any Character Inactivity Time DSR ON DSR OFF DSR ON None DCD ON DCD OFF DCD ON None Startu...

Page 89: ...nd 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 A...

Page 90: ...meter defines the time interval during which the NPort fetches the serial data from its internal buffer If data is incoming through the serial port the NPort stores the data in the internal buffer The...

Page 91: ...the must inform the routers on its LAN The Internet Group Management Protocol IGMP is used to communicate group membership information between hosts and routers on a LAN The NPort 5000 Series support...

Page 92: ...Port device servers Pair Connection Master Mode When using Pair Connection Mode you must select Pair Connection Master Mode for the Operation mode of one of the NPort device servers In effect this NPo...

Page 93: ...000 Series Only Web Interface for the Overall NPort 5000 Series Parameter Setting Factory Default Description Necessity TCP Alive Check Time 0 to 99 min 7 min 0 min TCP connection is not closed due to...

Page 94: ...the connection request after which the NPort enters data mode If no ATA command is received the NPort will disconnect after sending three RING signals ATS0 0 The NPort will accept the TCP connection i...

Page 95: ...P address Port No 3 ATE ATE0 Echo OFF ATE1 Echo ON default 4 ATH ATH0 On hook default ATH1 Off hook 5 ATI ATI0 ATI1 ATI2 Modem version reply OK only 6 ATL Speaker volume option reply OK only 7 ATM Spe...

Page 96: ...response time always 6 unit 1 10 sec no action applied 11 S10 Delay for hang up after carrier always 14 unit 1 10 sec no action applied 12 S11 DTMF duration and spacing always 100 ms no action applie...

Page 97: ...1 to 65535 4001 Each of the NPort s serial ports is mapped to a TCP port To avoid conflicts with TCP ports set port numbers to 4001 for port1 4002 for port 2 etc like the default values Optional Map...

Page 98: ...ser ID account Password This is the dial out user password Authentication type default None This field allows you to configure the method used if any to verify a user s ID and authorization Option Des...

Page 99: ...NPort 5100 5200 and IA5000 Series Only Web Interface for the Overall NPort 5000 Series When Operation mode is set to Disabled that particular port will be disabled Select the Apply the above settings...

Page 100: ...provided to ease the installation process allow off line COM mapping and provide monitoring and IP location server functions ATTENTION Before installing and the configuring the NPort Administration su...

Page 101: ...lick Next to install program files in the default directory or select an alternative location 3 Click Next to install the program using the default program name or select a different name 4 Click Inst...

Page 102: ...0 Series User Manual 102 5 The Installing window reports the progress of the installation 6 Click Next to proceed with the installation 7 Click Finish to complete the installation of NPort Administrat...

Page 103: ...right section The activity Log which displays messages that record the user s processing history is shown in the bottom section Broadcast Search The Broadcast Search function is used to locate all NPo...

Page 104: ...determine which server s are the ones you wish to configure To configure an NPort place the cursor over the row displaying that NPort s information and then double click the left mouse button ATTENTI...

Page 105: ...meanings of the six Status states are given below note that the term Fixed is borrowed from the standard fixed IP address networking terminology Lock The NPort is password protected Broadcast Search...

Page 106: ...Henceforth during this Administrator session activating various utilities for this NPort will not require re entering the server password Configuring NPort In this section we illustrate how to access...

Page 107: ...can simultaneously modify the configurations of multiple NPort units that are of the same model To select multiple NPort units hold down the Ctrl key when selecting additional NPort units or hold down...

Page 108: ...the firmware 3 Select the correct ROM file to download 4 Wait while the Upgrade Firmware action is processed ATTENTION You can simultaneously upgrade the firmware of multiple NPort units that are of...

Page 109: ...rted configuration file will be encrypted for security purpose You will need the same password you use for the exported file to import the same file back into the NPort After assigning the export pass...

Page 110: ...stration Suite v1 22 or above an Import Password window will pop up and you will need to enter the password that is unique to the configuration file which is assigned when exporting the configuration...

Page 111: ...was successful For firmware versions supporting encrypted configuration files please refer to the table below Model Name Firmware version supporting encrypted configuration files NPort 5000 Series NP...

Page 112: ...ite v1 22 or above NPort IA5450A Firmware v1 4 and up Support with both web console and NPort Administration Suite v1 22 or above ATTENTION 1 You can simultaneously import the same configuration file...

Page 113: ...t list will appear on the Monitor screen 2 Right click the panel and select Settings 3 Select or de select Monitor Items Use the single arrowhead buttons to move highlighted items from one box to the...

Page 114: ...dvanced Settings page select Display warning message for new event and or Play warning music for new event In the second case you must enter the path to the WAV file that you want to be played New eve...

Page 115: ...this example the NPort shown in the list will be monitored 8 When one of the NPort units loses connection with the Monitor program a warning alert will display automatically The warning music will be...

Page 116: ...the user that the NPort is now Alive 11 The NPort units that were reconnected and are now Alive will be shown in black color Port Monitor The process described here is the same as in the previous Mon...

Page 117: ...y to the network and then install the driver on the host computer The second way is with Off line COM Installation without first connecting the NPort to the network Off line COM Mapping can decrease t...

Page 118: ...group 3 Add the target to which you would like to map COM ports 4 The NPort list that appears is the list generated by the previous Broadcast Search Select the NPort to which you would like to map CO...

Page 119: ...32 PurgeComm function before it reads or writes data With our design after the program uses this Purge Comm function the NPort driver will keep querying the NPort s firmware several times to make sure...

Page 120: ...he application can use Win32 API PurgeComm to clear the output buffer and terminate outstanding overlapped write operations Select Ignore TX Purge if you do not want the output buffer to be purged 7 T...

Page 121: ...not have the ability to use the COM port until after Apply Change is selected 9 Select Discard Change to tell Administrator NOT to save the COM Mapping information to the host 10 To save the configura...

Page 122: ...e COM Mapping 1 Add a target by inputting the IP address and selecting the Model Name without physically connecting the NPort to the network 2 Modify the port settings as needed 3 Right click in the N...

Page 123: ...by operating only one COM port Creating a COM Group Follow the steps below to add multiple COM ports into one group 1 Select serial port s for the group that you are going to create and right click to...

Page 124: ...nsmission 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 ass...

Page 125: ...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 yo...

Page 126: ...Follow the steps below to add a serial port into an existing COM Group 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...

Page 127: ...were assigned to and removed from the Group Click Apply to apply the settings 4 Finally click Yes to confirm Removing a Port from a COM Group Follow the steps below to remove a serial port from a COM...

Page 128: ...ere assigned to and removed from the Group Click Apply to apply the settings 4 Finally click Yes to confirm Modify Ports in a COM Group In the following subsections we examine three ways in which the...

Page 129: ...ot in use or assigned to a Group 3 Select the Grouping selected port s together checkbox and then click OK 4 You will be able to view the serial ports that were assigned to and removed from the Group...

Page 130: ...arameters of the COM Group 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 3 The Advanced...

Page 131: ...Select a serial port in the Group and then right click and select COM Settings 2 Check the Grouping selected port s together check box 3 On COM Grouping page you can specify one serial port whose sig...

Page 132: ...y reporting their IP address to the IP location server in case the dynamic IP has changed 1 Configure the NPort with Dynamic IP settings DHCP BOOTP or DHCP BOOTP Assign the remote Auto IP report serve...

Page 133: ...NPort 5000 Series User Manual 133 4 Click Go to start receiving the Auto IP address report from the NPort...

Page 134: ...NPort Administration suite make sure your user privilege is set as system administrator Installing NPort CE Driver Manager 1 Copy NPortCab cab to Windows CE and start to install driver by double click...

Page 135: ...are set to Real COM mode when mapping COM ports with NPort CE Driver Manager 1 Go to Start Programs NPort CE Driver Manager 2 Click on the COM Mapping page and then the Search button to scan for NPor...

Page 136: ...t 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...

Page 137: ...al 137 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 re...

Page 138: ...er Files NOTE The newest information please refer to readme txt on Linux Real TTY Driver 1 Obtain the driver file from Moxa s website at http www moxa com You may find it in the Resource section under...

Page 139: ...will be added all with IP 192 168 3 4 with data ports from 950 to 965 and command ports from 966 to 981 Mapping tty ports manually To map tty ports manually you may execute mxaddsvr and manually speci...

Page 140: ...unload the driver To do this you only need to enter the directory usr lib npreal2 driver then execute mxuninst to uninstall the driver This program will perform the following actions 1 Unload the dri...

Page 141: ...rtual COM port Hardware Setup Before proceeding with the software installation make sure you have completed the hardware installation Please note the default IP address for the NPort 5000 is 192 168 1...

Page 142: ...al 142 2 Execute the installer package moxa macOS tty drivers for macOS 10 12 or later v1 0 pkg 3 Press Continue when the Introduction window opens to proceed with installation 4 Press Continue in the...

Page 143: ...ck Install to start the installation in the default directory or select an alternative location 6 Key in your system login username and password to confirm the authentication 7 The Instaltion window r...

Page 144: ...on of the NPort macOS tty driver Mapping macOS TTY port 1 In the menu bar a NPortConnect icon should appear after the installation is completed 2 Click on the NPortConnect icon and select NPort Mappin...

Page 145: ...hat are connected to the same LAN as your Mac Since the Broadcast Search function searches by MAC address and not IP address all NPort units connected to the LAN will be located regardless of whether...

Page 146: ...click OK 7 NPortConnect would auto assign the tty name and corresponding port number to the IP address of the selected NPort 8 The tty name and port number are editable Please note that these changed...

Page 147: ...0 Series User Manual 147 9 When everything is set click Apply to save the configuration Uninstalling the Driver Run the following command to uninstall driver sudo bash usr local share NPortConnect uni...

Page 148: ...Real TTY driver fully supports all modern day Linux distributions running on x86 environments and the driver core is also compatible with the Arm platform This document will guide you on how to port...

Page 149: ...35x linux 4 4 You need to configure these files before starting to cross compile Move the kernel source to moxa kernel and configure the kernel source mv am335x linuc 4 4 moxa kernel cd moxa kernel ma...

Page 150: ...e binaries will now be generated and placed in the output directory under the source code folder Manually build the Real TTY driver with a cross compiler To cross compile npreal2 driver users can find...

Page 151: ...make npreal2d CROSS_COMPILE arm linux gnueabihf CC gcc CFLAGS DNO_INIT DOFFLINE_POLLING After using the make command to cross compile the daemons and tools the binaries can be found in the source cod...

Page 152: ...nssl arm bin include lib engines libcrypto a libssl a pkgconfig The following command is to build npreal2d with secure mode arm linux gnueabihf gcc c CFLAGS DNO_INIT DSSL_ON DOPENSSL_NO_KRB5 npreal2d...

Page 153: ...delsvr or mxsetsec the same as running them on x86 Linux 5 The module can be unloaded by the following command modprobe r npreal2 Porting to Raspberry Pi OS Raspberry Pi OS images are prebuilt by www...

Page 154: ...ut the source code of the Raspberry Pi BSP Layer cd home user poky git clone https git yoctoproject org cgit cgit cgi meta raspberrypi b dunfell 2 A meta raspberrypi folder will be checked out now Use...

Page 155: ...layer Create an empty Moxa Layer Use the following commands to create an empty layer named meta moxa 1 Initiate the environment first Suppose the project is installed in home user poky cd home user po...

Page 156: ...COPYING MIT README recipes kernel hello mod files COPYING hello c Makefile hello mod_0 1 bb 3 Delete the unnecessary files in hello mod Rename the hello mod cd meta moxa recipes kernel rm hello mod f...

Page 157: ...ecipe for facilitating the NPort management 1 Create directory below in meta moxa cd home user poky mkdir p meta moxa recipes utility realtty tools files 2 Copy the Moxa driver which can be downloaded...

Page 158: ...elsvr DEST_DIR install m 0755 S mxcfmat DEST_DIR install m 0755 S mxloadsvr DEST_DIR install m 0755 S mxsetsec DEST_DIR install m 0755 S moxa mxmknod DEST_DIR install m 0755 S moxa mxrmnod DEST_DIR in...

Page 159: ...bake core image base An SD card format image rpi sdimg is generated under home user poky build tmp deploy images raspberrypi3 It is suggested to use the Raspberry Pi official tool rpi imager to burn t...

Page 160: ...ng instructions are for this purpose 1 Open the realtty tools bb file with a text editor meta moxa recipes utility realtty tools realtty tools bb 2 If it is required to connect the NPort with the SSL...

Page 161: ...By including it in your VB C or Delphi programming environment you can program your own TCP IP application with the ability to control serial communication parameters The NPort serial device server us...

Page 162: ...meouts nsio_lstatus nsio_data_status nsio_break nsio_break_on nsio_break_off nsio_breakcount Example Program char NPort 5100A Nip 192 168 1 10 char buffer 255 int port 1 int portid nsio_init portid ns...

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

Page 164: ...ind it in the Resource section under your product page You can refer the Android studio website to see the system requirements for development environment https developer android com studio index html...

Page 165: ...he 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 MxNPort Io...

Page 166: ...ddress There are four push buttons on the NPort s nameplate Going from left to right the buttons are Button Name Action menu menu activates the main menu or returns to a lower level up cursor scrolls...

Page 167: ...ssarily mean that the number does not change only that you cannot change it Main Menu Server setting Serial number Server name Firmware ver Model name D C D D Network setting Ethernet status MAC addre...

Page 168: ...of configurable option is when there are only a small number of options from which to choose although only one option will be visible at a time Consider the PARITY attribute under PORT SETTING as an e...

Page 169: ...ssigned 3 Input V 4 Not assigned 5 Function ground Serial Port Pinouts Pin Assignment Applicable Products DB9 Male RS 232 Port Pinouts Pin RS 232 1 DCD 2 RxD 3 TxD 4 DTR 5 GND 6 DSR 7 RTS 8 CTS 9 NPor...

Page 170: ...8 DTL DTL T and 5650I 8 DTL DTL T NPort IA5150 5250 NPort IA5250A 8 pin RJ45 RS 232 Port Pinouts Pin RS 232 1 DSR 2 RTS 3 GND 4 TxD 5 RxD 6 DCD 7 CTS 8 DTR NPort 5210 5210I NPort 5610 8 DT J NPort 56...

Page 171: ...Pinouts NPort 5430 5430I Console Port Pinouts RJ45 Connector Pin RS 232 1 DSR 2 RTS 3 GND 4 TxD 5 RxD 6 DCD 7 CTS 8 DTR Applies only to DT models Power Input and Relay Output Pinouts V2 V2 V1 V1 Shie...

Page 172: ...NPort 5000 Series User Manual 172 Cable Wiring Diagrams Ethernet Cables Serial Cables Serial Cable Wiring Diagrams Female DB9 to Male DB9 RS 232 Female DB9 to Male DB25 RS 232...

Page 173: ...NPort 5000 Series User Manual 173 NPort 5210 NPort 5610 5650 RS 232 8 pin RJ45 to DB9 Female RS 232 8 pin RJ45 to DB9 Male RS 232 8 pin RJ45 to DB25 Female RS 232 8 pin RJ45 to DB25 Male RS 232...

Page 174: ...anual 174 NPort 5630 RS 422 4 wire RS 485 8 pin RJ45 to DB9 Female RS 422 4 wire RS 485 8 pin RJ45 to DB9 Male RS 422 4 wire RS 485 8 pin RJ45 to DB25 Female RS 422 4 wire RS 485 8 pin RJ45 to DB25 Ma...

Page 175: ...5000 Series User Manual 175 NPort 5630 2 wire RS 485 8 pin RJ45 to DB9 Female 2 wire RS 485 8 pin RJ45 to DB9 Male 2 wire RS 485 8 pin RJ45 to DB25 Female 2 wire RS 485 8 pin RJ45 to DB25 Male 2 wire...

Page 176: ...anual 176 NPort 5650 RS 422 4 wire RS 485 8 pin RJ45 to DB9 Female RS 422 4 wire RS 485 8 pin RJ45 to DB9 Male RS 422 4 wire RS 485 8 pin RJ45 to DB25 Female RS 422 4 wire RS 485 8 pin RJ45 to DB25 Ma...

Page 177: ...5000 Series User Manual 177 NPort 5650 2 wire RS 485 8 pin RJ45 to DB9 Female 2 wire RS 485 8 pin RJ45 to DB9 Male 2 wire RS 485 8 pin RJ45 to DB25 Female 2 wire RS 485 8 pin RJ45 to DB25 Male 2 wire...

Page 178: ...GND 3 5 5 7 7 GND TxD 4 3 2 2 3 RxD RxD 5 2 3 3 2 TxD DCD 6 1 1 8 8 DCD CTS 7 8 7 5 4 RTS DTR 8 4 6 20 6 DSR RS 422 4 wire RS 485 Cables NPort Serial Device RJ45 DB9 F DB9 M DB25 M DB25 F TxD 2 2 3 3...

Page 179: ...79 Pin Assignments for DB9 and DB25 Connectors Pin Assignments for DB9 Male and Female Connectors DB9 Male Connector DB9 Female Connector Pin Assignments for DB25 Male and Female Connectors DB25 Male...

Page 180: ...ment DIP switches or Jumpers are used to set the pull high low resistor values for each RS 485 port ATTENTION Do not use the 1 k setting on NPorts when using the RS 232 interface Doing so will degrade...

Page 181: ...ssigned to the serial port are not shorted by jumper caps This is the default setting To set a pull high low resistor to 1 k make sure that the two jumpers JP3 and JP4 assigned to the serial port are...

Page 182: ...gh low resistors for the RS 485 Port Default SW 1 2 3 Pull High Pull Low Terminator ON 1 K 1 K 120 OFF 150 K 150 K NPort 5630 5650 Series DIP Switches To set the pull high low resistors to 150 K make...

Page 183: ...hes NPort 5650 8 DTL Remove the top cover to access the DIP switches used to configure each device port s pull high low resistors note that SW4 is reserved for future use The pull high low resistor va...

Page 184: ...ON Switch 4 on the port s assigned DIP switch is reserved When setting up your RS 485 and RS 422 networks you should use termination resistors to prevent signal reflections The NPort IA5000 Series ha...

Page 185: ...t the pull high resistor to 150 K flip DIP1 to OFF and then set the pull low resistor to 150 K and then flip DIP2 to OFF To set the pull high resistor to 1 K flip DIP1 to ON and then set the pull low...

Page 186: ...Series User Manual 186 NPort IA5450A Series Please follow the instructions below to change the pull high low DIP switch settings Step 1 Remove the case Step 2 Remove the first tier Step 3 Remove the...

Page 187: ...witches are used for port 1 to port 4 SW1 is used for port 1 SW2 for port 2 SW3 for port 3 and SW4 for port 4 The functions of DIP1 DIP2 and DIP3 are shown in the following table DIP4 is reserved Pull...

Page 188: ...wn ports are assigned by the IANA and on most systems can only be used by system processes or by programs executed by privileged users The following table shows famous port numbers among the well know...

Page 189: ...t name server names server 43 Whois nickname 49 Login Host Protocol Login 53 Domain Name Server domain 69 Trivial Transfer Protocol TETP 70 Gopler Protocol 79 Finger Protocol 80 World Wide Web HTTP 10...

Page 190: ...enchs SysServices ifPhysAddress ipInUnknownProtos IcmpInRedirects ifAdminStatus ipInDiscards IcmpInEchos ifOperStatus ipInDelivers IcmpInEchoReps ifLastChange ipOutRequests IcmpInTimestamps ifInOctets...

Page 191: ...onnRemAddress snmpInGetResponses tcpConnRemPort snmpInTraps tcpInErrs snmpOutTooBigs tcpOutRsts snmpOutNoSuchNames snmpOutBadValues snmpOutGenErrs snmpOutGetRequests snmpOutGetNexts snmpOutSetRequests...

Page 192: ...er DHCP Client the NPort then will receive a different IP address For this reason users sometimes find that the NPort will use different IP addresses not a fixed IP address In order to know what IP ad...

Page 193: ...2 0x80000312 NPort 5232I 0x1332 0x80000312 NPort 5210A 0x521A 0x80015200 NPort 5230AI 0x524A 0x80015200 NPort 5250A 0x523A 0x80015200 NPort 5250AI 0x526A 0x80015200 NPort 5410 0x0504 0x80005000 NPort...

Page 194: ...at may cause undesired operation FCC Warning This equipment has been tested and found to comply with the limits for a Class A digital device pursuant to part 15 of the FCC Rules These limits are desig...

Reviews: