All of lore.kernel.org
 help / color / mirror / Atom feed
* sms segment fault with 160 char
@ 2009-07-30  3:35 Li, Zhigang
  2009-07-30  4:05 ` Denis Kenzior
  0 siblings, 1 reply; 5+ messages in thread
From: Li, Zhigang @ 2009-07-30  3:35 UTC (permalink / raw)
  To: ofono

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

Hi,
There was segment fault during send 160 char sms.
The content is 160 char like: abcdefghijklmnopqrstuvwxyz0123456789][=+..........

ofonod[12988]: Response line: +CSCA: "+8613800210500",145
ofonod[12988]: csca_query_cb: 8613800210500, 145
ofonod[12988]: Got 1 recipients
ofonod[12988]: ref: 1, offset: 3
ofonod[12988]: pdu_len: 155, tpdu_len: 154
ofonod[12988]: pdu_len: 36, tpdu_len: 35
ofonod[12988]: tx_next: 0x82660f0
ofonod[12988]: at_cmgs_cb got result: 1
ofonod[12988]: Final response: OK
ofonod[12988]: Response line: +CMGS: 31
ofonod[12988]: Got MR: 31
ofonod[12988]: tx_finished
ofonod[12988]: Peeking in the queue
ofonod[12988]: Scheduling next
Segmentation fault

Basically the "[ ]' will be encoded as UCS2, but it is 7bit according message head in fact.
So there were two problem:
1, tpdu_len was wrong: the problem was in sms encode
2, send more segment had issue.
 
Thanks
Zhigang




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

end of thread, other threads:[~2009-07-31  2:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-30  3:35 sms segment fault with 160 char Li, Zhigang
2009-07-30  4:05 ` Denis Kenzior
2009-07-30  7:00   ` Li, Zhigang
2009-07-30 15:28     ` Denis Kenzior
2009-07-31  2:36       ` Li, Zhigang

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.