background image

USR-GM3/GM3s User Manual

www.usriot.com

Jinan USR IOT Technology Limited

1 / 55

[email protected]

USR-GM3/GM3s

USR-GM3/GM3s

USR-GM3/GM3s

USR-GM3/GM3s User

User

User

User Guide

Guide

Guide

Guide

(USR-GM3/GM3s )

File version: Ver1.08

USR-GM3/GM3s is highly-integrated UART to GSM/GPRS module, Users can easily make
communication between serial device and cellphone and network device with it.
This module is different from the common modules on the market, it is the smallest GPRS DTU,
plug-and-play device. USR-GM3s will be with SIM card inside, more easier to use, it just need
power supply.

Summary of Contents for USR-GM3

Page 1: ... USR GM3 GM3s File version Ver1 08 USR GM3 GM3s is highly integrated UART to GSM GPRS module Users can easily make communication between serial device and cellphone and network device with it This module is different from the common modules on the market it is the smallest GPRS DTU plug and play device USR GM3s will be with SIM card inside more easier to use it just need power supply ...

Page 2: ...8 3 1 4 Pin Description 9 3 1 5 Outside Antenna 11 3 2 Hardware Block Diagram 11 4 Module Functions 11 4 1 Work Mode 12 4 1 1 Switching Work Mode 12 4 1 2 Network transmission 12 4 1 3 HTTPD Function 20 4 1 4 SMS Message Transmission 23 4 2 Register Package 27 4 2 1 Description 28 4 2 2 Usage 28 4 3 Heart Beat Package 29 4 3 1 Description 30 4 3 2 Usage 30 4 4 UART 31 4 4 1 RS485 32 4 4 2 Similar ...

Page 3: ...sriot com www usriot com www usriot com You can also access USR customer support center http h usriot com http h usriot com http h usriot com http h usriot com 1 1 1 1 1 1 1 1 Testing Testing Testing Testing environment environment environment environment The voltage of module is TTL 3 3V so you should not connect it with computer serial port directly an adapter is necessary NOTE NOTE NOTE NOTE 1 ...

Page 4: ...sion 1 Put SIM card into the socket on EVK connect COM1 to PC s serial port with cable 2 Open test software USR TCP232 Test set right serial port number and baud rate and open it As the following figure 3 Power up the EVK with DC 5V adapter then the POWER led will be on several seconds later the WORK led will twinkle and then GPRS LINKA led will be on ...

Page 5: ...ched off means attach failure LINKA on means socket A has connected to server off means not connect LINKB on means socket B has connected to server off means not connect DATA blink means transmission off means no transmission 4 Wait for LINKA led on send data to module via serial port For example if you send www usr cn at the same time the DATA led will be on for a while Then you will get www usr ...

Page 6: ...rt GSM GPRS EDGE support 2G 3G 4G SIM card but based on 2G network Support 2 sockets 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 4 work modes SMS message transmission mode network transmission mode and HTTPD mode Support basic and extend AT command sets Supp...

Page 7: ...n be embedded in m BUS concentrator to achieve the integration of the concentrator and wireless communication In water industry USR GM3 GM3s is also plays a significant role in system of water set co py water resource management and remote monitoring wireless communication of water pipe network monitoring In Environmental protection USR GM3 GM3s module can be integrated into the on line monitoring...

Page 8: ...3 3 Hardware Hardware Hardware Hardware 3 1 3 1 3 1 3 1 Pin Pin Pin Pin Description Description Description Description 3 1 1 3 1 1 3 1 1 3 1 1 Outside Outside Outside Outside View View View View 3 1 2 3 1 2 3 1 2 3 1 2 Pin Pin Pin Pin Assignment Assignment Assignment Assignment Top Top Top Top ...

Page 9: ...USR GM3 GM3s User Manual www usriot com Jinan USR IOT Technology Limited 9 55 tec usr cn 3 1 3 3 1 3 3 1 3 3 1 3 PCB PCB PCB PCB Layout Layout Layout Layout ...

Page 10: ...ched low for not attached 11 LINKA O Socket A status high for connected low for not connected 12 LINKB O Socket B status high for connected low for not connected 13 DATA O Data status high for transmission low for not transmission 14 WORK O Running status high for normal low for failure 15 SHUT I Shut down pull down for shut module 16 NC N Keep no connecting 17 GND P Power ground 18 SPEAKER O Spea...

