sim900a tcp GET, not working

Thread Starter

Vindhyachal Takniki

Joined Nov 3, 2014
594
I am using SIm900A module to get data using cipsend command.
I don't receiving anything agter GET command. below is code.
baud is 9600.
-> Input to SIM900
<- output from SIM900

2. I have SIM900A connected to PC via RS232 cable. Using realterm to send commands. (also tried hyperterminal)

3. I have put sim in mobile & checked internet is working on it.

->AT
<-OK
delay_sec(3);

->AT+CPIN?
<-CPIN: READY
delay_sec(3);

->AT+CREG?
<-+CREG: 0,1
delay_sec(3);


->AT+CIPSHUT
<-SHUT OK
delay_sec(3);

->AT+CIPMUX = 0
<-OK
delay_sec(3);

->AT+CGATT=1
<-OK
delay_sec(3);

->AT+CGDCONT=1,"IP","TATA.DOCOMO.INTERNET"
<-OK
delay_sec(3);

->AT+CSTT="TATA.DOCOMO.INTERNET","",""
<-OK
delay_sec(3);

->AT+CIICR
<-OK
delay_sec(3);

->AT+CIFSR
<-xxx.xxx.xxx.xxx //ip address
delay_sec(3);

->AT+CIPSTART="TCP","www.google.com","80"
<-OK
<-CONNECT OK
delay_sec(3);


->AT+CIPSEND
<- >
-> GET / HTTP/1.1 //IN SAME LINE ABOVE
-> Host: www.google.com
-> Ctrl+z
<- SEND OK

<- CLOSED //after long delay
<-+PDP: DEACT //after very long delay
 

kubeek

Joined Sep 20, 2005
5,794
The last time I checked I had to setup some data profile in my mobile phone for internet to work, could that be the problem with the modem?
 
Top