USR -K5 Instrukcja użytkownika

USR-K5 User Manual www.usriot.com
USR-K5 User Manual
File Version: V1.0.1
Jinan USR IOT Technology Limited
1
inquiry@usriot.com
USR-K5 User Manual www.usriot.com
Features
connection automatic switching.
  
dead connections
 
connected client can be displayed on the web page interface. And the data sent / received data is calculated according to the connection.
the old one.
setup protocols for customers to integrate into their software.
           
Work modes:TCP server, TCP client, UDP server, UDP client. Baud rate can be set from 600bps to 230.4Kbps. Parity supports None, Odd, Eben, Mark, Space. Customize heartbeat package and keep the connection real and reliable, can be used to detect the
Customize registration package, detect the connection status, and also customize the head of package. In TCP Server mode, the number of connected clients can be modify from 1 to 4, default is 4. The IP of
In TCP Server mode, when the client number reach the max value, can set whether the new client kicks
Support web page, AT command, serial port protocol, network protocol setting parameters, provide
Support TCP client short connection, the time can be set. Support timeout restart function, the time can be set. Before TCP connection is established, whether to clear the data cache can be set. Support DHCP, get IP automatically. The unique MAC address in the world, can be modified. Support DNS, domain name resolution. Support customize the address of DNS server. Support upgrade the firmware from web page, more convenient. Support V-com. Support software and hardware restore to the factory setting. Support across the gateway, switching and router. Support work in LAN, also can access the external.
Jinan USR IOT Technology Limited
2
inquiry@usriot.com
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
3
www.usriot.com
Content
1. Get start..........................................................................................................................................................................5
1.1. Quick Test
1.1.1. Hardware connection
1.1.2. Network test environment
1.1.3. K5 settings
1.1.4. Data transmission test
1.2. Basic Parameters
1.3. Product Function
1.4. IP Mode
1.4.1. Static IP
1.4.2. DHCP
1.5. Configuration by Windows Utility
1.5.1. Installing M0 Set-up software
1.5.2. Searching for Device Servers over a LAN
1.6. Configuration by web console
1.6.1. Connect with Network
1.6.2. Web page server
1.6.3. Serial-port and woke mode
1.6.4. DNS Server Address
1.6.5. Short Connection
1.6.6. Clear Buffer Data
1.6.7. Restart Timeout
1.6.8. The number of the connected client
1.6.9. Link
1.6.10. Reset
1.6.11. Index
2. Security consideration............................................................................................................................................... 23
2.1. Restore to the Factory Setting.
2.2. Network Upgrade Firmware
3. Configurations for Network and Serial port............................................................................................................23
3.1. TCP Client
3.2. TCP Server
3.3. UDP Client
3.4. UDP Server
3.5. Serial Port Function
3.5.1. Basic Parameters
3.5.2. Serial Port Framing
3.5.3. RFC2217
4. Advanced Function.................................................................................................................................................... 36
4.1. Heartbeat Package
4.2. Registration package
...........................................................................................................................................................
..........................................................................................................................
...................................................................................................................
.............................................................................................................................................
.........................................................................................................................
...............................................................................................................................................
.............................................................................................................................................
............................................................................................................................................................
................................................................................................................................................
.....................................................................................................................................................
.................................................................................................................
..........................................................................................................
.......................................................................................
......................................................................................................................
.......................................................................................................................
.................................................................................................................................
...............................................................................................................
...........................................................................................................................
................................................................................................................................
................................................................................................................................
..................................................................................................................................
...............................................................................................
.......................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
....................................................................................................................
..........................................................................................................................
.........................................................................................................................................................
.......................................................................................................................................................
........................................................................................................................................................
.......................................................................................................................................................
........................................................................................................................................
................................................................................................................................
.............................................................................................................................
...............................................................................................................................................
.........................................................................................................................................
......................................................................................................................................
10 11 11 11 12 12 12 14 14 15 16 17 17 18 19 20 20 21 21
23 23
24 27 29 31 32 32 33 33
36 37
5 5 5 6 8 9
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
4
www.usriot.com
4.3. USR IOT CLOUD
4.3.1. Scada cloud
..............................................................................................................................................
.........................................................................................................................................
39 39
5. Serial to Ethernet........................................................................................................................................................46
6. Parameter Setting...................................................................................................................................................... 48
6.1. Net Protocol Setting Parameters
6.1.1. Setting Software Setting Parameters
6.1.2. Setting Protocol Setting the Parameters
6.2. Web page Setting Parameters
..................................................................................................................
..............................................................................................
.........................................................................................
......................................................................................................................
48 48 53 61
7. AT Command.............................................................................................................................................................. 65
7.1.1. AT Command Overview
7.1.2. AT Command Error Code
7.1.3. AT Command
.......................................................................................................................................
7.1.4. AT Command Details
.....................................................................................................................
...................................................................................................................
..........................................................................................................................
65 67 67 68
8. Contact us....................................................................................................................................................................80
9. Disclaimer....................................................................................................................................................................80
10. Modified History........................................................................................................................................................81
Jinan USR IOT Technology Limited
5
www.usriot.com
Get start
1.
Quick Test
1.1.
1. USR - K5
2. USR - Kx - EVK
3. One Internet cable
4. One power supply of DC5V 1A
5. Serial line
6. One PC
USR-LTE-7S5 User Manual technical support:h.usriot.com
Figure 1 preparation
1.1.1.
To test a serial port to network communication conversion, we will K5 (USR - K5, referred to as "K5, similarly
hereinafter) serial port via a serial port line (or turn the USB serial port) connected to the computer, the K5
with cable front-end ports and connected to the front-end ports of the PC, hardware connection without error,
access our distribution power adapter, to power a K5, connection diagram as shown:

Hardware connection

Figure 2 Hardware connection

1.1.2. Network test environment

In order to prevent the customer in the application of the server search, ping, and open web pages and other
problems. After the hardware connection is complete, check the computer for the following before using it.
1) close the computer firewall (generally found in the control panel) and anti-virus software;
2) close the network card irrelevant to this test and keep only one local connection;
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
6
www.usriot.com
item
parameter
User name
admin
Password
admin
IP
192.168.0.7
Subnet mask
255.255.255.0
Work mode
192.168.0.1
Work mode
TCP Client
Local port
0
Remote port
8234
Default remote port
192.168.0.201
Serial-port baud rate
115200
Parameter
None/8/1
3) for the case where the server is directly connected to PC, a static IP address in the same network segment
as K5 IP must be set for the computer;
Figure 3 Computer settings
1.1.3.
You can set up the parameters as the follows default parameters through M0 set-up software or inner website.
You can check the details at chapter 3.
K5 settings
Diagram 1 Default parameter
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
7
www.usriot.com
Figure 4 Software settings
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
8
www.usriot.com
1.1.4.
After the above steps are confirmed to be correct, the two-way communication between the serial port and the Ethernet port can be carried out. The operation steps are as follows:
1) open the Test software usr-tcp232-test.exe, and connect the hardware according to figure 1.2.
2) select TCP Server mode in the network setting area, input the computer IP address of the Server, input the port number of the Server 8234, click to start listening, establish the TCP connection, set the baud rate of the serial port to 115200, set the serial port parameter to None/8/1, click open, and open the serial portAt this point, we can conduct data transceiver test between the serial port and the network. The data flow from the serial port to the network is as follows: computer serial port ->K5 serial port ->K5 Ethernet port -> computer network;The data flow from network to serial port is as follows: computer network ->K5 Ethernet port ->K5 serial port -> computer serial port is shown in the figure below
Data transmission test
Figure 5 Data transmissions
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
9
www.usriot.com
Parameters
Value
Hardware
parameters
Working voltage
DC3.03.6V
Working current
175mA@3.3V
Net port
RJ45, 10/100Mbps,AUTO-MDIX
Serial band rate
600~230.4K(bps)
Serial Level
TTL-3.3V
Software
parameters
Network protocol
IP, IPV4, TCP/UDP, ARP, ICMP
IP type
Static IP, DHCP
DNS
Support
User parameters
Protocol setting, web setting, AT command
Transparent transmission
TCP Server/TCP client/UDP Server/UDP Client
Similar RFC2217
Support
TCP server connection
Default 4 and maximum is 4
Net buffer
Send:2Kbyte; receive:2Kbyte
Serial port buffer
Receive: 1Kbyte
Average transmission rate
<10ms
Setup software
USR-VCOM, setup software, USR-Cloud test software
Package mechanism
4 bytes package time and 1024 bytes package length
Certification
CE,FCC
Size
35.0x19.4x16.55 mm(L*W*H)
Operating temp.
-40+85°C
Storage temp
-45+105°C

1.2.Basic Parameters

USR-K5 is a tiny size serial port to Ethernet module which can realize the bi-direct data transparent transmission between RJ45 port and TTL serial port. It can be applied to RS232 and RS485 by level conversion circuit. Supports low power consumption, only consume a little current in full speed work. Equipped with Cortex-M0 core, fast speed and high efficiency. Supports several functions to meet more needs. K5 is easy to operate and have strong compatibility. On the basis of adding new functions, it is compatible with the setting protocol of K1, K2, which provide convenience for old users. At the same time, a setting protocol similar to K3 is added. Customers using the K3 setup protocol can apply to K5 with a simple adjustment.
Diagram 2 Electrical parameters
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
10
www.usriot.com
Others
operating humidity
5%95% RH
Storage humidity
5%95% RH
Package
Electrostatic bubble
Product Function
1.3.
Here are the functions of K5, below is the overall block diagram.
Figure 6 Functions
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
11
www.usriot.com
command name
instr
AT+WAN
Setting and query the access way of K5 IP, IP/subnet masks/gateway parameters

