background image

USR-DR504-E User Manual

www.usriot.com

Jinan USR IOT Technology Limited

Tech Support: h.usriot.com

46

OFF: unconnected.

33. AT+SOCKATO

Function: Query/Setting reconnect time of Socket A once timeout.

Format:

Query current Parameter:
AT+SOCKATO{CR} or AT+SOCKATO?{CR}
{CR}{LF}+SOCKATO:time{CR}{LF}{CR}{LF}

Parameters:

time: reconnect time, time range is 1~100 s. Default time is 5s.

E. g: AT+SOCKATO=10

34. AT+SOCKBTO

Function: Query/Setting reconnect time of Socket B once timeout.

Format:

Query current parameter:
AT+SOCKBTO{CR} or AT+SOCKBTO?{CR}
{CR}{LF}+SOCKBTO:time{CR}{LF}{CR}{LF}

Parameters:

time: reconnect time, time range is 1~100 s. Default time is 5s.

35. AT+SOCKRSTIM

Function: Query/Setting the maximum number of re-connections after connection failure, the device will restart
after the maximum number of re-connections.

Format:

Query current Parameter:

AT+SOCKRSTIM{CR} or AT+ SOCKRSTIM?{CR}
{CR}{LF}+ SOCKRSTIM:num{CR}{LF}{CR}{LF}

Parameter:

num: Maximum re-connection times, Setting range is 10~600 times, the default is 60 times.

36. AT+MODBUSEN

Function: Query/Setting Whether to enable Modbus protocol transformation Function.

Format:

Query current Parameter:

AT+MODBUSEN{CR} or AT+MODBUSEN?{CR}
{CR}{LF}+MODBUSEN:status{CR}{LF}{CR}{LF}

Setting:

Summary of Contents for USR-DR504-E

Page 1: ...USR DR504 E User Manual www usriot com Jinan USR IOT Technology Limited 1 www usriot com USR DR504 E Software Manual Version V1 0 2 ...

Page 2: ...orts buffering 5 packets of serial port data Supports sending the register package and heartbeat package data Supports setting DTU parameters by serial port SMS network Supports base station positioning function Supports Modbus protocol conversion modbus RTU to Modbus TCP Supports base station positioning Supports multiple work mode transparent transmission mode and SMS mode Supports basic command...

Page 3: ...age function 14 2 3 2 Heartbeat packet 16 2 3 3 USR Cloud 19 2 3 4 Basic Station Position 21 2 3 5 Modbus protocol conversion 22 2 3 6 Indicator Status 24 Form 2 3 6 1 Indicators 24 2 3 7 Restore to the factory default settings 24 2 3 8 Firmware Upgrade 24 2 3 8 1 Upgrade by serial port 24 2 3 8 2 Remote update 26 3 Parameter setting 27 3 1 Setup by serial port 27 3 1 1 Setup software 27 3 1 2 AT ...

Page 4: ...T CIP 41 21 AT LBS 41 22 AT PING 41 23 AT UART 42 24 AT UARTFT 42 25 AT UARTFL 43 26 AT APN 43 27 AT SOCKA 43 28 AT SOCKB 44 29 AT SOCKAEN 44 30 AT SOCKBEN 45 31 AT SOCKALK 45 32 AT SOCKBLK 45 33 AT SOCKATO 46 34 AT SOCKBTO 46 35 AT SOCKRSTIM 46 36 AT MODBUSEN 46 37 AT REGEN 47 38 AT REGTP 47 39 AT REGDT 48 40 AT REGSND 48 41 AT CLOUD 48 42 AT HEARTEN 49 43 AT HEARTDT 49 44 AT HEARTSND 50 45 AT HE...

Page 5: ...USR DR504 E User Manual www usriot com Jinan USR IOT Technology Limited Tech Support h usriot com 5 6 Update History 52 ...

Page 6: ...requency range FDD LTE Band 1 2 3 5 7 8 20 TDD LTE Band 38 40 41 HSPA WCDMA Band 1 2 5 8 GSM GPRS EDGE Band 2 3 5 8 Transmitting power TDD LTE 23dBm Power class 3 FDD LTE 23dBm Power class 3 WCDMA 24dBm Power class 3 EDGE Band8 27dBm Power class E2 EDGE Band3 26dBm Power class E2 GSM Band8 33dBm Power class 4 GSM Band3 30dBm Power class 1 Technical specifications LTE 3GPP R10 CAT4 Downward 150 Mbp...

