background image

USR-GPRS232-730 User Manual

h.usriot.com

Jinan USR IOT Technology Limited

/ 45

www.usriot.com

1

USR-GPRS232-730 User Manual

File Version: V1.0

Summary of Contents for USR-GPRS232-730

Page 1: ...USR GPRS232 730 User Manual h usriot com Jinan USR IOT Technology Limited 45 www usriot com 1 USR GPRS232 730 User Manual File Version V1 0 ...

Page 2: ...cription 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 Firmwa...

Page 3: ...1 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 R...

Page 4: ...m 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 ...

Page 5: ...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 soc...

Page 6: ...n 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 ...

Page 7: ... 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 m...

Page 8: ...ing 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...

Page 9: ...USR GPRS232 730 User Manual h usriot com Jinan USR IOT Technology Limited 45 www usriot com 9 3 Function ...

Page 10: ...on 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 tra...

Page 11: ...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...

Page 12: ... 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 ...

Page 13: ...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...

Page 14: ...e 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 c...

Page 15: ...munication 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 p...

Page 16: ...rpretation 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 ...

Page 17: ... 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 ...

Page 18: ...USR GPRS232 730 User Manual h usriot com Jinan USR IOT Technology Limited 45 www usriot com 18 Get back to home and click upgrade Wait until progress bar finished upgrade succeed ...

Page 19: ...is 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...

Page 20: ...revious 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...

Page 21: ...setting successful restart USR GPRS232 730 When connection is establishing send usr cn AT VER from network 4 1 4 SMS AT Command Note every command string should terminate with carriage return Here we use 0D Steps 1 Query command password AT CMDPW We suppose the command password is usr cn here Besides customers need to configure SMS message transmission refer to chapter 4 1 After setting successful...

Page 22: ...to module reply means module responds to device Note Characters in command is case insensitive Symbol Description content inside is necessary content inside is not necessary content inside is with particular meaning range for example A B means the range is from A to B CMD command code OP operator PARA parameter CR carriage return in ASCII 0x0D in hex LF line feed in ASCII 0x0A in hex ...

Page 23: ...parameter The format of reply There are two kinds of response with or without echo All the followings are using without echo as examples Command string CR LF CMD OP PARA CR LF CR LF OK CR LF Code Meaning Necessary AT AT command head Yes CMD function of command Yes OP operator example No PARA parameters No CR carriage return end of command Yes Code Meaning Necessary CR carriage return No LF line fe...

Page 24: ... CACHEN query set enable disable data cache 11 STMSG query set welcome message 12 RSTIM query set restart time Configuration commands 13 S save current settings 14 RELD restore to user default settings 15 CLEAR restore to factory settings 16 CFGTF save current setting as default setting Query information commands 17 VER query firmware version 18 SN query SN code 19 ICCID query CCID code 20 IMEI qu...

Page 25: ...pe Heartbeat package parameters commands 39 HEARTEN query set enable disable heartbeat 40 HEARTDT query set heartbeat data 41 HEARTTP query set heartbeat package sending type 42 HEARTTM query set heartbeat time HTTPD parameters commands 43 HTPTP query set HTTP request type 44 HTPURL query set HTTP URL 45 HTPSV query set HTTP server address and port 46 HTPHD query set HTTP request head 47 HTPPK que...

Page 26: ...or AT E CR CR LF E status CR LF CR LF OK CR LF set parameter AT E status CR CR LF OK CR LF parameter status enable or disable echo on enable off disable 4 2 1 4 AT ENTM function quit from command mode format setting AT ENTM CR CR LF OK CR LF 4 2 1 5 AT WKMOD function query set work mode format query parameter introductions AT WKMOD CR CR LF WKMOD CMD SMS NET HTTPD CR LF CR LF OK CR LF query curren...

Page 27: ...nt value of parameter AT CALEN CR or AT CALEN CR CR LF CALEN status CR LF CR LF OK CR LF set parameter AT CALEN status CR CR LF OK CR LF parameter status enable or disable call on enable off disable 4 2 1 7 AT NATEN function query set enable disable network command format query parameter introductions AT NATEN CR CR LF NATEN on off CR LF CR LF OK CR LF query current value of parameter AT NATEN CR ...