1.4.IP Mode

IP address/ Mask/ Gateway
1. IP address is the identity representation of the module in the LAN, which is unique in the LAN, so please be sure there is no another device same as it in the LAN.

1.4.1. Static IP

The static IP needs to be manually set by the user. During the setting process, pay attention to write the IP, mask, and gateway at the same time. The static IP is suitable for scenarios where IP and equipment need to be counted and one-to-one correspondence is required. Pay attention to the corr/espondence between IP address, mask and gateway when setting. When using a static IP, you need to set each module and ensure that the IP address is not duplicated with other network devices in the LAN.
1.4.2.
Get IP address , gateway address, DNS server and other information from the gateway server to easy the step for setting IP address, DHCP adopted to the environment that have no special requirement to IP. Advantage: accessing the device equipment with the DHCP server such as router can communicate directly. Reduce the hassle of setting IP address and subnet masks. Disadvantage: accessing the device with no DHCP server such as computer directly, K5 can not work.
2. Subnet masks used to determine the host number and the network number, indicates the number of subnet and determine the flag within the subnet. The subnet masks needed to set, usually we use the subnet masks: 255.255.255.0, the network number is the former 24, the holder name is the last 8, number of subnet is 255, the module IP is in the range of 255, and then we are sure that the module IP is in this subnet.
3. Gateway is the net port of the LAN. If you connect the router to access the internet, the gateway is the router IP address, setting wrong and can not access into the net. No device such as router and no setting, keep the default.
4. Related AT command.
DHCP
Diagram 3 Related AT Command
Jinan USR IOT Technology Limited
12
www.usriot.com
5. Software setting:
USR-LTE-7S5 User Manual technical support:h.usriot.com
Figure 7 Software Setting

1.5.Configuration by Windows Utility

You can easily install and configure your device server over the network In this section, we will cover only the
“configuration of general settings” using N510 Administrator. For more detailed information on how to use this suite of useful
utilities, refer to Chapter 3 and 5.
1.5.1.
Download and run (https://www.usriot.com/support/downloads/usr-m4-setup-software-v235102.html ). You may find it in the Resource section under your product page.
Installing M0 Set-up software

1.5.2. Searching for Device Servers over a LAN

The Broadcast Search function is used to locate all K5 device servers that are connected to the same LAN as your computer. Since the Broadcast Search function searches by MAC address and not IP address, all device connected to the LAN will be located, regardless of whether or not they are part of the same subnet as the host.
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
13
www.usriot.com
In M0 software, click Search to search your LAN for device servers. When your unit appears in the search results,You may also wait a few more moments for the search to complete.
Figure 8 Search device
Right-click your unit in the Configuration screen and select Configure in the menu.The device server must be
assigned a unique IP address that is valid for your network. Both static and dynamic IP addresses are supported. The ip type
you can check the details
Consult with your network administrator if you are not sure how to set these parameters.You also can set different work mode
via the right side menu.you can check the details refer to Chapters 2 for a detailed explanation of different operating
modes and parameters.
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
14
www.usriot.com
Parameter
Default settings
Web server IP address
192.168.0.7
User name
admin
Password
admin
Configuration by web console
1.6.

1.6.1. Connect with Network

Connect one end of the Ethernet cable to the 10/100M Ethernet port and the other end of the cable to the Network .The device will indicate a valid connection to the Ethernet in the following ways: Open your browser User can connect PC to N510 through LAN port and enter Web Server to configure.
Web Server default parameters as follow:
Diagram 2 Web server default parameters
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
15
www.usriot.com
1.6.2.
After firstly connecting PC to K5, user can open browser and enter default IP 192.168.0.7 into address bar, then log in user name and password, user will enter Web site:
K5 is same as the normal web page server, which is convenient for user to setting parameter and query the status. The port of web page can be setting, default is 80. Steps:
Open the browser, fill the IP of K5, e.g.:192.168.0.7(IP address and PC in the same net segment.) Fill the user name and key word in the login web page, default is admin, click to enter.
TX Count: the data count sent from K5 to the external RX Count: the data count received by K5 from thee net. Remote IP/TX/RX:via it , you can see the device connected to the K5, and the sent count and received count.
Web page server
Figure 9 Web server
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
16
www.usriot.com
Note: under the UDP server mode, only send/received data, and no connected IP
1.6.3.
Serial-port and woke mode
The Serial Settings page is where you set the serial communication parameters for each device port. Settings
include baud rate, parity, and flow control. according to the direction of the dial code switch refer to Serial port
Figure 10 Serial-port settings
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
17
www.usriot.com
command name
Instr
AT+DNS
Setting and query the DNS address of K5
functions for a detailed explanation of Serial-port.And you also can set the different work mode that refer to
chapter 3.
1.6.4.
DNS servers are used to convert domain names into IP addresses that are recognized by the network. DNS server address can be set, which can realize domain name resolution in the case of imperfect local domain name server. Users can also set the address of specific DNS server according to requirements. When K5 needs domain name resolution, it will submit the resolution request to the DNS server set.Using is more flexible and reliable. In static IP mode, the default DNS server address is 208.67.222.222, and in DHCP mode, the DNS server address is obtained automatically. Version 4015 above support domain name server address can be set.
DNS Server Address

1.6.5. Short Connection

The aim to use this function is to save the resource of the server, usually used in the points to one point. Using the short connection can sure the current connection is the useful one, no extra control tools to screening.
Figure 11 DNS Setting Web page
Diagram 4 Reference AT Command
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
18
www.usriot.com
TCP short connection can sued in the TCP client, open it and send message. The connection will be broken automatically. This function default disable, the interval of disconnect can be configured after enable it, the range from 2 to 255s, default is 3s, the diagram is as fellow:
Figure 12 Disconnect Time
1.6.6.
If the TCP have no connection, the data that serial received will be placed in the cache, and the K5 serial port can receive 1K byte, after the TCP built, you can select is clear the cached data. Default disable. Under the Httpd client mode or the TCP client mode, enable the short connection and this function do not work.
Clear Buffer Data
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
19
www.usriot.com
Figure 13 Clear Buffer Data
1.6.7.
Restart timeout is to make sure the long and stable work of K5, when the net port or network can not receive data for long time, K5 will restart out the setting time to avoid abnormal conditions affect the connection. Time for restart can set in the webpage. The normal work time of this function set 60~3600s, default is 3600s. if setting time less than 60s, default to be 0 and turn off this function. The setting is as fellow:
Restart Timeout
Figure 14 Restart Timeout
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
20
www.usriot.com
1.6.8.
USR-K5 works in the TCP server mode, the max number of client to connect is 4, default is 4, the max number can be configuring as you want, which is be convenient for using. When the the number connecting clients more than 4, we should control the total data flow in 2.5KB/s if we need to send and receive meanwhile(not more than 200 bite/s). If the number is 16 now(e.g. the number you set is 4), default use the new link instead of the older one, also you can set to use the older one. The webpage are as fellow.
The number of the connected client
1.6.9.
Link pin can be used as indication pin for TCP connection status. When connected, it output low level; When
Link
Figure 15 Setting parameters
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
21
www.usriot.com
unconnected, high level. When K5 is under TCP model, Link pin will pull down. otherwise, it stays in high level. When K5 is under DUP model, Link pin will always pull down. By default, it is not checked.
1.6.10.
Reset used when the K5 fly or crash and can not built the normal connection,so can not work. Reset to initialize the module to resume normal operation. When working as TCP Client, K5 connects to TCP Server actively. When start Reset function, K5 try to connect to TCP Server for 30 times. If failed, K5 will restart automatically. By default, it won’t be chose.
1.6.11.
Index is to resolve the problem that under TCP server mode, K5 can not divide the data sources or send data to special client when user have more than 2 client to connect the K5. At most there can be 16 links when the K5 in the TCP server mode. The max number can set from 1to 16 as you want. Here we take the default number is 16 as example. Server send data to 16 clients, or the server receive the data from 16 clients, open the Index, mark to divide the different clients and user can recognize the data sources according to the mark, meanwhile send different data to special clients.
Reset
Index
1.After the server receive data, output 'I' 'N' data…… to user MCU via server serial port. I means receive; N means the data from which index ranging from 31 to 40 in hexadecimal.
2.User MCU fill 'O' 'N' data……via the server serial port, O means output, N means using which Index to sending, K5 server send data from serial port to net client port.(note o refers to the character “o”in ASCII and N is the character N, such as 1,2, etc)
3.K5 server port input 'C' 'N' 'M' to user MCU when the new TCP connected, means the current one is the
Figure 16 Index Software Setting
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
22
www.usriot.com
number N and on total there are M .
4.When there are 16 client to connected,if there is new connection to ask, input F,F to MCU.
5.Break off it, K5 server input 'D' 'N' 'M' to user MCU, N means the original number of connections deleted, and remaining M connections. Data transmission as the below:
Figure 17 Transmissions test
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
23
www.usriot.com
Security consideration
2.
Restore to the Factory Setting.
2.1.
1) Hardware restore: K5 supports the hardware restore to the factory setting. Keep putting down reload
pin 5s in powered condition, the put up and it will restore. Steps:power onkeep the reload pin downkeep for 5sput up.
2) Software restore: via the software setting and the net protocol sending command.
3) AT command restore: enter the AT command, AT +RELD to restore.

