USR IOT USR-N5X0 Series User Manual

USR IOT USR-N5X0 Series User Manual

Serial to ethernet device server
Table of Contents

Advertisement

Quick Links

USR-DR404 AT 指令集
USR-N5X0 Series
Serial to Ethernet Device Server
User Manual V1.0.0
USR-N510,USR-N520,USR-N540,USR-N580
Build a Smarter IoT world, Your Trustworthy Partner
1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the USR-N5X0 Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for USR IOT USR-N5X0 Series

  • Page 1 USR-DR404 AT 指令集 USR-N5X0 Series Serial to Ethernet Device Server User Manual V1.0.0 USR-N510,USR-N520,USR-N540,USR-N580 Build a Smarter IoT world, Your Trustworthy Partner...
  • Page 2: Table Of Contents

    User Manual Content 1. Introduction ....................... 5 1.1. Overview ....................5 1.2. Features .....................5 2. Get started ......................7 2.1. Installation ....................7 2.1.1. Wall mounting ..................7 2.1.2. DIN-Rail mounting ..................7 2.2. Serial port ....................9 2.3. Power supply ....................11 2.4.
  • Page 3 User Manual 3.2.6. Edge computing ..................36 3.2.7. Cloud service ..................39 3.2.8. System setup ..................39  Restart ..................... 40  Restore factory defaults ................40  Firmware upgrade .................. 40 3.3. Configuration software ..................41 3.3.1. Discovering your device server ................41 3.3.2.
  • Page 4 User Manual 6.5. Modbus poll with serial heartbeat packet ..............74 7. Advanced features ....................76 7.1. Packing mechanism ..................76 7.2. Heartbeat packet ................... 76 7.3. Registration packet ..................77 7.4. Socket B ....................78 7.5. Rs485 bus detection ..................79 7.6.
  • Page 5 User Manual Your TrustWorthy Industrial IoT Partner www.pusr.com...
  • Page 6: Introduction

    1.1. Overview The USR-N5X0 Series are network-based serial device servers that connect RS-232/422/485 serial devices, such as PLC, meters, sensors, weigh scale, barcode scanner, card reader and serial printer directly to a TCP/IP network. Data coming from the Ethernet port is sent to the designated RS-232/RS-422/RS-485 port, and data received from RS-232/RS-422/RS-485 port is sent to the Ethernet port, allowing bi-directional communication.
  • Page 7 User Manual Firmware upgrading via Web Browser and Windows configuration tool  Easy-to-use Windows configuration tool for auto discovery, multiple device setting and monitoring  Choice of power input: AC-DC adapter(DC Jack) or DC direct(Terminal Block)  High security via certificate verification SSL/TLS encryption for serial data transmission,HTTPS,TCPS,MQTTS(firmware V2.0.0 or ...
  • Page 8: Get Started

    User Manual 2. Get started Since the USR-N5X0 Series is connected through a TCP/IP network, you may need to know some basic facts about networking in order to connect the server correctly. Specifications and dimensions are not provided in this manual since they may differ considerably based on the hardware purchase.
  • Page 9 User Manual Fix DIN-Rail mount kit Fig. 2 Position the rear panel of the device directly in front of the DIN-Rail, making sure that the top of the DIN-Rail clip hooks over the  top of the DIN-Rail , as shown in Fig.3. Install DIN-Rail mounting kit Fig.
  • Page 10: Serial Port

    User Manual Correctly installed DIN-Rail kit Fig. 4 Proceed to Fig.5 if you want to remove the device from DIN-Rail. Push down on the top of the DIN rail clip release tab with your  finger. As the clip releases, lift the bottom of the device, as shown in the following illustration. Remove the DIN-Rail Fig.
  • Page 11 User Manual DB9 male connector pin Fig. 6 Table 2 DB9 Male Pin Assignment(N5X0 models) RS232 RS422 RS485 The USR-N5X0-6 supports the RS-232 and RS-485 protocols, and is software configurable. And RS232 adopts DB9 male connector,RS485 adopts terminal block. The DB9 pin assignment is same to table 2(RS232). N520-6 serial port Fig.
  • Page 12: Power Supply

    User Manual N510-4 terminal block Fig. 8 2.3. Power supply The USR-N5X0 serial device server provides 2-pin power supply input terminal blocks and DC jack. The power supply support anti-reverse protection. Power supply range: 5~36VDC. N520 back view Fig. 9 Although internal grounding has been done inside, in order to help limit the effects of noise caused by electromagnetic interference (EMI) and protect your device, it is still strongly advised to ground the device...
  • Page 13: Led Indicators

    USR-N5X0 series serial server has a built-in Web server, which provides a convenient way to access and configure the serial server. Users can use Edge , Firefox or Google browser to access it. This chapter is a quick introduction to the USR-N5X0 series of serial server products.
  • Page 14: Download The Software

    Hardware connection For fast networking of USR-N5X0 series serial server, you need to prepare a PC, a router, a serial server, a network cable, a serial cable, and a DC12V/1A power supply. The hardware connection is shown in Fig. 13. To establish a TCP / IP network all devices must be Your TrustWorthy Industrial IoT Partner www.pusr.com...
  • Page 15: Network Configuration(Step1

    User Manual connected to the same network either locally or via gateway connections. Fig. 13 Hardware connection Connect the power line with the N5X0 power input. If the power is properly supplied, the “PWR” LED will show a solid red color. ...
  • Page 16: Data Transmission Test(Step2 And 3

    192.168.0.X (X is any valid value from 2 to 253 except 7). The specific Windows system operation page is shown in Fig.16. you can access the Web page of the USR-N5X0 series serial server through browser as mentioned above. Fig. 16 IP setting of PC 2.7.4.
  • Page 17: Reload Factory Settings Button

    Press the “ Reload ” button (inside a small hole) on the back panel for 3-15 seconds and then release or follow the procedure in Section 3.1.6 , to restore the USR-N5X0 Series Industrial Serial Device Server to the factory default settings. 2.9.
  • Page 18 User Manual – Description of your software (firmware version, application,function description,etc.) – A complete description of the issue and steps to reproduce Your TrustWorthy Industrial IoT Partner www.pusr.com...
  • Page 19: Configuration And Parameter Details

    User Manual 3. Configuration and parameter details 3.1. Web interface(V1 version) Every USR-N5X0 Industrial Serial Device Server is equipped with a built-in web server in the firmware. Therefore, the device can be accessed by using a web browser for configuring by entering the device ’ s IP address in the URL field of your web browser. An authentication will be required and you will have to enter the username (Default value is “admin”) and password (Default value is “admin”) for accessing the web interface as shown in Fig.
  • Page 20 User Manual Fig. 19 The main interface of the Web server The function of the device status part is to display some specific information of the current device, including module name,firmware version, IP address, DNS, MAC address, running time and serial port status. Table 6 Status list Parameter Item...
  • Page 21: Ip Settings

    User Manual 3.1.2. IP settings You must assign a valid IP address to the USR-N5X0 before it will work in your network environment. The IP address must be unique within the network. If the device is connected to the Internet and should connect to other servers over the Internet to get some services such as Network Time Protocol (NTP) server, you will need to configure the DNS server in order to be able to resolve the host name of the NTP server.
  • Page 22: Serial Port Settings

    User Manual The part of the IP address corresponding to the 1 bit in the mask is the subnet address, and the other bits are the host address. The mask for class A addresses is 255.0.0.0, the mask for class B addresses is 255.255.0.0, the mask for class C addresses is 255.255.255.0.
  • Page 23 User Manual Serial port configuration page Fig. 22 Chapter 4 Details on work mode connectivity protocols and its settings of N5X0 series are given in Operation modes, this section will only focus on the part of parameter description. The description of the configuration parameters on this interface is shown in table 8 and table 9.
  • Page 24: Websocket Server

    The default is disable. If you want to keep connection continually, you can disable it. Data idle Time is the reconnection(TCP/UDP time period for which the device waits for data. If the USR-N5X0 Series does not receive data during client) established idle time(timeout), the USR-N5X0 Series will disconnect temporarily.
  • Page 25: Miscellaneous Settings

    User Manual Fig. 23 Websocket server 3.1.5. Miscellaneous settings This configuration tab includes several system level settings, such as device name, websocket, system log, user name and password. Most of these settings are optional. Your TrustWorthy Industrial IoT Partner www.pusr.com...
  • Page 26: Management

    User Manual Fig. 24 Miscellaneous settings Table 10 Miscellaneous settings Parameter Item Description Module name The name of the device, up to 32 characters,can’t be null Websocket port Websocket server listen port NO. Range 1-65535 Websocket direction Click the drop-down menu to select websocket mapping direction: UART or Log. Webserver port Web server listen port NO.
  • Page 27: Reboot

     This function is used to restart the USR-N5X0 series serial server by software. Before the serial server is completely restarted, the device does not work and cannot forward any data packets. This restart is different from the hardware reset of power-on restart, but the serial server system software is reset, just like the "warm restart"...
  • Page 28: Web Interface(V2 Version)

    User Manual button to start the firmware upgrade process. The program will show the upload status. Please wait until the uploading process is finished (the amount of time varies depending on the equipment used). Finally, the device will then proceed to restart itself. In most cases, you might require to re-configure your device. Please refer to “USR-N5X0 firmware upgrade from V1 to V2 version user guide”...
  • Page 29 User Manual Fig. 27 Overview Web Page of USR-N5X0 (V2 version) The function of the device status part is to display some specific information of the current device, including system, network, serial port, mqtt gateway and Edge computing status. Table 11 Overview status list Parameter Item Description...
  • Page 30: Ip Settings

    User Manual ERROR:The module is abnormally disconnected Edge computing Whether Edge computing is enable Connection status Connection status of Edge computing. CONNECTING:the module is establishing a socket or mqtt connection CONNECTED:the socket or mqtt connection has been established ERROR:The module is abnormally disconnected 3.2.2.
  • Page 31: Serial Port Settings

    User Manual of addresses: A, B, and C. Subnet mask The mask is a 32-bit number corresponding to an IP address. Some of these numbers are 1, and the others are 0. The mask can divide the IP address into two parts: the subnet address and the host address. The part of the IP address corresponding to the 1 bit in the mask is the subnet address, and the other bits are the host address.
  • Page 32 Parameter Item Description Work mode USR-N5X0 series supports 5 different operation Modes which are TCP Server, TCP Client, and UDP,HTTP client and websocket. The operation Mode describes the role of the device and the connection between Your TrustWorthy Industrial IoT Partner...
  • Page 33: Websocket Server

    The default is disable. If you want to keep connection continually, you can disable it. Data idle Time is the reconnection(TCP/UDP time period for which the device waits for data. If the USR-N5X0 Series does not receive data during client) established idle time(timeout), the USR-N5X0 Series will disconnect temporarily.
  • Page 34: Mqtt Gateway

    User Manual Fig. 31 Websocket server 3.2.5. MQTT gateway If you enable MQTT Broker as your northbound connection, the N5X0 will be configured as MQTT Client. In Client mode, you can setup MQTT broker basic settings, general topic settings, TLS secure transmission, last will message, and advanced settings. Fig.
  • Page 35 User Manual clients are using an identical ID, the connections of theses clients to the MQTT Broker are disconnected. For an individual client, there is no way to find out whether a specific client ID is already used by another client or not. Server address IP address or hostname of an MQTT broker.
  • Page 36 User Manual Transmission mode Transparent transmission, just as its name implies,the gateway does not process any data, forward the data directly. Topic distribution,in this mode users should define a topic name when configuring the topic. After receiving serial port data, the device pushes it to the associated topics based on the topic name. Topic name and payload are separated by comma.
  • Page 37: Edge Computing

    User Manual Fig. 34 Topic to subscribe Table 17 Subscribe message setting Parameter Item Description Transmission mode The data printed to the serial port can be set whether to carry the Topic Topic string Same to Table 16 Binding port Same to Table 16 Same to Table 16 3.2.6.
  • Page 38 User Manual Fig. 36 Modbus slaves and datapoints configuration Table 18 Modbus RTU poll configuration Parameter Item Description Device name The Modbus slave device identifier, which is unique for the current gateway. The device name must be less than 30 characters in length, and can contain letters, digits, underscores (_). COM Port Which serial port the modbus slave device connected to.
  • Page 39 User Manual Register address The address of the register from which data will be read. Data type Defines how read data will be stored. See table Response timeout If the Modbus device does not receive a response within the time specified here, the communication times out.
  • Page 40: Cloud Service

    User Manual On Change: The report is triggered if the collected data changes. You can use a tolerance to only log the data point if the value changes more than X amount. Interval: Collect the variable data at the poll interval and report the data at the specified report interval. Timer: Collect the variable data at the poll interval and report the data at the regular time.
  • Page 41: Restart

     This function is used to restart the USR-N5X0 series serial server by software. Before the serial server is completely restarted, the device does not work and cannot forward any data packets. This restart is different from the hardware reset of power-on restart, but the serial server system software is reset, just like the "warm restart"...
  • Page 42: Configuration Software

    After you start EthernetTool software, if the USR-N5X0 Serial Device Server is already connected to the same gateway as your PC, the device can be accessed via broadcast packets. Users can search all the USR-N5X0 Series device servers on the network and show them on the Serial Device Server List Area of the utility.
  • Page 43: Reboot The Device

    User Manual Fig. 41 Changing network settings 3.3.3. Reboot the device This function is available to allow you to reset the serial device server. The function disconnects both the ethernet and serial connections. The function also allows the serial device server to save new configuration settings to flash memory. To reset the device: 1.
  • Page 44: Open Web Server

    User Manual Fig. 43 Restore factory defaults 3.3.5. Open web server Users can visit the web server of serial device server conveniently with configuration tool. Select the device you want to visit and right click,then click External web config ,you will open the web server with default browser such as Google Chrome. Fig.
  • Page 45: Operation Modes

    Properties In TCP server mode, the TCP connection is initiated from the host to the USR-N5X0 Series device server. This operation mode supports a maximum of 16 (except 8 for N580) simultaneous connections for each serial port on an device server from a single or multiple hosts.
  • Page 46 User Manual client) , data can be transmitted in both directions. The COM port on the device will forward requests from all remote connected hosts(Ethernet) to the serial device immediately and reply to all remote connected hosts once it receives data from the serial device(RS-232/RS-422/RS-485).
  • Page 47: Multihost Setting

    User Manual Fig. 47 Host initiating TCP connection 4.1.2. Multihost setting Fig. 48 Maximum socket connection Maximum connection is usually used when the user needs to receive data from different hosts simultaneously. The factory default allows 8 connection at a time. This option specifies the maximum number of remote devices/clients (with maximum of 16 clients) that can be connected to the serial device on this COM port.
  • Page 48: Tcp Client

    User Manual 4.2. TCP Client 4.2.1. Properties When the working mode of this device is TCP Client, the remote device must work in TCP Server mode, and its IP address and port number must be configured, which can be configured in the corresponding options of the network connection. The local port number can be ignored and no configuration is required.
  • Page 49: Ssl/Tls

    User Manual Fig. 50 N5X0 initiating TCP connection 4.2.2. SSL/TLS If SSL certificate authentication is enabled on the remote server, user need to configure SSL encryption parameters on N5X0. User can select TLS1.0 or TLS1.2 version protocol. User can select None certificate Authentication, server certificate authentication and bidirectional certificate authentication.
  • Page 50: Udp Server

    User Manual room or a cloud application need to open a remote connection before they can transfer the serial data. If a large number of serial devices are connected to the same network, the connection will require many resources in the control room or cloud application. To handle these large numbers of remote connections properly, serial device servers should support flexible connection control.
  • Page 51 User Manual Fig. 53 UDP server work mode Please follow the following steps to configure connection settings of the operation mode for PORT1 port. Click on the “Port1” tab on the menu frame on the left side of Web UI to go to Port1 page as shown in Fig.53. Section 3.2.3 2.
  • Page 52: Udp Client

    User Manual Fig. 54 UDP transmission test 4.4. UDP Client 4.4.1. Properties When the working mode of the device is UDP client, the remote device must also work in UDP mode. N5X0 supports remote IP address and port verification. After verification is enabled(OFF), the N5X0 only communicates with the destination port of the destination IP address.
  • Page 53: Udp Multicast

    Internet, 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 USR-N5X0 Series supports IGMP version 2.
  • Page 54 User Manual Fig. 57 USR-5X0 #1 UDP multicast setting Fig. 58 USR-N5X0 #2 UDP multicast setting Fig.59 shows an example of test in this mode with two N5X0s. Your TrustWorthy Industrial IoT Partner www.pusr.com...
  • Page 55: Http Client

    User Manual Fig. 59 UDP multicast transmission test 4.5. HTTP Client 4.5.1. Properties When the operation mode of this device is Httpd Client, users need to specify the remote httpd server's address, port, method and other parameters. The device will submit the serially received data to the httpd server in the form of GET or POST. At the same time, the data sent by the httpd server can be transparently transmitted to the serial port.
  • Page 56: Https

    User Manual 3. Click on the Socket tab in this page, select Httpd Client in the working mode options. 4. The HTTPD method needs to fill in the correct URL path, and select the GET or POST method as needed. 5.
  • Page 57 User Manual Fig. 62 Websocket server setting 5. Click on the websocket to serial tab,browser will connect to the websocket server of N5X0 automatically. Fig. 63 Browser as websocket client to connect N5X0 Fig.64 shows an example of test in this mode. Your TrustWorthy Industrial IoT Partner www.pusr.com...
  • Page 58 User Manual Fig. 64 Data transmission test Your TrustWorthy Industrial IoT Partner www.pusr.com...
  • Page 59: Virtual Com Port

    User Manual 5. Virtual COM port Traditional SCADA and data collection systems rely on serial ports (RS-232/422/485) to collect data from various kinds of instruments. Virtual COM ports on host computer allows remote access of serial devices over TCP/IP network that works like local native COM ports.
  • Page 60: Tcp Server Application With Virtual Com

    User Manual Fig. 66 Install wizard 2 Once the installation of the package is finished a start screen displays. Click start to conclude the process and launch the VCOM software. Fig. 67 VCOM overview 5.1. TCP Server Application with Virtual COM Virtual COM on host computer allows remote access of serial devices over TCP/IP networks through Serial/IP Virtual COM ports that work like local native COM ports.
  • Page 61 User Manual 12, 13, and so on. This section will provide the procedure to enable Virtual COM (VCOM) on Windows based PC. Please follow the steps described here to configure your Virtual COM application. Fig. 68 Diagram of Virtual COM Application over TCP/IP Network If the serial device server is running in TCP Server Mode (recommended), the VCOM utility on the host computer should be configured as the TCP client connecting to the serial device server.
  • Page 62 User Manual Fig. 70 New Virtual COM connection 2. Select one COM port as the Virtual COM port before proceeding as shown in Fig.71. Note that if a COM port number is used by other application or your operating system, you can not select it. Fig.
  • Page 63: Tcp Client Application With Virtual Com

    User Manual Fig. 72 Virtual COM port mapping 4. Click new to add the Virtual COM11. Click client COM11 on the left side of VCOM panel to check the status. If status become connected, the process is completed. Fig. 73 Virtual COM11 status 5.2.
  • Page 64 User Manual Fig. 74 TCP client mode in USR-N5X0 Fig. 75 New Virtual COM connection 2. Select one COM port as the Virtual COM port before proceeding as shown in Fig.76. Note that if a COM port number is used by other application or your operating system, you can not select it.
  • Page 65: Enable Rfc2217 Through Virtual Com

    User Manual Fig. 76 Virtual COM port mapping 4. Click new to add the Virtual COM12. Click client COM12 on the left side of VCOM panel to check the status. If status become connected, the process is completed. Fig. 77 Virtual COM12 status 5.3.
  • Page 66 User Manual Fig. 78 RFC2217 enabled Fig. 79 enable RFC2217 in VCOM When we change serial parameters in Virtual COM port 1, we can see these parameters have took effect in serial port of USR-N5X0. Your TrustWorthy Industrial IoT Partner www.pusr.com...
  • Page 67: Pusr Customized Rfc2217 Protocol

    User Manual Fig. 80 Synchronizing serial port parameters 5.3.1. PUSR customized RFC2217 protocol Table 22 Com Port Control commands Name Header Baud rate Serial parameter definition Sum check Length(bytes) Big endian, Data bits/stop bits/parity Check sum of 4 bytes of e.g.
  • Page 68: Modbus Tcp/Rtu Gateway

    The device supports multiple hosts to query data from the slave in q&A mode. Please select modbus polling function as shown in Fig.82. When USR-N5X0 Series serial device server does not receive a response from the serial port after a response timeout, the device replies with an acknowledgement and then processes the next host request.
  • Page 69: Serial Master With Ethernet Slave

    User Manual Fig. 82 Modbus TCP master settings Open the Modbus Poll and Modbus Slave software, go to "Connect" -> "Connect", and the connection parameters are configured as follows, in this case, IP address of USR-N5X0 is 172.16.14.12. Fig. 83 Modbus emulator settings(Ethernet master and serial slave) 6.2.
  • Page 70 User Manual Fig. 84 Serial master with one Ethernet slave Fig. 85 Modbus TCP slave settings Open the Modbus Poll and Modbus Slave software, go to "Connect" -> "Connect", and the connection parameters are configured as follows, in this case, IP address of USR-N5X0 is 172.16.14.12, host IP address is 172.16.14.15. Fig.
  • Page 71: Serial Master With Serial Slaves

    User Manual 6.3. Serial master with serial slaves When the HMI is Modbus RTU Master, all N5x0 must enable or disable ModbusTCP function at the same time, the remote device must work in Modbus RTU Slave mode. The N5X0 supports up to 16 simultaneous TCP connections. Fig.
  • Page 72: Serial Master Via Virtual Com With Serial Slaves

    User Manual Fig. 89 Modbus RTU slave settings(USR-N5X0 2,3,4...) Fig. 90 Modbus emulator settings(serial master and serial slave) 6.4. Serial master via virtual COM with serial slaves When the host computer is Modbus RTU master, if we use VCOM, the Modbus TCP function must be disabled, the remote device must work in Modbus RTU Slave mode.
  • Page 73 User Manual Fig. 91 New virtual COM port mapping Fig. 92 Mapping a virtual COM port Your TrustWorthy Industrial IoT Partner www.pusr.com...
  • Page 74 User Manual Fig. 93 Virtual COM port mapping details Fig. 94 Serial device settings Your TrustWorthy Industrial IoT Partner www.pusr.com...
  • Page 75: Modbus Poll With Serial Heartbeat Packet

    User Manual Fig. 95 Modbus emulator settings(serial master and serial slave) 6.5. Modbus poll with serial heartbeat packet When the N5X0 is Modbus RTU Master, the serial device work in Modbus RTU Slave mode, the ModbusTCP function must be disabled. N5X0 works in TCP server mode, it supports up to 16 TCP connections. Fig.
  • Page 76 User Manual Fig. 97 Serial heartbeat packet as modbus command Fig. 98 Modbus response transparently transmission Your TrustWorthy Industrial IoT Partner www.pusr.com...
  • Page 77: Advanced Features

    User Manual 7. Advanced features 7.1. Packing mechanism Serial to Network Packet Delimiter: Packet delimiter is a way of packing data in the serial communication. It is designed to keep packets intact. USR-N5X0 provides two types of delimiter: Time Delimiter, Maximum Bytes Delimiter. Note that the following delimiters (time, length) when they are selected are programmed in the OR logic.
  • Page 78: Registration Packet

    User Manual Heartbeat packet only works in no data traffic in the setting direction. There are no data coming from serial port or internet in heartbeat interval. Fig. 100 Serial heartbeat packets Fig. 101 Network heartbeat packets 7.3. Registration packet This function is only allowed when the working mode is UDP and TCP Client.
  • Page 79: Socket B

    User Manual Fig. 102 Registration packet type Fig. 103 Registration packet method 7.4. Socket B Socket B supports TCP Client and UDP Client. Socket B and Socket A share the registration packet and heartbeat packet. When Socket B initiates a connection, it uses a random local port number to connect to the target server. Your TrustWorthy Industrial IoT Partner www.pusr.com...
  • Page 80: Rs485 Bus Detection

    User Manual Fig. 104 Socket B operating mode 7.5. Rs485 bus detection If RS485 bus is in the receiving state, N5X0 can not output data to serial port to achieve the 485 bus anti-conflict function. Idle time: the interval time when N5X0 is allowed to send data to RS485 bus after the receiver is idle. The value ranges from 0 to 65535 (ms).
  • Page 81 User Manual offer security or authorization capabilities. The serial device server, N5X0, features a Serial Printer option which functions in similar fashion to the Serial Printer option in the (COM) Ports dialog box. This option allows the associated TCP port to be identified as a serial printer connection. The connection does not consume a user license, is restricted to output only, and filters out the end-of-document marker correctly.
  • Page 82 User Manual Fig. 108 Serial printer setting wizard 1 Fig. 109 Serial printer setting wizard 1 Your TrustWorthy Industrial IoT Partner www.pusr.com...
  • Page 83: Ntp

    User Manual Fig. 110 Serial printer setting wizard 1 7.7. If device is connected to the internet or to a local NTP server, the Date/time can be set automatically by enable NTP function. If this option is chosen, the default value “cn.ntp.org.cn” should be shown in the NTP server field. User can select a proper Time Zone from the dropdown box.
  • Page 84: Snmp

    User Manual 7.8. SNMP The Simple Network Management Protocol (SNMP) is used by network management software to monitor devices in a network, to retrieve network status information of the devices, and to configure network parameters of the devices. To make the device’s information available for public viewing/editing, you can enable the SNMP function by checking the Enable box. The supported SNMP Version:v1/v2c.The default SNMP Community Strings (or passphrases) is “admin”.
  • Page 85 User Manual Fig. 113 SNMP test Your TrustWorthy Industrial IoT Partner www.pusr.com...
  • Page 86: Mqtt Gateway

    User Manual 8. MQTT gateway Although the MQTT protocol has been around for nearly three decades, the design of the protocol makes it ideal for IIoT (Industrial Internet of Things) applications, the latest trend in automation engineering. This is particularly true for applications that stress “active notification,”...
  • Page 87 User Manual Fig. 115 User credential When you need to enable SSL/TLS authentication, you need to set the SSL/TLS configuration item. The two versions,TLS 1.0 and TLS 1.2 are provided. If SSL/TLS is selected, certificate configuration can be performed. If it is a one-way connection, you only need to select your CA File.
  • Page 88 User Manual you can configure KeepAlive, Clean Session, Auto Reconnect, MQTT Version, etc. Fig. 117 Advanced configuration You can configure the Will Message. The values of Last-Will-QoS and Last-Will-Retain are filled with 0 and False by default. When you enter the values of Last-Will-Topic and Last-Will-Payload, you can complete the configuration of Will Message. Fig.
  • Page 89: Publishing A Message

    User Manual Fig. 119 EMQX broker connection To view the status of the device, choose Status>Overview, the device is in the CONNECTED state, the connection to IoT Hub is successful, and publishing and subscribing operations can be performed. Fig. 120 MQTT connection status 8.2.
  • Page 90 User Manual column for log information control. Fig. 121 MQTT.fx main page First, the MQTT client and Broker need to establish a connection to communicate. Click the configuration icon on the right side of the input box in the connection address bar to enter the specific connection configuration. Select the Profile Type as MQTT Broker. Fill in broker.emqx.io for Broker Address and 1883 for Broker Port, as shown in the figure below: Fig.
  • Page 91: Transparent Transmission

    User Manual Fig. 123 Successful connection 8.2.2. Transparent transmission In the Publish field, select Publish topic1, enter the topic, bind to the Port1, select Qos 0, uncheck retained message. We use the /PubTopic1 as an example to describe the process. After finishing configuring the Publish topic1, please scroll down to the bottom of the page and click on "Save &...
  • Page 92 User Manual Fig. 125 Subscribe to the N5X0 topic Launch serial debug assistant on PC, and open COM Port with the N5X0’s serial default settings as below: Fig. 126 Serial debug assistant setting Click send button. On the MQTT.fx page, you will receive a message from the cloud that was sent from the N5X0. For Payload decoded by select “JSON Pretty Format Decoder”...
  • Page 93: Topic Distribution

    User Manual Fig. 127 Receive message from N5X0 8.2.3. Topic distribution In the Publish field, select Publish topic2, enter the topic, topic name, bind to the Port1, select Qos 0, uncheck retained message. We use the /PubTopic2 as an example to describe the process. After finishing configuring the Publish topic2, please scroll down to the bottom of the page and click on "Save &...
  • Page 94 User Manual Fig. 129 Subscribe to the N5X0 topic Launch serial debug assistant on PC, and open COM Port with the N5X0’s serial default settings as below: Fig. 130 Serial debug assistant setting Enter the correct serial data format test,{"message":"hello from N5X0"}, Click send button. On the MQTT.fx page, you will receive a message from the cloud that was sent from the N5X0.
  • Page 95: Custom Mode

    User Manual Fig. 131 Receive message from N5X0 8.2.4. Custom mode In the Publish field, select Custom mode, bind to the Port1. Click on "Save & Apply" button to save all the changes that you have made. All configurations take effect after a system reboot. Fig.
  • Page 96 User Manual Fig. 133 Subscribe to the N5X0 topic Launch serial debug assistant on PC, and open COM Port with the N5X0’s serial default settings as below: Fig. 134 Serial debug assistant setting Enter the correct serial data format /PubTopic3,0,ON,{"message":"hello from N5X0"}, Click send button. On the MQTT.fx page, you will receive a message from the cloud that was sent from the N5X0.
  • Page 97: Subscribe To A Topic

    User Manual Fig. 135 Receive message from N5X0 8.3. Subscribe to a topic In the Subscribe field, select Subscribe topic1, enter the topic, bind to the Port1, select Qos 0. We use the /SubTopic1 as an example to describe the process. After finishing configuring the Subscribe topic1, please scroll down to the bottom of the page and click on "Save &...
  • Page 98 User Manual Fig. 137 Publish message to N5X0 Click Publish to send the messages and return to the serial debug assistant. We can find that the serial port has received the message, as shown in the following figure: Fig. 138 Receive message from cloud Your TrustWorthy Industrial IoT Partner www.pusr.com...
  • Page 99: Edge Computing

    User Manual 9. Edge computing The USR-N5X0 supports Modbus RTU Master for retrieving field site data from serial meters. After collecting data, users can convert serial data to MQTT json format data, allowing users to get field site data. This two-in-one design reduces system complexity and the amount of space required in the network topology, as well as overall installation time.
  • Page 100: Add Modbus Data Points

    User Manual Fig. 141 Polling slave device configuration In the slave property, enter the device name, bind to the Port1, enter the slave address and polling interval, enable merge collection table 18 function, the description of the configuration parameters on this interface is shown in .
  • Page 101: Raw Data Types And Byte Order

    User Manual 9.2.2. Raw data types and byte order A standard Modbus Holding Register or Input Register is a 16 bit (2 Byte) value. Often this is not enough so different equipment will utilize multiple modbus registers to hold a larger value. Here is a list of Data Types supported in the N5X0 gateway. Table 26 Data types Type...
  • Page 102 User Manual Fig. 142 Add modbus data point Fig. 143 Data point configuration In the data point property, enter the node name, select modbus function code, enter the register address and response timeout, select the right data type, input the calculation formula, the description of the configuration parameters on this interface is shown in table 19 .
  • Page 103: Export And Import Configuration

    User Manual Fig. 145 Modbus polling command 9.3. Export and import configuration There are three main reasons for using the Import and Export functions. Applying the same configuration to multiple units. The Import/Export configuration function is a convenient way to apply the ...
  • Page 104 User Manual Fig. 146 Export the configuration file Fig. 147 Configuration file Once the file is saved, it can be imported into your target unit to duplicate the same settings. Select the target unit first and click the choose file button to import. Select the file you want to import, and then click the open button. The data points setting will display on the webpage.
  • Page 105: Data Report

    User Manual Fig. 148 Import the configuration file 9.4. Data report 9.4.1. Communication channel Users can select TCP/UDP/HTTP in socketA of each serial port, MQTT Gateway, or AWS IOT service as the communication channel. When select MQTT or AWS IOT channel, user need configure the MQTT broker parameters in MQTT Gateway tab or Cloud service tab at first, and setting the report topic in the Fig.149.
  • Page 106: Payload-Json Template

    User Manual all the changes that you have made. All configurations take effect after a system reboot. Fig. 150 Report on change Fig. 151 Interval and timer report 9.4.3. Payload-Json template A JSON object contains zero, one, or more key-value pairs, also called properties. The object is surrounded by curly braces {}. Every key-value pair is separated by a comma.
  • Page 107 User Manual Example 1 "sensor1": { "temperature": "temperature1", "humidity": "humidity1", "user_define": "bedroom" "sensor2": { "temperature": "temperature2", "humidity": "humidity2", "user_define": "living room" "time": "sys_net_time" Example 2 "service":[{ "sensor1": { "temperature": "temperature1", "humidity": "humidity1", "user_define": "bedroom" "sensor2": { "temperature": "temperature2", "humidity": "humidity2", "user_define": "living room"...
  • Page 108 User Manual Fig. 152 Json formatter Paste the message in the Json template on the page and click on "Save&Apply" button to save all the changes that you have made. All configurations take effect after a system reboot. Fig. 153 Json template setting There are three type data point, user define, system,and register value in a Json template.
  • Page 109: Test

    User Manual sys_soft_ver Software version sys_dev_name Product name sys_dev_name Product running time sys_net_time GMT time sys_unix_time Unix time sys_ip Local IP address Modbus register value data points  The node name configured in the section 9.2.3 is register value data points. User define ...
  • Page 110 User Manual Fig. 155 Modbus slave simulation Fig. 156 Data acquisiton setting Fig. 157 Data report setting Your TrustWorthy Industrial IoT Partner www.pusr.com...
  • Page 111: Data Query

    User Manual Fig. 158 Message reported 9.5. Data query There are three methods to actively query the data collected through the serial port from the communication channel: Json format, Modbus TCP, Modbus RTU. Firstly, user need enable the data query function. 9.5.1.
  • Page 112: Modbus Slave Address And Register Mapping

    User Manual Fig. 160 Json query message Fig. 161 Json response message 9.5.2. Modbus slave address and register mapping This function is very useful in data query and only used in modbus TCP/RTU query type. When user select Modbus TCP/RTU query type to get data, the N5X0 gateway will be confused if there are the same slave address in different serial port or same register address in different slave devices.
  • Page 113: Modbus Tcp

    User Manual Fig. 162 Slave address mapping Fig. 163 Slave address mapping 9.5.3. Modbus TCP When select socket channel, user need configure the socket A parameters in PORT tab at first, then select Modbus TCP query type. We use slave address mapping here for illustration. Your TrustWorthy Industrial IoT Partner www.pusr.com...
  • Page 114 User Manual Fig. 164 Modbus TCP query type Fig. 165 Socket A parameters setting Your TrustWorthy Industrial IoT Partner www.pusr.com...
  • Page 115: Modbus Rtu

    User Manual Fig. 166 Modbus TCP simulator Fig. 167 Modbus TCP response 9.5.4. Modbus RTU When select socket channel, user need configure the socket A parameters in PORT tab at first, then select Modbus RTU query type. We use slave address mapping here for illustration. Your TrustWorthy Industrial IoT Partner www.pusr.com...
  • Page 116 User Manual Fig. 168 Build a virtual COM 10 Modbus RTU query type Fig. 169 Fig. 170 Modbus RTU simulator Fig. 171 Modbus RTU response Your TrustWorthy Industrial IoT Partner www.pusr.com...
  • Page 117: Aws Iot Service

    USR IoT products. EXCEPT AS SET FORTH IN THE TERMS AND CONDITIONS AS SPECIFIED IN THE LICENSE...

This manual is also suitable for:

Usr-n510Usr-n520Usr-n540Usr-n580

Table of Contents