Files
Scanning the repository...
Last update 4 years 2 days
by Luc Patiny
FilescommontestSIM800 | |
---|---|
.. | |
README.md | |
SIM800.ino |
README.mdTest GPRS connection
From https://elementztechblog.wordpress.com/2017/09/16/getting-location-from-gsm/
AT+CGATT =1 // to attach GPRS.
AT+SAPBR =3,1,”CONTYPE”,”GPRS” //activate bearer profile.
AT+SAPBR =3,1,”APN”,”RCMNET”
AT+SAPBR=1,1
AT+SAPBR=2,1
AT+CIPGSMLOC=1,1 //to get gsm location, time and date.
AT+CIPGSMLOC=2,1 //to get gsm time and date
AT+SAPBR =0,1 //to deactivate bearer profile.
Retrieve IP address
AT+SAPBR=2,1
Location and time
It should be possibl eto retrieve infomraiton aobut the location and the time directly
from the GPRS data using the command AT+CIPGSMLOC
.
AT+CIPGSMLO=1,1
to retrieve the timeAT+CIPGSMLO=2,1
to retrieve the location