2.2.Network Upgrade Firmware

Web page upgrading firmware, stable and simple. Using this new function meets the custom requirement. If you need to upgrade, you can query us from the USR support: http://h.usriot.com and asking firmware from supply. The way to upgrade please reference Chapter 5 Setting software setting parameters

3. Configurations for Network and Serial port

There are five work modes for K5, including TCP Client, TCP Server, UDP Client, UDP Server and Httpd Client. Setting from the web page and the software setting, as below:
Figure 18 Work mode Setting
Note: Default IP address and type is static IP at 192.168.0.201. Default remote port:8234
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
24
www.usriot.com
command name
instr
AT+sock
Setting the work mode/target IP/ target port
Diagram 5 Related AT command

3.1.TCP Client

Figure 19 TCP Client
It has to be connected before transferring data.
1) In TCP Client Mode, K5 connects TCP Server actively, establish a connection to transmit date. According to the TCP protocol related rule, there difference for TCP client between connect and disconnect, to make sure the data exchange more stable. Usually used in the data interaction between device and server, which is the most common form of network communication.
2) In TCP Client Mode, support the function of identifying disconnected link. When connected, it will send keepalive package every 15s. If unconnected, it can be detected timely and enforce K5 to disconnect the former link to establish a new one.
3) When K5 try to connect remote server, if the local port number is not “0" ,it will establish a connection with the same source port every time.
4) Support synchronizing baud rate, USR-cloud and short connection function.
5) In a LAN, if the K5 is static IP, please keep K5 IP stay in the same network segment with gateway, and setting the gateway IP, otherwise can not work as normal.
6) note:keepalive, synchronizing baud rate and USR-cloud are more on the below.
7)Communication example
1 Software setting, take the K5 as a TCP client, remote IP:192.168.0.201,(for my PC is 172.16.11.8, so for
the next testing ,change remote IP to 172.16.11.8) remote port:8234, then save it. Research to make sure the parameters are right. Also you can set work mode, remote IP and remote port in the webpage then save and restart.
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
25
www.usriot.com
Figure 20 TCP Client Software
2 set the testing software as TCP server, local IP is the IP of the PC ,locally is 192.168.0.201, listen port is
8234 and click listening. Testing software show the 192.168.0.7:4117(distribute randomly). setting the right
Figure 21 TCP Client Web page Setting
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
26
www.usriot.com
serial port parameters and open the serial port. Note : default remote IP is192.168.0.201.But in order to keep the device and PC in the same network segment to make the communication correct so we change IP type as DHCP. Just likes the above picture.
3 Click send to receive the bi-direction data.
Figure 22 TCP Connection Testing
Jinan USR IOT Technology Limited
27
www.usriot.com

3.2.TCP Server

USR-LTE-7S5 User Manual technical support:h.usriot.com
Figure 23 TCP Server
1) In TCP Server Mode, K5 listens local port, it will response and establish a connection when there is a request. When the K5 receive the data, it will send it to all the client connected to K5, meanwhile, this mode can monitor the connect timely with keep alive function.
2) Usually it is used in the LAN communicating with TCP client. Adopt the case that more than one PC or phone asking data without server. Same as the TCP client ,there are different between connect and disconnect.
3) Support synchronizing baud rate.
4) TCP Client number is from 1 to 16, default value 4. the port is fixed., can not be set to 0.
5) If the number of the TCP client is more than 16, default kick the old one, and this function can be set via web page.
6) TCP server example
1 Set K5 as a TCP server via software setting, local port is 20108, then save. Also you can set via web
page.
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
28
www.usriot.com
Figure 24 TCP Server Software Setting
2 Testing software set to be TCP client, server IP is IP of K5 and the server port is port of the K5, then
connect.
Figure 25 TCP Server Web page Setting
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
29
www.usriot.com
UDP Client
3.3.
Figure 26 TCP Server Testing
1) The Model belongs to UDP Protocol.
2) In UDP Client Mode, TCP232-K5 won’t establish the connection actively.
3) It can communicate with the target port whose IP has been set. If data doesn’t come from this channel, it
Figure 27 UDP Client
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
30
www.usriot.com
will not be accepted by TCP232-K5.
4) In UDP Client Mode, if target IP is set as 255.255.255.255, it can realize function of entire network broadcast, also can receive broadcast data. 4015and the later vision support broadcast. e.g.xxx.xxx.xxx.255.
5) Example
1 Set the K5 as UDP client, remote port 8234
Figure 28 UDP Client Software Setting
Figure 29 UDP Client Web page Setting
2 Set the testing software as UDP, local IP is the IP of the PC, local port is the remote port for K5, the
connect. Setting the correct serial parameters and click to open the serial.
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
31
www.usriot.com
3 Send the send of the serial and receive the data,testing software remote IP and remote port change
into the IP and port of K5, then click the net send, send data to serial port.
UDP Server
3.4.
Figure 30 UDP Connection Testing
Figure 31 UDP Server
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
32
www.usriot.com
1) UDP server is a IP address do not verify the resource in the normal UDP. After receive every UDP package, change the target IP into data resource IP and port. When sending data, sending to the least IP and port.
2) Usually this mode, several net device communicate with module and do not want to use TCP for high frequency.
3) Example:
1 Set the K5 as UDP server, local port is 20108 2 Open the testing software, choose UDP and the local IP is IP of the PC, set the ports to be different,
e.g. 23 and 8234 in the below diagram, then click.
Serial Port Function
3.5.

3.5.1. Basic Parameters

Serial port basic parameters including: baud rate; data bits; stop bits; parity.
1.Baud rate: communicating speed of serial port, can be set from 600~230.4Kbps, support random baud rate.
2.Data bits:the range of it from 7, 8.
3.Stop bits:can set from 1 to 2.
4.Parity: support none, odd, even, mark and space Via the serial port parameters, keep the parameters of the K5 and device consistent to permit the normally communication.
Figure 32 Basic Parameters
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
33
www.usriot.com
3.5.2.
Since the data on the network is transmitted in the unit of data frames, it is necessary to send the frame data via serial port to the network, so as to transmit data more efficiently and quickly.K5 packages serial port data according to fixed packaging length and packaging time during data transmission.The default K5 packaging time is 4 bytes of packaging time and 400 bytes of packaging length. The frame mechanism of serial port is based on the packaging time and the packaging length.
1. Serial port packaging time: the default is 4 bytes of send time. The default package time of K5, the interval that serial port receive time more than 4 bytes packaging time, K5 packaging sending. E.g. baud rate is 115200K time for 4 bytes is 0.4ms, if the value less than 0.1ms, the package time calculate as 0.1ms. A formula to calculate as fellows:
Serial Port Framing
T=1/baud rate*10*4
2. Serial port package length: default package length is 400 bytes When K5 receive data from webpage, and then send to serial port. For the limited of the serial speed, the user need to control the flow, otherwise data overflow problems can be occur and drop the package. So when send data from network to serial port, please calculate the flow. Calculate way: if sending M bytes need N s. the way to check for possible overflow methods (if the net situation is ok, the time can be ignored ). The time for M bytes:
T=1/baud rate*10*m
If there is no overflow, M bytes of data must be transmit within Ns, then N>2T is require for K5 to work
properly.

3.5.3. RFC2217

Similar RFC2217 is a simple RFC2217 protocol, working with the VCOM and changing serial port parameters to realize the communication with variable serial port parameters. Enable this function, using USR-VCOM can open this function,which can realize the serial baud of the PC software and K5 automatically match. No need to pay attention to serial port baud rate setting.
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
34
www.usriot.com
Figure 33 Similar RFC2217 Function
Modify the serial port baud rate from 115200bps to 9600bps. FRC2217 can be set using software or webpage, default is enable. This function modify from RFC2217, promote the certainty for transmission. Length is 8 bytes.detailed note and the protocol content are as fellows(e.g. value is HEX).
1 Send the protocol to the device, if the requirements are met, the serial port parameters shall be set,
and no transparent transmission, if there is something wrong, the data package will be forwarded through the serial port as ordinary data.
Figure 34 RFC2217 Function
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
35
www.usriot.com
name
Package head
Baud rate
Median parameter
Parity sum bytes
331
1
instr
3 byte to reduce miscalculation
High in front, and the minimum is 600( 00 02 58 )
data/stop/parit y, next chart
Four sum except the package head .
115200,N,8,1
55 AA 55
01 C2 00
03
C6
9600, N,8,1
55 AA 55
00 25 80
03
A8 A no.
instr
value
Describe
1:0
data bits select
00
5 data bits
01
6 data bits
10
7 data bits
11
8 data bits
2
stop
00
1 stop
01
2 stop
3
Parity enable
00
Disable parity
01
Enable parity
5:4
Parity type
00
ODD
01
EVEN
10
Mark
11
Clear
7:6
none
00
Please fill 0
2 TCP Client, TCP Server, UDP Client, UDP Server and radio support this function. 3 The modify of this order effect in time, do not restart. Effective during this operation cycle, will not
save, power loss.
Diagram 6 RFC 2217 Function Protocol
Diagram 7 Serial Port Parameters Basic Meaning
Serial Port Parameters Basic Meaning
4 Enable Note:
1) When using RFC2217, click setting software RFC2217 to enable this function.
2) When the serial port parameters change, send the RFC2217 package, after K5 received the RFC2217 command, modify the serial parameters and can not transparent transmission.
5 E.g.
Protocol command:
55AA5501C2008346 setting serial port parameter is 115200 N,8,1
55AA550025808328 setting serial port parameter is 9600 N,8,1
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
36
www.usriot.com
Figure 35 Testing
Advanced Function
4.

