background image

USR-DR404 user manual

www.usriot.com

Jinan USR IOT Technology Limited

www.usriot.com

82

Format:
Query : AT+REBOOTEN<CR>

+ok=<sta.><CR>< LF ><CR>< LF >

Setting: AT+ REBOOTEN=<on/off><CR>

+ok<CR>< LF ><CR>< LF >

Parameters:

When querying, sta.: returns whether timing restart function is enabled, including

on, timing restart function is enabled

off, timing restart function is disabled

Parameter takes affect after restarting the module.

4.3.4.62. AT+REBOOTT

Function: Query/Set timing restart time
Format:
Query : AT+ REBOOTT<CR>

+ok=<time><CR>< LF ><CR>< LF >

Setting: AT+ REBOOTT=<time ><CR>

+ok<CR>< LF ><CR>< LF >

Parameters:

time.: timing restart time, 1-720h, default is 24h.

4.3.4.63. AT+TIMEOUTEN

Function: Enable/Disable timeout restart function
Format:
Query : AT+TIMEOUTEN<CR>

+ok=<sta.><CR>< LF ><CR>< LF >

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

Summary of Contents for USR-DR404

Page 1: ...USR DR404 user manual www usriot com Jinan USR IOT Technology Limited www usriot com 1 USR DR404 User Manual File version V1 0 1...

Page 2: ...ations AP WAN 14 2 4 3 Wired Networking Applications Router 15 2 4 4 Wired Networking Applications Bridge 17 3 Product function 18 3 1 Work mode 18 3 1 1 Transparent mode 19 3 1 2 Serial command mode...

Page 3: ...ial AT Command 53 4 2 2 Net AT command 55 4 3 3 Command Format 56 4 3 4 AT command 57 4 3 4 1 AT E 59 4 3 4 2 AT ENTM 59 4 3 4 3 AT NETP 60 4 3 4 4 AT UART 60 4 3 4 5 AT UARTF 61 4 3 4 6 AT UARTFT 61...

Page 4: ...3 4 44 AT HTTPPH 75 4 3 4 45 AT HTTPCN 76 4 3 4 46 AT HTTPUA 76 4 3 4 47 AT HTPSV 76 4 3 4 48 AT HTPTP 77 4 3 4 49 AT HTPURL 77 4 3 4 50 AT HTPHEAD 77 4 3 4 51 AT REGEN 78 4 3 4 52 AT REGTCP 78 4 3 4...

Page 5: ...ket protocol MODBUS polling function Support timeout reset function timing reset function Support remote upgrade Add hardware watch dog makes more stable Supports free framing and automatic framing on...

Page 6: ...munication greatly extend the communication distance of serial devices as below Diagram 1 Basic function 1 2 Specifications Item Description Wireless parameters Standard certification FCC CE Wireless...

Page 7: ...Form 1 Parameters 2 Networking application USR DR404 supports wireless WIFI and wired Ethernet communication modes flexible networking and network topology 2 1 Wireless Networking Configuration USR D...

Page 8: ...customized as the factory default 2 2 Wireless networking application 2 2 1 Wireless networking application AP WIFI can do as a AP other serial port device and PC as a STA can connect the WIFI also i...

Page 9: ...To refresh the original configuration information in memory and restart the operation 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 wire...

Page 10: ...arameter settings are as follows 1 Enable AP STA function of WIFI serial server AT FAPSTA on 2 Parameters take effect after resetting the module AT RELD 3 Set the WIFI serial server to STA mode the WI...

Page 11: ...stop the scanning of the STA port AT STTC on off on means to scan the router off means not to scan this command will not save after restart AT FSTTC on off This command can be saved takes affect afte...

Page 12: ...WAP 11BGN USR DR404 TEST Auto Optional AT WAKEY WPA2PSK AES 12345678 Optional An example of parameter setting of No 1 WIFI serial server is as follows the AP parameters to be connected correspond to...

Page 13: ...hrough this 100M Ethernet interface users can realize the interconnection of the three interfaces of WIFI serial port and Ethernet port In terms of networking the USR DR404 serial server network port...

Page 14: ...Here are the default parameters AT LANN 10 10 100 254 255 255 255 0 5 Restart 2 4 2 Wired Networking Applications AP WAN USR DR404 works in AP mode set the Ethernet interface to WAN connected to the...

Page 15: ...www usr cn 6 Can keep the default or set LAN parameters of serial server IP address DHCP gateway and subnet mask optional AT LANN 192 168 2 1 255 255 255 0 Note It is necessary to ensure that the LAN...

