SMS sent error with Huawei E160G
Status: Beta
Brought to you by:
kvangend
In Query::SendMore function
return theSerialPortPtr->writeDev(aString+"\r");
has error when sent SMS. If you change it to
return theSerialPortPtr->writeDev(aString);
All is ok. Because you need just send "Message"+Ctrl+Z and not \r at end.
When I try to send SMS i got popup with progress bar and waiting some time. After that I got error "SMS was not sent".
When I fix "\r" problem SMS was sent without errors and i got "SMS sent(...)" popup.
Interesting. I'm not sure if this works for all different devices though.
Unfortunately, I cannot test that for another month. Sorry.
you can look at 3GPP specification: http://www.arib.or.jp/IMT-2000/V710Dec08/5_Appendix/R99/27/27005-320.pdf
section 3.5.1
Command:
+CMGS=<da>[,<toda>]<CR>
text is entered<ctrl-Z/ESC>
sending can be cancelled by giving <ESC> character (IRA 27)
<ctrl-Z> (IRA 26) must be used to indicate the ending of the message body
you also can use minicom for test this command by hand