USR IOT USR-GPRS232-730 User manual

USR-GPRS232-730 User Manual h.usriot.com
Jinan USR IOT Technology Limited / 45 www.usriot.com
2
Contents
1. Quick Start......................................................................................................................................................................... 5
1.1. Testing environment..............................................................................................................................................5
1.2. Transmission..........................................................................................................................................................5
2. Product Introduction.........................................................................................................................................................7
2.1. Short Description...................................................................................................................................................7
2.2. Features..................................................................................................................................................................7
2.3. Parameters.............................................................................................................................................................8
2.4. Dimensions.............................................................................................................................................................8
3. Function..............................................................................................................................................................................9
3.1. Setup Process..................................................................................................................................................... 10
3.2. Work mode...........................................................................................................................................................10
3.2.1. Network Transmission Mode................................................................................................................. 11
3.2.1.1. Description.....................................................................................................................................11
3.2.1.2. Setup Steps...................................................................................................................................11
3.2.2. HTTPD mode............................................................................................................................................11
3.2.2.1. Description.....................................................................................................................................11
3.2.2.2. Setup steps................................................................................................................................... 12
3.2.3. SMS Transmission Mode....................................................................................................................... 13
3.2.3.1. Description.................................................................................................................................... 13
3.2.3.2. Setup steps................................................................................................................................... 13
3.3. Register Package............................................................................................................................................... 14
3.3.1. Description................................................................................................................................................14
3.3.2. Setup steps...............................................................................................................................................14
3.4. Heart Beat Package........................................................................................................................................... 14
3.4.1. Description................................................................................................................................................14
3.4.2. Setup steps...............................................................................................................................................14
3.5. USR CLOUD........................................................................................................................................................15
3.5.1. Description................................................................................................................................................15
3.5.2. Setup Steps..............................................................................................................................................15
3.6. UART Function....................................................................................................................................................15
3.6.1. RS485........................................................................................................................................................15
3.6.2. Similar RFC2217..................................................................................................................................... 16
3.7. Indicator Status................................................................................................................................................... 16
3.8. Firmware Upgrade..............................................................................................................................................17
4. Parameters Setting........................................................................................................................................................ 19
4.1. AT commands Set...............................................................................................................................................19
4.1.1. AT command Mode................................................................................................................................. 19
4.1.2. Serial AT command................................................................................................................................. 20
4.1.3. Network AT command.............................................................................................................................20
4.1.4. SMS AT Command..................................................................................................................................21
4.2. AT Command Set................................................................................................................................................22
4.2.1. AT Command Set.................................................................................................................................... 24
4.2.1.1. AT+H...............................................................................................................................................25