4.1.Heartbeat Package

In the transparent transport mode, user can choose K5 to send heartbeat package. Heartbeat package can be sent to net server, also can send to serial port, but can not send in the same time. Sending to the net aimed at connecting with server, effect only in TCP client and UDP client. In the application of the server sending fixed query command to device, to reduce the communication flow. The user can choose using the serial port to send the heartbeat package instead of the heartbeat from server. 4015 and the later vision support heartbeat package. The longest content is 40 bite.
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
37
www.usriot.com
Figure 36 Heartbeat Web page
Registration package
4.2.
In the transparent transport mode, user can choose K5 to send registration package. Registration package is
Figure 37 Heartbeat Function
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
38
www.usriot.com
used to identify data sources or do as the code to get the server authorization. Registration package can be sent when the K5 built connection with server, also can installed in the head of the data package, as a data package. Registration package data can be MAC address or customize registration package data, where the custom registry setting content is up to 40 bytes. The connection setting and sending registration package is mainly used to connect the server that needs to be registered. The application diagram is as follows:
Figure 38 Building the Connection to Send Registration Package
Data carries the registration package: sending data in the front of the data access to the registration package,mainly for protocol transmission application diagram is as follows:
Figure 39 Data with Registration Package
Figure 40 Registration Package Web page
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
39
www.usriot.com

4.3.USR IOT CLOUD

USR IOT CLOUD for equipment manufacturers, engineering providers to provide a one-stop solution. It includes features such as cloud configuration and cloud detection. Cloud configuration can complete the Internet of things system with the functions of terminal equipment data collection, real-time control, alarm push, group management, configuration design and so on. Cloud detection can complete the remote configuration parameters, firmware upgrade, working status and network abnormal alarm.

4.3.1. Scada cloud

In this chapter,I will show you how to make connection between USR IOT CLOUD and N510 and the collection use MODBUS. Attend the IP address USR IOT Cloud: https://mp.usriot.com You need to register an account first, and then log in to this platform.
Figure 41 Log in
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
40
www.usriot.com
After logging in, add the data template :
Figure 42 Add the data template
Note: What's the difference between edge computing and cloud collection?
Edge calculation: data collection and analysis are carried out by the networking module, and then reported to
the cloud according to certain rules. Suitable for high frequency (second level) acquisition application scenarios,
local high frequency acquisition after reporting to the cloud, cloud data storage and display.
Products supporting edge computing: PLCNET series, G780V2 (after firmware version V1.1.0)
Cloud collection: the host in the cloud polls the terminal equipment according to a certain rule. The networking
module only does data transmission and converts serial port signal into network signal and sends it to the cloud.
Suitable for low frequency (minute level) acquisition scene.
Jinan USR IOT Technology Limited
41
www.usriot.com
Nest step add slave name and protocol :
USR-LTE-7S5 User Manual technical support:h.usriot.com
Figure 43 Slave address
Note
Slave name: Custom name, you can fill in the serial device name.
Slave address: Fill in the serial device address.
Add variable parameter:
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
42
www.usriot.com
Figure 44 Set variable parameter
Note: Variable name: Custom name, such as temperature, humidity, DI1, DO2 Register: It is the same as the register of the configuration software. Fill in the decimal register address. Function code 03H or 06H, starting address 0000H, register is 4 and address filling 1; Function code 04H, starting address 000AH, register is 3, address filling 11; Function code 01H or 05H, starting address 0002H, register is 0 and address is 3; If the function code is 02H and the start address is 0003H, the register is 1, and the address is filled with
4.
Data format: Select the format based on the size of the numeric range and the numeric type. Collection frequency: Select the collection frequency or choose to report actively. Storage type: Variable storage or All storage. Add new device set the parameter such as the name ID and the template.
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
43
www.usriot.com
Figure 45 Add device
Press “save” and the new device will appear in the device list,and we can press view in order to check the default ID and password.Next,we open the M4 Set-up software or Web server to set some parameters: Remote server to be connected is: tcp.mp.usriot.com. Port number: 15000. Enable USR Cloud: Fill in the ID and password obtained from the cloud platform. If you need to change the serial port parameters, you can change them in the setup software. After setting the parameters, click save and restart the device.
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
44
www.usriot.com
Figure 46 parameter settings
At last, The device will be online in the device list.
In this document, I connect the RS232 serial port of the N510 to a computer through a serial port to USB cable for local testing. I used a MODBUS Slave software to simulate sending data from the serial port
Figure 47 Equipment online
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
45
www.usriot.com
Figure 48 Modbus software settings
When data is sent from the serial port of the device, you can see the data display in the cloud.
Figure 49 Data display
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
46
www.usriot.com
Serial to Ethernet
5.
Figure 50 VCOM
Receive the data assigned VCOM data, and send it in the data of net data using VCOM to solve the PC as a serial port and can not connect with device,which is convenient for users.
User can download VCOM software from:
https://www.usriot.com/support/downloads/usr-vcom-virtual-serial-software.html.
Figure 51 Virtual com software
Through this software user can set up connection between k5 and virtual serial to solve the problem that
traditional equipment PC software used in serial port communication way. The specific operation is as follows
Set the k5 parameter :Set the work mode TCP Client ,Address and port is 192.168.0.144 and 8899.
Figure 52 Parameter configuration
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
47
www.usriot.com
Open Virtual Serial software to set TCP server parameter and remember the serial-port number(Com 10).
Figure 53 Virtual port
Open two USR-TCP232-Test software and then open Virtual port number (Com 10) and device port number ,After send message each other:
Figure 54 Data transmissions
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
48
www.usriot.com
Parameter Setting
6.
This character mainly to introduce how to setting the K5 parameters and achieve their own personalized application through parameter settings Including setting software setting parameter, web page setting parameter and serial setting parameter. User setting steps: Modify the user name and password→ setting the access way to the IP address→ serial parameter→ the related parameters for working method. To ensure the normal using of software, the following steps are necessary
1.When using setting software to setting parameter, K5 and the PC of the setting software are in a LAN.
2.Close the antivirus software and firewall software.
3.Close the irrelevant network card.

6.1.Net Protocol Setting Parameters