Page 11: ... Outside Outside Outside Antenna Antenna Antenna Antenna 1 The line of Antenna should be short to make the insert loss lower and routed as RF line strictly to keep 50ohm matching 2 It s better to put the antenna pad on the edge of the PCB 3 2 3 2 3 2 3 2 Hardware Hardware Hardware Hardware B B B Block lock lock lock D D D Diagram iagram iagram iagram The interface module provides includes power in...

Page 12: ...S message transmission mode network transmission mode HTTPD mode 4 1 1 4 1 1 4 1 1 4 1 1 Switching Switching Switching Switching Work Work Work Work Mode Mode Mode Mode Choose by button you want to work mode And then select save all parameters Can save the default parameters for the user click on the restart after effective working mode Note if you can t find the above tool buttons please refer to...

Page 13: ...ion between serial devices and devices on the network but in the place where serial device stays using router to connect to network is not convenient for user But signal from base station is available so GM3 module can build a bridge between serial device and devices on the network 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 Usage Usage Usage Usage Note All the AT commands terminate with carriage return 0x0D ...

Page 14: ...r Manual www usriot com Jinan USR IOT Technology Limited 14 55 tec usr cn 1 Set TCP server software log in remote server via remote desktop connection Then open network test software set the parameters as the bellowing ...

Page 15: ...ission 2 Enable socket A 3 Set socket A as TCP client server address is test usr cn domain server port is 10000 3 Restart GM3 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 ...

Page 16: ...USR GM3 GM3s User Manual www usriot com Jinan USR IOT Technology Limited 16 55 tec usr cn ...

Page 17: ...ding Sending Sending Sending Command Command Command Command Besides under AT command mode customers can also send At commands under network transmission mode via serial or network This kind of commands is different from common ones customers should add command password and at the front of common command string Note every command string should terminate with carriage return Here we use 0D ...

Page 18: ...4 1 4 1 2 4 1 4 1 2 4 1 Serial Serial Serial Serial AT AT AT AT Command Command Command Command 1 Set work mode as network transmission 2 Enable serial command function 3 Query command password After setting successful restart GM3 then send usr cn AT VER via serial Then GM3 will respond the firmware version ...

Page 19: ...55 tec usr cn 4 1 2 4 2 4 1 2 4 2 4 1 2 4 2 4 1 2 4 2 Network Network Network Network AT AT AT AT command command command command 1 Enable network command function 2 Query command password Besides customers need to configure socket A or socket B for network connection refer to ...

Page 20: ...R GM3 GM3s User Manual www usriot com Jinan USR IOT Technology Limited 20 55 tec usr cn chapter 4 1 2 3 After setting successful restart GM3 When connection is establishing send usr cn AT VER from network ...

Page 21: ...ustomer s serial device can t connect to Internet via a router But signal from base station is available so customer can use GM3 module to make this communication Customer just need to do some simple setting and send request data GM3 could get the result from HTTP server and analysis it to get the useful data send the data to serial device 4 1 3 3 4 1 3 3 4 1 3 3 4 1 3 3 Usage Usage Usage Usage No...

Page 22: ...A Accept Language zh CN 0D 0A User Age Accept text html 0D 0A Accept Language zh CN 0D 0A User Age Accept text html 0D 0A Accept Language zh CN 0D 0A User Age Accept text html 0D 0A Accept Language zh CN 0D 0A User Age nt nt nt nt Mozilla 5 0 0D 0A Connection Mozilla 5 0 0D 0A Connection Mozilla 5 0 0D 0A Connection Mozilla 5 0 0D 0A Connection Keep Alive 0D 0A Keep Alive 0D 0A Keep Alive 0D 0A Ke...

Page 23: ...t before so the package data is GET 1 php data 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 After After After sending sending sending sending data data data data GM3 GM3 GM3 GM3 receives receives receives receives data data data data HTTP 1 1 200 OK Date Wed 24 Jun 2015 04 08 35 GMT Server Apache 2 0 63 Win32 mod_ssl ...

Page 24: ... user s device is a serial device it is placed at remote area User wants to communicate with this device by SMS message to check what status the device is in or to control the device 4 1 4 3 4 1 4 3 4 1 4 3 4 1 4 3 Usage Usage Usage Usage Note All the AT commands terminate with carriage return 0x0D we ignore it here About how to use AT commands please refer to chapter 5 We have one software for cu...