Page 28: ...CR LF OK CR LF set parameter AT UATEN status CR CR LF OK CR LF parameter status enable or disable serial port command on enable off disable 4 2 1 9 AT CMDPW function query set command password format query parameter introductions AT CMDPW CR CR LF CMDPW password CR LF CR LF OK CR LF query current value of parameter AT CMDPW CR or AT CMDPW CR CR LF CMDPW password CR LF CR LF OK CR LF set parameter ...

Page 29: ...ameter introductions AT STMSG CR CR LF STMSG welcome message CR LF CR LF OK CR LF query current value of parameter AT STMSG CR or AT STMSG CR CR LF STMSG message CR LF CR LF OK CR LF set parameter AT STMSG message CR CR LF OK CR LF parameter message welcome message when module powers up it will show them this can be used to check if module starts up normally 4 2 1 12 AT RSTIM function query set au...

Page 30: ...o be 0 4 2 1 13 AT S function save current settings format setting AT S CR CR LF OK CR LF 4 2 1 14 AT RELD function restore user default settings format setting AT RELD CR CR LF OK CR LF 4 2 1 15 AT CLEAR function restore factory settings format setting AT CLEAR CR CR LF OK CR LF 4 2 1 16 AT CFGTF function save current setting as default setting format setting AT CFGTF CR CR LF OK CR LF ...

Page 31: ... function query SN code format query current value of parameter AT SN CR or AT SN CR CR LF SN code CR LF CR LF OK CR LF parameter code SN code 4 2 1 19 AT ICCID function query ICCID code format query current value of parameter AT ICCID CR or AT ICCID CR CR LF ICCID code CR LF CR LF OK CR LF parameter code ICCID code 4 2 1 20 AT IMEI function query IMEI code format query current value of parameter ...

Page 32: ...00 9600 14400 19200 28800 33600 38400 57600 115200 230400 460800 921600 NONE ODD EVEN 7 8 1 2 NONE CRTS RS485 CR LF CR LF OK CR LF query current value of parameter AT UART CR or AT UART CR CR LF UART baud parity data bit stop bit flow control CR LF CR LF OK CR LF set parameter AT UART baud parity data bit stop bit flow control CR CR LF OK CR LF parameter baud baud rate 2400 4800 9600 14400 19200 2...

Page 33: ...arameter AT RFCEN status CR CR LF OK CR LF parameter status enable disable similar RFC2117 on enable off disable 4 2 1 24 AT APN function query set APN code format query parameter introductions AT APN CR CR LF APN code CR LF CR LF OK CR LF query current value of parameter AT APN CR or AT APN CR CR LF APN code CR LF CR LF OK CR LF set parameter AT APN code CR CR LF OK CR LF parameter code APN code ...

Page 34: ...et B parameters format query parameter introductions AT SOCKB CR CR LF SOCKB TCP UDP address port CR LF CR LF OK CR LF query current value of parameter AT SOCKB CR or AT SOCKB CR CR LF SOCKB protocol address port CR LF CR LF OK CR LF set parameter AT SOCKB protocol address port CR CR LF OK CR LF parameter protocol communication protocol TCP TCP UDP UDP address server address IP or domain name port...

Page 35: ...LF CR LF OK CR LF query current value of parameter AT SOCKBEN CR or AT SOCKBEN CR CR LF SOCKBEN status CR LF CR LF OK CR LF set parameter AT SOCKBEN status CR CR LF OK CR LF parameter status enable or disable socket B on enable off disable 4 2 1 29 AT SOCKASL function query set socket A long or short connection format query parameter introductions AT SOCKASL CR CR LF SOCKASL short long CR LF CR LF...

Page 36: ...type CR LF CR LF OK CR LF set parameter AT SOCKBSL type CR CR LF OK CR LF parameter type connection style short short connection long long connection 4 2 1 31 AT SOCKALK function query socket A connection status format query current value of parameter AT SOCKALK CR or AT SOCKALK CR CR LF SOCKALK status CR LF CR LF OK CR LF parameter status socket A connection status connected connected disconnecte...