6.1.1.
Open the software setting and click search. Download link: https://www.usriot.com/support/downloads/usr-m0-setup-software-v224288.html Search all the K5 in the LAN, including current IP, device name, MAC and version of the K5.
Setting Software Setting Parameters
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
49
www.usriot.com
Figure 55 Searching Device
Click the K5, enter the password and you can see the detailed parameters of the K5. if wrong, there will be the window for username and password. Fill them and enter. Default username and password:admin(software setting default username and password are admin, so under default condition,the setting software will not pop-up the window.
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
50
www.usriot.com
Figure 56 Username and Password
Click the searching device and you can see the basic parameters needed to set, combined with the function introduction of the third chapter, setting the parameter you need, then click the save. Then you are succeed to modify the parameters you have change, others keep default.
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
51
www.usriot.com
Figure 57 Basic Parameters
HTTP port: the port default is 80 Username: the login username of K6, the authentication code for modify the parameter, can prevent
other users modify the parameters of K6 in LAN.
Pass word: the password of the K6, correspond with username. Device name: the K6 name can be customize. IP type: static IP and DHCP Static IP: the static IP of K6, please put it in the same LAN when setting it. Subnet masks: default is 255.255.255.0 Gateway: usually is the router IP, after correct setting you can communicate across the LAN and do the
domain name resolution.
1. Serial port parameters
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
52
www.usriot.com
Figure 58 Serial Port Parameters
Serial baud rate: the baud rate for serial port communication, both standard and customize baud rate are
ok.
Parity/data/stop: serial port parameters Work mode: TCP Server /TCP Client/UDP Client/UDP Server Remote IP: when K5 works in TCP client, UDP client as a client, the IP or domain name of the server that it
connected.
Similar RFC2217: used if need to change the serial port in transport. Use with V-COM or you can
reference the software manual.
2. Firmware Upgrade If the module firmware need to upgrade to the high vision,user can consult with sales to get the upgraded firmware and click the device, upgrade the vision. When you upgrade it, connect directly the device and PC and notice that PC upgrading module is forbidden. Select the device and right click, then upgrade the firmware.
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
53
www.usriot.com
Figure 59 Firmware Upgrade
6.1.2.
Setting Protocol Setting the Parameters
We set special protocol on the net setting. To be convenient to set across the net, all communication protocol adopted UDP mode, the lower is in front. When setting, make sure the remote port is 1500 for UDP communication, the local port is random and all the communication protocol using UDP.
1. Net setting parameters steps
1 Built socket:
Build a UDP socket, remote IP :255.255.255.255, remote port:1500, lower is in front.
2 Setting command steps
Send searching order on the internet. K5 return the IP address, MAC, device name and version. Net port read the parameter that K5 returned. Combine the MAC address the username, password and the parameter that need setting to be a setting
command.
Send setting command and restart. K5 return setting right. Restart command. The return command of K5 right (wrong).
2. Net setting command content Net setting protocol command means upper send command via net to modify the protocol command of the
Jinan USR IOT Technology Limited
54
www.usriot.com
module or the server.
function
Packag e head
length (order~ parameters bit)
order
MAC (6 bits)
Username and password (12 bits)
parameters
Parity (sum)
search
FF0101---02
restart
FFxx02
[MAC]
[usrname] [password]
-
xx
Read setting
FFxx03
[MAC]
[usrname] [password]
-
xx
basic setting
FFxx05
[MAC]
[usrname] [password]
basic parameters
xx
serial port 0 setting
FFxx06
[MAC]
[usrname] [password]
serial port parameters
xx
reset
FFxx0b
[MAC]
[usrname] [password]
-
xx
USR-cloud
FFxx0c
[MAC]
[usrname] [password]
serial port parameters
xx
Heartbeat/ registration package setting
FFxx21
[MAC]
[usrname] [password]
serial port parameters
xx Httpd URL
setting
FFxx22
[MAC]
[usrname] [password]
Httpd URL
xx
Httpd package head setting
FFxx23
[MAC]
[usrname] [password]
Httpd package head
xx Extend
setting
-------
1 Command query
USR-LTE-7S5 User Manual technical support:h.usriot.com
Diagram 8 Command Query
To make sure the accuracy of the command, we setting the algorithm and check of sending command in protocol: the parity is sum parity: begin at the length add to the first digit of the parity. The sum is the value to parity, and reserve the lower bits.
2 Search command
Search command is: FF 01 01 02, parity sum 02 = 01 + 01.
3 Restart command
Send (22 bits ) FF 13 02 D8 B0 4C 46 35 CA 61 64 6D 69 6E 00 61 64 6D 69 6E 00 40, parity sum: 40 = 13 + 02 + ... + 6E + 00, from 4th to 9th is the address of the MAC, the last 12 bits in front add the parity is the user name and password. These are 6 bits, add 0 if less than 6 bits.
Note: the last one of the username and password is 0,below are same.
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
55
www.usriot.com
Name
bits
E.g.
Instr
Uc Sequence Num
100reserve package head
Uc CRC
100reserve package head
Uc Version
100reserve package head
Uc Flags
1
C0
8this 0: DHCP: 1: static IP 6this 0: long connection: 1: short connection 5this 0: not clear cache: 1: clear cache
Us Location URL Port
2
00 00
Not enable,reserve the protocol
Us HTTP Server Port
2
50 00
HTTP server port
Uc User Flag
100Not enable,reserve the protocol
Ul Static IP
4
07 00 A8 C0
Static IP
Ul Gateway IP
4
C9 00 A8 C0
Gateway
Ul Subnet Mask
4
00 FF FF FF
Subnet Mask
Uc Mod Name
14
55 53 52 2D 4B 32 00 00 00 00 00 00 00 00
Mod Name Protocol reserve
2
00 00
0
username
6
61 64 6D 69 6E 00
username
password
6
61 64 6D 69 6E 00
password
Uc Net Send Time
100Not enable,reserve the protocol
Ui Id
2
01 00
device ID
Uc Id Type
1
00
8this 1: RFC2217 on, 0: RFC2217 off: 7this 1: index on: 0: index off: 6this 1: link light on: 0: link light off: 5this 1: reset on: 0: reset off 2this 1: send data carry ID: 0: off 1this 1: build connection send ID: 0: off
mac_add rs
6
D8 B0 4C 11 22 33
Device MAC address
DNS Gateway IP
4
01 00 A8 C0
DNS server address
TC_sh_time
103The time for short connection
4 Read setting command
Send (22bits): FF 13 03 D8 B0 4C 46 35 CA 61 64 6D 69 6E 00 61 64 6D 69 6E 00 41, parity sum: 41 = 13 + 03 + ... + 6E + 00, from 4th to 9th is the address of the MAC, the last 12 bits in front add the parity is the user name and password. These are 6 bits, add 0 if less than 6 bits.
5 Basic parameter setting command
Basic setting command including 67 basic parameters. Setting For better Settings, here are some examples: sending: FF 56 05 D8 B0 4C 46 35 CA 61 64 6D 69 6E 00 61 64 6D 69 6E 00 95 63 03 00 00 00 50 00 00 07 00 A8 C0 01 00 A8 C0 00 FF FF FF 55 53 52 2D 4B 32 00 00 00 00 00 00 00 00 00 00 61 64 6D 69 6E 00 61 64 6D 69 6E 00 00 01 00 E0 D8 B0 4C 46 35 CA 00 00 00 00 03 00 00 00 59, parity bits is still parity sum algorithm: 59 = 56 + 05 + D8+ ... + 03: from 4th to 9th is the address of the MAC, from 10th to the 22th is the username + password, the latter bits is fixed length basic setting parameters. The last bit is the parity sum.
Diagram 9 Basic Parameter Web Setting
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
56
www.usriot.com
Uc Reserved
3
00 00 00
Not enable,reserve the protocol
name
bits
E.g.
Instr
Ul Baud Rate
4
00 C2 01 00
Serial port baud rate
Uc Data Size
108Serial port data bits(0X05/0x06/0x07/0x08)
Uc Parity
1
01
Serial port parity 1: no, 2: odd, 3: even, 4: mark, 5: space
Uc Stop Bits
101Serial port stop(0x01/0x02)
Uc Flow Control
100Not enable,reserve the protocol
Ul Telnet Timeout
4
00 00 00 00
Not enable,reserve the protocol
Us Telnet Local Port
2
8C 4E
Local port
Us Telnet Remote Port
2
2a 20
Remote port
Ui Telnet URL
30
31 39 32 2E 31 36 38 2E 30 2E 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Send the IP address or domain name in ASCII code, e.g:92.168.0.201 (remote IP setting)
Ul Telnet IP Addr
4
00 00 00 00
No effect, set randomly
Uc Flags
1
00
5th is 0: disable USR-cloud: 1: enable USR-cloud: 6th is 0: TCP Server mode do not click the order one. 1: TCP Server mode click the order one. 7th is 0: close MAC registration package: 1: MAC do as registration package:
Uc Work Mode
1
01
Work mode: 0: UDP, 1: TCP Client, 2: UDP Server, 3: TCP Server, 4: HTTPD Client
HTP uc Flags
1000: HTTPD GET: 1: HTTPD POST
tc_number
1
04
The number of client that TCP Server
connected
Timeout_restart
2
00 00
Restart timeout
cos_register_flag
100Customize registration package
Uc Time Count
191Please withe the read fetch value as it is
Ui Pack Len
2
00 00
Not enable,reserve the protocol
Uc Reserved
3
00 00 00
Not enable,reserve the protocol
6 Serial port parameters command
There are 63 bits to setting net port and serial port parameters, so this command is of high value. Here is a example to show how to use:(sending 63 bits): FF 52 0 4C 46 35 CA 61 64 6D 69 6E 00 61 64 6D 69 6E 00 00 C2 01 00 08 01 01 01 00 00 00 00 8C 4E 2A06 D8 B 20 31 39 32 2E 31 36 38 2E 31 2E 31 33 33 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 85 01 A8 C0 01 03 00 04 10 0E 00 00 00 00 00 00 00 16, parity bits algorithm: 16 = 52 + 06 + ... + 00; from 4th to 9th is the address of the MAC, from 10th to the 22th is the username + password,then is the port parameters + 1bits and parity.
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
57
www.usriot.com
Name
Bits
E.g.
Instr
H_R_uc Flags
1
00
Heartbeat registration package mark: 1th is 1: send heartbeat package to net port 2th is 1: send heartbeat package to serial port; 3th is 1: connected sending to registration package: 4th is 1: data carry registration package: 5th is 1: Httpd information drop package head 6th is 1: serial port setting parameters function on 7th is 1: heartbeat package hexadecimal input 8th is 1: registration package hexadecimal input
heart_times
2
00 1e
Heartbeat time
heart_len
100Length of heartbeat package
register_len
100Length registration package
heartbeat
40
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Heartbeat package content register_s
40
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Registration package content
Diagram 10 Serial Port Parameters
7 Restore to factory command
Send: FF 13 0B D8 B0 4C 46 35 CA 61 64 6D 69 6E 00 61 64 6D 69 6E 00 49: parity sum: 49 = 13 + 0b+ ... + 6E + 00: from 4th to 9th is the address of the MAC, from 10th to the 21th is the username + password, These are 6 bits, add 0 if less than 6 bits.
8 USR IOT Cloud command
Send: FF 13 0c 00 71 77 7c 42 2F 61 64 6d 69 6e 00 61 64 6d 69 6e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 08; Parity sum: 07 = 13 + 0c + ... + 6E + 00+...+00: From 4th to 9th is the address of the MAC, from 10th to the 21th is the username + password, These are 6 bits, add 0 if less than 6 bits. The later are the USR IOT Cloud ID and password of device, the last one is parity.
9 Heartbeat/registration package command
Send: FF 68 21 D8 B0 4C 46 35 CA 61 64 6D 69 6E 00 61 64 6D 69 6E 00 04 1E 00 0A 0A 77 77 77 2E 75 73 72 2E 63 6E 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 77 77 77 2E 75 73 72 2E 63 6E 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 C2: Parity sum: C2 = 68 + 21 + ... + 6E + 00+...+00: From 4th to 9th is the address of the MAC, from 10th to the 21th is the username + password. These are 6 bits, add 0 if less than 6 bits. The later are sending direct of heartbeat package and registration package, heartbeat time0, length of the heartbeat, length of registration package, heartbeat package, registration package, heartbeat package and registration package. These are 40 bits, add 0 if less than 40. The last one is parity.
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
58
www.usriot.com
00 00 00 00 00 00 00 00 00 00 00 00 00 00
Name
Bits
E.g.
Instr
url_len
100Length of Httpd URL
httpd_send_url
10000Httpd Client URL
name
Bits
E.g.
instr
head_lenn
100Length of Httpd Client
httpd_send_btemp
20000Httpd Client package head
name
bits
E.g.
Instr
TAG_STATUS
0FFfixed number
Diagram 11 Heartbeat Registration Package Net Setting
10 HTTPD client header setting
Setting URL protocol
Diagram 12 URL Protocol
Send : FF 78 22 D8 B0 4C 44 85 64 61 64 6D 69 6E 00 61 64 6D 69 6E 00 07 2F 31 2E 70 68 70 3F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 C9; Parity sum: C9 = 78 + 22 + ... + 3F + 00+...+00: From 4th to 9th is the MAC address of the module, the later 12 is username and password, these are 6 bits add 0 if less than 6, the last one is parity. Setting package setting
Diagram 13 Package setting
Send: FF DC 23 D8 B0 4C 44 85 64 61 64 6D 69 6E 00 61 64 6D 69 6E 00 07 2F 31 2E 70 68 70 3F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2A 55 73 65 72 5F 41 67 65 6E 74 3A 20 4D 6F 7A 69 6C 6C 61 2F 34 2E 30 0D 0A 43 6F 6E 6E 65 63 74 69 6F 6E 3A 20 63 6C 6F 73 65 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 CF: Parity sum: CF = DC + 23 + ... + 65 + 00+...+00: From 4th to 9th is the MAC address of the module, the later 12 is username and password, these are 6 bits add 0 if less than 6, the last one is parity.
3. Net return the command
1 The result of search command return
The result of search command return( 36 bits): FF 24 01 00 00 c0 a8 00 07 00 71 77 7c 42 2F 01 0c 00 00 55 53 52 2d 4b 32 00 00 00 00 00 00 00 00 00 00 F2, Parity way is reduce parity sum, the initial value is 0x00, reduce every bits in order, algorithm is as fellow: F2 = 00 - FF - 24 - 01 - 00 - 4B - ... - 32 – 00-…-00.
Diagram 14 Return Command
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
59
www.usriot.com
Packet_length
124fixed number
CMD_DISCOVER_TARGE T
201fixed number Board_type
300fixed number
Board_ID
400fixed number
Client_IP_address
5~8
C0 A8 00 07
device IP( higher in front )
MAC_address
9~14
AC CF 23 20 FE 3D
device MAC( higher in front )
Firmware_version
15~18
01 00 00
Firmware version
Application_title
19~34
55 53 52 2D 4B 32 00 00 00 00 00 00 00 00 00 00
device name
checksum
35
F0
(this value can be ignore) Check sum initial value is 0x00, reduce every bits of TAG_STATUS in order,till the last bit, and the result is checksum.
2 Restart command return result
Respond (4 bits): FF 01 02 4B if the password right 4B = 'K'
FF 01 02 50 username password wrong 50 'P'
3 Read order command return result
The return are all the parameters, total 576, no parity and protocol, return parameters directly. Method of reading reference “basic parameters chart” “serial parameters chart”and USR-cloud function, heartbeat registration package function and Httpd Client package head setting. Return divide into 4 package, including 130 bits, 50bits, 85 bits and 302 bits.
Respond e.g.: 95 63 03 00 00 00 50 00 00 07 00 A8 C0 01 00 A8 C0 00 FF FF FF 55 53 52 2D 54 43 50 32 33 32 2D 33 31 30 00 00 61 64 6D 69 6E 00 61 64 6D 69 6E 00 00 01 00 A4 AC CF 23 20 FE 10 00 00 00 00 00 00 00 00 80 25 00 00 08 01 01 01 00 00 00 00 8C 4E 2A 20 31 39 32 2E 31 36 38 2E 31 2E 31 33 33 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 85 01 A8 C0 00 01 00 00 00 00 00 00 00 00 00 00 00:
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00:
07 2F 31 2E 70 68 70 3F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2A 55 73 65 72 5F 41 67 65 6E 74 3A 20 4D 6F 7A 69 6C 6C 61 2F 34 2E 30 0D 0A 43 6F 6E 6E 65 63 74 69 6F 6E 3A 20 63 6C 6F 73 65 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
60
www.usriot.com
password fault: FF 01 03 50, the return data have no parity.
4 Basic parameters setting command return result
Setting correct return: FF 01 05 4B if the password right 4B = 'K':
FF 01 05 50 username password wrong 50 'P'.
5 Serial parameters setting command return result
Setting correct return: FF 01 06 4B if the password right 4B = 'K':
FF 01 06 50 username password wrong 50 'P'.
6 USR-cloud parameters setting command return result
Setting correct return: FF 01 06 4B if the password right 4B = 'K':
FF 01 06 50 username password wrong 50 'P'.
7 Heartbeat registration package parameters setting command return result
Setting correct return: FF 01 06 4B if the password right 4B = 'K':
FF 01 06 50 username password wrong 50 'P'.
8 Httpd URL setting command return result
Setting correct return: FF 01 22 4B if the password right 4B = 'K':
FF 01 22 50 username password wrong 50 'P'.
9 Httpd package head command return result
Setting correct return: FF 01 23 4B if the password right 4B = 'K':
FF 01 23 50 username password wrong 50 'P'.
10 Other return
Parity and return: return 'E' + right value: Correct perform: FF 01 CMD‘K’: Username password wrong return: FF 01 CMD‘P‘: Other wrong return: FF 01 CMD‘E’.
4. Message monitoring method If you want to get some real message using the way as below:the tool is setting softwareUSR-M0:
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
61
www.usriot.com
Figure 60 Catch the Message
Web page Setting Parameters
6.2.
Open the browser and enter the IP of K5, default is (192.168.0.7). filled the user name: admin and password: admin, then login and you can enter the login page.
Figure 61 Username and Password
Click the English or Chinese on the right upper to switch the language.
1. Current status
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
62
www.usriot.com
Figure 62 Current Status
This page show song information of the K5
Module name Current IP address MAC address IP of the connected device and the sent of receive number of the data. Total number of connection receive or send
2. Local IP Configure
Modify the parameters and save,then modify the parameter in next page. If the parameter need not to modify ,click the restart and work. IP type
Figure 63 Local IP Configure
Jinan USR IOT Technology Limited
63
www.usriot.com
Static IP Subnet masks Gateway DNS server
3. Serial port
USR-LTE-7S5 User Manual technical support:h.usriot.com
Baud rate Data Parity Stop Local port Remote port Work mode Remote server address Special functions
4. Expand Function
Figure 64 Serial Port
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
64
www.usriot.com
Figure 65 Expand Function
USR-cloud number and password Customize heartbeat package: open with webpage, content customize and the max number is 40bite Customize registration package: open with webpage, content customize and the max number is 40bite,
the method to use can be customize
Short connection: enable under the TCP client and the time can be customize Clear buffer data: whether or not TCP server-kick off old connection Serial port parameter setting: open with webpage and setting with serial port parameter
5. Miss configure
Module name Web server port Username
Figure 66 Miss configure
Jinan USR IOT Technology Limited
65
www.usriot.com
Password MAC address Max client connected to TCP server Reset timeout
6. Reboot
Figure 67 Reboot
Save all the data and restart, then the K5 work.
USR-LTE-7S5 User Manual technical support:h.usriot.com
AT Command
7.
AT command is used for controlling module. You can use AT command to configure and query the settings. Later we will interpret the type in detail.
7.1.1.
AT+ command is the command collection that perform the command transport using UART and module under the order mode. Later we will interpret the type in detail. Powered successfully, we can setting the module with UART. The default UART port parameters of the module are: baud rate1152000, no parity, data 8 and stop 1. Instr AT command test tools.UART interface recommend to use secure CRT software tool or USR pro APP. Below are using the secureCRT with UART to perform.
From transparent transport to order mode need two step as below:
Fill “+++”in the UART. After the module receive the “++++”,it will send a “a” to confirm;
Fill the confirming “a” in the UART, after the module receive and send “+ok”, enter the command mode.
AT Command Overview
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
66
www.usriot.com
Figure 68 Enter the AT Command
Instr: if no feedback after fill “++++”and “a”, as the above. Fill “+++”and “a” need to achieve in the time to reduce the chance of entering command mode while working normally accidentally. Detail requirement are as fellows.
Figure 69 Time Tree
Time requirement: T1>the interval of serial port package T2<50ms T3<50ms T5<3s The order change into temporary command mode from transparent transport mode:
1. Serial mode device send “+++”to module continuously. The module receive and send “a” back. Before sending“+++”is the packaging time and can not send any data.
2. After receive “a” feedback a “a”in 3s.
3. After the module receive “a, send “ok”to the device, and enter “AT”command
4. After the device receive “+ok” and know the module enter the AT command mode, then send AT command. The order change into net transparent transport from AT command mode:
1.Serial device send “AT+ENTM”to module.
2.After the module receive the command, feedback “+ok”, then back to the previous working mode.
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
67
www.usriot.com
Error code
Instr
-1
Invalid format
-2
Invalid order
-3
Invalid operator
-4
Invalid parameter
-5
Not allow
Num
command
Instr
1EEnable/disable the echo function
2Zrestart module
3
VER
Query the vision
4
ENTM
Exit AT command mode
5
RELD
Reset default settings
6
MAC
Query module MAC address
7
WEBU
Setting/ query username and password
8
WANN
Setting/ query WAN port parameters
9
DNS
Setting/ query DNS server address
10
WEBPORT
Setting/ query webpage port
11
UART
Setting/ query serial parameters
12
SOCK
Setting/ query SOCK parameters
3
TCPSE
Setting/ query whether kick off order connection
14
SOCKLK
Query TCP connect status
15
SOCKPORT
Setting/ query local port number
16
RECEN
Setting/ query RFC2217 enable
17
PDTIME
Query the product time
Registration package function
18
REGEN
Setting/ query registration package mechanism
19
REGTCP
Setting/ query registration package perform mechanism
20
REGCLOUD
Setting/ query USR-cloud username and password
21
REGUSR
Setting/ query the content of registration package that customized
Heartbeat package
22
HEARTEN
Setting/ query heartbeat package enable
23
HEARTTP
Setting/ query method of the heartbeat package send
24
HEARTTM
Setting/ query the heartbeat package time
25
HEARTDT
Setting/ query customize heartbeat package
7.1.2.
AT Command Error Code

7.1.3. AT Command

Error Code List
Jinan USR IOT Technology Limited
68
www.usriot.com
Expand function command
26
SCSLINK
Setting/ query the indicating function of the status of socket connection
27
CLIENTRST
Setting/ query the TCP client mode reset function enable/disable
28
INDEXEN
Setting/ query index function
29
SOCKSL
Setting/ query short connection function
30
SHORTO
Setting/ query short connection time
31
UARTCLBUF
Setting/ query clear serial port cache before module build connection function enable/disable
32
RSTIM
Setting/ query timeout reset time
33
MAXSK
Setting/ query maximum client connections in TCP server mode
34
MID
Setting/ query module name
35
SEARCH
Search the port and key words in the LAN
36HQuery help message

7.1.4. AT Command Details

USR-LTE-7S5 User Manual technical support:h.usriot.com
AT Command
7.1.4.1.
Function: query/ setting module echo of the AT command setting Format: query:
Parameters: ON: enable the echo, echo the command entered by the AT command.
E.g.: AT+E=0N
AT+E
A+E<CR> <CR><LF>+OK=< on/off ><CR><LF>
setting:
A+E=< on/off ><CR> <CR><LF>+OK<CR><LF>
OFF: under AT command mode, the entered command do not echo.

7.1.4.2. AT+Z

Function: restart module Format: setting:
AT+Z<CR>
<CR><LF>+OK<CR><LF> Parameters: none <note>: after perform this command correctly, module restart and exit the AT command mode.
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
69
www.usriot.com
7.1.4.3.
Function: query module firmware version. Format: query:
Parameters: ver: query module firmware version.
AT+VER
AT+VER<CR>
<CR><LF>+OK=< ver ><CR><LF>

7.1.4.4. AT+ENTM

Function: exit the AT command mode and enter the transparent transmission: Format: setting:
AT+ENTM<CR>
<CR><LF>+OK<CR><LF> Parameters: none <note>: after perform this command correctly, module change into command mode from transparent transmission mode.
7.1.4.5.
Function: module reset Format: setting:
parameters: none.
AT+RELD
AT+RELD<CR>
<CR><LF>+OK<CR><LF>

7.1.4.6. AT+MAC

Function: query module MAC Format: query:
AT+MAC<CR>
<CR><LF>+OK=< MAC ><CR><LF> parameters: mac: MAC address of the module( e.g.00020K2050A )
7.1.4.7.
AT+WEBU
Function: setting /query module username and password Format: query:
AT+WEBU<CR>
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
70
www.usriot.com
<CR><LF>+OK=< username,password ><CR><LF>
setting:
AT+WEBU=< username,password ><CR>
<CR><LF>+OK<CR><LF> Parameters: username: username, support 5 bytes at longest and can not be none:
password: password, support 5 bytes at longest. E.g.: AT+WEBU=admin,admin

7.1.4.8. AT+WANN

Function: setting /query the IP of WAN( DHCP/STATIC ) that module access Format: query:
AT+WANN<CR>
<CR><LF>+OK=< mode,address,mask,gateway ><CR><LF>
setting:
AT+WANN=< mode,address,mask,gateway ><CR>
<CR><LF>+OK<CR><LF> Parameters: mode: web IP mode ( static/DHCP )
static: static IP DHCP: dynamic IP( address,mask,gateway parameters ignore ) address: IP address mask: subnet masks gateway: gateway address
E.g.: AT+WANN=static,192.168.0.7,255.255.255.0,192.168.0.1
7.1.4.9.
Function: setting /query DNS server address: Format: query:
Parameters: address: DNS server address( default value is 208.67.222.222 ). E.g.: AT+DNS=208.67.222.222
AT+DNS
AT+DNS<CR>
<CR><LF>+OK=< address ><CR><LF>
setting:
AT+DNS=< address ><CR>
<CR><LF>+OK<CR><LF>

7.1.4.10. AT+WEBPORT

Function: setting /query webpage port
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
71
www.usriot.com
Format: query:
AT+WEBPORT<CR>
<CR><LF>+OK=< port ><CR><LF>
setting:
AT+WEBPORT=< port ><CR>
<CR><LF>+OK<CR><LF> Parameters: port: module the port of the web server that built in of module. default 80: E.g.: AT+WEBPORT=80

7.1.4.11. AT+UART

Function: setting /query UART interface parameters Format: query:
AT+UART<CR>
<CR><LF>+OK=< baudrate,data_bits,stop_bit,parity,flowctrl ><CR><LF>
setting:
AT+UART=< baud rate,data_bits,stop_bit,parity,flowctrl ><CR><LF>
<CR><LF>+OK<CR><LF> Parameters: baudrate: baud rate600~460800bps,can be customized .
data_bits: data 5678 stop_bits: stop 12
parity: parity NONE( no parity ) EVEN(even parity ) ODD( odd parity ) MASK(1 parity) SPACE( 0 parity ) Flowctrl: flow control( none flow control, can not setting , default setting to be the NFC ) NFC: none: hardware flow control FCH: have hardware flow control FCR: software flow control
E.g.: AT+UART=115200,8,1,NONE,NFC
7.1.4.12.
Function: setting /query web protocol parameters format Format: query:
AT+SOCK<CR>
<CR><LF>+OK=< protocol,IP,port ><CR><LF>
setting:
AT+SOCK=< protocol,IP,port ><CR>
AT+SOCK
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
72
www.usriot.com
<CR><LF>+OK<CR><LF> Parameters:
Protocol: protocol type, including TCPS is TCP server TCPC is TCP client UDPS is UDP server UDPC is UDP client HTPC is Httpd Client IP: when the module setting into “CLIENT”mode, the IP address and domain name of the remote
server.
Port: local port under Server mode and remote port under Client mode,decimal number and less than 65535. E.g.: AT+SOCK=TCPC,192.168.0.201,8234

7.1.4.13. AT+TCPSE

Function: module is TCP Server, the processing mechanism after the connection reaches the maximum number of connections. Format: query:
AT+TCPSE<CR> <CR><LF>+OK=< status ><CR><LF>
setting:
AT+TCPSE=< status ><CR> <CR><LF>+OK<CR><LF>
Parameters:
Status: setting status keep/kick
keep: after reach the maximum number of connection, do not receive new one.
kick: after reach the maximum number of connection, delete the order one and connect the new one. E.g.: AT+TCPSE=keep
7.1.4.14.
Function: query whether the TCP has connected Format: query:
AT+ SOCKLK<CR> <CR><LF>+OK=< sta ><CR><LF>
Parameters:
Sta: built the TCP connection or not
Connect: TCP connected
Disconnect: TCP not connected
AT+SOCKLK
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
73
www.usriot.com
7.1.4.15.
Function: setting /query local socket port Format: query:
setting:
Parameters:
Sta: 0 is using port randomly. 1-65535 is using the local port of the socket. E.g.: AT+SOCKPORT=20108:
AT+SOCKPORT
AT+SOCKPORT<CR> <CR><LF>+OK=< sta ><CR><LF>
AT+ SOCKPORT =< sta ><CR> <CR><LF>+OK<CR><LF>

7.1.4.16. AT+RFCEN

Function: enable/ disable RFC221 7function Format: query:
AT+RFCEN<CR> <CR><LF>+OK=< status ><CR><LF>
setting:
AT+RFCEN =< status ><CR> <CR><LF>+OK<CR><LF>
Parameters:
status:
ON: enable RFC2217function
OFF: disable RFC2217function E.g.: AT+RFCEN=ON
7.1.4.17.
Function: query produce time Format: query:
AT+PDTIME<CR> <CR><LF>+OK=< time ><CR><LF>
Parameters:
time: produce time, e.g.: 2016-10-18 11:20:02
AT+PDTIME
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
74
www.usriot.com
7.1.4.18.
Function: setting query registration package mechanism Format: query:
setting:
Parameters:
status:
MAC: enable registration package mechanism, registration package is 6 bites MAC
Usr: customize registration package
Off: disable registration package mechanism E.g.: AT+REGEN=MAC
AT+REGEN
AT+REGEN<CR> <CR><LF>+OK=< status ><CR><LF>
AT+REGEN =< status ><CR> <CR><LF>+OK<CR><LF>

7.1.4.19. AT+REGTCP

Function: setting query tcp client mode registration package perform mechanism Format: query:
AT+REGTCP<CR> <CR><LF>+OK=< status ><CR><LF>
setting:
AT+REGTCP =< status ><CR> <CR><LF>+OK<CR><LF>
Parameters:
Status:
first: send a registration package when connected the server at first time
every: add a registration package in front of the every data package sent to server.
all: send registration package when first connected to the server and add registration package in front of the data package. E.g.: AT+REGTCP=first
7.1.4.20.
Function: setting /query USR-cloud username and password Format: query:
setting:
AT+REGCLOUD
AT+REGCLOUD<CR> <CR><LF>+OK=< name, password ><CR><LF>
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
75
www.usriot.com
AT+REGCLOUD=< name, password ><CR> <CR><LF>+OK<CR><LF>
Parameters:
Status: name: USR-cloud device port: password: USR-cloud password .
E.g.: AT+REGCLOUD=0000000000000000000000, 00000000

7.1.4.21. AT+REGUSR

Function: setting query customize registration package content Format: query:
AT+REGUSR<CR> <CR><LF>+OK=< data ><CR><LF>
setting:
AT+ REGUSR =< data ><CR> <CR><LF>+OK<CR><LF>
Parameters:
data: ASCII code in 40 bytes E.g.: AT+REGUSR=www.usr.cn
7.1.4.22.
Function: setting /query enable or not heartbeat package Format: query:
setting:
Parameters:
Status:
ON:enable heartbeat package
Off: disable heartbeat package E.g.: AT+HEARTEN=ON
AT+HEARTEN
AT+ HEARTEN <CR> <CR><LF>+OK=< status ><CR><LF>
AT+ HEARTEN =< status ><CR> <CR><LF>+OK<CR><LF>

7.1.4.23. AT+HEARTTP

Function: setting /query heartbeat package send way Format: query:
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
76
www.usriot.com
AT+ HEARTTP <CR> <CR><LF>+OK=< type ><CR><LF>
setting:
AT+ HEARTTP =< type ><CR>
<CR><LF>+OK<CR><LF>
Parameters:
Status:
NET: send heartbeat package to server
COM: send heartbeat package to serial port E.g.: AT+HEARTTP=NET

7.1.4.24. AT+HEARTTM

Function: setting /query time of heartbeat package Format: query:
AT+ HEARTTM <CR> <CR><LF>+OK=< time ><CR><LF>
setting:
AT+ HEARTTM =< time ><CR> <CR><LF>+OK<CR><LF>
Parameters:
Time: heartbeat time ,default is 30s, range from 1 to 65535s. E.g.: AT+HEARTTM=30
7.1.4.25.
Function: setting query customize heartbeat package content Format: query:
setting:
Parameters:
data: less than 40 bytes ASCII code. E.g.: AT+HEARTDT=www.usr.cn.
AT+HEARTDT
AT+ HEARTDT <CR> <CR><LF>+OK=< data ><CR><LF>
AT+ HEARTDT =< data ><CR> <CR><LF>+OK<CR><LF>

7.1.4.26. AT+ SCSLINK

Function: setting /query Socket connected status instructions function (connection status instructions pin
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
77
www.usriot.com
change or not according to the connection status) Format: query:
AT+ SCSLINK <CR> <CR><LF>+OK=< sta ><CR><LF>
setting:
AT+ SCSLINK =< sta ><CR> <CR><LF>+OK<CR><LF>
Parameters: sta: status
ON: enable link function
OFF: disable link function E.g.: AT+ SCSLINK=ON

7.1.4.27. AT+ CLIENTRST

Function: setting /query TCP Client mode filed to connect several time and reset ( repeat 30 times connection failed, module restart ) Format: query:
AT+ CLIENTRST <CR> <CR><LF>+OK=< sta ><CR><LF>
setting:
AT+ CLIENTRST =< sta ><CR> <CR><LF>+OK<CR><LF>
Parameters: sta: status
ON: enable TCP Client reset function
OFF: disable TCP Client reset function E.g.: AT+CLIENTRST =ON
7.1.4.28.
Function: setting /query index function Format: query: AT+ INDEXEN <CR>
setting:
Parameters: sta: status
ON: enable index function
OFF: disable index function E.g.: AT+INDEX=ON
AT+ INDEXEN
<CR><LF>+OK=< sta ><CR><LF>
AT+ INDEXEN =< sta ><CR> <CR><LF>+OK<CR><LF>
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
78
www.usriot.com
7.1.4.29.
Function: setting /query short connection function Format: query:
setting:
Parameters:sta: status
ON: enable short connection function
OFF: disable short connection function E.g.: AT+SOCKSL =ON
AT+ SOCKSL
AT+ SOCKSL <CR> <CR><LF>+OK=< sta ><CR><LF>
AT+ SOCKSL =< sta ><CR> <CR><LF>+OK<CR><LF>

7.1.4.30. AT+ SHORTO

Function: setting /query short connection time Format: query:
AT+ SHORTO <CR> <CR><LF>+OK=< time ><CR><LF>
setting:
AT+ SHORTO =< time ><CR>
<CR><LF>+OK<CR><LF> Parameters: time: short connection time, 2-255s E.g.: AT+SHORTO =3
7.1.4.31.
Function: setting /query if the module clear the serial port cache before connected Format: query:
setting:
Parameters: sta: status
ON: clear the serial port cache before connected OFF: do not clear the serial port cache before connected
E.g.: AT+UARTCLBUF =ON
AT+ UARTCLBUF
AT+ UARTCLBUF <CR>
<CR><LF>+OK=< sta ><CR><LF>
AT+ UARTCLBUF =< sta ><CR>
<CR><LF>+OK<CR><LF>
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
79
www.usriot.com
7.1.4.32.
Function: setting /query restart timeout Format: query:
setting:
Parameters: time: short connection time: 0, 60-65535s E.g.: AT+RSTIM =3600
AT+ RSTIM
AT+ RSTIM <CR>
<CR><LF>+OK=< time ><CR><LF>
AT+ RSTIM =< time ><CR>
<CR><LF>+OK<CR><LF>

7.1.4.33. AT+ MAXSK

Function: setting /query the maximum number of the client that TCP Server connected Format: query:
AT+ MAXSK <CR>
<CR><LF>+OK=< num ><CR><LF>
setting:
AT+ MAXSK =< num ><CR>
<CR><LF>+OK<CR><LF> Parameters: num: the maximum number of the client that TCP Server connected, range from 1 to 16 E.g.: AT+MAXSK =4
7.1.4.34.
Function: setting /query module name Format: query:
setting:
Parameters: name: module name, maximum 15 bytes and can not be none. E. g.: AT+MID =USR-K5
AT+ MID
AT+ MID <CR>
<CR><LF>+OK=< name ><CR><LF>
AT+ MID =< name ><CR>
<CR><LF>+OK<CR><LF>

7.1.4.35. AT+SEARCH

Function: search the port and key word in the LAN Format: Query:
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
80
www.usriot.com
AT+ SEARCH <CR> <CR><LF>+OK=<portdata><CR><LF>
Setting: AT+ SEARCH =<name><CR> <CR><LF>+OK<CR><LF> Parameters: port: search the port in the LAN using the AT command, default is 48899, changing from 0~65535
Data: search the key word in the AT command, default is www.usr.cn at most for 20 bytes E.g. AT+ SEARCH =48899WWW.USR.CN

7.1.4.36. AT+ H

Function: help Format: query:
AT+ H <CR>
<CR><LF>+OK=< sta ><CR><LF> Parameters: sta: help information

8. Contact us

Jinan USR IOT Technology Limited
Web: http://www.usriot.com
Tel.: +86 531 88826739-819 Fax: +86 531 88826739-808
E-Mail: freda@usriot.com Skype: fredacui526
Cell/Wechat: +86 15269189756
Network Communication Device: Serial to Ethernet, Serial to WiFi, Serial to 2G/3G/4G modem, LTE 4G Router

9. Disclaimer

No part of this document may be reproduced in any form without the written permission of the copyright owner.The contents of this document are subject to change without notice due to continued progress in methodology,design and manufacturing. PUSR shall have no liability for any error or damage of any kind resulting from the use of this document.
USR-LTE-7S5 User Manual technical support:h.usriot.com
Jinan USR IOT Technology Limited
81
www.usriot.com
10.
2020-03-06 Version V1.0.1 is established.
Modified History
Loading...