I am able to successfully send the text message from the code mentioned on the Wiki Website. I have also tried to run the GPRS code given on that link. You can see it there because if i past it here, it would exceed the limit for the characters. I am pasting the code for the text message.
For the GPRS code, i get the following output. I have modified the code just not to use the sensor header files and send a random variable value to b e posted on the internet.
Here is the output i get. The output is in ASCII i guess and that why I can make out what is the responce of the commands. Either they are getting accepted or not. Do you think this is actual responce or just some garbage dump coming out of the software serial
"Turn on GPRS Modem and wait for 1 minute.
and then press a key
Press c for power on configuration
press any other key for uploading
Executing AT Commands for one time power on configuration
Received:0|248|158|24|230|24|254|120|230|128|126|25|121|15|24|102|25|3|51|126|10 2|96|207|230|24|152|102|152|30|255|AT+CSTT="INTERNET" Sent!
Received:0|248|158|24|230|0|6|134|158|158|230|126|159|126|6|102|51|204|15|AT+CIP SHUT Sent!
Received:0|248|158|96|134|96|152|254|6|24|7|255|Press a key to read temperature and upload it
TMP102 Temperature = Trial Version going on
Received:0|248|158|96|134|96|248|128|120|128|120|248|PUT /v2/feeds/62521.csv HTTP/1.1 Sent!
Host: api.cosm.com Sent!
X-PachubeApiKey: 4HaJl25MfMGEb9g2OuR9A0j9leaSAKxCNllDMHRqVFVXND0g Sent!
Content-Length: 12 Sent!Connection: close Sent!Received:0|0|126|230|102|254|102|224|128|230|152|230|230|254|230|158|230|120|158|126|255|134|128|0|6|159|102|134|126|230|248|24|254|102|224|126|224|96|224|120|254|102|254|102|248|126|230|126|248|24|158|24|248|0|102|248|96|230|96|128|96|248|30|AT+CIPSHUT Sent!
Serial.begin(19200); //Default serial port setting for the GPRS modem is 19200bps 8-N-1
delay(1000); //Wait for a second while the modem sends an "OK"
Serial.print("AT+CMGF=1\r"); //Because we want to send the SMS in text mode
//Serial.print("AT+CSCA=\" +919032055002\"\r"); //Setting for the SMS Message center number,
//delay(1000); //uncomment only if required and replace with
//the message center number obtained from
//your GSM service provider.
//Note that when specifying a tring of characters
// " is entered as \"
Serial.print("AT+CMGS=\"+918446043032\"\r"); //Start accepting the text for the message
//to be sent to the number specified.
//Replace this number with the target mobile number.
Serial.print("SIM900 and Arduino say Hi!\r"); //The text for the message
//Serial.print(26,BYTE); //Equivalent to sending Ctrl+Z
Serial.write(26); //June 2nd 2012: I replaced Serial.print(26,BYTE) by Serial.write(26) because the first command did not work in my case; Serial.write worked fine; please verify. -Ardutinker-
//We just want to send the SMS only once, so there is nothing in this loop.
//If we put the code for SMS here, it will be sent again and again and cost us a lot.