Arduino + GPRS module

Hi all. I'm using an Arduino Duemilanove board with a GPRS shield and an Xbee shield. The thing is I want to send an SMS using the microcontroller, so I put the pins in Arduino mode as this picture says:
http://www.libelium.com/squidbee/index.php?title=Image:Gprs_hilo_1.jpg . And this is the program I used:

//Librería necesaria para comunicar con Xbee
//#include <SoftwareSerial.h>

//Los pines del "nuevo" puerto serie
#define rxPin 9
#define txPin 8

//Creamos un nuevo puerto serie
//SoftwareSerial xbee = SoftwareSerial(rxPin, txPin);

int led = 13;
//El pin que va a encender el módulo sin presionar el botón
int onModulePin = 2;

//Número de mensajes SMS a enviar
int timesToSend = 1;
int count = 0;

int inData = 0;
int inData1 = 0;
int inData2 = 0;
int inData3 = 0;
int inData4 = 0;
int inData5 = 0;

void switchModule()
{
digitalWrite(onModulePin, HIGH);
delay(2000);
digitalWrite(onModulePin, LOW);
}

void sendAlarmSMS()
{
Serial.print("AT+CMGS="); //Comando de envío de SMS
Serial.println(""*********""); //Número de móvil a enviar el SMS
delay(1500);
Serial.println("Prueba de SMS"); //Cuerpo del mensaje
delay(1500);
Serial.println(26,BYTE); //Enviamos el comando 1A (hex)
}

void setup()
{
pinMode(led, OUTPUT);
pinMode(onModulePin, OUTPUT);

pinMode(rxPin, INPUT);
pinMode(txPin, OUTPUT);

Serial.begin(115200); //El puerto GPRS
// xbee.begin(9600); //Establezco el rango de datos para el puerto SoftwareSerial
//switchModule();
delay(1000);
Serial.println("AT+CMGF=1"); //Establezco el modo de SMS a texto
delay(2500);
// xbee.println("SquidBee alarm mote ready");
//delay(500);
}

void loop()
{
if (count == 0)
{
sendAlarmSMS();
count += 1;
}
}

As you can notice in the source, I also connected an Xbee shield using this schematics:

I use the Serial port to communicate with my GPRS and the digital data to "speak" with my Xbee shield. By now I'm only trying to send that SMS and be sure that my GPRS module works fine with the Arduino programming. I used an hyperterminal to test it without the microcontroller, and I can correctly send SMS via AT commands (I previously changed the mode to USB so I can send SMS using a COM port). But when I try to send the text message programatically, I get the following error:

avrdude: stk500_getsync(): not in sync: resp=0Xec
avrdude: stk500_disable(): protocol error, expect 0x14, resp=0xec

And I receive an empty text message on my phone... :astonished:

What I'm doing wrong?
Thank you for your help!

But when I try to send the text message programatically, I get the following error:

Sending a text message programatically means that a program generates the message and sends it. This has nothing to do with avrdude's inability to communicate with the Arduino. When you get this message, what is attached to the Arduino, and where are the jumpers?

When I get this message I have the Arduino board with the microcontroller and the GPRS connected to it with the pins like this:

  1. Serial com jumpers setted to Arduino (no USB)
  2. The V in ext. setted to Arduino 5V.

And nothing else I guess... So what do you think it can be?

the libelium module is awful, it rarely worked with me (mostly due to the thing needing giant amounts of power. just get yourself a T68i for €5 which is 100% trustworthy and cheap. The libelium module is only 'good' for GPRS conntecions, which were allright, that wasnt very stable either, but it worked -sometimes-. check the t68i code here Home - TimZaman.com and i have some more sms code on there

The problem is that, at first, I need to use this technology because the University brings that specific technology to me, and no other. As it is an investigation project, they're not sure if it's the best way or not, but using an external supply it provides enough energy, but I still don't know what this message means =(

So I'm stacked at this point. What does 0xce mean? Why do you think that message appears with the specifications above?? Thanks!

Please, any help?

I receive the error message, but I also receive a blank text message on my cell phone!! No text on in. What I'm doing wrong?