Page 25: ...cn 1 Setting 1 Set the destination phone number 2 Set work mode as SMS message transmission 2 Reset 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 ...

Page 26: ...USR GM3 GM3s User Manual www usriot com Jinan USR IOT Technology Limited 26 55 tec usr cn ...

Page 27: ...AT AT Command Command Command Command Note every command string should terminate with carriage return Here we use 0D 1 Query command password Besides customers need to configure SMS message transmission refer to chapter 4 1 4 3 After setting successful restart GM3 send usr cn AT VER to GM3 from cellphone then then you will get response from GM3 ...

Page 28: ...ing 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 4 2 2 4 2 2 4 2 2 4 2 2 Usage Usage Usage Usage 1 Enable sending register package 2 Set the type of register pack...

Page 29: ...ng type for instance send data when connection is established Besides customers need to configure socket A or socket B for network connection refer to chapter 4 1 2 3 After setting successful restart GM3 When connection is establishing GM3 will send string www usr cn to server via socket A and socket B ...

Page 30: ...f connection is alive If GM3 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 4 3 2 4 3 2 4 3 2 4 3 2 Usage Usage Usage Usage 1 Enable sending heart beat package 2 Set the destination of heart ...

Page 31: ...nds GM3 will send string www usr cn to server via socket A and socket B 4 4 4 4 4 4 4 4 UART UART UART UART 4 4 1 4 4 1 4 4 1 4 4 1 RS485 RS485 RS485 RS485 4 4 1 1 4 4 1 1 4 4 1 1 4 4 1 1 Description Description Description Description GM3 module supports RS485 function RS485 is half duplex the direction of transmitting data should be controlled manually If customer enables module s RS485 function...

Page 32: ... 2 1 4 4 2 1 4 4 2 1 4 4 2 1 Description Description Description Description 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 4 4 2 2 4 4 2 2 4 4 2 2 4 4 2 2 Definition Definition Definition Definition of of of of similar simila...

Page 33: ... 11 Not Used 7 6 No defined 00 Not Used 5 5 5 5 Parameters Parameters Parameters Parameters Setting Setting Setting Setting Sending AT commands is the only way to set the parameters of GM3 module There are two kinds of commands basic AT commands and extended AT commands Item Head Baud Rate Bits Parameters Check Sum bytes 3 3 1 1 interpretation Fixed data MSB Refer to the following table Sum of Bau...

Page 34: ...network transmission 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 requiremen...

Page 35: ...ous mode 5 2 5 2 5 2 5 2 AT AT AT AT Command Command Command Command Format Format Format Format AT commands work in asking answering mode asking means device sends commands to module answering means module responds to device Symbol Symbol Symbol Symbol Description Description Description Description content inside is necessary content inside is not necessary range for example A B means the range ...

Page 36: ...F CR LF CMD OP PARA CR LF CR LF OK CR LF CR LF CMD OP PARA CR LF CR LF OK CR LF CR LF CMD OP PARA CR LF CR LF OK CR LF Type Type Type Type of of of of command command command command type type type type Command Command Command Command string string string string description description description description 0 CR LF OK CR LF successful 1 CR LF CMD PARA CR LF CR LF OK CR LF return parameter Code C...

Page 37: ...efault settings 14 CLEAR restore factory settings 15 CFGTF save current setting as default setting Query Query Query Query information information information information commands commands commands commands 16 VER query firmware version 17 SN query SN code 18 ICCID query CCID code 19 IMEI query IMEI code 20 CNUM query the MS ISDN related to the subscriber UART UART UART UART parameters parameters ...

Page 38: ... query or set heartbeat time HTTPD HTTPD HTTPD HTTPD parameters parameters parameters parameters commands commands commands commands 41 HTPTP query or set HTTP request type 42 HTPURL query or set HTTP URL 43 HTPSV query or set HTTP server address and port 44 HTPHD query or set HTTP request head SMS SMS SMS SMS message message message message parameters parameters parameters parameters commands com...

Page 39: ...M CR AT ENTM CR AT ENTM CR CR LF OK CR LF CR LF OK CR LF CR LF OK CR LF CR LF OK CR LF 5 AT WKMOD function query or set work mode format query parameter introductions AT WKMOD CR AT WKMOD CR AT WKMOD CR AT WKMOD CR CR LF WKMOD CMD SMS NET HTTPD CR LF CR LF OK CR LF CR LF WKMOD CMD SMS NET HTTPD CR LF CR LF OK CR LF CR LF WKMOD CMD SMS NET HTTPD CR LF CR LF OK CR LF CR LF WKMOD CMD SMS NET HTTPD CR...

Page 40: ... OK CR LF CR LF NATEN on off CR LF CR LF OK CR LF CR LF NATEN on off CR LF CR LF OK CR LF CR LF NATEN on off CR LF CR LF OK CR LF query current value of parameter AT NATEN CR AT NATEN CR AT NATEN CR AT NATEN CR or or or or AT NATEN CR AT NATEN CR AT NATEN CR AT NATEN CR CR LF NATEN status CR LF CR LF OK CR LF CR LF NATEN status CR LF CR LF OK CR LF CR LF NATEN status CR LF CR LF OK CR LF CR LF NAT...

Page 41: ... LF CMDPW password CR LF CR LF OK CR LF set parameter AT CMDPW password CR AT CMDPW password CR AT CMDPW password CR AT CMDPW password CR CR LF OK CR LF CR LF OK CR LF CR LF OK CR LF CR LF OK CR LF parameter password command password 10 AT CACHEN function query or set enable disable data cache format query parameter introductions AT CACHEN CR AT CACHEN CR AT CACHEN CR AT CACHEN CR CR LF CACHEN on ...

Page 42: ... LF STMSG message CR LF CR LF OK CR LF set parameter AT STMSG message CR AT STMSG message CR AT STMSG message CR AT STMSG message CR CR LF OK CR LF CR LF OK CR LF CR LF OK CR LF 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 12 AT S function save current settings format setting AT AT AT AT S S S S CR C...

Page 43: ... CR AT SN CR CR LF SN code CR LF CR LF OK CR LF CR LF SN code CR LF CR LF OK CR LF CR LF SN code CR LF CR LF OK CR LF CR LF SN code CR LF CR LF OK CR LF parameter code SN code 18 AT ICCID function query ICCID code format query current value of parameter AT ICCID CR AT ICCID CR AT ICCID CR AT ICCID CR or or or or AT ICCID CR AT ICCID CR AT ICCID CR AT ICCID CR CR LF ICCID code CR LF CR LF OK CR LF ...

Page 44: ...1 2 NONE CRTS 230400 460800 921600 NONE ODD EVEN 7 8 1 2 NONE CRTS RS485 CR LF CR LF OK CR LF RS485 CR LF CR LF OK CR LF RS485 CR LF CR LF OK CR LF RS485 CR LF CR LF OK CR LF query current value of parameter AT UART CR AT UART CR AT UART CR AT UART CR or or or or AT UART CR AT UART CR AT UART CR AT UART CR CR LF UART baud parity data CR LF UART baud parity data CR LF UART baud parity data CR LF UA...

Page 45: ...meter AT APN CR AT APN CR AT APN CR AT APN CR or or or or AT APN CR AT APN CR AT APN CR AT APN CR CR LF APN code CR LF CR LF OK CR LF CR LF APN code CR LF CR LF OK CR LF CR LF APN code CR LF CR LF OK CR LF CR LF APN code CR LF CR LF OK CR LF set parameter AT APN code CR AT APN code CR AT APN code CR AT APN code CR CR LF OK CR LF CR LF OK CR LF CR LF OK CR LF CR LF OK CR LF parameter code code code...

Page 46: ...l address port CR AT SOCKB protocol address port CR AT SOCKB protocol address port CR AT SOCKB protocol address port CR CR LF OK CR LF CR LF OK CR LF CR LF OK CR LF CR LF OK CR LF parameter protocol communication protocol TCP TCP UDP UDP address server address IP or domain name port server port 1 65535 26 AT SOCKAEN function query or set enable disable socket A format query parameter introductions...

Page 47: ...eter status enable or disable socket B on enable off disable 28 AT SOCKASL function query or set socket A long or short connection format query parameter introductions AT SOCKASL CR AT SOCKASL CR AT SOCKASL CR AT SOCKASL CR CR LF SOCKASL short long CR LF CR LF OK CR LF CR LF SOCKASL short long CR LF CR LF OK CR LF CR LF SOCKASL short long CR LF CR LF OK CR LF CR LF SOCKASL short long CR LF CR LF O...

Page 48: ... SOCKALK CR or or or or AT SOCKALK CR AT SOCKALK CR AT SOCKALK CR AT SOCKALK CR CR LF SOCKALK status CR LF CR LF OK CR LF CR LF SOCKALK status CR LF CR LF OK CR LF CR LF SOCKALK status CR LF CR LF OK CR LF CR LF SOCKALK status CR LF CR LF OK CR LF parameter status socket A connection status connected connected disconnected disconnected 31 AT SOCKBLK function query socket B connection status format...

Page 49: ...T REGTP CR AT REGTP CR or or or or AT REGTP CR AT REGTP CR AT REGTP CR AT REGTP CR CR LF REGTP type CR LF CR LF OK CR LF CR LF REGTP type CR LF CR LF OK CR LF CR LF REGTP type CR LF CR LF OK CR LF CR LF REGTP type CR LF CR LF OK CR LF set parameter AT REGTP type CR AT REGTP type CR AT REGTP type CR AT REGTP type CR CR LF OK CR LF CR LF OK CR LF CR LF OK CR LF CR LF OK CR LF parameter type type of ...

Page 50: ...777772E7573722E636E means www usr cn in ASCII 36 AT REGSND function query or set register package sending type format query parameter introductions AT REGSND CR AT REGSND CR AT REGSND CR AT REGSND CR CR LF REGSND link data link data CR LF CR LF OK CR LF CR LF REGSND link data link data CR LF CR LF OK CR LF CR LF REGSND link data link data CR LF CR LF OK CR LF CR LF REGSND link data link data CR LF...

Page 51: ...nt value of parameter AT HEARTDT CR AT HEARTDT CR AT HEARTDT CR AT HEARTDT CR or or or or AT HEARTDT CR AT HEARTDT CR AT HEARTDT CR AT HEARTDT CR CR LF HEARTDT data CR LF CR LF OK CR LF CR LF HEARTDT data CR LF CR LF OK CR LF CR LF HEARTDT data CR LF CR LF OK CR LF CR LF HEARTDT data CR LF CR LF OK CR LF set parameter AT HEARTDT data CR AT HEARTDT data CR AT HEARTDT data CR AT HEARTDT data CR CR L...

Page 52: ...e CR AT HEARTTM time CR CR LF OK CR LF CR LF OK CR LF CR LF OK CR LF CR LF OK CR LF parameter time strobe period unit is second 41 AT HTPTP function query or set HTTP request type format query parameter introductions AT HTPTP CR AT HTPTP CR AT HTPTP CR AT HTPTP CR CR LF HTPTP GET POST CR LF CR LF OK CR LF CR LF HTPTP GET POST CR LF CR LF OK CR LF CR LF HTPTP GET POST CR LF CR LF OK CR LF CR LF HTP...

Page 53: ... CR AT HTPSV CR AT HTPSV CR AT HTPSV CR or or or or AT HTPSV CR AT HTPSV CR AT HTPSV CR AT HTPSV CR CR LF HTPSV address port CR LF CR LF OK CR LF CR LF HTPSV address port CR LF CR LF OK CR LF CR LF HTPSV address port CR LF CR LF OK CR LF CR LF HTPSV address port CR LF CR LF OK CR LF set parameter AT HTPSV address port CR AT HTPSV address port CR AT HTPSV address port CR AT HTPSV address port CR CR...

Page 54: ...er CR AT DSTNUM number CR AT DSTNUM number CR AT DSTNUM number CR CR LF OK CR LF CR LF OK CR LF CR LF OK CR LF CR LF OK CR LF parameter number destination phone number in SMS mode 46 AT SMSEND function send SMS message format query parameter introductions AT SMSEND CR AT SMSEND CR AT SMSEND CR AT SMSEND CR CR LF SMSEND number 1 2 3 data CR LF CR LF OK CR LF CR LF SMSEND number 1 2 3 data CR LF CR ...

Page 55: ... 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 for any patent copyright or other intellectual property infringement et...

Reviews: