LBS

From ElectroDragon
Jump to: navigation, search

LBS GSM Network Location (Base Station Location)

For SIM900

  • AT+SAPBR=3,1,"Contype","GPRS"
  • AT+SAPBR=3,1,"APN","CMNET"
  • AT+SAPBR=1,1
  • AT+SAPBR=2,1
  • AT+CIPGSMLOC=1,1

More information please see SIm900 official document "GSM location ATC"

For SIM800

AT+SAPBR=3,1,"Contype","GPRS"                                        // set GPRS mode

OK
AT+SAPBR=3,1,"APN","CMNET"                                           //set APN

OK
AT+SAPBR=1,1                                                                      // PDP activate, not conflict with TCP/IP using same time

OK
AT+SAPBR=2,1                                                                      // get IP address

+SAPBR: 1,1,"10.144.156.178"

OK
AT+CLBSCFG=0,3                                                                 // check current LBS function default address 

+CLBSCFG: 0,3,"www.c4a.com.cn:3002"                              // this is a free address

OK
AT+CLBS=1,1

+CLBS: 0,121.358585,31.219023,550                                  // get location

OK
AT+CLBS=4,1

+CLBS: 0,121.358599,31.219034,550,17/02/25,09:33:01   // get detailed info inlcuding time, need to conver to your time zone, for CN add +8

OK
AT+SAPBR=0,1

OK