hi everyone
i am doing a project :
"Collecting the data from GPS and send it to the Server."
-> for this i wrote one small test code to connect my GSM/GPRS Modem To the Server and send sample text to se the working of the setup...
i am using Arduino Uno board and GSM/GPRS Modem which is from the following link..
http://entesla.com/easy-sim-gsm-gprs?filter_name=gsm
This is the Arduino code that i am using, and one more thing i am new to Arduino programming so if any mistakes are there please suggest me the changes.
void setup(){
Serial.begin(9600);
Serial.println("Starting...");
Serial.println("Setup is Ready");
delay(1000);
}
void loop(){
Serial.println("AT+CIPMUX=0");
delay(2000);
Serial.println("AT+CSTT=\"airtelgprs.com\",\"\",\"\"");
delay(2000);
// Brings Up Wireless Connection
Serial.println("AT+CIICR");
delay(2000);
// Gets Local IP Address
Serial.println("AT+CIFSR");
delay(2000);
Serial.println("Openning TCP");
// Opens a TCP socket
Serial.println("AT+CIPSTART=\"TCP\",\"202.141.152.54\",\"228\"");
Serial.println("Connected to Server");
delay(5000);
// Sends some data to the TCP socket
Serial.println("Received\n");
delay(1000);
Serial.println("This is the Message from Modem");
// Closes the socket
Serial.println("AT+CIPCLOSE");
delay(2000);
//Close the GPRS PDP context
Serial.println("AT+CIPSHUT");
delay(2000);
}
and at server side this is the result i am getting..
Waiting for Connection.....
Connection Established
Reading the Data from client
Message Received:
size of message : 0
problem: i am not receiving the data that i am sending from the Arduino side...
where i am doing mistake????
can anyone reading this post please help me out..
Thanks in advance..