USR-GPRS232-730 User Manual h.usriot.com
Jinan USR IOT Technology Limited / 45 www.usriot.com
3
4.2.1.2. AT+Z............................................................................................................................................... 26
4.2.1.3. AT+E...............................................................................................................................................26
4.2.1.4. AT+ENTM...................................................................................................................................... 26
4.2.1.5. AT+WKMOD..................................................................................................................................26
4.2.1.6. AT+CALEN.................................................................................................................................... 27
4.2.1.7. AT+NATEN.................................................................................................................................... 27
4.2.1.8. AT+UATEN.................................................................................................................................... 28
4.2.1.9. AT+CMDPW..................................................................................................................................28
4.2.1.10. AT+CACHEN.............................................................................................................................. 28
4.2.1.11. AT+STMSG................................................................................................................................. 29
4.2.1.12. AT+RSTIM...................................................................................................................................29
4.2.1.13. AT+S.............................................................................................................................................30
4.2.1.14. AT+RELD.................................................................................................................................... 30
4.2.1.15. AT+CLEAR..................................................................................................................................30
4.2.1.16. AT+CFGTF..................................................................................................................................30
4.2.1.17. AT+VER.......................................................................................................................................31
4.2.1.18. AT+SN..........................................................................................................................................31
4.2.1.19. AT+ICCID.................................................................................................................................... 31
4.2.1.20. AT+IMEI.......................................................................................................................................31
4.2.1.21. AT+CNUM................................................................................................................................... 32
4.2.1.22. AT+UART.................................................................................................................................... 32
4.2.1.23. AT+RFCEN................................................................................................................................. 33
4.2.1.24. AT+APN.......................................................................................................................................33
4.2.1.25. AT+SOCKA................................................................................................................................. 33
4.2.1.26. AT+SOCKB................................................................................................................................. 34
4.2.1.27. AT+SOCKAEN........................................................................................................................... 34
4.2.1.28. AT+SOCKBEN........................................................................................................................... 35
4.2.1.29. AT+SOCKASL............................................................................................................................ 35
4.2.1.30. AT+SOCKBSL............................................................................................................................ 36
4.2.1.31. AT+SOCKALK............................................................................................................................ 36
4.2.1.32. AT+SOCKBLK............................................................................................................................ 36
4.2.1.33. AT+SOCKIDEN.......................................................................................................................... 37
4.2.1.34. AT+REGEN.................................................................................................................................37
4.2.1.35. AT+REGTP................................................................................................................................. 38
4.2.1.36. AT+REGID.................................................................................................................................. 38
4.2.1.37. AT+REGDT................................................................................................................................. 38
4.2.1.38. AT+REGSND..............................................................................................................................39
4.2.1.39. AT+HEARTEN............................................................................................................................ 39
4.2.1.40. AT+HEARTDT............................................................................................................................ 40
4.2.1.41. AT+HEARTTP............................................................................................................................ 40
4.2.1.42. AT+HEARTTM............................................................................................................................41
4.2.1.43. AT+HTPTP.................................................................................................................................. 41
4.2.1.44. AT+HTPURL............................................................................................................................... 41
4.2.1.45. AT+HTPSV..................................................................................................................................42

USR-GPRS232-730 User Manual h.usriot.com
Jinan USR IOT Technology Limited / 45 www.usriot.com
4
4.2.1.46. AT+HTPHD................................................................................................................................. 42
4.2.1.47. AT+DSTNUM..............................................................................................................................43
4.2.1.48. AT+SMSEND..............................................................................................................................43
4.2.1.49. AT+CLOUDEN........................................................................................................................... 43
4.2.1.50. AT+CLOUDID............................................................................................................................. 44
4.2.1.51. AT+CLOUDPA............................................................................................................................ 44
5. Contact Us.......................................................................................................................................................................45
6. Disclaimer........................................................................................................................................................................45
7. Update History................................................................................................................................................................ 45

USR-GPRS232-730 User Manual h.usriot.com
Jinan USR IOT Technology Limited / 45 www.usriot.com
5
1. Quick Start
This chapter is a quick start guide for using USR-GPRS232-730 module. If it is the first time to use, you
should read this chapter carefully, and then follow the tips, try to do some tests by yourself. It will help you to
know USR-GPRS232-730 generally.
All the software used in this document can be obtained from our website www.usriot.com.
For any technical questions, please submit to customer support center: http://h.usriot.com.
1.1. Testing environment
Hardware connection see above diagram.
<Note>
Use an USB to RS232/RS485 cable to connect module with PC
RS232 and RS485 can not work at the same time
Keep default setting in this test.
Put SIM card into the socket of module.
1.2. Transmission
Module default settings:
Work mode: data transparent transmission mode
Server Address: test.usr.cn Port: 2317 Type: TCP long connection

USR-GPRS232-730 User Manual h.usriot.com
Jinan USR IOT Technology Limited / 45 www.usriot.com
6
UART setting parameters: 115200, 8, 1 None
Enable heartbeat packet: www.usr.cn, time: 30s
Note: RS232 and RS485 share 1 UART, choose one of them to use.
Test Steps:
1. Open setup software, select the UART parameters, such as serial port number, baud rate and open
serial port, see below image:
2. Power on, then the POWER led will be on, several seconds later, the GPRS led will be on, and then
LINK1 led will be on.
<Note>
Do keep module default settings in this process.
Meaning of LEDs
POWER
“on” means normal power supply, “off” means power supply failure
GPRS
“on” means attached, “off” means attach failure
LINK1
“on” means socket A has connected to server, “off” means not connect
3. Wait for LINKA led on, send data to module via serial port.
For example, if you send “http://www.usr.cn”, at the same time, the DATA led will be on for a while.
Then, you will get “http://www.usr.cn” in the receiving window from our test server.

