SIM900 command for send query "GET / HTTP/1.1" to a server

Status
Not open for further replies.
Dear all
this is the first time I use SIM908
I sent data to server but I can't receive any data from the server
may help me and provide me with the AT command to received data from the server
 

We are a manufacturer of modem, and distributor of Wavecom module for 10 years.We hope you can tell me more about your problem and solve it together.

We have the capacity of desinging and making modem, so we also has the ability to do it.


Best
skype: evan_lee25
mail:musicforevanlee@gmail.com
 
Last edited:
Thank you for your replay
every thing is okay I send and receive SMS ,incoming and outgoing call and send data to server TCP or UDP to it is IP address but my problem is I can't receive from the server and I do not know the AT command
 

Re: SIM900 command for send query "GET / HTTP/1.1" to a server

Sir i have try to run this code in sim900 gsm modem so i got the <<connect ok step...
but i have problem hoe to get the data from any site ..and which type method is used for that explain me..
Thanks & Regards..

- - - Updated - - -

Sir i have try to run this code in sim900 gsm modem so i got the <<connect ok step...
but i have problem hoe to get the data from any site ..and which type method is used for that explain me..
Thanks & Regards..
 

This code is working to send data on GPRS by sim900A

string_serial("AT+CGATT=1\n\r");
/////////////////////////////////////////////////////////////////////// Attach to GPRS Service
while(rec_serial() != 'K');
/////////////////////////////////////////////////////////////////////// Wait for response OK
string_serial("AT+CGDCONT=1,\"IP\",\"APN\"\n\r");
//////////////////////////////////////////////////////////////////////Define PDP Context (cid, PDP type, APN)
while(rec_serial() != 'K');
////////////////////////////////////////////////////////////////////// Wait for response OK
string_serial("AT+CSTT=\"APN\",\"\",\"\"\n\r");
/////////////////////////////////////////////////////////////// Start Task & set APN, User ID, and password
while(rec_serial() != 'K');
///////////////////////////////////////////////////////////////////// Wait for response OK
string_serial("AT+CIICR\n\r");
////////////////////////////////////////////////////////////// Bring up wireless connection with GSM or CDS
while(rec_serial() != 'K');
///////////////////////////////////////////////////////////////////// Wait for response OK
string_serial("AT+CIFSR\n\r");
//////////////////////////////////////////////////////////////////// Get Local IP address
delay_ms(5000);
string_serial("AT+CIPHEAD=1\n\r");
/////////////////////////////////////////////////////////////////// To add an 'IP Header' to receive
while(rec_serial() != 'K');
/////////////////////////////////////////////////////////////////// Wait for response
string_serial("AT+CDNSORIP=1\n\r");
////////////////////////////////////////////////// Query the IP address of the given domain only for sim 300
while(rec_serial() != 'K');
////////////////////////////////////////////////////////////////// Wait for response OK
while(1)
{
string_serial("AT+CIPSTART=\"TCP\",\"www.atechindia.com\",\"80\"\n\r");
///////////////////////////////////////////////////////////////// Start up TCP connection
while(rec_serial() != 'K');
///////////////////////////////////////////////////////////////// Wait for response OK
while(rec_serial() != 'K');
///////////////////////////////////////////////////////////////// Indicates you've connected to the server
string_serial("AT+CIPSEND\n\r");
///////////////////////////////////////////////////////////////// Issue Send Command
while(rec_serial() != '>');
///////////////////////////////////////////////////////////////// Wait for the response '>'
string_serial("GET /testdata.php?data=");
delay_ms(1000);
for(a=0;a<40;a++)
{
trans_serial(arr[a]);
/////////////////////////////////////////////////////////////////Data that we want to be write on server
}
string_serial(" HTTP/1.1\r\n");
string_serial("HOST: www.atechindia.com\r\n");
string_serial("Connection: close\r\n\r\n");
trans_serial(0x1A);
////////////////////////////////////////////////////////////////// ctrl+z
}
 
Last edited:

Hi all,

I followed the method listed here for sending data to a webpage using sim900 modem.
After sending the data, i get response 'send ok' and data is received in webpage. but this is getting success only a few times, and i need to send the data repeatedly.

Has anyone faced this problem before? Could anyone help me to clear this problem.


Regards,
Jebin
 

I do have same problem

i have to close the page and open the page again .....

I m still searching now ???
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…