sdujolo
September 9, 2006, 7:16am
1
Hi,
I am trying to store a sms in the memory whit CMGW but I can´t get it to work any ide?
Regards /Jörgen
wm_strcpy(Buff, “AT+CMGW=”");
wm_strcat(Buff, tel_nr);
wm_strcat(Buff, “”\r");
wm_strcat(Buff, param0);
wm_strcat(Buff, “\x1A”);
adl_atCmdCreate(Buff,TRUE, (adl_atRspHandler_t) my_sms_response_handler,"*",NULL );
dyzhn
September 11, 2006, 9:04am
2
Hi,
You should wait a minute, before writing the content of the short message. It means that you should wait for the response “>”, before writing the short message.
awneil
September 11, 2006, 9:34am
3
Absolutely.
The ‘>’ prompt tells you that the unit has accepted the initial parameters, and is ready for you to enter the body of the message.
This is implicit in the description provide in the Wavecom AT Command manual, but Siemens add the following explicit note in their documentation:
The GSM spec says:
the TA shall send a four character sequence <greater_than> (IRA 13, 10, 62, 32) after command line is terminated with ; after that text can be entered from TE to ME/TA
(MY emphasis)
The implication in “after that text can be entered” is, of course, “before that, text cannot be entered”! 8)
All the GSM Specs area available for free download at:
3gpp.org/specs/numbering.htm