USR-GPRS232-730 User Manual h.usriot.com
Jinan USR IOT Technology Limited / 45 www.usriot.com
7
2. Product Introduction
2.1. Short Description
USR-GPRS232-730 is new listing at 2015, RS232 and RS485 interface supported. With easy settings, it
can realize data transmission in most application.
2.2. Features
RS232 or RS485 interface, transmission between serial and GPRS
Support GSM850/900,DCS1800/1900
Support GSM/GPRS/EDGE network and 2G/3G/4G SIM card, but 2G traffic only
Support 2 sockets at the same time, Support TCP and UDP
4KB cache for each of sockets, user can choose to cache data or not
Support register package and heart beat package
Support setting parameters via SMS message
Support 3 work modes: SMS message transmission mode, network transmission mode and HTTPD
mode
Support basic and extend AT command sets

USR-GPRS232-730 User Manual h.usriot.com
Jinan USR IOT Technology Limited / 45 www.usriot.com
8
Support similar RFC2217
Support flow control: RTS/CTS
2.3. Parameters
Parameters
Wireless standard
GSM / GPRS
Frequency range
850/900/1800/1900MHz
Transmit power
GSM900 class4 (2W)
DCS1800 class1 (1W)
GPRS Terminal Device Class
Class B
GPRS Multi-slot Class
GPRS Class 10
GPRS Coding Schemes
CS1 ~ CS4
Antenna interface
SMA interface
Hardware
Data interface
UART: 2400bps - 921600bps
Working voltage
DC 9V~24V
Working current
Average 22mA-45mA (12V)
Working tempreture
-25- 85 degree
Storage tempreture
-40- 125 degree
Dimensions
80*84*25 mm
Software
Wireless type
GSM / GPRS
Work mode
Transparent transmission mode
SMS transparent transmission mode
HTTPD mode
Setup command
AT+ command
Network protocol
TCP /UDP/ DNS/HTTP
Max TCP connection
2
Config
UART AT command
Network AT command
SMS ATcommand
Application software
Customize for VIP customers
2.4. Dimensions

USR-GPRS232-730 User Manual h.usriot.com
Jinan USR IOT Technology Limited / 45 www.usriot.com
10
3.1. Setup Process
USR-GPRS232-730 will automatically connect to GPRS network and server, get into correct work mode
and open serial port according to the pre-set parameters.
Pre-set parameters
Work mode
Network transparent transmission mode
HTTPD mode
SMS transparent transmission mode
Default TCP/UDP connection
Protocol
Connection (Long/Short)
Destination port
Destination IP
UART parameters
Baud rate
Data bit
Parity bit
Stop bit
Hardware flow control
Setup and restart, module will work according to pre-set parameters.
3.2. Work mode
There are 3 work modes in total
Network transparent transmission mode
HTTPD mode
SMS transparent transmission mode
Switching Work Mode
Customers can change work mode by sending AT+WKMOD
Work mode
Command
SMS message transmission mode
AT+WKMOD=”SMS”{CR}
Network transmission mode
AT+WKMOD=”NET”{CR}
HTTPD mode
AT+WKMOD=”HTTPD”{CR}
<Note>
After setting, user need to restart module.
{CR} means carriage return, hex number is 0x0D.
More details of AT commands, please refer to chapter 4.1.

