Shandong USR IOT Technology USRGM3 User Manual

USR-GM3/GM3sUserManualwww.usriot.com
U SR-GM3/GM3s
USR-GM3/GM3s
USR-GM3/GM3s
USR-GM3/GM3sUser
(USR-GM3/GM3s)
U ser
User
UserGuide
Fileversion:Ver1.08
USR-GM3/GM3sishighly-integratedUARTtoGSM/GPRSmodule,Userscaneasilymake communicationbetweenserialdeviceandcellphoneandnetworkdevicewithit. Thismoduleisdifferentfromthecommonmodulesonthemarket,itisthesmallestGPRSDTU, plug-and-playdevice.USR-GM3swillbewithSIMcardinside,moreeasiertouse,itjustneed powersupply.
JinanUSRIOTT echnologyLimited1/55tec@usr.cn
USR-GM3/GM3sUserManualwww.usriot.com
Content
USR-GM3/GM3sUserGuide.........................................................................................................................................1
QuickStart.........................................................................................................................................................................3
1.1.T estingenvironment.........................................................................................................................................3
1.2.Transmission.....................................................................................................................................................4
2.Introduction...................................................................................................................................................................6
2.1.ShortDescription..............................................................................................................................................6
2.2.Characteristic....................................................................................................................................................6
2.3.Features.............................................................................................................................................................6
2.4.ApplicationField................................................................................................................................................7
3.Hardware.......................................................................................................................................................................8
3.1.PinDescription..................................................................................................................................................8
3.1.1.OutsideView..........................................................................................................................................8
3.1.2.PinAssignment
3.1.3.PCBLayout............................................................................................................................................8
3.1.4.PinDescription.......................................................................................................................................9
3.1.5.OutsideAntenna..................................................................................................................................
3.2.HardwareBlockDiagram..............................................................................................................................
4.ModuleFunctions......................................................................................................................................................
4.1.WorkMode......................................................................................................................................................12
4.1.1.SwitchingWorkMode.........................................................................................................................12
4.1.2.Networktransmission.........................................................................................................................12
4.1.3.HTTPDFunction.................................................................................................................................20
4.1.4.SMSMessageTransmission.............................................................................................................23
4.2.RegisterPackage...........................................................................................................................................27
4.2.1.Description...........................................................................................................................................28
4.2.2.Usage....................................................................................................................................................28
4.3.HeartBeatPackage.......................................................................................................................................29
4.3.1.Description...........................................................................................................................................30
4.3.2.Usage....................................................................................................................................................30
4.4.UART................................................................................................................................................................31
4.4.1.RS485...................................................................................................................................................32
4.4.2.SimilarRFC2217.................................................................................................................................32
5.ParametersSetting....................................................................................................................................................33
5.1.Operating
5.2.
AT
CommandFormat.....................................................................................................................................35
5.3.
AT
CommandSet...........................................................................................................................................37
AppendixA:Contact......................................................................................................................................................54
AppendixB:Disclaimer.................................................................................................................................................55
AppendixC:UpdateHistory.........................................................................................................................................55
AT
command.................................................................................................................................34
Top
.......................................................................................................................8
11
11
11
JinanUSRIOTT echnologyLimited2/55tec@usr.cn
USR-GM3/GM3sUserManualwww.usriot.com
Quick
Quick
Quick
QuickStart
useUSR-GM3/GM3sforyou,youshouldreadthischaptercarefully,andthenfollowthetips, trytodosometestsbyyourself.ItwillhelpyoutoknowaboutUSR-GM3/GM3sgenerally.If youhaveexperienceofusingUSR-GM3/GM3s,pleaseescapethischapter.
1.1.
1.1.
1.1.
1.1.Testing
S tart
Start
Start
ThischapterisaquickstartguideforusingUSR-GM3/GM3smodule.Ifitisthefirsttimeto
Inthischapter,youwillbetoldhowtomakecommunicationbetweenserialdeviceandTCP server.Underdefaultsetting,GM3moduleworksinnetworktransmissionmode,itconnects toourTCPtestserver,addressistest.usr.cn,portis2317.Theserverwillrespondwhatit receives.
w ww.usriot.com
Allthesoftwareusedinthisdocumentcanbeobtainedfromourwebsitewww.usriot.com
http://h.usriot.com
You
canalsoaccessUSRcustomersupportcenter:http://h.usriot.com
T esting
Testing
Testingenvironment
e nvironment
environment
environment
http://h.usriot.com
http://h.usriot.com.
www.usriot.com
www.usriot.com.
ThevoltageofmoduleisTTL3.3V,soyoushouldnotconnectitwithcomputerserialport directly,anadapterisnecessary.
NOTE:
NOTE:
NOTE:
NOTE:
1.
I f
i t
i s
t he
f irst
t ime
t o
u se
o ur
1.
If
it
is
the
first
time
to
1.
1.If
Ifit
itis
isthe
thefirst
firsttime
timeto
may
s ave
y ou
may
save
may
maysave
saveyou
2.
k eep
2.
keep
2.
2.keep
keepdefault
JinanUSRIOTT echnologyLimited3/55tec@usr.cn
d efault
default
defaultsetting
you
youlot
s etting
setting
settingin
l ot
lot
lotof
use
touse
useour
o f
t rouble
of
trouble
oftrouble
troubleand
i n
t his
in
this
inthis
thistest.
m odule
our
module
ourmodule
modulefor
a nd
t ime.
and
time.
andtime.
time.
t est.
test.
test.
f or
y ou,
for
you,
foryou,
you,please
p lease
please
pleaseuse
u se
o ur
use
our
useour
ourEV
E V
K (Evaluation
EV
K(Evaluation
EVK(Evaluation
K(EvaluationKit)
K it)
Kit)
Kit),
,
i t
,
it
,it
it
USR-GM3/GM3sUserManualwww.usriot.com
1.2.
1.2.
1.2.
1.2.Transmission
1.PutSIMcardintothesocketonEVK,connectCOM1toPC’sserialportwithcable.
2.Opentestsoftware”USR-TCP232-T est”,setrightserialportnumberandbaudrate,and
3.PoweruptheEVKwithDC5Vadapter,thenthePOWERledwillbeon,severalseconds
T ransmission
Transmission
Transmission
openit.Asthefollowingfigure.
later,theWORKledwilltwinkle,andthenGPRSLINKAledwillbeon.
JinanUSRIOTT echnologyLimited4/55tec@usr.cn
USR-GM3/GM3sUserManualwww.usriot.com
Meaningofled:
POWER
WORK
GPRS
LINKA
LINKB
DATA
4.WaitforLINKAledon,senddatatomoduleviaserialport.Forexample,ifyousend
“www.usr.cn”,atthesametime,the
“on”meansnormalpowersupply,“off”meanspowersupplyfailure. “blink”meansrunningcorrectly,“off”meansnotrunning. “on”meansattached,“off”meansattachfailure. “on”meanssocketAhasconnectedtoserver,“off”meansnotconnect. “on”meanssocketBhasconnectedtoserver,“off”meansnotconnect. “blink”meanstransmission,“off”meansnotransmission.
DATA
ledwillbeonforawhile.Then,youwillget
“www.usr.cn”inthereceivingwindowfromourtestserver.
JinanUSRIOTT echnologyLimited5/55tec@usr.cn
USR-GM3/GM3sUserManualwww.usriot.com
2.
I ntroduction
2.
Introduction
2.
2.Introduction
Introduction
2.1.
S hort
2.1.
Short
2.1.
2.1.Short
ShortDescription
USR-GM3/GM3sisnewlistingat2015,itisoneembeddedGSMmodule.USR-GM3/GM3s isdesignedforembeddedsystem,itissosmallandconvenientthatyoucanintegrateitto yoursystemeasily.
2.2.
C haracteristic
2.2.
Characteristic
2.2.
2.2.Characteristic
Characteristic
SmallandcompletedfunctionGPRSDTU,transmissionbetweenserialandGPRS
SupportGSM850/900,DCS1800/1900
SupportGSM/GPRS/EDGE,support2G/3G/4GSIMcard,butbasedon2Gnetwork
Support2sockets,SupportTCPandUDP
4KBcacheforeachofsockets,usercanchoosetocachedataornot
Supportregisterpackageandheartbeatpackage
SupportsettingparametersviaSMSmessage
Support4workmodes:SMSmessagetransmissionmode,networktransmissionmode
Supportbasicandextend
SupportsimilarRFC2217
Supportflowcontrol:RTS/CTS
SupportRS485
D escription
Description
Description
andHTTPDmode
AT
commandsets
2.3.
F eatures
2.3.
Features
2.3.
2.3.Features
Features
Baudrate:2400,4800,9600,14400,19200,28800,33600,38400,57600115200,
230400,460800,921600.
Operatingvoltage:3.40V~4.20V
Operatingcurrent:average55mA~80mA,maximum750mA
Operatingtemperature:-25~+85°C
Storagetemperature:-40~+125°C
Storagehumidity:5%~95%RH
MaxTXpower:GSM900class4(2W),DCS1800class1(1W)
JinanUSRIOTT echnologyLimited6/55tec@usr.cn
USR-GM3/GM3sUserManualwww.usriot.com
2.4.
A pplication
2.4.
Application
2.4.
2.4.Application
ApplicationField
Inpowerindustry,USR-GM3/GM3scanembeddedintheelectricmeter,powerapplication
terminalsandotherequipmenttorealizeofreactivepower
compensationmonitoring,distributionmonitoring,metercollectionandcopy,
streetlampcontrollingandotherapplications,toachievesmartcity.
InHeatingfield,USR-GM3/GM3scanbeembeddedinm-BUSconcentratortoachievethe
integrationoftheconcentratorandwirelesscommunication.
Inwaterindustry,USR-GM3/GM3sisalsoplaysasignificantroleinsystemofwatersetco
py,waterresourcemanagementandremotemonitoring,wirelesscommunicationofwater
pipenetworkmonitoring.
InEnvironmentalprotection,USR-GM3/GM3smodulecanbeintegratedintotheon-line
monitoringsystemoffluegason-linemonitoring(CEMS),waterqualityonlinemonitoring.
F ield
Field
Field
Inthefieldofequipmentmaintenance(Equipmentmaintenancefield),USR-GM3/GM3suse
inthesystemofequipmentremotemonitoring,suchaselevatormonitoring,airconditioning
monitoring.
OtherGPRScommunicationapplications.
JinanUSRIOTT echnologyLimited7/55tec@usr.cn
3.
H ardware
3.
Hardware
3.
3.Hardware
Hardware
USR-GM3/GM3sUserManualwww.usriot.com
3.1.
3.1.
3.1.
3.1.Pin
3.1.1.
3.1.1.
3.1.1.
3.1.1.Outside
P in
D escription
Pin
Description
PinDescription
Description
O utside
Outside
OutsideView
V iew
View
View
3.1.2.
3.1.2.
3.1.2.
3.1.2.Pin
JinanUSRIOTT echnologyLimited8/55tec@usr.cn
P in
A ssignment
Pin
Assignment
PinAssignment
AssignmentTop
T op
Top
Top
USR-GM3/GM3sUserManualwww.usriot.com
3.1.3.
3.1.3.
3.1.3.
3.1.3.PCB
P CB
PCB
PCBLayout
L ayout
Layout
Layout
JinanUSRIOTT echnologyLimited9/55tec@usr.cn
USR-GM3/GM3sUserManualwww.usriot.com
3.1.4.
3.1.4.
3.1.4.
3.1.4.Pin
Note:‘P
P in
D escription
Pin
Description
PinDescription
Description
forpower,‘I’forinput,‘O
Pin
Pin
Pin
Pin Name
1VCCP
2VCCP
3GNDPPowerground
4GNDPPowerground
5ReloadIPull-down1srestoredefaultsetting,>3srestorefactorysetting
6NCNKeepnoconnecting
7RS485OControlRS485RX/TX
8NCNKeepnoconnecting
9ResetIRestart,pull-down1sforrestart
10GPRSOGPRSstatus,highforattached,lowfornotattached
11LINKAOSocketAstatus,highforconnected,lowfornotconnected
12LINKBOSocketBstatus,highforconnected,lowfornotconnected
Name
Name
Name Type
Type
Type
Type Description
Powersupply3.4Vto4.2V
Powersupply3.4Vto4.2V
foroutput,‘N
fornotconnect
Description
Description
Description
13DATAODatastatus,highfortransmission,lowfornottransmission
14WORKORunningstatus,highfornormal,lowforfailure
15SHUTIShutdown,pull-downforshutmodule
16NCNKeepnoconnecting
17GNDPPowerground
18SPEAKER-OSpeakernegativeterminal
19SPEAKER+OSpeakerpositiveterminal
20MIC-IMicrophonenegativeterminal
21MIC+IMicrophonepositiveterminal
22VSIMPPowersupplyforSIMcard
23SIM_CLKOClocklineforSIM
24SIM_DATI/ODatalineforSIM
25SIM_RSTOResetlineforSIM
26NCNKeepnoconnecting
27HST_TXDOUpgradefromuart
28HST_RXDIUpgradefromuart
29V_PADP2.8Voutput
30NCNKeepnoconnecting
31NCNKeepnoconnecting
32NCNKeepnoconnecting
33NCNKeepnoconnecting
JinanUSRIOTT echnologyLimited10/55tec@usr.cn
34NCNKeepnoconnecting
35TXD1OTXlineforuart1
36RXD1IRXlineforuart1
37CTS1OCTSlineforuart1
38RTS1IRTSlineforuart1
39GNDPPowerground
40GNDPPowerground
41RFORFoutput
42GNDPPowerground
USR-GM3/GM3sUserManualwww.usriot.com
3.1.5.
3.1.5.
3.1.5.
3.1.5.Outside
1.ThelineofAntennashouldbeshorttomaketheinsertlosslowerandroutedasRF linestrictlytokeep50ohmmatching.
2.It’sbettertoputtheantennapadontheedgeofthePCB.
3.2.
3.2.
3.2.
3.2.Hardware
Theinterfacemoduleprovidesincludes:powerinput,output,on/offcontrol,resettorestart control,control,restorethefactorySettings,workingmodule,analogaudioinput,output,UART , SIM,RFantenna.
O utside
Outside
OutsideAntenna
H ardware
Hardware
HardwareB
A ntenna
Antenna
Antenna
B
l ock
B
lock
Block
lockD
D
D
Diagram
i agram
iagram
iagram
JinanUSRIOTT echnologyLimited
11
/55tec@usr.cn
USR-GM3/GM3sUserManualwww.usriot.com
4.
M odule
4.
Module
4.
4.Module
ModuleFunctions
4.1.
W ork
4.1.
Work
4.1.
4.1.Work
WorkMode
USR-GM3/GM3smodulecanworkin3modes
SMSmessagetransmissionmodenetworktransmissionmode
HTTPDmode
F unctions
Functions
Functions
M ode
Mode
Mode
4.1.1.
4.1.1.
4.1.1.
4.1.1.Switching
S witching
Switching
SwitchingWork
Choosebybuttonyouwanttoworkmode
Andthenselectsaveallparameters
W ork
Work
WorkMode
M ode
Mode
Mode
Cansavethedefaultparametersfortheuser,clickontherestartaftereffectiveworking
mode.
Note:ifyoucan'tfindtheabovetoolbuttonspleaserefertothepicture'spositiononthe
drive,youcanseethehiddenbutton
JinanUSRIOTT echnologyLimited12/55tec@usr.cn
USR-GM3/GM3sUserManualwww.usriot.com
4.1.2.
4.1.2.
4.1.2.
4.1.2.Network
4.1.2.1.
4.1.2.1.
4.1.2.1.
4.1.2.1.Description
N etwork
Network
Networktransmission
D escription
Description
Description
PC
Underthismode,customer’sserialdevicecansenddatatoTCPorUDPserverviathis
module,Modulecanalsoreceivedatafromserver,andtransmitthedatatocustomer’s
serialdevice.
Customersdon’tneedtoknowthedetailofcommunication,justneedsomesimplesetting.
t ransmission
transmission
transmission
TCP/UDP
data
Internet
TCP/UDP
data
GM3
Serialdata
Serialdevice
GM3support2sockets,socket
onlysupportsTCPClientandUDPClient.
4.1.2.2.
4.1.2.2.
4.1.2.2.
4.1.2.2.Application
Ifuserwanttomakecommunicationbetweenserialdevicesanddevicesonthenetwork,
butintheplacewhereserialdevicestaysusingroutertoconnecttonetworkisnot
convenientforuser.Butsignalfrombasestationisavailable,soGM3modulecanbuilda
bridgebetweenserialdeviceanddevicesonthenetwork.
4.1.2.3.
4.1.2.3.
4.1.2.3.
4.1.2.3.Usage
Note:Allthe
Abouthowtouse
Wehaveonesoftwareforcustomerstouse,customerscangetitfromour website:http://www.usriot.com/Download/248.html.
A pplication
Application
ApplicationScenarios
U sage
Usage
Usage
AT
commandsterminatewithcarriagereturn(0x0D),weignoreithere.
http://www.usriot.com/Download/248.html.
http://www.usriot.com/Download/248.html.
http://www.usriot.com/Download/248.html.
S cenarios
Scenarios
Scenarios
AT
commands,pleaserefertochapter5.
A
andsocketB,theyarestandalonewitheachother.GM3
Andwehaveonesoftwareforcustomerstodoserialandnetworktests,customerscanget
h ttp://www.usriot.com/Product/78.html
itfromourwebsite:http://www.usriot.com/Product/78.html
JinanUSRIOTT echnologyLimited13/55tec@usr.cn
http://www.usriot.com/Product/78.html
http://www.usriot.com/Product/78.html.
USR-GM3/GM3sUserManualwww.usriot.com
1.SetTCPserversoftware,loginremoteserverviaremotedesktopconnection.
Thenopennetworktestsoftware,settheparametersasthebellowing.
JinanUSRIOTT echnologyLimited14/55tec@usr.cn
USR-GM3/GM3sUserManualwww.usriot.com
2.SetModuleParameters
1)Setworkmodeasnetworktransmission
2)EnablesocketA
3)SetsocketAasTCPclient,serveraddressistest.usr.cn(domain),serverportis10000.
3.RestartGM3,waittheconnectionofsocket
A
hasbeenestablished,senddatato moduleviaserialport,thenyouwillgetdataatnetworkserversoftware.Andsenddata tomodulevianetwork,thenthedatawillbegotatmoduleserialport.
JinanUSRIOTT echnologyLimited15/55tec@usr.cn
USR-GM3/GM3sUserManualwww.usriot.com
JinanUSRIOTT echnologyLimited16/55tec@usr.cn
USR-GM3/GM3sUserManualwww.usriot.com
4.1.2.4.
4.1.2.4.
4.1.2.4.
4.1.2.4.Special
Besidesunder“ transmissionmodeviaserialornetwork.Thiskindofcommandsisdifferentfromcommonones, customersshouldaddcommandpasswordand#atthefrontofcommoncommandstring,.
Note:everycommandstringshouldterminatewithcarriagereturn.Hereweuse[0D].
JinanUSRIOTT echnologyLimited17/55tec@usr.cn
S pecial
Special
SpecialType
T ype
Type
TypeOf
AT
commandmode”,customerscanalsosendAtcommandsundernetwork
O f
S ending
Of
Sending
OfSending
SendingCommand
C ommand
Command
Command
USR-GM3/GM3sUserManualwww.usriot.com
4.1.2.4.1.
4.1.2.4.1.
4.1.2.4.1.
4.1.2.4.1.Serial
1.Setworkmodeasnetworktransmission.
2.Enableserialcommandfunction.
S erial
Serial
Serial
A T
AT
AT
AT
C ommand
Command
Command
Command
3.Querycommandpassword.
Aftersettingsuccessful,restartGM3,thensend“usr.cn#AT+VER”viaserial. ThenGM3willrespondthefirmwareversion.
JinanUSRIOTT echnologyLimited18/55tec@usr.cn
Loading...
+ 39 hidden pages