Page 7: ...rotocol conversion Support Simple transmission Support TCP Client TCP Server UDP Client Message functions Support Heartbeat package Support Registration package mechanism Custom registration package ICCID IMEI User cloud service Support Remote update Support Form1 1 1 Basic Parameters 2 Product function This chapter introduces the functions of DR504 E the following diagram is a block diagram the f...

Page 8: ...e module can also receive data from the server and directly forward the received information to the serial port device In this mode users do not need to pay attention to the data conversion process between serial port data and network data packets They only need to set simple parameters to realize the transparent transmission of data between serial port devices and network servers The module suppo...

Page 9: ...s empty password is empty authentication method is NONE AT APN CMNET 0 5 Reboot AT Z Set DR504 E work at TCP Sever by AT commands 1 Set the work mode to net transparent mode AT WKMOD NET 2 Enable socket A AT SOCKAEN ON 3 Set socket A as TCP Server local port 2317 IP has no reference meaning in Server AT SOCKA TCPS test usr cn 2317 4 Setup APN E g APN CMNET username empty password empty authenticat...

Page 10: ... 2 Click Enter Serial AT command mode and wait for the device to enter AT command configuration mode 3 Click Query all parameters and wait for obtaining all current parameters 4 In the Choose Work Mode select Transparent Mode 5 Set IP Port to test usr cn and 2317 6 Check More 7 Set the APN parameter CMNET 0 E g APN CMNET username empty password empty authentication method NONE 8 Click Save current...

Page 11: ...hones and serial port devices If the user s device is a serial port device and is placed in a remote place this DTU can be used to realize this function when the user wants to check the running status of the device or control the running parameters of the device by sending and receiving SMS messages Setup by AT commands 1 Set work mode to SMS mode AT WKMOD SMS 2 Set the target mobile phone number ...

Page 12: ... device to enter AT command configuration mode 3 Click Query all parameters and waiting for obtaining all current parameters 4 In the choose work Mode select SMS Mode 5 Set the target mobile phone number as 10086 E g 10086 6 If you need to filter SMS from other mobile numbers open Only receive SMS from source number 7 Click Save current parameters to set and save all parameters 8 Click Restart to ...

Page 13: ...P packet The time threshold here is the time between packages The range of settable is 100ms 60000ms Factory default 100ms This parameter can be set by AT command AT UARTFT time Diagram 2 2 2 1 1 Time trigger 2 2 2 2 Length trigger When DR504 E receives data from the UART it constantly checks the number of bytes received If the number of bytes received is equal to a certain length threshold a fram...

Page 14: ... connection with the server or be added at the forefront of each data packet to form a data packet to be sent to the network The data of registration package can be ICCID code IMEI code USR cloud registration package or custom registration data ICCID Unique SIM identification code for applications based on SIM card identification IMEI The unique identification code of the Internet module which is ...

Page 15: ...ting the mode of registration package for sending DATA Form 2 3 1 1 Related AT Command AT commands setting 1 Enable register package function AT REGEN ON 2 Setup custom the register package AT REGTP USER 3 Setup the contents AT REGDT 7777772E7573722E636E 4 Setup the type of register package AT REGSND DATA 5 Reboot AT Z Setting software schematic diagram Diagram 2 3 1 2 Software Schematic Diagram ...

Page 16: ...cific requirements Heartbeat packet can be sent to the network side also can be sent to the serial port device The main purpose of sending the heartbeat to the network is to keep the connection stable and reliable to ensure the normal connection of the module and at the same time to let the server know the online situation of the module through the heartbeat packet In the application of fixed quer...

Page 17: ...Support h usriot com 17 1 Enable heartbeat function AT HEARTEN ON 2 Setup the contents of heartbeat packet AT HEARTDT 7777772E7573722E636E 3 Setup the type of heartbeat packet AT HEARTTP NET 4 Setup the sending time AT HEARTTM 30 4 Reboot AT Z Schematic diagram of setup software ...

Page 18: ...ation and click Open PC Serial 2 Click Enter Serial AT command mode and wait for the device to enter AT command mode 3 Click Query all parameters and wait for obtaining all current parameters 4 In the Choose Work Mode select Transparent Mode 5 Set the parameters of SocketA 6 Enable heartbeat package function and set various parameters 7 Set APN parameters 8 Click Save current parameters to set and...

Page 19: ...DR504 E also supports access to USR Cloud For more information about USR Cloud please visit http console usriot com Figure 5 Reference AT command Command name Command function Default Parameter AT CLOUD To configure device ID 20 bytes password 8 bytes Form 2 3 3 1 USR Cloud AT commands setting 1 Setup the work mode AT WKMOD NET 2 Enable socket A AT SOCKAEN ON 3 Setup SocketA parameters Address clo...

Page 20: ...mode 3 Click Query all parameters and wait for obtaining all current parameters 4 In the column Choose Work Mode select Transparent Mode 5 Set the parameters of SocketA IP Port is clouddata usriot com and 15000 and the connection type is TCPC 6 Open the Enable Identity Package function the registry sending option is Send registers data when socket connects registered type is Cloud for USR Cloud op...

Page 21: ...ation Empty Form 2 3 4 1 Related AT Command Note This function does not obtain positioning information directly for example latitude and longitude information but base station location information Users need to give this information to a third party and the third party will obtain a direct positioning information through calculation Third party location information services are generally paid serv...

Page 22: ...U converts the Modbus TCP protocol data sent by the server into Modbus RTU protocol and sends it to the terminal device and converts the Modbus RTU protocol data sent by the terminal device into Modbus TCP protocol and sends it to the server Command name Command functions Default parameter AT MODBUSEN Query Setting whether to enable Modbus protocol conversion OFF Form 2 3 5 1 Related AT Command AT...

Page 23: ... the serial port parameters according to the actual situation and click Open PC Serial 2 Click Query all parameters waiting to get all current parameters 3 In the Choose Work Mode check Transparent Mode 4 Set the parameters of SocketA 5 Check MODBUS Change 6 Set the APN parameters 7 Click Save current parameters to set and save all parameters 8 Click Restart to restart the module ...

Page 24: ...erial port RX Serial port receive the data Light when there is data received by the serial port First level signal Indicate the first level signal strength Always on when the signal strength reach the first level Second level Indicate the second level signal strength Always on when the signal strength reach the second level Third level signal Indicate the third level signal strength Always on when...

Page 25: ...com 25 Diagram 2 3 8 1 1 Serial update Schematic Diagram 2 As indicated hold down the Reload pin and power USR DR504 E at the same time Diagram 2 3 8 1 2 Serial Update Schematic Diagram 3 After that you can see that the firmware is being downloaded release the Reload pin and wait for the update ...

Page 26: ...al update Schematic Diagram 2 3 8 2 Remote update Remote upgrade uses polling mode to query and the server is requested once by default for 30 minutes to get whether there is an upgrade demand If the upgrade is needed the firmware data will be downloaded from the server for the upgrade if not the system will sleep and wait for the next round The polling time of Fota upgrade can be set through AT F...

Page 27: ...ent with the current serial port of DTU otherwise it cannot communicate with DTU 2 Working mode selection area select the working mode of DTU 3 In the parameter setting area of characteristic functions set parameters related to DTU s featured functions 4 Global parameter area setup DTU basic global parameters 5 Common command button click to send the self input command 6 Data receiving and display...

Page 28: ...rial port packaging interval time refer to AT UARTFT T4 current serial port packaging interval time refer to AT UARTFT T5 3 s T6 current serial port packaging interval time refer to AT UARTFT The time sequence of switching from Transparent transmission mode to AT Command mode Serial port device continuously sends to the device After receiving the device will send an a to the serial device No data ...

Page 29: ... to query or modify parameters when DTU is running It does not need complicated timing sequence to enter AT command mode so as to quickly query or set parameters Diagram 3 1 3 1 Software Schematic Query the current password query setting command AT CMDPW Through the software can see the current command password is www usr cn After the setting is completed restart the module and send www usr cn AT ...

Page 30: ...nd for batch parameter modification and query which is convenient for managing owned equipment For example query the firmware version number and send www usr cn AT VER note that there is an Enter at the end of the string from the server to the module After receiving the command the module will return a response message 3 1 5 SMS AT command SMS AT command means that we can use SMS to query and conf...

Page 31: ...ans that DR504 E sends a reply to the device Note characters in instructions are case insensitive 3 1 6 1 Symbol description Figure 9 Symbol Description Symbol name Implication The content is necessary items The content is non essential items The content is a string with special meaning Parameter range e g A B Parameter s range is from A to B CMD Command code OP The operator PARA Parameters CR Ent...

Page 32: ... means to return the input content when the instruction is input and then make a response to the command No return means no input is returned and only the command is responded to In the following instructions no return mode is used as an example Command String CR LF CMD OP PARA CR LF CR LF OK CR LF Figure 11 Symbol Descriptions Command Implication Necessary or not CR Enter key No LF Line break No ...

Page 33: ...3F CR Enter key 0D LF Line break 0A Form3 1 6 4 1 Characters 3 1 7 AT commands Figure 15 AT command error code Code Implication Err1 Does not conform to the AT commands format is not the beginning of AT Err2 The AT command was not found and does not exist Err3 Not meet the format of the query or Settings Err4 Wrong parameters or number Err5 Setting parameter failed Form3 1 7 1 Error Command Comman...

Page 34: ... socket B SOCKALK Query socket A connection status SOCKBLK Query socket B connection status SOCKATO Query set reconnect time after disconnection of socket A SOCKBTO Query set reconnect time after disconnection of socket B SOCKRSTM Query Set the max number of reconnect when socket connection failure MODBUSEN Query set whether to enable Modbus protocol conversion Registration package commands REGEN ...

Page 35: ... H Function Helping command Format Query AT H CR CR LF help message CR LF CR LF Parameter help message command 3 AT Z Function Reload the module Format AT Z CR CR LF OK CR LF 4 AT E Function Query set the echo status of the device s AT commands Format Query current parameter AT E CR or AT E CR CR LF E status CR LF CR LF Setting AT E status CR CR LF OK CR LF Parameter status echo status including O...

Page 36: ...rameter AT WKMOD CR or AT WKMOD CR CR LF WKMOD mode CR LF CR LF Setting AT WKMOD mode CR CR LF OK CR LF Parameter mode work mode including NET Network transparent transmission mode SMS SMS mode Default is NET mode E g AT WKMOD NET 7 AT CMDPW Function Query Setting command password Format Query current Parameter AT CMDPW CR or AT CMDPW CR CR LF CMDPW password CR LF CR LF Setting AT CMDPW password C...

Page 37: ...T RSTIM Function Query Setting module s automatic restart time Format Query current Parameter AT RSTIM CR or AT RSTIM CR CR LF RSTIM time CR LF CR LF Setting AT RSTIM time CR CR LF OK CR LF Parameter time The unit is second The range can be set from 60s to 60000s When the network does not respond to data longer than this time the device will restart The default time is 1800s When the parameter is ...

Page 38: ... CR LF CR LF Parameter state current network service status Figure 4 Sever status list Number Implication 0 No service 1 Restricted service 2 Have a service 3 Restricted regional services 4 Power saving state srv_domain business domain Figure 5 Business domain list Number Implication 0 No service 1 Only CS server 2 Only PS server 3 PS CS server 4 CS PS is not registered and is in the search state ...

Page 39: ...ard status is not valid under CS 3 UIM is not valid under PS 4 UIM is not valid under PS CS 240 ROMUIM edition 255 UIM card not exist 12 AT UCPIN Function Query Sett PIN code Function Query Setting PIN code Format Query current Parameter AT UCPIN CR or AT UCPIN CR CR LF UCPIN pin CR LF CR LF Setting AT UCPIN pin CR CR LF OK CR LF Parameter pin PIN code Default is empty E g AT PIN 1234 13 AT RELD F...

Page 40: ...meter Format Execute specified function AT CFGTF CR CR LF OK CR LF 16 AT VER Function Query module s firmware version Format Query current parameter AT VER CR or AT VER CR CR LF VER version CR LF CR LF Parameters version Firmware version number 17 AT SN Function Query module s SN code Format Query current Parameter AT SN CR or AT SN CR CR LF SN code CR LF CR LF Parameters code SN code 18 AT ICCID ...

Page 41: ...F CR LF Parameters code IMEI code 20 AT CIP Function Query local IP address Format Query current parameter AT CIP CR or AT CIP CR CR LF CIP IP CR LF CR LF Parameters IP local IP address 21 AT LBS Function Query base station positioning Format Query AT LBS CR CR LF IMEI lac cid CR LF CR LF Parameters lac LAC information Range 1 65535 cid CID information Range 2G 1 65535 3G 4G 1 268435455 E g AT LBS...

Page 42: ...y CR LF CR LF Setting AT UART baud data bit stop bit parity CR CR LF OK CR LF Parameters Baud band rate 2400 4800 9600 14400 19200 28800 33600 38400 57600 115200 230400 460800 Default rate 115200 data bit data bit inclouding 8 8 data bits Default data bit 8 stop bit stop bit including 1 1 stop bit 2 2 stop bits Default 1 stop bit parity Checking methods including NONE NO check ODD ODD check EVEN E...