USR-GPRS232-730 User Manual h.usriot.com
Jinan USR IOT Technology Limited / 45 www.usriot.com
11
3.2.1. Network Transmission Mode
3.2.1.1. Description
Under this mode, customer’s serial device can send data to TCP or UDP server via this module, Module
can also receive data from server, and transmit the data to customer’s serial device.
Customers don’t need to know the detail of communication, just need some simple setting.
USR-GPRS232-730 support 2 sockets, socket A and socket B, they are standalone with each other. This
module only supports TCP Client and UDP Client.
3.2.1.2. Setup Steps
1) Set work mode as network transmission mode
AT+WKMOD=”NET”
2) Enable socket A
AT+SOCKAEN=”on”
3) Set socket A as TCP client, server address is test.usr.cn(domain), server port is 10000.
AT+SOCKA=”TCP”,”test.usr.cn”,10000
4) Restart USR-GPRS232-730, wait the connection of socket A has been established, send data to
module via serial port, then you will get data at network server software. And send data to module via
network, then the data will be got at module serial port.
3.2.2. HTTPD mode
3.2.2.1. Description
Under this mode, customer’s serial device can request data from HTTP server via this module, Module
can also receive data from HTTP server, analysis the data and transmit the data to customer’s serial device.
TCP/UDP
data
Serial data
730
TCP/UDP
data
Internet
PC
Serial device
HTTP
data
Serial data
730
HTTP
data
Internet
HTTP
server
Serial device

USR-GPRS232-730 User Manual h.usriot.com
Jinan USR IOT Technology Limited / 45 www.usriot.com
12
3.2.2.2. Setup steps
1) Set work mode as HTTPD
AT+WKMOD=”HTTPD”
2) Set request type as GET
AT+HTPTP=”get”
3) Set the address of HTTP server as “www.usr.cn”, and set server port as 80
AT+HTPSV=”www.usr.cn”,80
4) Set the request URL as ”/1.php?”
AT+HTPURL=”/1.php?”
5) Set request head string.
AT+HTPHD=”Accept:text/html[0D][0A]Accept-Language:zh-CN[0D][0A]User-Age nt:
Mozilla/5.0[0D][0A]Connection: Keep-Alive[0D][0A]”
<Note>
[0D] means carriage return, it is 0x0D in hex number. [0A] means line feed, it is 0x0A in hex. Because
this kind of data is not able to be put into AT commands string, so it is tropical. The rule is two bytes in [] means
one byte in hex form.
For example,
“[0D]” means carriage return, 0x0D in hex.
“[20]” means space, 0x20 in hex.
6) Restart module, send “data=http://www.usr.cn” to HTTP server, will receive [http://www.usr.cn] from
server.
<Note>
The server “www.usr.cn” is USR’s HTTP test server, if you send “data=http://www.usr.cn” to it, it will
feed back the data after “=” with “[]” including.
In step 1, serial device send “data=http://www.usr.cn” to USR-GPRS232-730, then module prepares
HTTP package with head information set before, so the package data is:
GET /1.php?data=http://www.usr.cn HTTP/1.1
Host: www.usr.cn
Accept:text/html
Accept-Language:zh-CN
User-Agent: Mozilla/5.0
Connection: Keep-Alive
After sending data, USR-GPRS232-730 receives data:
HTTP/1.1 200 OK
Date: Wed, 24 Jun 2015 04:08:35 GMT
Server: Apache/2.0.63 (Win32) mod_ssl/2.0.65 OpenSSL/0.9.8o PHP/5.2.14

USR-GPRS232-730 User Manual h.usriot.com
Jinan USR IOT Technology Limited / 45 www.usriot.com
13
X-Powered-By: PHP/5.2.14
Cache-Control: max-age=600
Expires: Wed, 24 Jun 2015 04:18:35 GMT
Content-Length: 19
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Content-Type: text/html
[http://www.usr.cn]
After USR-GPRS232-730 receives the above data, it will analysis the information, and send the result
to serial device.
3.2.3. SMS Transmission Mode
3.2.3.1. Description
Under this mode, customer’s serial device can send SMS message to a cell phone via this module,
Module can also receive SMS message from cell phone, and transmit the message in serial data to serial
device.
3.2.3.2. Setup steps
1) Set the destination phone number.
AT+DSTNUM=”phone number”
2) Set work mode as SMS message transmission.
AT+WKMOD=”SMS”
3) Restart module, and send message to module via serial port, then you will get the message on your
cellphone. Then send a message back to module, then you will get the message from module’s serial
port.
Note: every command string should terminate with carriage return. Here we use [0D].
SMS
SMS
Serial data
730
Base station
cell
phone
Serial
Device

USR-GPRS232-730 User Manual h.usriot.com
Jinan USR IOT Technology Limited / 45 www.usriot.com
14
3.3. Register Package
3.3.1. Description
Under network transmission mode, customers can send Register Package, Register Package is used to
make server know what device is sending data, or as a password. Customers can choose to send register
package to network server, or serial device. Register Package could be sent when network connection is
established, or as the head of every TCP/UDP package. The type of register package could be ICCID ,IMEI, or
user-defined data.
3.3.2. Setup steps
1) Enable sending register package.
AT+REGEN=”on”
2) Set the type of register package data. for instance, using user-defined data.
AT+REGTP=”REGDT”
3) Set user-defined register data, for instance, set data as string “www.usr.cn”, you need to convert it to
hex string “7777772E7573722E636E”.
AT+REGDT=”7777772E7573722E636E”
4) Set sending type, for instance, send data when connection is established.
AT+REGSND=”link”
5) Besides, customers need to configure socket A or socket B for network connection, refer to chapter
4.1. After setting successful, restart USR-GPRS232-730. When connection is establishing, module
will send string “www.usr.cn” to server via socket A and socket B.
3.4. Heart Beat Package
3.4.1. Description
Under network transmission mode, customers can send Heart Beat Package to network server or serial
device.
Sending heart beat data to network server, is used to check if connection is alive. If USR-GPRS232-730
sends data unsuccessful for 3 times, it will try to reconnect to server.
Sending heart beat data to serial device , is usually used to query information from serial device instead of
sending query command from server, To do this can cut some communication flow.
3.4.2. Setup steps
1) Enable sending heart beat package.
AT+HEARTEN=”on”
2) Set the destination of heart beat package data. for instance, to network server.
AT+HEARTTP=”NET”
3) Set heart beat data, for instance, set data as string “www.usr.cn”, customer need to convert it to hex

USR-GPRS232-730 User Manual h.usriot.com
Jinan USR IOT Technology Limited / 45 www.usriot.com
15
string “7777772E7573722E636E”.
AT+HEARTDT=”7777772E7573722E636E”
4) Set sending period, for instance, 30 seconds.
AT+HEARTTM=30
Besides, customers need to configure socket A or socket B for network connection, refer to chapter 4.1.
After setting successful, restart USR-GPRS232-730. When connection is establishing, If device is idle for 30
seconds, USR-GPRS232-730 will send string “www.usr.cn” to server via socket A and socket B.
3.5. USR CLOUD
3.5.1. Description
USR CLOUD is a platform for communication between machine-to-machine, machine-to-upper computer
(including Android, IOS, PC). It is used for data transparent transmission, device can realize remote
communication with little settings. USR CLOUD application field: remote monitor and control, internet of things,
smart home and so on. USR-GPRS232-730 can also join in USR CLOUD.
3.5.2. Setup Steps
1) Enable USR CLOUD function
AT+CLOUDEN=”ON”
2) Set 20 bits device ID and 8 bit password.
AT+CLOUDID=”10011111100000111111”
AT+CLOUDPA=”0000test”
3) Set USR CLOUD server address and enable. Now our address is cloud.usr.cn, port 15000
AT+SOCKAEN=”on”
AT+SOCKA=”TCP”,”cloud.usr.cn”,15000
4) Click to save all parameters. After restart, module will connect the network and reply
usr_cloud_code_0, then connect USR CLOUD succeed.
3.6. UART Function
3.6.1. RS485
USR-GPRS232-730 module supports RS485 interface.
When use RS485 interface, firstly user need to connect module with RS232 interface for setting. Refer to
command AT+UART. When RS485 enabled, user can use RS485 interface.
<Note>
Module support RS232 and RS485, but they can not work at the same time. Choose one of them to work.

USR-GPRS232-730 User Manual h.usriot.com
Jinan USR IOT Technology Limited / 45 www.usriot.com
16
3.6.2. Similar RFC2217
This function is similar to RFC2217. Customer can change the parameters of serial port dynamically via
network. This modification is temporary, when module restarts, the parameters changed will return back to
previous values.
Definition of similar RFC2217
This protocol contains 8 bytes, details as the following form
Interpretation of bits parameters
Bits
Interpretation
Value
Description
1:0
Data bits
00
5
01
6
10
7
11
8
2
Stop bits
0
1
1
2
3
Enable/disable parity
0
disable
1
enable
5:4
Parity type
00
ODD
01
EVEN
10
Mark
7:6
No defined
00
write 0
3.7. Indicator Status
Indicator status meaning
POWER
“on” means normal power supply, “off” means power supply failure
GPRS
“on” means attached, “off” means attach failure
Item
Head
Baud Rate
Bits Parameters
Check Sum
bytes
3
3
1
1
interpretation
Fixed data
MSB
Refer to the following
table
Sum of Baud Rate
and Bits Parameters
Exmaple1
(115200,N,8,1)
55 AA 55
01 C2 00
83
46
Exmaple2
(9600,N,8,1)
55 AA 55
00 25 80
83
28

USR-GPRS232-730 User Manual h.usriot.com
Jinan USR IOT Technology Limited / 45 www.usriot.com
17
LINK1
“on” means socket A has connected to server, “off” means not connect
3.8. Firmware Upgrade
USR-GPRS232-730 can be upgrade by UART port. The upgrade port is reserved on PCB, user need to
take the shell off. An USB to TTL cable is needed. Wiring hole is GND, RXD, TXD from left to right.
Open the update software we supply, click Setup, select correct firmware to load.
Select port number

USR-GPRS232-730 User Manual h.usriot.com
Jinan USR IOT Technology Limited / 45 www.usriot.com
19
4. Parameters Setting
4.1. AT commands Set
4.1.1. AT command Mode
When USR-GPRS232-730 works in one of the three modes: SMS message transmission, network
transmission mode or HTTPD mode. You can get module into “command mode” by sending specific timing
data to it, then send commands to change module’s running parameters. If changing is done, get module back
to previous work mode.
In the above figure, abscissa axis means time, the data above time axis is sent to module from device,
and the data bellow time axis is sent to device from module.
Time requirement
T1 > 200ms
T2 < 50ms
T3 < 50ms
T5 < 3s
Get into command mode:
1) Module is in SMS message transmission, network transmission or HTTPD mode.
2) Device send “+++” to module, then module send ‘a’ to device.
3) If device receives ‘a’, it must send ‘a’ to module within 3 seconds.
4) Module receives ‘a’, and sends “+ok” to device.
5) Device receives “+ok”, it means module has gone to temporary command mode, so device can send
AT commands to module.
Back to previous mode:
1) Device send command “AT+ENTM” to module.
T7
T5
T1
T2
T4
T3
T6
Sending data to device
TIME
+
Sending data to module
+
+
a
a
+ok
AT+ENTM
OK

USR-GPRS232-730 User Manual h.usriot.com
Jinan USR IOT Technology Limited / 45 www.usriot.com
20
2) Module receives “AT+ENTM”, and send “OK” to device.
3) Device receives “OK”, it means module has gone back to previous mode.
4.1.2. Serial AT command
Steps
1) Set work mode as network transmission.
AT+WKMOD=”NET”[0D]
2) Enable serial command function.
AT+UATEN=”on”[0D]
3) Query command password.
AT+CMDPW[0D]
We suppose the command password is ”usr.cn” here.
After setting successful, restart USR-GPRS232-730, then send “usr.cn#AT+VER” via serial.
Then USR-GPRS232-730 will respond the firmware version.
4.1.3. Network AT command
Steps
Other manuals for USR-GPRS232-730
1
Table of contents
Other USR IOT Network Hardware manuals
Popular Network Hardware manuals by other brands

ZyXEL Communications
ZyXEL Communications OLT2406 user guide

Teletronics International
Teletronics International EZ Bridge 802.11G Product guide

Tektronix
Tektronix 070-9180-01 user manual

Cisco
Cisco WBPN user guide

Bosch
Bosch DLA-AIOL1 Quick installation guide

Buffalo Tech
Buffalo Tech LinkStation LS410D user manual