Page 16: ...the route For example AT WSSSID USR WIFI TEST AT WSKEY WPA2PSK AES www usr cn 6 Set LAN parameters of serial server IP address DHCP gateway and subnet mask Query the IP obtained by the serial server...

Page 17: ...diagram In the whole network DR404 works as a transparent device PC1 and PC2 can communicate to each other without any limited But if you want to realize the communication between the DR404 and other...

Page 18: ...e module to take affect 3 Product function 3 1 Work mode USR DR404 serial server has five working modes transparent mode serial command mode HTTPD Client mode Modbus TCP Modbus RTU mode AT command mod...

Page 19: ...14 Serial command mode The MCU sends data packets according to the following format After the WIFI serial server has finished parsing it only sends n bytes of data to the destination address When data...

Page 20: ...rst such as port 33 here is 21 00 Destination address If it is IP it is 4 bytes For example 192 168 0 133 means 85 00 A8 C0 if it is a domain name the address length is indefinite and ends with 0 Data...

Page 21: ...received on port 80 of test usr cn is GET 1 php data 1234 HTTP 1 1 Connection keep alive User Agent lwip1 3 2 Host test usr cn 80 When the request method is POST or PUT the data of the serial port wi...

Page 22: ...nology Limited www usriot com 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...

Page 23: ...connection mode for example AT HTTPSCT 3 3 1 4 Modbus TCP modbus RTU This serial server supports Modbus TCP to Modbus RTU does not support Modbus ASCII the network parameters of the module should cor...

Page 24: ...3 2 Socket Socket A includes TCP Server TCP Client UDP Server UDP Client and socket B supports TCP Client and UDP client When socket A in TCP server at most supports 24 TCP client to connect In multi...

Page 25: ...Item Description 1 TCPB Enable disable TCPB 2 TCPPTB Setting query TCPB port number 3 TCPADDB Setting query TCPB server address 4 TCPTOB Setting query TCPB timeout 5 TCPLKB Query whether the TCPB lin...

Page 26: ...te1 byte5 as a frame as bellow Diagram22 Switching command mode order Default interval between 2 bytes is 10ms that means if the time more than 10ms this frame will be over And interval can change int...

Page 27: ...he serial port and forward it to the network 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...

Page 28: ...previous baud rate 3 5 RFC2217 Protocol Description Protocol length is 8 bytes And values taken for example is in HEX Name Packet Header Baud Rate Bits parameter Parity Bytes 3 3 1 1 Explanation reduc...

Page 29: ...ription 1 Packet Header 1 Fixed value 0xFF 2 Length 2 Number of all bytes after length excluding length and before parity excluding parity 3 Command 1 Command type the reply command corresponding to t...

Page 30: ...the setting command 4 Reserved words 1 Default is 0x00 5 SSID Indefinite length SSID of route 6 Delimiter 2 SSID terminator fixed values are 0x0D and 0x0A 7 Password Indefinite length Password of rout...

Page 31: ...can display serial device data by establishing a TCP connection with the DR404 USR Cloud address https mp usriot com After registering an account log in USR Cloud server address is tcp mp usriot com...

Page 32: ...rt the serial server After socket A or socket B is connected to the server if there is no data transmission within 30 seconds the serial server will send the string www usr cn to the server AT command...

Page 33: ...module if wrong DR404 will send back to the serial device according to this format Header Length Parameters Data Parity 3 2 n 2 2 n 1 Format 15 Serial transmission format Header 0xAA 0xFD 0x55 Length...

Page 34: ...cket A return 123 to the serial device Diagram 26 Socket Distribution AT command to enable the socket AT TCPDPEN on Others if more function for the socket A and socket B please refer to the 2 4 3 10 T...

Page 35: ...17 Timeout Restart 3 11 Timing Restart Timing restart is equivalent to restart after the set time In the non serial port command mode when this function is enabled the module uses the internal clock...

Page 36: ...Remote Upgrade 3 13 1 Serial server configuration Setting by AT command 1 Setting Query remote upgrade parameters for example set remote upgrade to off AT UPDATE off ycsj1 usr cn 30001 30 Default is...

Page 37: ...nction is set to open select the port of the remote server enter the server address and the default reporting interval is 30min 3 13 2 Remote upgrade system configuration 1 User registration and login...

Page 38: ...will receive an activation email click on the link to activate Diagram 30 Registration After activation please contact our company to review the account The account can be used normally after review...

Page 39: ...ddresses modify serial numbers etc The ftp address and http address cannot be entered manually Click to select a file After selecting a file click Upload The ftp address and http address will Automati...

Page 40: ...quipment choose whether to upgrade Note When the device needs to be upgraded the software version and the pre upgrade version must be set to different 4 Device upgrade a Modify the software version an...

Page 41: ...s function uses the 8000 port of the DR404 4 Product parameter setting UAR DR404 supports two ways to set the parameters AT command and webpage For the setting of AT commands please refer to the AT Co...

Page 42: ...and enter the webpage Management webpage supports English setting on the top right There are nine webpage in it including quick configure mode selection AP interface setting STA interface setting App...

Page 43: ...echnology Limited www usriot com 43 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 comma...

Page 44: ...ited www usriot com 44 4 1 4 AP Interface Setting Diagram 36 AP interface DR404 supports AP interface with which can management the DR404 easier and can realize the networking Webpage is as above incl...

Page 45: ...former one is STA interface parameters including the SSID of the AP to connect security mode and others Second one is AP STA click to choose enable or not The latter one is WAN connection type includ...

Page 46: ...USR DR404 user manual www usriot com Jinan USR IOT Technology Limited www usriot com 46 Diagram 38 WIFI Uart setting...

Page 47: ...ed to enter an IP address For other settings you need to fill in the IP address of the other party to be connected Enter the protocol port number at the port The port numbers at both ends of the commu...

Page 48: ...7 Ethernet setting Diagram 40 Ethernet Setting 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 W...

Page 49: ...USR DR404 user manual www usriot com Jinan USR IOT Technology Limited www usriot com 49 4 1 8 HTTPD Client Mode Diagram 41 HTTPD Client...

Page 50: ...D Client Mode 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...

Page 51: ...USR DR404 user manual www usriot com Jinan USR IOT Technology Limited www usriot com 51 Diagram 43 Advanced...

Page 52: ...m 44 Device Management Device management includes username password settings factory reset and software upgrade functions Instr Restart when user setting parameters in different webpage click Apply to...

Page 53: ...ves and returns an a Enter a on the serial port RS485 module receives and returns ok and enter the AT command Diagram 45 Switch to command mode Note Fill and a need to achieve in the time to reduce th...

Page 54: ...us working mode 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...

Page 55: ...setting through the serial port The user can also set the AT command through WIFI First the computer establishes a network connection with USR DR404 and uses AT Setup software Diagram 50 Web search C...

Page 56: ...AT command prefix op L command operating code parameters setting or query parameters setting NULL query para n fill when setting the parameters CR end enter ASCII code 0x0a or 0xod Note When echoing...

Page 57: ...th TMODE Query Set data transmission mode transparent transmission mode or protocol mode WMODE Query Set WIFI mode AP or STA WSKEY Query Set encryption parameters in STA mode WSSSID Query Set SSID of...

Page 58: ...e module AT FAPSTA Enable Disable AP STA function MID Query module s MID VER Query firmware version H Query help information WSQY Query Set RSSI threshold percentage to switch among three AP in STA mo...

Page 59: ...restart time MODBPOLLEN Enable disable Modbus polling function MODBPOLLT Query Set polling time interval 50 65535 ms UPDATE Query Set whether to enable the remote upgrade status remote server address...

Page 60: ...TCP UDP CS Client or server including SERVER server CLIENT client port protocol port decimal number less than 65535 Note when in TCP Server and UDP Server mode cannot be 80 HTTP port 8000 websocket p...

Page 61: ...odule parameters take effect 4 3 4 5 AT UARTF Function Enable Disable auto frame function Format Query AT UARTF CR ok para CR LF CR LF Setting AT UARTF para CR ok CR LF CR LF Parameters para disable o...

Page 62: ...transparent transmission mode or protocol mode Format Query AT TMODE CR ok tmode CR LF CR LF Setting AT TMODE tmode CR ok CR LF CR LF Parameters tmode data transmission mode including Through transpar...

Page 63: ...ok CR LF CR LF Parameters auth Authentication mode including OPEN SHARED WPAPSK WPA2PSK encry Encryption algorithm including NONE valid when auth OPEN WEP H valid when auth OPEN or SHARED WEP HEX WEP...

Page 64: ...rting the module parameters take effect But can also be set in AP mode 4 3 4 12 AT WSLK Function Query the link status in STA mode only available in STA mode Format Query AT WSLK CR ok ret CR LF CR LF...

Page 65: ..._mode WIFI mode including 11BG 11B 11G 11BGN 11N ssid SSID in AP mode channel WIFI channel AUTO or CH1 CH11 This parameter only valid in AP mode after restarting the module parameters take effect But...

Page 66: ...d WPA2 PSK password is ASCII 8 63digits This parameter only valid in AP mode after restarting the module parameters take effect But can also be set in STA mode 4 3 4 16 AT MSLP Function Module enters...

