Page 5
Long distance communication: two serial server can transport for 150m(Test conditions: open line of sight, two WIFI serial servers self-networking, 57600 baud rate, no packet loss during transmission). Designed with guide rails for easy installation. Jinan USR IOT Technology Limited www.usriot.com...
1. Product Overview 1.1. Brief Introduction USR-DR404 supports serial port to WIFI function, make the serial port (RS485)connection switch into TCP/IP net interface to realize the bi-direction transparent transmission between serial port and WIFI/Ethernet. Enable serial devices to have TCP / IP network interface function immediately, connect to the network for data communication, greatly extend...
2.1. Wireless Networking Configuration USR-DR404 can configure to be a STA or an AP. Can be set by AT command, web page, as below: (1) AT command setting: Set by AT + WMODE, it can be set to AP or STA.
RS485, as fellows: Diagram 3 AP mode The WIFI serial server works in AP mode. The above applications can be set using the following AT commands: (1) Set the WIFI server to AP mode AT+WMODE=AP Jinan USR IOT Technology Limited www.usriot.com...
2.2.2. STA Mode USR-DR404 do as STA and connect to other APs to form a wireless network, all STA take the AP as wireless networking centre, mutual communication between STAs is completed through AP forwarding, as below:...
2.2.3. AP+STA USR-DR404 can support one AP and one STA meanwhile. Enable the AP+STA function, STA and AP interface can be used meanwhile, STA interface connected to the router, and then connected to the server in the internet via TCPB; AP interface can be connected by the phone/ pad (TCPA).
After clicking “Apply”,restart to take affect. 2.2.4. Wireless Networking Applications (AP,STA) USR-DR404 can be configured to be a STA and a AP , in theory support 2 wireless interface, one STA and one AP, other STA will connected to the network via this AP.
WAKEY Setting/query encryption parameters under the WIFI AP mode LANN Setting/query the IP under the AP mode FEPHY Enable/disable Ethernet interface FVER Setting/query module software version (N-Ver、Z-Ver) Form 2 Related AT Command Item Description Jinan USR IOT Technology Limited www.usriot.com...
WIFI, serial port and Ethernet port. In terms of networking, the USR-DR404 serial server network port can be set to LAN port and WAN port; at the same time, it supports bridge mode and routing mode to correspond to different specific applications.
USR-DR404 works in AP mode, set the Ethernet interface to WAN, connected to the router that can search the internet, and enable the DHCP. Now USR-DR404 works as a second grade router, PC and pad connect to the AP(USR-DR404) can can be online, the default AP is USR-DR404_xxxx, no encryption, 000000000000which can be setting by web page or AT command.
Ethernet interface. As below, PC1 in the subnet, for DR404 works in router mode, PC1 can connected to the PC2, but PC2 can not connected to PC1. Jinan USR IOT Technology Limited www.usriot.com...
Page 16
(7) Restart. Web page setting: Log in to the built-in web page of DR404, enter the page of Ethernet setting, and set the Ethernet Mode to ”n” in the Ethernet mode settings. As shown below: Jinan USR IOT Technology Limited www.usriot.com...
AT+FVER=z (2) Enable Ethernet interface AT+FEPHY=on (3) Reset the module, the setting will take affect AT+RELD AT + RELD command does not restore the above settings. (4) Set the working mode to STA AT+WMODE=STA Jinan USR IOT Technology Limited www.usriot.com...
The first three modes can send “+++” and “a” successively through the serial port. USR-DR404 will return the confirmation codes“a” and “+ ok” in order to switch to the AT command mode. AT + ENTM can return USR-DR404 from AT command mode to the original working mode. For details, please refer to the related chapter of “Serial AT Command”.
WIFI/Ethernet, no analyzing, minimize the complexity of use. 3.1.2. Serial command mode In this mode ,when USR-DR404 works in UDP client or TCP client, allow sending serial data to different servers. Diagram 14 Serial command mode The MCU sends data packets according to the following format.
HTTP protocol data and send it to the designated HTTP server. The data received from the server will be directly transmitted to the serial port without any processing. The following are specific application examples: First set HTTP parameters through AT command: Item Description Jinan USR IOT Technology Limited www.usriot.com...
Page 21
HTTP header according to their own needs(If the HTTP request type is POST / PUT, USR-DR404 will automatically add Content-Length).The setting commands include "AT + HTPMODE, AT + HTPSV, AT + HTPTP, AT + HTPURL, AT + HTPHEAD". For specific command setting procedures, please refer to the “AT command” chapter.
Page 22
Diagram 15 HTTPD Client requesting type (2) In “Application Setting”, select Httpdclient Mode as long/short. Diagram 16 HTTPD Client mode settings If set to short connection mode, timeout can be set within the range of 3-65535 (s). Jinan USR IOT Technology Limited www.usriot.com...
TCP client and the port must be the same. For the working mode, select Modbus TCP <=> Modbus RTU. Diagram 18 modbus TCP <=> modbus RTU Setting by AT command: AT+TMODE=modbus Setting by web page: Jinan USR IOT Technology Limited www.usriot.com...
TCP link. The specific data flow chart shows: USR-DR404 Serial device Diagram 20 Multi TCP link data transmission diagram Socket A settings: AT+NETP/AT+TCPTO/AT+TCPLK/AT+TCPDIS Jinan USR IOT Technology Limited www.usriot.com...
115200, 230400, 345600, 460800 Data 5, 6, 7, 8 Stop Parity None, Even, Odd NFC: no hardware control Form 8 Serial port parameters Webpage setting: Log in the build-in webpage, under the “Application Setting”page, as below: Jinan USR IOT Technology Limited www.usriot.com...
After testing, if the interval set to be 10 ms, and small amount of data, the delay time of the loopback from WIFI ->UART->WIFI is about 40~50ms. But ,if the interval is 10ms and the MCU can not confer to send the next bytes in 10ms, and the serial data might be breaking. Jinan USR IOT Technology Limited www.usriot.com...
1. Auto framing trigger frame length: USR-DR404 receives the specified number of bytes from the serial port, forms a data frame, and forwards it to the network.
Serial parameter bit: Bit # Explanation Value Description 5 bits 6 bits Data bit selection 7 bits 8 bits 1 bit Stop Bit 2bits Disable Parity Parity Enable Enable Parity EVEN Parity Type Mark Clear Jinan USR IOT Technology Limited www.usriot.com...
0% to 100%. Terminator Terminator for signal strength n, 0x0D, 0x0A。 Parity The accumulated sum of all bytes after the header (excluding the header) and before the parity (excluding the parity). Form 10 Reply Command Jinan USR IOT Technology Limited www.usriot.com...
Page 30
Form 12 Reply Command For example: Mobile phone sends to WIFI serial server (hexadecimal number): FF 00 0F 02 00 54 45 53 54 31 0D 0A 31 32 33 34 35 36 CE Jinan USR IOT Technology Limited www.usriot.com...
The main purpose of sending to the network is to maintain a connection with the server, and at the same time let the server that is idle for a long time (do not send data to the server for a long time) to detect whether the current connection status is valid. Jinan USR IOT Technology Limited www.usriot.com...
MCU send data package according the below format, module parse and send “n”bytes data to the appointed socket connection. When the data returned, no parse and output from the serial directly. header Length Parameters Data Parity (n+2) Format 14 Serial transmission format Header: 0x55 0xFD 0xAA Jinan USR IOT Technology Limited www.usriot.com...
Page 33
Parity: from the parameters( included) to parity(not include), add and take the last bytes as parity. Below is detailed application: AA FD 55 00 03 61 00 CC 2D (HEX) Length: 00 04: the length is 4 Parameters 61 00: 61—data from socket A 00—net to serial Jinan USR IOT Technology Limited www.usriot.com...
Others, if more function for the socket A and socket B, please refer to the 2.4. 3.10.Timeout Restart Under the transparent transmission mode, enable the timeout restart function. If the DR404 no WIFI connection or connected but no communication in set time, DR404 will restart. (1)Enable this function: Jinan USR IOT Technology Limited www.usriot.com...
The parameter setting is completed, takes effect after the module is restarted, and the module will restart every 200h. Item Description REBOOTEN Enable/disable timing restart REBOOTT Query/setting time for timing restart Form 18 Timing Restart 3.12.Modbus Polling (1) Setting by web page Diagram 27 Modbus polling Jinan USR IOT Technology Limited www.usriot.com...
Query and set the remote update enable status, remote server address, remote server port, and reporting interval. (2) Setting/ Query remote upgrade parameters AT+MONITOR=off,10 Default is off. Query and set the remote update enable status and reporting interval. Setting by web page: Jinan USR IOT Technology Limited www.usriot.com...
30min. 3.13.2 Remote upgrade system configuration (1) User registration and login Log in to https://ycsj1.usriot.com, click Register to register your account (if you have an account, log in directly) as shown in the figure: Jinan USR IOT Technology Limited www.usriot.com...
Page 38
After activation, please contact our company to review the account. The account can be used normally after review. After login, the device monitoring interface is entered by default. This interface mainly displays the currently online devices. (2)Version configuration Jinan USR IOT Technology Limited www.usriot.com...
Page 39
The ftp address and http address will Automatic update, you can click the download button to download the firmware for confirmation. When iterative upgrade is required, the serial number must be increased in the order of version. (3) Add device Jinan USR IOT Technology Limited www.usriot.com...
Check whether the device is successfully upgraded through the device upgrade record. 3.14.Websocket DR404 supports websocket server. Instead of the ways such as HTTP GET, POST, PUT, and is faster. Providing the related websocket testing webpage for user to testing, details are as below:(10.10.100.254/websocket.html) Jinan USR IOT Technology Limited www.usriot.com...
“AT Commands” section of this document; this chapter mainly describes the Web setting methods. 4.1. Web Page First time using the DR404, you can configure it via webpage. PC connects to AP interface of USR-DR404. Default SSID, IP and username, password are as fellows:...
4.1.2. Quick Configure Diagram 34 Quick Configure This webpage shows a way to quickly configure the USR-DR404 for user. Configure the parameters and restart to make the DR404 work normal. Of course, please click the respond webpage to configure. Jinan USR IOT Technology Limited...
4.1.3. Mode Selection Diagram 35 Mode Selection In the first page choose the work mode of the DR404:AP/ STA. Data transfer mode including “transparent mode”, ”serial command mode”, ”HTTPD client mode”, ”modbus TCP and modbus RTU”. Jinan USR IOT Technology Limited www.usriot.com...
Diagram 36 AP interface DR404 supports AP interface with which can management the DR404 easier and can realize the networking. Webpage is as above, including SSID, security mode and LAN setup. Both supports user defined. Jinan USR IOT Technology Limited www.usriot.com...
DHCP and Static IP. 4.1.6. Application setting Application settings are settings for WIFI to RS485 parameters, including: setting of serial port parameters, automatic framing settings, Ethernet function settings, registration package settings and network protocol settings. Jinan USR IOT Technology Limited www.usriot.com...
Page 47
Network setting: 4 modes can be set on the network side as TCP server, TCP client, UDP server and UDP client. When USR-DR404 is configured as a UDP server, USR-DR404 will remember the last UDP client and communicate with the last UDP client. The UDP Client mode only communicates with the target IP and port. When set to TCP Server, there is no need to enter an IP address.
DR404 has one Ethernet port, this port can be work as LAN port or WAN port. LAN port: it supports the data transmission between Ethernet to the serial or WIFI. WAN port: DR404 can be used as secondary router which is convenient for user to network. Jinan USR IOT Technology Limited www.usriot.com...
Under the HTTPD client mode, the content of the protocol header, including: server address, server port, request type, header path, header Connection and header User-Agent. 4.1.9. Advanced Under the advanced webpage, user can setup port mapping. It only works at STA mode or Ethernet port sets as WAN. Jinan USR IOT Technology Limited www.usriot.com...
Device management includes username / password settings, factory reset and software upgrade functions. Instr: Restart: when user setting parameters in different webpage, click Apply to make sure it, but these parameters will be effect after restart and DR404 will reboot to fresh the original parameters. Jinan USR IOT Technology Limited www.usriot.com...
T1>the interval of serial port package T2<300ms T3<300ms T5<3s Change transparent transmission mode , HTTPD Client mode to AT command mode : 1. Serial device send “+++”to module continuously. Module received ‘+++’ then returned an “a” . Jinan USR IOT Technology Limited www.usriot.com...
Page 54
Note: The specific AT command requires a ENTER, but the "+++" and "a" sent by entering the AT command process do not need a ENTER. In AT command mode, you can view all AT commands and descriptions of USR-DR404 through the following help commands, as follows:...
First, the computer establishes a network connection with USR-DR404, and uses AT Setup software. Diagram 50 Web search Click “Search”, the searched USR-DR404 will be displayed, click the USR-DR404, and then set through the left operation area (the method is the same as the serial port setting) Jinan USR IOT Technology Limited www.usriot.com...
1.This AT command set is for onboard WIFI module, which can be used for query, setting WIFI serial server parameters。 2.USR-DR404 can work in AP mode or STA mode, and the WIFI parameters need to be set with different commands.
After restarting the module, parameters take effect. Note: After power on, works in transparent transmission mode by default. 4.3.4.9. AT+WMODE Function: Query/Set WIFI mode(AP or STA) Format: Query : AT+WMODE<CR> +ok=<mode><CR>< LF ><CR>< LF > Setting: AT+ WMODE=<mode><CR> Jinan USR IOT Technology Limited www.usriot.com...
or 13 digits; when WPA-PSK and WPA2-PSK, password is ASCII, 8~63digits. This parameter only valid in STA mode, after restarting the module, parameters take effect. But can also be set in AP mode. Jinan USR IOT Technology Limited www.usriot.com...
When the module enters the sleep mode, enter AT + MSLP = on again, module exits the sleep mode. The mode is still command mode. 4.3.4.17. AT+WSCAN Function: Search around AP Format: Jinan USR IOT Technology Limited www.usriot.com...
When setting, "off" sets the module as unlinkable.Immediately after the command is completed, the module disconnects the link and does not reconnect."On" sets the module to a linkable state. After the command is completed, the module will immediately reconnect to the server. Jinan USR IOT Technology Limited www.usriot.com...
Note: The address of the WAN port of the module viewed by WANN and the address of the LAN port of the module viewed by LANN. The two IPs cannot be set on the same network segment, otherwise the module does not work properly. 4.3.4.22. AT+TCPTO Function: Query/Set TCP timeout Format: Query : AT+ TCPTO<CR> Jinan USR IOT Technology Limited www.usriot.com...
AT+FUDLX=on/off<CR> +ok<CR>< LF ><CR>< LF > This command enables or disables the RS485 interface. By default, RS485 is enabled, and the 485 control pin is RTS. This command takes effect after restoring factory settings. Jinan USR IOT Technology Limited www.usriot.com...
Represents the production date, year, month and day nnnn: Indicates the production serial number 4.3.4.38. AT+VER Function: Query firmware version Format: Query : AT+VER<CR> +ok=<ver><CR>< LF ><CR>< LF > Parameters: ver: returns firmware version of module. Jinan USR IOT Technology Limited www.usriot.com...
+ok=<type><CR>< LF ><CR>< LF > Setting: AT+ REGTCP=<type><CR> +ok<CR>< LF ><CR>< LF > Parameters: type: registration package sending type, including first: sending when establish a connection every: sending when data is sent every time Jinan USR IOT Technology Limited www.usriot.com...
+ok<CR>< LF ><CR>< LF > Parameters: Usr: Length is limited to 40 characters, HEX format. For example: set the registration package content to: www.usr.cn, “77 77 77 2E 75 73 72 2E 63 6E” in HEX Jinan USR IOT Technology Limited www.usriot.com...
Setting: AT+ TIMEOUTEN=<on/off><CR> +ok<CR>< LF ><CR>< LF > Parameters: When querying, sta.: returns whether timeout restart function is enabled, including on, timeout restart function is enabled off, timeout restart function is disabled Jinan USR IOT Technology Limited www.usriot.com...
default: ycsj1.usr.cn server port: server port Default: 30001 interval: reporting interval Default is 30min, maximum time interval (max): 120min Parameter takes affect after restarting the module. Jinan USR IOT Technology Limited www.usriot.com...
Need help?
Do you have a question about the USR-DR404 and is the answer not in the manual?
Questions and answers