Miscellaneous › Others › Internet connectivity using GSM modem › //Checking registration
November 5, 2014 at 12:31 am
#12336
Puneet
Participant
//Checking registration status…
AT+CREG?
+CREG: 0,1
OK
//The device is registered in home network.
//Checking if device is already connected…
AT+CGACT?
OK
AT+CMEE=1
OK
//Attaching to network…
AT+CGATT=1
OK
//Setting up APN for TCP connection…
AT+CSTT=”airtelgprs.com”
OK
//APN setup for TCP connection successful..
//Bring up GPRS Connection…
AT+CIICR
OK
//GPRS Connection bring up sucessful..
AT+CIFSR
100.68.167.226
AT+CIPSTART=”TCP”,”208.91.198.160″,”80″
OK
CONNECT OK
//TCP connection success
AT+CIPSEND
>
GET http://www.gpstest.embeddedhut.com/add.php?no=testdata
SEND OK
1
CLOSED
//TCP connection is closed by remote server