Page 67: ...whether TCP connection is established for example on TCP connection is established off TCP connection is not established 4 3 4 19 AT TCPDIS Function Connect Disconnect TCP only valid when TCP Client F...

Page 68: ...ddress mask WAN subnet mask gateway WAN gateway address 4 3 4 21 AT LANN Function Query Set LAN settings only valid in AP mode Format Query AT LANN CR ok address mask CR LF CR LF Setting AT LANN addre...

Page 69: ...server TCP client needs to actively reconnect 4 3 4 23 AT MAXSK Function Query Set the maximum number of TCP connections Format Query AT MAXSK CR ok num CR LF CR LF Setting AT MAXSK num CR ok CR LF CR...

Page 70: ...than 65535 After restarting the module parameters take effect 4 3 4 26 AT TCPADDB Function Query Set TCPB server address Format Query AT TCPADDB CR ok add CR LF CR LF Setting AT TCPADDB add CR ok CR L...

Page 71: ...If need to save this setting please use the factory setting command If need to enable the Ethernet interface permanently please use the AT FEPHY on command After the Ethernet interface is closed the...

Page 72: ...rt Format AT DHCPDEN on off ID CR ok ID CR LF CR LF Parameters This command enables or disables DHCP server function of LAN port default is enabled 4 3 4 33 AT HIDESSID Function Enable Disable hiding...

Page 73: ...ically 4 3 4 36 AT Z Function restart the module Format AT Z CR Module restarts 4 3 4 37 AT MID Function Query module s MID Format Query AT MID CR ok module_id CR LF CR LF Parameters module_id module...

Page 74: ...Parameters ret The percentage of RSSI threshold If the RSSI threshold is 50 the setting should be AT WSQY 50 CR Note If set to 100 the module will not switch WIFI network automatically If the customer...

Page 75: ...ry AT HTTPURL CR ok ip port CR LF CR LF Setting AT HTTPURL ip port CR ok CR LF CR LF Parameters ip IP address of HTTP server port port number of HTTP server 4 3 4 43 AT HTTPTP Function Query Set HTTP...

Page 76: ...tion CR ok CR LF CR LF Parameters Connection HTTP header connection 4 3 4 46 AT HTTPUA Function Query Set HTTP header User Agent old Format Query AT HTTPUA CR ok User Agent CR LF CR LF Setting AT HTTP...

Page 77: ...AT HTPTP CR ok Type CR LF CR LF Setting AT HTPTP Type CR ok CR LF CR LF Parameters Type HTTP requesting type including GET PUT POST This parameter is only valid in HTTPD Client mode takes affect after...

Page 78: ...etting AT REGEN mode CR ok CR LF CR LF Parameters mode registration packet type including mac registration package is MAC address cloud USR Cloud usr user custom registration package off Disable regis...

Page 79: ...ssword Format Query AT REGCLOUD CR ok name password CR LF CR LF Setting AT REGCLOUD name password CR ok CR LF CR LF Parameters name device ID 20 digits password password up to 8 digits For example AT...

Page 80: ...ed including on enabled off disabled Parameter takes affect after restarting the module 4 3 4 57 AT HEARTEN Function Enable Disable heartbeat package function Format Query AT HEARTEN CR ok sta CR LF C...

Page 81: ...ry Set heartbeat package data Format Query AT HEARTDT CR ok usr CR LF CR LF Setting AT HEARTDT usr CR ok CR LF CR LF Parameters usr Length is limited to 40 characters HEX format For example heartbeat...

Page 82: ...after restarting the module 4 3 4 62 AT REBOOTT Function Query Set timing restart time Format Query AT REBOOTT CR ok time CR LF CR LF Setting AT REBOOTT time CR ok CR LF CR LF Parameters time timing...

Page 83: ...start time 60 65535s default is 3600s 4 3 4 65 AT FAPSTA Function Enable Disabled AP STA function Format AT FAPSTA on off CR ok CR LF CR LF This command enables or disables AP STA function default is...

Page 84: ...r restarting the module 4 3 4 68 AT UPDATE Function Query Set remote upgrade parameters Format Query AT UPDATE CR ok state server address server port interval CR LF CR LF Setting AT UPDATE state serve...

Page 85: ...handong 250101 China Tel 86 531 55507297 86 531 88826739 803 Web http www usriot com Skype lisausr Support http h usriot com index php c frontTicket m sign Email sales usr cn tec usr cn 6 Disclaimer T...

Page 86: ...USR DR404 user manual www usriot com Jinan USR IOT Technology Limited www usriot com 86...

Reviews: