Hi, all:
 
Our project used ZTE EVDO modem. But this modem only supports sending and receiving sms with text mode.
I have modify oFono gatchat code to support this. But it conflicted with original gatchat architecture.
Does oFono plan to support text mode sms send&receive?
 
 
Following are some AT commands:
 
Send sms: AT^HCMGS=<da><CR><msg><ctrl-Z>
 
<da>: Receiver phone number
<msg>: value of message content
<ctrl-Z>: end character 0x1A (UCS2 format is 0x001A)
 
Firstly, send ^HCMGS=<da> end of <CR>, TE waits MS response <CR><LF><greater_than><space> (IRA 13, 10, 62, 32).
Secondly, send message content and end of <ctrl-Z>.
 
<msg> example, for string "oFono" :
 
chat command is 0x6F, 0x46, 0x6F,0x6E,0x6F, end character is 0x1A  if <format> is CDMA ASCII
chat command is 0x00, 0x6F, 0x00, 0x46, 0x00, 0x6F,0x00, 0x6E,0x00, 0x6F, end character is 0x00, 0x1A  if <format> is CDMA UCS2 BE
(PS: <format> can be set by another AT command)
 
 
 
Receive sms:  ^HCMT: <callerID>,<year>,<month>,<day>,<hour>,<minute>,<second>,<lang>,<format>,<length>,<prt>,<prv>,<type><CR><LF><msg><ctrl-Z><CR><LF>
 
Important tag:
 
<callerID>: Sender phone number
<format>: ASCII or UCS2 BE
<length>: Message content length, not contain <ctrl-Z>
<msg>: value of message content, same as above command
 
 
 
 
 
 
Best Regards
Su Yong