- This topic has 1 reply, 2 voices, and was last updated 10 years, 1 month ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › SIM900A; GPRS Static IP; MCU
I have a complete SIM900A module.
I am able to send sms over it.
But now I want to send data using GPRS over static IP address.
I don't know how to proceed. Any example code.
IP address, do i need to have internet plan on SIM card or what?
Any example code?
I have to interface with microcontroller with uart , Rx,tx & Gnd
Hi,
do i need to have internet plan on SIM card or what?
Defenitely you would need it !
You can learn all commnds for sim900 from this link
http://www.simcom.us/act_admin/supportfile/SIM900_ATC_V1.00.pdf
Also I found this piece of code, you might find some useful logic from it.
void setup(){
Serial.begin(9600);
Serial.println("AT+CGATT?");
delay(1000);
Serial.println("AT+CSNS=4");
delay(1000);
Serial.println("AT+CSTT="TATA.DOCOMO.INTERNET","",""");
delay(1000);
Serial.println("AT+CIICR");
delay(1000);
Serial.println("AT+CIFSR");
delay(1000);
Serial.println("AT+CIPSTART="TCP","google.com","80"");
delay(1000);
Serial.println("AT+CIPSEND");
delay(1000);
Serial.println("AT+CIPCLOSE");
delay(1000);
Serial.println("AT+CIPSHUT");
}
void loop(){
dat = Serial.read();
Serial.print(dat);
delay(1000);
}