Page 43: ... AT UARTFL 1000 26 AT APN Function Query Setting APN code Format Query current parameter AT APN CR or AT APN CR CR LF APN code user_name password auth CR LF CR LF Setting AT APN code user_name password auth CR CR LF OK CR LF Parameters code APN default is AUTO with a maximum length of 50 user_name User name default is empty maximum length 64 password Password default empty maximum length 127 auth ...

Page 44: ... 28 AT SOCKB Function Query Setting the parameters of socket B Function Query Setting the parameters of socket B Format Query current parameter AT SOCKB CR or AT SOCKB CR CR LF SOCKB protocol address port CR LF CR LF Setting AT SOCKB protocol address port CR CR LF OK CR LF Parameters protocol protocol including TCPC TCP Client UDPC UDP Client Default TCPC address Server address this address can be...

Page 45: ...CKBEN status CR CR LF OK CR LF Parameters status whether to enable socket B including ON enable OFF disable 31 AT SOCKALK Function Query whether socket A is connected Format Query current parameter AT SOCKALK CR or AT SOCKALK CR CR LF SOCKALK status CR LF CR LF Parameters status socket A connection status including ON connected OFF unconnected 32 AT SOCKBLK Function Query whether socket B is conne...

Page 46: ...CKBTO CR or AT SOCKBTO CR CR LF SOCKBTO time CR LF CR LF Parameters time reconnect time time range is 1 100 s Default time is 5s 35 AT SOCKRSTIM Function Query Setting the maximum number of re connections after connection failure the device will restart after the maximum number of re connections Format Query current Parameter AT SOCKRSTIM CR or AT SOCKRSTIM CR CR LF SOCKRSTIM num CR LF CR LF Param...

Page 47: ... REGEN CR or AT REGEN CR CR LF REGEN status CR LF CR LF Setting AT REGEN status CR CR LF OK CR LF Parameter status The function register package enable status including ON open OFF close Default OFF 38 AT REGTP Function Query Setting the registration packet type Format Query current Parameter AT REGTP CR or AT REGTP CR CR LF REGTP type CR LF CR LF Setting AT REGTP type CR CR LF OK CR LF Parameter ...

Page 48: ...Note The maximum length of 160 bytes is the number of bytes after ASCIIcode is converted to a hexadecimal string For example AT REGDT 7777772E7573722E636E 40 AT REGSND Function Query Setting the transmission mode of registration packet Format Query current Parameter AT REGSND CR or AT REGSND CR CR LF REGSND type CR LF CR LF Setting AT REGSND type CR CR LF OK CR LF Parameter type transmissions type...

Page 49: ...CR LF Setting AT HEARTEN status CR CR LF OK CR LF Parameter status the status of heartbeat packet include ON open OFF close Default is ON 43 AT HEARTDT Function Query Setting heartbeat package Format Query current Parameter AT HEARTDT CR or AT HEARTDT CR CR LF HEARTDT data CR LF CR LF Setting AT HEARTDT data CR CR LF OK CR LF Parameter data User defined registry data hexadecimal string Format maxi...

Page 50: ... HEARTSND COM 45 AT HEARTTM Function Query Setting the interval time for heartbeat interval Format Query current Parameter AT HEARTTM CR or AT HEARTTM CR CR LF HEARTTM time CR LF CR LF Setting AT HEARTTM time CR CR LF OK CR LF Parameter time interval time It can setting the range about 1 6000s default is 30s For example AT HEARTTM 60 46 AT DSTNUM Function Query Setting the target cell phone number...

Page 51: ...R CR LF SMSFLT status CR LF Setting AT SMSFLT status CR CR LF OK CR LF Parameter Status ON enable OFF forbid Default mode ON For example AT SMSFLT ON 48 AT CISMSSEND Function Sending short message Format Setting AT CISMSSEND number data CR CR LF OK CR LF Parameter Number The target cellphone number for short message need add international number For example 8618888888888 data Text messages can be ...

Page 52: ...ducts it hasn t been granted any intellectual property license by forbidding speak or other ways either explicitly or implicitly Except the duty declared in sales terms and conditions we don t take any other responsibilities We don t warrant the products sales and use explicitly or implicitly including particular purpose merchant ability and marketability the tort liability of any other patent rig...

Reviews: