All of lore.kernel.org
 help / color / mirror / Atom feed
* Unable to decode PDU for SMS-STATUS-REPORT
@ 2012-06-25 16:10 Audric Schiltknecht
  2012-06-22  8:28 ` Denis Kenzior
  2012-06-25 16:20 ` Audric Schiltknecht
  0 siblings, 2 replies; 5+ messages in thread
From: Audric Schiltknecht @ 2012-06-25 16:10 UTC (permalink / raw)
  To: ofono

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

Hi guys.

I'm having troubles with delivery reports.

When I send a message with the property "UseDeliveryReports" set to 
"true",
I can get the delivery report from the GSM modem, but ofono is unable 
to decode it:

ofonod[677]: SMS:    < \r\n+CDS: 
32\r\n07913386094000F006DB0A810011223344216052714081802160527140228000\r\n
ofonod[677]: drivers/atmodem/sms.c:at_cds_notify() Got new 
Status-Report PDU via CDS: 
07913386094000F006DB0A810011223344216052714081802160527140228000, 32
ofonod[677]: src/sms.c:ofono_sms_status_notify() len 32 tpdu len 32
ofonod[677]: Unable to decode PDU

The PDU is valid, since I can decode it using some online tool.

It seems that sms_decode does not correctly handle the SMSCC part 
(913386094000F0),
and tries to decode it as the sender address, which obviously fails.

If in decode_deliver() function, I shift the PDU of 9 bytes (ie. PDU is 
DB0A810011223344216052714081802160527140228000),
then the function still fails (more or less expected), but the sender 
address is correctly decoded.


Do any of you have an idea on this matter ?


Regards.
Audric Schiltknecht

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

end of thread, other threads:[~2012-06-26  9:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-25 16:10 Unable to decode PDU for SMS-STATUS-REPORT Audric Schiltknecht
2012-06-22  8:28 ` Denis Kenzior
2012-06-26  7:18   ` Audric Schiltknecht
2012-06-25 16:20 ` Audric Schiltknecht
2012-06-26  9:14   ` Philippe Nunes

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.