ravi8820
Junior Member level 1
-> AT+CGATT=1 //Attach to GPRS Service
<- OK
-> AT+CGDCONT=1,"IP","<Your APN Name>" //Define PDP Context (cid, PDP type, APN)
<- OK
-> AT+CDNSCFG="xxx.xxx.xxx.xxx","xxx.xxx.xxx.xxx" //Configure primary and secondary Domain Name Servers
<- OK
-> AT+CSTT="<Your APN Name>","<User ID>","<PASSWORD>" //Start Task & set APN, User ID, and password
<- OK
-> AT+CIICR //Bring up wireless connection with GPRS - THIS MAY TAKE A WHILE
<- OK
-> AT+CIFSR //Get Local IP address
<- xxx.xxx.xxx.xxx //returns IP address assigned to your module
<- OK
-> AT+CIPSTATUS //Get Connection Status
<- OK
<- STATE: IP STATUS //returns status of connection, needs to be 'IP STATUS' before you can connect to a server
-> AT+CIPHEAD=1 //Tells module to add an 'IP Header' to receive data
<- OK
-> AT+CDNSORIP=1 //Indicates whether connection request will be IP address (0), or domain name (1)
<- OK
-> AT+CIPSTART="TCP","www.google.com","80" //Start up TCP connection (mode, IP address/name, port)
<- OK
<- CONNECT OK //Indicates you've connected to the server - this command may take time to give this response
-> AT+CIPSEND //Issue Send Command
<- > //wait for module to return '>' prompt to indicate it's ready to receive data
-> GET / HTTP/1.1
i have a problem in this line
-> GET HTTP
after enter this line i wait for some times and i receive the message connection closed.........Please help.........
<- OK
-> AT+CGDCONT=1,"IP","<Your APN Name>" //Define PDP Context (cid, PDP type, APN)
<- OK
-> AT+CDNSCFG="xxx.xxx.xxx.xxx","xxx.xxx.xxx.xxx" //Configure primary and secondary Domain Name Servers
<- OK
-> AT+CSTT="<Your APN Name>","<User ID>","<PASSWORD>" //Start Task & set APN, User ID, and password
<- OK
-> AT+CIICR //Bring up wireless connection with GPRS - THIS MAY TAKE A WHILE
<- OK
-> AT+CIFSR //Get Local IP address
<- xxx.xxx.xxx.xxx //returns IP address assigned to your module
<- OK
-> AT+CIPSTATUS //Get Connection Status
<- OK
<- STATE: IP STATUS //returns status of connection, needs to be 'IP STATUS' before you can connect to a server
-> AT+CIPHEAD=1 //Tells module to add an 'IP Header' to receive data
<- OK
-> AT+CDNSORIP=1 //Indicates whether connection request will be IP address (0), or domain name (1)
<- OK
-> AT+CIPSTART="TCP","www.google.com","80" //Start up TCP connection (mode, IP address/name, port)
<- OK
<- CONNECT OK //Indicates you've connected to the server - this command may take time to give this response
-> AT+CIPSEND //Issue Send Command
<- > //wait for module to return '>' prompt to indicate it's ready to receive data
-> GET / HTTP/1.1
i have a problem in this line
-> GET HTTP
after enter this line i wait for some times and i receive the message connection closed.........Please help.........