Page 37: ... AT SOCKIDEN CR or AT SOCKIDEN CR CR LF SOCKIDEN status CR LF CR LF OK CR LF set parameter AT SOCKIDEN status CR CR LF OK CR LF parameters status on enable show socket ID function off disable show socket ID function 4 2 1 34 AT REGEN function query set enable disable register package format query parameter introductions AT REGEN CR CR LF REGEN on off CR LF CR LF OK CR LF query current value of par...

Page 38: ...er AT REGTP type CR CR LF OK CR LF parameter type type of register data ICCID ICCID code IMEI IMEI code REGID register ID for D2D function REGDT user defined data 4 2 1 36 AT REGID function query set register ID used for D2D format query parameter introductions AT REGID CR CR LF REGID id CR LF CR LF OK CR LF query current value of parameter AT REGID CR or AT REGID CR CR LF REGID id CR LF CR LF OK ...

Page 39: ...t query parameter introductions AT REGSND CR CR LF REGSND link data link data CR LF CR LF OK CR LF query current value of parameter AT REGSND CR or AT REGSND CR CR LF REGSND type CR LF CR LF OK CR LF set parameter AT REGSND type CR CR LF OK CR LF parameter type sending type link send register data when socket connects data send register data as the head of every TCP UDP package link data support b...

Page 40: ...CR CR LF HEARTDT data CR LF CR LF OK CR LF set parameter AT HEARTDT data CR CR LF OK CR LF parameter data heartbeat data hex string max length is 80 bytes for example 7777772E7573722E636E means www usr cn in ASCII 4 2 1 41 AT HEARTTP function query set heartbeat package sending type format query parameter introductions AT HEARTTP CR CR LF HEARTTP COM NET CR LF CR LF OK CR LF query current value of...

Page 41: ...er AT HEARTTM time CR CR LF OK CR LF parameter time strobe period unit is second 4 2 1 43 AT HTPTP function query set HTTP request type format query parameter introductions AT HTPTP CR CR LF HTPTP GET POST CR LF CR LF OK CR LF query current value of parameter AT HTPTP CR or AT HTPTP CR CR LF HTPTP type CR LF CR LF OK CR LF set parameter AT HTPTP type CR CR LF OK CR LF parameter type HTTP request t...

Page 42: ...HTPSV address port CR LF CR LF OK CR LF query current value of parameter AT HTPSV CR or AT HTPSV CR CR LF HTPSV address port CR LF CR LF OK CR LF set parameter AT HTPSV address port CR CR LF OK CR LF parameter address server address IP or domain name port server port 1 65535 4 2 1 46 AT HTPHD function query set HTTP request head format query parameter introductions AT HTPHD CR CR LF HTPHD head CR ...

Page 43: ...OK CR LF parameter number destination phone number in SMS mode 4 2 1 48 AT SMSEND function send SMS message format query parameter introductions AT SMSEND CR CR LF SMSEND number 1 2 3 data CR LF CR LF OK CR LF set parameter AT SMSEND number type data CR CR LF OK CR LF parameter number destination phone number type coding scheme 1 ASCII coding compressed 2 8 bits coding not compressed 3 UCS8 coding...

Page 44: ...parameter introductions AT CLOUDID CR CR LF CLOUDID id CR LF CR LF OK CR LF query current value of parameter AT CLOUDID CR or AT CLOUDID CR CR LF CLOUDID id CR LF CR LF OK CR LF set parameter AT CLOUDID id CR CR LF OK CR LF parameter id 20 bit ID of device 4 2 1 51 AT CLOUDPA function query set 8 bit communication password of device format query parameter introductions AT CLOUDPA CR CR LF CLOUDPA ...

Page 45: ...vides information about USR C322 modules this document does not grant any license to intellectual property rights Except the responsibility declared in the product sale clause USR does not assume any other responsibilities In addition USR does not make any warranties for the sale and use of this product including the suitability of the product for a particular purpose merchantability or fitness fo...

Reviews: