USR M100 User Manual - V1.0.1
USR M100 User Manual - V1.0.1
1
User Manual
Content
1. Introduction ..................................................................................................................................................................... 5
1.1. Overview ................................................................................................................................................................ 5
1.2. Features................................................................................................................................................................. 5
System setting......................................................................................................................................... 31
management ........................................................................................................................................... 32
4.2.1. Properties.................................................................................................................................................... 37
6.4. Serial master via virtual COM with serial slaves ..................................................................................................... 60
9.4.4. Test............................................................................................................................................................ 95
1.1. Overview
The USR-M100 is an intelligent IoT I/O gateway with comprehensive functions like on-board I/O support and RS-485/232/Ethernet
interface, is an advanced modular RTU product with a unique hardware and software design, making it an ideal solution for a variety
The USR-M100 has a unique mechanical design that reduces the amount of time required for installation and removal, simplifying
deployment and maintenance. In addition, the USR-M100 supports Modbus RTU Master protocol for retrieving field site serial data
With the ability to convert between multiple protocols, USR-M100 can convert the collected I/O and serial data to protocols suitable
for different upper-level software. For example, cloud service via MQTT, SCADA via Modbus TCP, web server via HTTP, and more.
This two-in-one design reduces system complexity, the amount of space required in the network topology, and overall installation
time. You can also connect your legacy devices to Ethernet, thereby increasing the lifetime of the devices since you can continue
1.2. Features
High-performance CPU processing ability,using 32-bit Arm Cortex-M7 core CPU, up to 400MHz frequency
Provides remote serial access over the Internet for industrial serial devices
Baud rate: 0.6~230.4 Kbps, and any baud rate setting, support None, Odd, Even, Mark, Space Parity bit
Flexible serial port data framing packing, which can satisfy user’s various demands for data packets segmentation
Versatile operation modes: TCP Server, TCP Client, UDP, HTTP client, Websocket server
Modbus Ethernet-to-Serial support (Modbus/TCP, Modbus/RTU) for seamless integration of serial Modbus devices
Provides rich configuration access, including: Windows configuration tool, and Web Browser
High security via certificate verification SSL/TLS encryption for serial data transmission,HTTPS,TCPS,MQTTS
Support on board I/O for analog input(2 AI), digital input(2 DI), digital output(SSR relay,2 DO), expandable with I/O modules
Support 2 RS485 serial port, the first one can also be RS232
Cloud support: MQTT via AWS IOT, Microsoft Azure, Thingsboard, Alibaba Cloud, EMQX, Tuya,Cumulocity IoT and so on
connect the server correctly. Specifications and dimensions are not provided in this manual. Please refer to datasheet for more
information.
2.1. Installation
You can choose whether to plug in the other peripheral ports at this point or do it later depending on the actual location of the device
screwdrivers and other tools are not required for any part of the hardware installation, including mounting the device on a DIN-rail,
as well as connecting the wiring for both communication and I/O signal acquisition. Furthermore, no tools are required to remove the
USR-M100 from a DIN-rail. Removing all of the modules from a DIN-rail is also easy using the latch and release tab.
Position the rear panel of the device directly in front of the DIN-Rail, making sure that the top of the clip hooks over the top of
the DIN-Rail , as shown in Fig.1. Push up the the release tab towards the bottom of the DIN-Rail until the the mounting clip snaps
into place.
the DIN-Rail.
NOTE: Disconnect all connections, including Ethernet, serial, and power cables, from the device before removing the device
Locate the installation site and place the device against the wall. Use the wall mount plates as a guide to mark the locations of
Drill two holes over the 4 marked locations on the wall. Insert the wall sinks into the walls.
Insert the screws(M3 size) into the wall sinks then tighten the screw to enhance stability, see the following Fig.1.
are shown in Fig.2. When connecting up Modbus devices via an RS485 network they should be daisy chained together, and a dual
twisted pair cable are recommended.The connections should be kept the same throughout the network: positive to positive, and
negative to negative. These may sometimes be labeled up as A and B. The maximum length of the serial network cannot exceed
Inputs
DI channels 2
Off: 0 to 2 VDC
Digital inputs
Dry contact On: close
Off: open
Range 9-36V DC
Quantity 2
Accuracy 1% FSR
Outputs
Quantity 2
Type
Rating
that is wired to the COM pin of the DI port. An external DC power(9~36V) is supplied this external circuit via the wiring of DI pin and
the switch. The position of switch and power supply can be interchanged.
The right picture in Fig.3 shows an example of digital input (DI) wet contact in which the digital input channel.
–All DI channels should be configured to dry contact or wet contact in the same time
address code
Link LED: green color. Lights(steady on) when the module is connected to a network.
Activity LED: orange color. Blinks when network data is transmitted through the port.
1 Send data+(TD+)
2 Send data-(TD-)
3 Receive data+(RD+)
6 Receive data-(RD-)
4,5,7,8 Unused
and running
off No network
Password admin
Gateway IP 192.168.0.1
MQTT Disable
Edge , Firefox or Google browser to access it. This chapter is a quick introduction to the USR-M100 smart IO gateway. It is
recommended that users read this chapter and follow the instructions once for the system, and you will have a basic understanding
of the product. For specific function details and instructions, please refer to the subsequent chapters.
https://www.pusr.com/support/downloads/H7-version-set-up-software.html
https://www.pusr.com/support/downloads/usr-tcp232-test-V13.html
You may find it in the download section under your product page. Run the software when the installation has been completed as
power supply. The hardware connection is shown in Fig.10. To establish a TCP / IP network all devices must be connected to the same
color. After the system is ready, the “WORK” LED will blink.
Connect one end of the Ethernet cable to the M100’s 10/100M Ethernet port and the other end of the cable to the same Ethernet
Connect a serial data cable(USB to RS232 or RS485) between the USR-M100 and PC. Screwless push-in type connection for
the Broadcast Search function searches by MAC address and not IP address, all M100 connected to the LAN will be located,
regardless of whether or not they are part of the same subnet as the host.
Click Search to search for USR-M100 gateways. When your unit appears in the search results, you can click device to select it and
segment. After changing the IP address of the M100 gateway, you can access the Web page of the M100 gateway through browser
and perform related configuration operations on it. The user name and initial password are both "admin".After entering the user name
and password, click "OK" and the server will authenticate. After success, you will enter the main page of the Web server, as shown
in Fig.13.
want to connect M100 to PC directly via a net cable. The default IP address of M100 IO gateway is: 192.168.0.7. Set the PC's IP address
as: 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.14. you can
access the Web page of the USR-M100 gateway through browser as mentioned above.
Fig. 14 IP setting of PC
USR-TCP232-Test works as TCP client, you need configure the server IP and port, that is 172.16.14.73:23 of USR-M100 gateway, the
IP address of PC is 172.16.14.15.
In the serial port setting module, you can configure communication parameters for the serial ports RS485, as shown in the figure
below. When configuring a serial network you need to set the following within each device-Baud rate,Parity,Stop bits,Data bits and
keep serial port parameters consistent in the same network. We now configure the COM Settings to operate as required for the M100
Section 3.1.9, to restore the USR-M100 gateway to the factory default settings.
http://h.usriot.com/index.php?c=frontTicket&m=sign for technical support if you need additional assistance. Please have the following
– Product model
Every USR-M100 Industrial IO gateway 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. 16. This approach (web interface) for configuring your device is the most user-friendly.
3.1.1. Status
After entering the correct user name and password and the authentication is successful, you will enter the main page of the Web,
as shown in Fig.13.
Model name The name of the gateway, which can be customized by the user on the "Miscellaneous settings" page.
Running time Total time after the device start work. It will starts from 0 after reboot.
OS Operating system.
Current network type Which interface to access the internet, default WAN interface, that is ethernet port.
Port status The working status of checked serial port. Select the serial port currently to be displayed
IDLE:Initialization status
LISTEN:When the module works as TCP Server, it is listening for connection access
CONNECTING:Works as TCP client, the module is establishing a connection to the TCP Server
CONNECTED:Works as TCP server, the TCP connection to TCP server of the module has been
established
ERROR:The module is abnormally disconnected due to invalid MQTT protocol version, invalid client ID,
3.1.2. IP settings
You must assign a valid IP address to the USR-M100 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
name of the NTP server. The detailed description of the configuration parameters on this interface is shown in table 8.
IP obtaining type Click the drop-down menu to select the IP Address Setting mode: Static or DHCP. If you choose DHCP,
DNS type Click the drop-down menu to select the DNS mode: auto or manual. If you choose auto, the DNS options
IP address IP address is a 32-bit address assigned to devices connected to the Internet. The IP address consists of
two fields: the network number field (Net-id) and host number field (host-id). In order to facilitate the
management of IP addresses,IP addresses are divided into five categories: Class A, B, and C addresses
are unicast addresses, Class D addresses are multicast addresses, Class E addresses are reserved
addresses for future special purposes. The IP addresses currently in large numbers belong to three types
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. The mask for class A addresses is 255.0.0.0, the mask for class B addresses is
Gateway The default gateway in the host is usually called the default route. The default route (Default route) is the
route chosen by the router when no other route exists for the destination address in the IP packet. All
packets whose destination is not in the router's routing table will use the default route.
DNS The IP address of the DNS server. DNS Server part is where you can specify the IP Address of your
Preferred DNS (Domain Name Server) and Alternate DNS. When the device uses a static IP address, the
user is required to fill in this item, 8.8.8.8(Google) will be a good choice. If a specific DNS server is not
The configuration will save to flash memory after clicking Save button. All configurations take effect after a system reboot.
gateway is to carry out two-way transparent transmission of standard serial bus data (RS-232, RS-485) and standard Ethernet data
supporting TCP/IP protocol to solve common serial equipment Networking problems on the Internet. The Port configuration page can
configure the parameters of the serial port and socket, as shown in Fig.19. Details on work mode connectivity protocols and its
settings of USR-M100 gateway are given in Chapter 4 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 9 and table 10.
Baud rate This sets the port’s data transfer speed. Choices are from 600—230400. Set this to match the baud rate
Data bits This sets the number of bits used to transmit one character of data. Choices are: 7 and 8. Set this to
match the data bit setting of the connected device. Default is 8 (which is the default for the majority of
serial devices).
Parity bits This bit checks the integrity of the transmitted data. Choices are: None, Odd, Even, Space, Mark. Set this
to match the parity setting of the connected device. Default is None (which is the default for the majority
of serial devices).
Stop bits This indicates that a character has been transmitted. Set this to match the stop bit setting of the
connected device. Choices are: 1 and 2. Default is 1 (which is the default for the majority of serial devices).
Flow control This allows you to choose how the data flow will be controlled. Choices are: None(No Flow Control), or
Xon/Xoff (Software Flow Control). Set this to match the flow control setting of the connected device.
Default is None. If Xon/Xoff is selected, the Xon and Xoff characters are 0x11 for Xon and 0x13 for Xoff.
Note that these are hexadecimal numbers of ASCII characters (i.e., 0x11 = ‘1’ and 0x13 = ‘3’).
The configuration will save to flash memory after clicking Save button. All configurations take effect after a system reboot.
Working mode USR-M100 gateway 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 the device and other remote devices in the network which would like to
Maximum socket no.(TCP This option specifies the maximum number of remote devices/clients (with maximum of 16 clients) that
server only) can be connected to the serial device on this COM port.
Local port This option specifies the port number that the TCP/UDP server should listen to. It is also used by the
remote TCP/UDP client to connect to the TCP/UDP server. The default local port is 23. You can enter
Remoter server addr. Please specify the IP address of the TCP/UDP server program on the remote host in this field. This should
Remote port Please specify the port number of the TCP/UDP server program on the remote host in this field. Once
again, this should match the IP setting of the TCP/UDP server program.
Timeout 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-M100 gateway does not receive data during
client) established idle time(timeout), the USR-M100 gateway will disconnect temporarily. When the data comes
Modbus polling This option is selected when multiple modbus maters from Ethernet are polling the same serial port.
Each serial port supports up to 16 simultaneous TCP connections allowing hosts to simultaneously
transmit/receive data to/from the same serial port, USR-M100 gateway processes the data in the order
timeout.
Response timeout If the Modbus device does not receive a response within the time specified here, the communication
Modbus TCP exception This option is used to enable modbus exception checking. If selected, error messages (TCP exception
(modbusTCP enabled) codes) are generated if a problem (such as a message timeout) should occur during Modbus operations.
Socket B Socket B supports 2 different operation Modes which are TCP Client, and UDP client, this socket is closed
by default.
The configuration will save to flash memory after clicking Save button. All configurations take effect after a system reboot.
webpage in hexadecimal. The WebSocket server can also send data to the serial device at any time. It can also print log information.
can setup MQTT broker basic settings, general topic settings, TLS secure transmission, last will message, and advanced settings.
MQTT Version Select the mqtt protocol version. V3.1 and V3.1.1 are supported.
The IDs of the various MQTT clients have to be unique for the respective MQTT Broker. If two MQTT
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
Keep alive interval The Keep Alive is a time interval measured in seconds. It is the maximum time interval that the broker
permits between when a client finishes sending one MQTT packet and starts to send the next.
Re-connection time Automatic reconnection when there are not data flow in the MQTT session in the setting time. If the
Clean session Valid only for Qos1 and Qos2. When the clean session is checked, the client does not want a persistent
session. If the client disconnects for any reason, all information and messages that are queued from a
When the clean session is unchecked, the broker creates a persistent session for the client. All
information and messages are preserved until the next time that the client requests a clean session.
Last will The last will message is part of the Last Will and Testament (LWT) feature of MQTT. The will message
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. For example, topic name, {"message": "Hello from
USR-M100 gateway"} as serial data. Different topics are allowed to have the same topic name. In this
way, data is pushed to all topics with the same topic name.
Custom mode, add topic, Qos(0,1,2), retain(ON,OFF) message before payload. After receiving the serial
data, USR-M100 publishes the payload of the corresponding topic to cloud according to rules. This
method can be used to publish any topic at any time. For example, awsiot/test,0,ON,{"message": "Hello
TOPIC string An MQTT topic is a UTF-8 string that the broker uses to filter messages for each connected client. To
receive messages, the client must subscribe to the topic. A topic can have one or more topic levels.
Binding Port The MQTT topic is bound to the serial port number of the device. Any data from the COM Port1 of the
Qos QoS 0: at most once. In this case, the client publishes a message to the broker only once.
QoS 1: at least once. In this case, when a client publishes a message to the broker, the client expects
the broker to acknowledge whether or not a client has received the message. If the publisher does not
receive acknowledgement from the broker within a preset time interval, it will republish the message
QoS 2: exactly once. The MQTT protocol uses the confirmation of confirmations to ensure that a
Retained message By setting the Retain flag the MQTT Broker is instructed to save the most recent data value for the
topic. Data values without Retain flag are only transferred from the MQTT Broker to those MQTT
Subscribers that are registered at the broker and have subscribed to the appropriate topic in the
Transmission mode The data printed to the serial port can be set whether to carry the Topic
protocols of MQTT Broker, TCP/UDP/HTTP in socket, AWS IOT, and Alibaba Cloud IoT Platform. The M100 gateway fulfills a different
role on each of its sides. Each role is determined by your devices' settings. Therefore, set the role of each of your devices correctly.
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. Select an option from the drop-down list.
Slave address Slave ID. Each slave in a network is assigned a unique identifier ranging from 1 to 255. When the
master requests data from a slave, the first byte it sends is the Slave ID. When set to 0, the slave will
Polling interval The interval at which data is collected. Modbus is a communications protocol with half-duplex
transmission. Gateways send requests to collect data from devices. Therefore, you must specify the
Total required time = Time required to collect the data of each property (60 ms) × Number of
Modbus address mapping This function is usually combined with register mapping to realize a single modbus command query in
data query.
Merger collection This function is used when the register address of many data points are sequential
Data point name Identifier of the data point, which must be unique for the gateway. The name must be 1 to 30
characters in length and can contain letters, digits, and underscores (_).
Modbus function code The Modbus RTU master supports the following Modbus functions: 1 Read Coils, 2 Read Discrete
Register address The address of the register from which data will be read.
Data type Defines how read data will be stored. See table 22.
Response timeout If the Modbus device does not receive a response within the time specified here, the communication
On Change: The report is triggered if the collected data changes. You can use a tolerance to only log
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.
Register address mapping This function is usually combined with modbus address mapping to realize a single modbus command
Formula Modbus register store only whole numbers. For this reason a scale factor often needs to be applied.
For example a modbus register with a temperature value may read as 723 and a multiplier of 0.1 need
to be applied to get the correct value of 72.3 in the SCADA system,the formula is %s*0.1. If the data
type is a Float then the multiplier is not needed. This computation supports +, -, * and / operators.
Communication channel Select the channel in the socket type. You can choose TCP/UDP or HTTP in socket A of each serial
Data query Whether data query from remote server or cloud is enable.
Data set Whether data setting command from remote server or cloud is enable.
Query or set type You can choose Modbus RTU, Modbus TCP or JSON. Users can send the right format query command
from remote modbus master or MQTT publisher to the M100 gateway. The data is retrieved from the
Query or set Topic Topic that used to query or set data from MQTT publisher.
Response Topic Topic that reply to the query or set data from MQTT publisher.
On Change: The report is triggered if the collected data changes. You can use a tolerance to only log
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.
Failure padding Exception handling. Any data point did not get the response in response timeout will be filled with this
Quotation mark Numeric values are quoted. It does not affect a string.
Json template The payload format. Users can custom which data points should report to the server.
3.1.7. IO settings
USR-M100 gateway can support a number of Digital Input (DI), Digital Output (DO-Relays ), Analog Input (AI) ports. There are a few
combinations of I/O extension board in develop. Because the I/O status of M100 is mainly displayed via Modbus protocol, the user has
Fig. 28 IO control
Fig. 29 IO function
Table 17 IO function
Slave address This field allows the user to configure the Modbus identification (ID), The Modbus slave ID is set to the
Register The I/O status will be displayed at the starting address given in this field.
E.g. The DI status will be mapped to the address set here. The default starting address is 1 which will
be mapped to DI channel number 0. The successive DI channels will have the incremental Modbus
address based on this starting address, i.e. DI1 will have the Modbus address of 2.
Timer1-6 Currently, two actions are supported: device restart and DO control
Hold: keep the triggering status in the specified time, and back to the previous status, single trigger
Flip: keep the triggering status in the specified time and then flip, periodic trigger
DI filter time This field is the interval that the system will check for the DI status. The default value is 10 milliseconds
(ms).
Please refer to “USR-M100 Quick Start Guide with PUSR cloud” for detail.
This system setting tab includes several system level settings, such as device name, websocket, system log, user name and password.
Websocket direction Click the drop-down menu to select websocket mapping direction: UART or Log.
User name The user name of web console and can be modified. up to 16 characters,can’t be NULL
Password The password of web console and can be modified. up to 16 characters,can’t be NULL
UART cache Click the option to enable serial buffer. By default, USR-M100 will empty its serial buffer when a new TCP
connection is established. This means that the TCP application will not receive buffered serial data during
a TCP link breakage. To keep the serial data when there is no TCP connection and send out the buffered
Restarting without data This function is used for the gateway without any data transmission or reception for a long time, and the
gateway automatically restarts. If the restart time is set between 0 and 59 seconds, this function does not
take effect. Only when the time is set to be greater than or equal to 60 seconds, the restart function of
The configuration will save to flash memory after clicking Save button. All configurations take effect after a system reboot.
management
In management page users can perform some system operations on the M100 gateway, including restarting, restoring factory
configuration, and upgrading. It is recommended that users use it with caution. Improper operation may damage the gateway.
A. Restart
This function is used to restart the gateway by software. Before the gateway 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 gateway system
software is reset, just like the "warm restart" of the windows operating system. Once a new setting is changed, you can use the Save
function to accept the changes. You will need to reset the device to save the settings to flash memory. Click on "restart" Button, the
the gateway restarts successfully, the device does not work and cannot forward any data packets. This function is to restore the
factory default configuration value once the user sets the wrong parameter and causes the gateway to work abnormally. Click the
"Restore factory defaults" button, and a prompt box will pop up on the page. Click "OK".
C. Firmware upgrade
USR IoT continually upgrades its firmware to add new features and optimize performance. Please contact the sales to obtain the
latest version of the firmware. Before upgrading the firmware, please make sure that the device has a reliable power source that will
not be powered off or restarted during the firmware upgrading process(please be patient as this whole process might take up to 1
-2 minutes).
Copy the new firmware file to your local computer. Note that the firmware file is a binary file with “.bin” extension. Before updating
Next, click “Select the file” button as shown in Figure to find and choose the new firmware file. Then, click "Flashing the firmware"
button to start the firmware upgrade process. After the progress bar in the page is read, the software upgrade is completed. 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.
be accessed via broadcast packets. Users can search all the USR-M100 gateways on the network and show them on the Deivce List
Area of the utility. Please select the right Ethernet adapter(Device menu) if you did not see any gateway.
Fig. 32 Searching
it in your environment. To configure each device, first click to select the desired device (default IP:192.168.0.7) in the list of
configuration utility, and then change the IP address to avoid any IP address conflict with other hosts on your LAN, save your change.
function also allows the gateway to save new configuration settings to flash memory. To reset the device:
2. Select Reboot.
Press the Reboot button and the system will give a reset response.
gateway to factory default settings, please click restore factory button to continue. As shown in Fig.34.
click,then click External web config ,you will open the web server with default browser such as Google Chrome. As shown in Fig.34.
4. Operation modes
The USR-M100 gateway provides various operations: TCP Server/ Client mode, UDP mode, HTTP mode and Websocket mode. The
main difference between the TCP and UDP protocols is that TCP guarantees delivery of data by requiring the recipient to send an
acknowledgement to the sender. UDP does not require this type of verification, making it possible to offer speedier delivery. UDP also
allows unicast or multicast of data to only one IP or groups of IP addresses. Detailed descriptions of each operation are provided in
following sections. After choosing the proper operation mode in this chapter, refer to Chapter 3 for detailed configuration
parameter definitions.
In TCP server mode, the TCP connection is initiated from the host to the USR-M100 gateway. This operation mode supports a
maximum of 16 simultaneous connections for each serial port on the gateway from a single or multiple hosts. After the connection
is established between the gateway and the remote host computer (remote TCP client) , data can be transmitted in both directions.
The serial 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.
The default operation mode of USR-M100 is the TCP Server mode. Fig.35 shows an example of configuration setting for TCP Server
working mode under the Uart1 socket tab. You can configure other serial ports in the same way.
1. Click on the “Uart1” tab on the menu frame on the left side of Web UI to go to Uart1 page as shown in Fig.35.
2. For Serial Settings on the Port configuration page, please go to Section 3.1.3.
3. Click on the Socket tab in this page, select TCP Server in the working mode options. The local ports of different serial ports must
be different. After receiving network data, the device determines which serial port the data is sent to based on the local port. For
example, the default port number of the first serial port (Uart1) is 23, the default port number of the second serial port (Uart2) is 26,
4. After finishing configuring the working Mode, please scroll down to the bottom of 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.36 shows an example of test in this mode. By selecting the TCP Server work mode, a TCP client program on a remote host
computer should be prepared to connect to USR-M100. Server IP is IP address of USR-M100, server port is local port of USR-M100.
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. And users can define the behavior when the connection established exceed
the maximum.
Kick: when the connection exceeds the maximum number, actively kick out the oldest connection(first in first kick out).
Keep: when the connection exceeds the maximum number, keep the old connection and reject new connections.
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. USR-M100 supports SSL (TLS v1.0 or v1.2) data encryption in this operating mode.
Fig.38 shows an example of configuration setting for TCP Client working mode under the Uart1 socket page. You can configure other
serial ports in the same way. There are additional connection settings that can be configured as shown in Fig.38.
1. Click on the “Uart1” tab on the menu frame on the left side of Web UI to go to Uart1 page as shown in Fig.38.
2. For Serial Settings on the Port configuration page, please go to Section 3.1.3.
3. Click on the Socket tab in this page, select TCP Client in the working mode options. Please specify the Destination IP address and
port number of the TCP server program on the remote host. This should match the IP settings of the TCP server program. The default
4. After finishing configuring the working Mode, please scroll down to the bottom of 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.39 shows an example of test in this mode. By selecting the TCP Client operation mode, a TCP server program on a remote host
computer should be prepared to accept a connection request from the device. In this case,Host IP address is 172.16.14.15.
4.2.2. SSL/TLS
If SSL certificate authentication is enabled on the remote server, user need to configure SSL encryption parameters on M100. User
can select TLS1.0 or TLS1.2 version protocol. User can select None certificate Authentication, server certificate authentication and
This connection, called transitory due to its short-lived nature. If the serial port or network port receives none data within the setting
time, the connection will be automatically disconnected. The gateway used to send serial device data back to a control room or a
cloud application need to open a remote connection before they can transfer the serial data. When the transmission is completed,
the gateway should immediately close the connection. Without support for flexible connection control, you would need to spend extra
TCP transient connection is used primarily to save server resources. Fig.41 shows an example of configuration setting for transient
4.3.1. Properties
User Datagram Protocol (UDP) is a faster and more efficient transport protocol than TCP but it is a connectionless transport protocol,
it does not guarantee the delivery of network datagram. In UDP mode, you can unicast or multicast data from the serial device to one
or multiple host computers, and the serial device can also receive data from one or multiple host computers. Please beware that even
though UDP provides better efficiency in terms of response time and resource usage, it does not guarantee data delivery. It is
recommended to utilize UDP only with cyclic polling protocols where each request is repeated and independent, such as Modbus
Protocol.
When the working mode of the device is UDP server, the remote device must also work in UDP mode. You only need to specify the
Local Port that USR-M100 should listen to. In UDP server mode, serial port data is always sent to the last peer UDP device(IP and port)
that communicates with the USR-M100, and the USR-M100 can record the IP and port number only after the peer UDP device sends
Fig.42 shows an example of configuration setting for UDP Server mode under the Uart1 socket page. You can configure other serial
1. Click on the “Uart1” tab on the menu frame on the left side of Web UI to go to Uart1 page as shown in Fig.42.
2. For Serial Settings on the Port configuration page, please go to Section 3.1.3.
3. Click on the Socket tab in this page, select UDP Server in the working mode options.
4. Local Port specifies the local port number for UDP server mode on M100 which it will be listening to and it can be any number
between 1 and 65535. The local ports of different serial ports must be different. After receiving network data, the device determines
which serial port the data is sent to based on the local port.
5. After finishing configuring the working Mode, please scroll down to the bottom of 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.
Serial port data is firstly sent to the preset destination IP/domain name and Destination port. After receiving a UDP packet, the system
4.4.1. Properties
When the working mode of the device is UDP client, the remote device must also work in UDP mode. M100 supports remote IP
address and port verification. After verification is enabled(OFF), the M100 only communicates with the destination port of the
destination IP address. If the data is not from this channel, the M100 will discard the data. If verification is disabled(ON), M100 does
not filter the data of the destination IP address and destination port. Fig.44 shows an example of configuration setting for UDP Client
mode under the Uart1 socket page. You can configure other serial ports in the same way.
1. Click on the “Uart1” tab on the menu frame on the left side of Web UI to go to Uart1 page as shown in Fig.44.
2. For Serial Settings on the Port configuration page, please go to Section 3.1.3.
3. Click on the Socket tab in this page, select UDP Client in the working mode options.
4. Please specify the Destination IP address and port number of the UDP program on the remote host. Local Port specifies the local
port number which socket A will be listening to and it can be any number between 1 and 65535. The local ports of different serial
ports must be different. After receiving network data, the device determines which serial port the data is sent to based on the local
port. Note that typically the port number that is larger than 1024 is recommended to avoid conflicting with the well-known port
numbers. You should match this setting with the remote UDP program. Note that this number is usually called destination port in the
5. After finishing configuring the working Mode, please scroll down to the bottom of 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.45 shows an example of test in this mode. In this case, IP address of USR-M100 is 172.16.14.73, host IP address is 172.16.14.15.
mode, each host that belongs to a specific multicast group will receive multicast packets for that group. For a host to be configured
as a multicast receiver over the 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-M100 Series supports IGMP
version 2.
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.
Fig.49 shows an example of configuration setting for HTTP Client working mode under the Uart1 socket page. You can configure
1. Click on the “Uart1” tab on the menu frame on the left side of Web UI to go to Uart1 page as shown in Fig.49.
2. For Serial Settings on the Port configuration page, please go to Section 3.1.3.
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.
6. Fill in the HTTPD address, that is, the address of the HTTP server, which can be an IP address or a domain name (the ability to
7. Fill in the HTTPD port number. The default local port number is 0, M100 will assign a random TCP Port.
8. After finishing configuring the working Mode, please scroll down to the bottom of 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.
4.5.2. HTTPS
If SSL certificate authentication is enabled on the remote server, user need to configure SSL encryption parameters on M100. User
can select TLS1.0 or TLS1.2 version protocol. User can select None certificate Authentication, server certificate authentication and
forwarding direction. This function is that the gateway acts as a WebSocket server, and transparently transmits the data received by
the serial to the WebSocket client in hexadecimal format. The WebSocket server can also forward data to the serial device at any time.
This operation mode supports a maximum of 16 simultaneous connections for any serial port on the gateway from a single or multiple
hosts.
1. Click on the “system setting” tab on the menu frame on the left side of Web UI to go to system setting page as shown in Fig.51.
4. For Serial Settings on the Port configuration page, please go to Section 3.1.3.
Virtual COM ports on host computer allows remote access of serial devices over TCP/IP network that works like local native COM
ports. Since USR-M100 gateway enable network operation of instruments equipped with an RS-232/485 communication port, your
SCADA and data collection system will be able to access all instruments connected to a standard TCP/IP network, regardless of
To enable Virtual COM on host computer, you will require a VCOM software to emulate the COM port. For Windows operating system,
a software utility called VCOM is supported by PUSR to be used for this purpose.
This function is useful with devices such POS terminals, Bar Code Readers, Serial printers, etc. since it allows you to use software that
https://www.pusr.com/support/downloads/VCOM_Setup_exe.html
Execute the VCOM program, click quick-install to install program files in the default directory, or select an alternative location. The
software.
ports that work like local native COM ports. 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.
1. If the gateway is running in TCP Server Mode (recommended), the VCOM utility on the host computer should be configured as
the TCP client connecting to the gateway. The characteristic of this mode is that the IP address of the host can be changed (usually
automatically assigned by the router), and the IP address of the gateway must be fixed.
other application or your operating system, you can not select it.
Number here is the Local Listening Port for the gateway which is specified in the Local Port field of Fig.60. In this case, IP address
of USR-M100 is 172.16.14.12.
waiting for a gateway to connect to the host computer. The feature of this mode is that the IP address of the computer cannot be
changed, but the IP address of the gateway can be changed (which can be automatically assigned by the router).
other application or your operating system, you can not select it.
3. After selecting the virtual COM ports, please enter the specified Port Number. This Port Number is the Destination Port of the
gateway.
baud rate, data bits, stop bits, and parity bits. This function is only allowed when the working mode is TCP Server and TCP Client. Note
that this protocol is used to change the serial port parameters of USR-M100. In this case, IP address of USR-M100 is 172.16.14.34.
Length(bytes) 3 3 1 1
115200,N,8,1 55 AA 55 01 C2 00 03 C6
9600, N,8,1 55 AA 55 00 25 80 03 A8
11 8 Data bits
1 2 Stop bits
01 EVEN
10 Mark
11 Space
developed Ethernet devices. Many industrial devices, such as PLCs, DCSs, HMIs, instruments, and meters, use Modbus as their
communication standard. In industrial applications, the most common protocol conversion is Modbus RTU to Modbus TCP conversion,
and it is usually required when legacy devices such as meters, mostly using Modbus RTU, need to be integrated with SCADA systems,
Most modern PLCs and host computers support Modbus TCP over Ethernet. In order to access discrete Modbus RTU devices for data
collection and control, they can rely on the M100 Modbus gateway.
in Modbus RTU Slave mode. The M100(TCP Server mode) supports Modbus TCP with up to 16 simultaneous connections. The serial
interface supports both RS-232 and RS-485, selectable through software. Each serial port can be connected to one RS-232 serial
device, or to 32 RS-485 serial devices. When connected with more than one RS485 devices,please refer to section 7.5 for bus
collision detection.
Fig.70. When USR-M100 gateway does not receive a response from the serial port after a response timeout, the device replies with
When you need to use long frame data frequently or have high data transmission requirements, please adjust the baud rate and
lengthen the sending interval appropriately to prevent the slow serial port from causing messy codes or packet loss.
many DCSs are now Ethernet-based and operate as a Modbus TCP server device. The M100 Modbus gateway can link a serial-based
When the host computer or HMI is Modbus RTU Master, if the remote device work in Modbus TCP Slave mode, the ModbusTCP
function must be enabled. The M100(TCP Client mode) supports only one Modbus TCP slave.
must work in Modbus RTU Slave mode. The M100 supports up to 16 simultaneous TCP connections.
7. Advanced features
packets intact. USR-M100 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. Meaning that if any of the two conditions were met,
the device would transmit the serial data in its buffer over the network.
comes in. The default value is calculated automatically based on the baud rate. If the automatic value results in chopped data, the
timeout could be increased manually by specifying a larger value in the text box above. Note that the maximum interval is 255
specified baud rate. For example, assuming that the serial port is set to 1200 bps, 8 data bits, 1 stop bit, and no parity. In this case,
the total number of bits needed to send a character is 10 bits (included 1 start bit), and the time required to transfer one character
is (10 (bits)/1200 (bits/s))*1000 (ms/s) = 8.3 ms. Therefore, you should set the “Interval timeout” to be larger than 8.3 ms. Rounding
8.3 ms
to the next integer would give you 9 ms. Which can be set as your interval timeout.
Packet length: USR-M100 will transmit the serial data in its buffer when the specified length in the unit of bytes has reached. If you
would like USR-M100 to queue the data until it reaches a specific length,the data length can be configured for 1 to 1460 bytes. If the
data length (in bytes) matches the configured value, the data will be forced out. Set to 0 if you do not need to limit the length.
a normal network connection with the server. This function is only allowed when the working mode is UDP and TCP Client.
Serial heartbeat packet: The M100 gateway notifies the serial device it is active via packet, and this packet can also be used to actively
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.
bytes long. Users can choose to display this content in hexadecimal format or ASCII format.
Once connected: The registration packet is only sent once when the network connection is established;
Prefix of DATA: The registration packet is filled in front of the serial port data every time the serial port sends data to the network;
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.
Idle time: the interval time when M100 is allowed to send data to RS485 bus after the receiver is idle. The value ranges from 0 to
allow serial devices such as a printer, control mechanisms or control systems to be used in a network without relying on the serial
port of a computer for connectivity. This way, any serial device can be connected to the network and the internet and accessed from
anywhere. Sharing a printer among coworkers in the same physical office can be implemented with a gateway that does not need
The M100 gateway, 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. In this case, IP address of
USR-M100 is 172.16.14.12.
7.7. NTP
If M100 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. If the M100 device is connected to the Internet and should get NTP server over the Internet, you will need to
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”.
IP address .1.3.6.1.2.1.4.20.1.1.172.16.14.12
Gateway .1.3.6.1.2.1.4.21.1.1.172.16.14.12
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,” in which devices provide data only when needed, as opposed to “passive notification,” in which devices are polled at
regular intervals. MQTT’s broker/client design eliminates the need for all devices in the system to be online at the same time. The
clients (i.e., “devices” or “things”) communicate directly with the broker, which plays the role of middleman to pass messages back
based on the actual Broker information. We will use Free Public MQTT Server provided by EMQX Cloud as the MQTT server address
for quick testing. You can configure KeepAlive, Clean Session, Auto Reconnect, MQTT Version, etc.
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. If it is a two-way authentication, you also need to select to configure Client Certificate File and Client key
file. Click the choose file button on the far right to select the certificates you have generated.
Uploads a Certificate Authority (CA) file. A Certificate Authority (CA) is an entity that issues digital certificates. A digital certificate
certifies the ownership of a public key by the named subject of the certificate.
Uploads a client certificate (cert) file. A certificate file is a type of digital certificate that is used by client systems to make
you enter the values of Last-Will-Topic and Last-Will-Payload, you can complete the configuration of Will Message.
all the changes that you have made. All configurations take effect after a system reboot. In this case we only finish the follow
parameters setting.
possible to connect to IoT Hub and publish or subscribe to messages. MQTT.fx in this article refers to version 1.7.1 without special
instructions.
The main page is shown in the figure below. The top part is the MQTT Broker connection address bar and its connection
configuration. The following function Tabs include Publish column, Subscribe column, Scripts column, Broker Status column, Log
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:
side turns to green, indicating that the current connection is successful, as shown in the following figure:
/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 & Apply" button to save all the changes that you have made. All configurations take effect after a system
reboot.
Subscribe button, and the list of subscribed topics will appear on the left. The current number of subscribed topics is 0, as shown
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 & Apply" button to save all the changes that you have made. All configurations take effect after
a system reboot.
Subscribe button, and the list of subscribed topics will appear on the left. The current number of subscribed topics is 0, as shown
you will receive a message from the cloud that was sent from the M100.
button, and the list of subscribed topics will appear on the left. The current number of subscribed topics is 0, as shown in the
following figure:
the MQTT.fx page, you will receive a message from the cloud that was sent from the M100.
to describe the process. After finishing configuring the Subscribe topic1, please scroll down to the bottom of 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.
the message input box, select a QoS level, and click Publish to publish the message, as shown in the following figure:
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. In addition, you can extend the useful life of
legacy devices by connecting them to Ethernet and accessing the devices using a preferred protocol,TCP/UDP , HTTP , MQTT.
Click add slave to add a device, click edit to configure the device.
function, the description of the configuration parameters on this interface is shown in table 14. We use the temperature and humidity
THsensor as an example to describe the process. After finishing configuring the slave device, please scroll down to the bottom of the
page and click on "Save" button to save all the changes that you have made. All configurations take effect after a system reboot.
Coil points 00001 – 09999 Read, function code 0x1,0x5,0xF, bool values
Discrete inputs 10001 – 19999 Read only, function code 0x2, bool values
Input registers 30001 – 39999 Read only, function code 0x4, int,uint,float values
The Modbus register addressing starts with register 0, but some device manufacturers start with the number 1 in the device
documentation. In this case, the number minus 1 should give the correct register address. Offsets can be represented in different
ways. Sometimes as Hex values and sometime the offset will also contain the register type. For example Offsets in the Holding
Register range might start with a 4 such as 411001, in the SCADA this would be entered as 11001.
utilize multiple modbus registers to hold a larger value. Here is a list of Data Types supported in the M100 gateway.
Note that these could be referred to in different ways. for example a 4 Byte Signed Integer might be referred to as a 32 bit Integer
in equipment documentation. For binary values we also need to know what “bit” of the register to look at for the binary value. For
this reason a single 16 bit modbus register could represent up to 16 individual binary data points. Sometimes the Data Type is inferred
by listing the number of registers. For example 2 registers might mean a 4 byte value.
point.
select the right data type, input the calculation formula, the description of the configuration parameters on this interface is shown in
table 15. We use the temperature and humidity data points as an example to describe the process. After finishing configuring the data
points, please scroll down to the bottom of the page and click on "Save" button to save all the changes that you have made. All
Applying the same configuration to multiple units. The Import/Export configuration function is a convenient way to apply the
same settings to units located in different sites. You can export the configuration as a file and then import the configuration file
Backing up configurations for system recovery. The export function allows you to export configuration files that can be imported
Troubleshooting. Exported configuration files can help administrators to identify system problems that provide useful
information for Technical Service Team when maintenance visits are requested.
The export function saves all the configuration settings and parameters of the data acquisition in a *.csv file. To begin, click the Export
button.
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. After finishing importing the configuration file, please scroll down to the bottom of the page and click on "Save"
button to save all the changes that you have made. All configurations take effect after a system reboot.
When select MQTT or AWS IOT channel, user need configure the MQTT broker parameters in MQTT Gateway tab or Cloud service
configuration parameters on this interface is shown in table 16. After finishing parameter setting, please click on "Save" button to
save all the changes that you have made. All configurations take effect after a system reboot.
key-value pair is separated by a comma. The order of the key-value pair is irrelevant.
A JSON array contains zero, one, or more ordered elements, separated by a comma. The JSON array is surrounded by square
brackets [ ].
A key-value pair consists of a key and a value, separated by a colon (:). The key is a string, which identifies the key-value pair. The
value can be any of the following data types: string(surrounded by quotation marks (" ")),number,float,array(JSON array),object(JSON
Example 1
"THsensor1": {
"temperature": "temperature",
"humidity": "humidity"
},
"LUXsensor1": {
"illumination": "illumination"
},
"time": "sys_net_time"
Example 2
"service":[{
"sensor1": {
"temperature": "temperature1",
"humidity": "humidity1",
"user_define": "bedroom"
"sensor2": {
"temperature": "temperature2",
"humidity": "humidity2",
},
"event_time": "sys_net_time"
}],
"device_id":"sys_mac"
We can use a tool to compact it. Below is a free online tool: https://jsonformatter.org/. Paste the message in the column on the left
and then, click Minify JSON. It will show a compact JSON format message in the column on the right. Click Copy to Clipboard.
The system data points defined by USR-M100 gateway is shown in table 24.
sys_sn SN number
The node name configured in the section 9.2.3 is register value data points.
User define
In addition to the above two types of data points, users can also define your own data points. Such as "user_define": "living room".
9.4.4. Test
We now use modbus slave software to simulate two modbus slave device. The connection and and parameters settings are show in
Fig.142. USB to RS485 converters are connecting PC with serial UART1 of USR-M100 gateway. We use MQTT.fx to connect to the
same broker and subscribe the report topic of USR-M100, we can see the message transmitted at the specified interval.
Modbus TCP, Modbus RTU. Firstly, user need enable the data query function. We can query data by Json format in MQTT or HTTP
9.5.1. Json
When select MQTT or AWS IOT channel, user need configure the MQTT broker parameters in MQTT Gateway tab or Cloud service
tab at first, select Json query mode and setting the query topic in the Fig.147. In actual application, respond topic should be different
The query/control Json template object contains several fixed key-value, the specific meaning of key-value is listed in the table 25.
{"rw_prot": {"Ver": "protocol version","dir": "transmission direction","id": "id","r_data": [{"name": "name of data points"],"w_data": [{"nam
Tip: Users can query and control serial device’s data with one command. In one command, you can query the maximum of 5 data
{"rw_prot": {"Ver": "protocol version","dir": "transmission direction","id": "id","r_data": [{"name": "name of data points","value": "data","er
r": "error code"}],"w_data": [{"name": "name of data points","value": "data","err": "error code"}]}
• The USR-M100 will response data conforming to the error protocol if the ver/dir/id is not right,
• The USR-M100 will response data conforming to the error protocol if the contents of r_data and w_data are both wrong,
the USR-M100 will response data of the right one if only one of the r_data and w_data is wrong.
{"rw_prot":
{"Ver": "1.0.1",
"dir": "down",
"id": "12345",
{"rw_prot":
{"Ver": "1.0.1",
"dir": "down",
"id": "12345",
address in different slave devices. All slave devices and registers on a gateway are planned and managed in a unified manner.
For example, user can map slave address 1 in Port1 to slave 1 in M100 gateway, map slave address 1 in Port2 to slave 2 in M100
gateway.
query type. We use slave address mapping and register mapping described in section 9.5.2 as here for illustration.
web server, which allows for showing the module status and changing the configuration. To access the web server, open the browser
and enter the IP address of the module, default address for a new module (default IP address is 192.168.0.7). Please use the following
credentials:
There are three methods to actively query the IO status from the communication channel: Modbus TCP, Modbus RTU and MQTT
modbus RTU. We can query IO status by modbus RTU format in MQTT or HTTP channel,and via modbus TCP or RTU format in
TCP/UDP mode.
10.1. IO function
shows the Modbus Slave ID that must be set for the Modbus protocol. Please refer to section 2.3.3 for details.
Uart port.
Uart port.
10.3.3. DO control/query
service tab at first. Users can query or control IO ports by enabling IO control/query box on publish or subscribe tab. Note that the
10.4.3. DO control/query
changes that you have made. All configurations take effect after a system reboot.
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.190. Here we use MQTT as an example.
10.6.4. IO query/control
The query/control Json template object contains several fixed key-value, the specific meaning of key-value is listed in the table
26.
{"rw_prot": {"Ver": "protocol version","dir": "transmission direction","id": "id","r_data": [{"name": "name of data points"],"w_data": [{"na
Tip: Users can query and control IO with one command. In one command, you can query the maximum of 5 data points and control
Key-value Description
rw_prot Protocol header
ver Protocol version,fixed value: 1.0.1
Data transmission direction
In query/control command, the option should be down.
dir
Means transmitting data from network to serial device,
“down” must be lowercase.
User defined parameter. The id is same in query/control and response data.
Sometimes, the query/control data is high frequency, the response data may
id
be disordered. The program in network can confirm the relevant response
data by the id.
r_data The data load for querying IO data.
w_data The data load for controlling IO data.
name The name of data points described in 10.6.2 Add IO data points
Means the data need to be sent to the data points described in 10.6.2 Add IO
value data points.
In query data, this key-value can be ignored.
{"rw_prot": {"Ver": "protocol version","dir": "transmission direction","id": "id","r_data": [{"name": "name of data points","value": "data","er
r": "error code"}],"w_data": [{"name": "name of data points","value": "data","err": "error code"}]}
• The USR-M100 will response data conforming to the error protocol if the ver/dir/id is not right,
• The USR-M100 will response data conforming to the error protocol if the contents of r_data and w_data are both wrong,
the USR-M100 will response data of the right one if only one of the r_data and w_data is wrong.
{"rw_prot":
{"Ver": "1.0.1",
"dir": "down",
"id": "12345",
{"name":"DI1"},{"name":"DI2"},
{"name":"AI2"}]
There are forward follow and reverse follow, here we use forward follow as an example. The triggers can be DI ,DO.
There are >,>=,<,<=,within threshold, out of threshold triggers, here we use within threshold as an example. The triggers can be
serial device data ,AI. Here we choose temperature data point as an example.
13. Warranty
14. Contact Us
Jinan USR IOT Technology Limited
Address : Floor 12 and 13, CEIBS Alumni Industrial Building, No. 3 Road of Maolingshan, Lixia District, Jinan, Shandong, China
Official website:https://www.pusr.com
Official shop:https://shop.usriot.com
Email : [email protected]
Tel : +86-531-88826739
Fax : +86-531-88826739-808
15. Disclaimer
The information in this document provided in connection with Jinan USR IoT technology ltd. and/or its affiliates’ products. No
license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection
with the sale of USR IoT products. EXCEPT AS SET FORTH IN THE TERMS AND CONDITIONS AS SPECIFIED IN THE LICENSE
AGREEMENT FOR THIS PRODUCT, USR IoT AND/OR ITS AFFILIATES ASSUME NO LIABILITY WHATSOEVER AND DISCLAIMS ANY
EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON‐INFRINGEMENT. IN NO EVENT SHALL USR IoT
AND/OR ITS AFFILIATES BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES
(INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION OR LOSS OF INFORMATION)
ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF USR IoT AND/OR ITS AFFILIATES HAVE BEEN ADVISED
OF THE POSSIBILITY OF SUCH DAMAGES. USR IoT and/or its affiliates make no representations or warranties with respect to the
accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and product
descriptions at any time without notice. USR IoT and/or its affiliates do not make any commitment to update the information