All of lore.kernel.org
 help / color / mirror / Atom feed
* Support text mode sms send and receive
@ 2010-08-23  9:11 Su, Yong
  2010-08-23  9:25 ` Marcel Holtmann
  2010-08-24 18:51 ` Denis Kenzior
  0 siblings, 2 replies; 4+ messages in thread
From: Su, Yong @ 2010-08-23  9:11 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1382 bytes --]

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
 
 

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 5637 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-08-25  2:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-23  9:11 Support text mode sms send and receive Su, Yong
2010-08-23  9:25 ` Marcel Holtmann
2010-08-24 18:51 ` Denis Kenzior
2010-08-25  2:33   ` Su, Yong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.