Hello,
I solved this problem but now I have another one
I am trying to send an sms in text mode using AT commands and I do not understand what I'm doing wrong.
In HyperTerminal the commands are:
AT+CMGF=1 \r
AT+CMGW="0040766560000" \r
The GSM / GPRS modem will then return a prompt "> " and you can start typing the SMS text message.
>Have a nice day.
When finished, press Ctrl+z of the keyboard.
This is my code:
int commandSendSMS()
{
char bW1[100];
Fmt(bW1,"%s","AT+CMGF=1\r");
ComWrt(4, bW1, strlen (bW1));
Fmt(bW1,"%s","AT+CMGW=\"0040766560000\"\r");
ComWrt(4, bW1, strlen (bW1));
Fmt(bW1,"%s","Have a nice day.\032" );
ComWrt(4, bW1, strlen (bW1));
return 0;
}
Can you please help me?