SMS support through MBIM
Bjørn Mork
bjorn at mork.no
Fri Jun 21 06:24:47 PDT 2013
Aleksander Morgado <aleksander at lanedo.com> writes:
> I think I fixed it now in the branch; it was indeed the problem you
> described.
Yup, I can confirm that MM now see the notification, triggering a read:
ModemManager[24638]: [/dev/cdc-wdm0] Received message...
>>>>>> RAW:
>>>>>> length = 52
>>>>>> data = 07:00:00:80:34:00:00:00:00:00:00:00:01:00:00:00:00:00:00:00:53:3F:BE:EB:14:FE:44:67:9F:90:33:A2:23:E5:6C:3F:05:00:00:00:08:00:00:00:02:00:00:00:1B:00:00:00
ModemManager[24638]: [/dev/cdc-wdm0] Received message (translated)...
>>>>>> Header:
>>>>>> length = 52
>>>>>> type = indicate-status (0x80000007)
>>>>>> transaction = 0
>>>>>> Fragment header:
>>>>>> total = 1
>>>>>> current = 0
>>>>>> Contents:
>>>>>> service = 'sms' (533fbeeb-14fe-4467-9f90-33a223e56c3f)
>>>>>> cid = 'message-store-status' (0x00000005)
ModemManager[24638]: [/dev/cdc-wdm0] Received message (translated)...
>>>>>> Header:
>>>>>> length = 52
>>>>>> type = indicate-status (0x80000007)
>>>>>> transaction = 0
>>>>>> Fragment header:
>>>>>> total = 1
>>>>>> current = 0
>>>>>> Contents:
>>>>>> service = 'sms' (533fbeeb-14fe-4467-9f90-33a223e56c3f)
>>>>>> cid = 'message-store-status' (0x00000005)
ModemManager[24638]: <debug> [1371820818.931981] [mm-broadband-modem-mbim.c:1746] sms_notification(): Received flash message: 'new-message'
ModemManager[24638]: <debug> [1371820818.932129] [mm-broadband-modem-mbim.c:1711] sms_notification_read_alert_sms(): Reading flash SMS at index '27'
ModemManager[24638]: [/dev/cdc-wdm0] Sent message...
<<<<<< RAW:
<<<<<< length = 60
<<<<<< data = 03:00:00:00:3C:00:00:00:0F:00:00:00:01:00:00:00:00:00:00:00:53:3F:BE:EB:14:FE:44:67:9F:90:33:A2:23:E5:6C:3F:02:00:00:00:00:00:00:00:0C:00:00:00:00:00:00:00:01:00:00:00:1B:00:00:00
ModemManager[24638]: [/dev/cdc-wdm0] Sent message (translated)...
<<<<<< Header:
<<<<<< length = 60
<<<<<< type = command (0x00000003)
<<<<<< transaction = 15
<<<<<< Fragment header:
<<<<<< total = 1
<<<<<< current = 0
<<<<<< Contents:
<<<<<< service = 'sms' (533fbeeb-14fe-4467-9f90-33a223e56c3f)
<<<<<< cid = 'read' (0x00000002)
<<<<<< type = 'query' (0x00000000)
ModemManager[24638]: [/dev/cdc-wdm0] Received message...
>>>>>> RAW:
>>>>>> length = 112
>>>>>> data = 03:00:00:80:70:00:00:00:0F:00:00:00:01:00:00:00:00:00:00:00:53:3F:BE:EB:14:FE:44:67:9F:90:33:A2:23:E5:6C:3F:02:00:00:00:00:00:00:00:40:00:00:00:00:00:00:00:01:00:00:00:10:00:00:00:2D:00:00:00:1B:00:00:00:00:00:00:00:10:00:00:00:1D:00:00:00:06:91:74:09:00:12:00:04:0A:91:74:74:09:00:68:00:00:31:60:12:51:02:71:80:04:C8:32:1C:0E:00:00:00
ModemManager[24638]: [/dev/cdc-wdm0] Received message (translated)...
>>>>>> Header:
>>>>>> length = 112
>>>>>> type = command-done (0x80000003)
>>>>>> transaction = 15
>>>>>> Fragment header:
>>>>>> total = 1
>>>>>> current = 0
>>>>>> Contents:
>>>>>> status error = 'None' (0x00000000)
>>>>>> service = 'sms' (533fbeeb-14fe-4467-9f90-33a223e56c3f)
>>>>>> cid = 'read' (0x00000002)
ModemManager[24638]: [/dev/cdc-wdm0] Received message (translated)...
>>>>>> Header:
>>>>>> length = 112
>>>>>> type = command-done (0x80000003)
>>>>>> transaction = 15
>>>>>> Fragment header:
>>>>>> total = 1
>>>>>> current = 0
>>>>>> Contents:
>>>>>> status error = 'None' (0x00000000)
>>>>>> service = 'sms' (533fbeeb-14fe-4467-9f90-33a223e56c3f)
>>>>>> cid = 'read' (0x00000002)
ModemManager[24638]: <debug> [1371820818.941295] [mm-sms-part.c:519] mm_sms_part_new_from_binary_pdu(): Parsing PDU (27)...
ModemManager[24638]: <debug> [1371820818.941402] [mm-sms-part.c:548] mm_sms_part_new_from_binary_pdu(): SMSC address parsed: '+4790002100'
ModemManager[24638]: <debug> [1371820818.941499] [mm-sms-part.c:561] mm_sms_part_new_from_binary_pdu(): Deliver type PDU detected
ModemManager[24638]: <debug> [1371820818.941596] [mm-sms-part.c:622] mm_sms_part_new_from_binary_pdu(): Number parsed: '+4747900086'
ModemManager[24638]: <debug> [1371820818.941693] [mm-sms-part.c:726] mm_sms_part_new_from_binary_pdu(): PID: 0
ModemManager[24638]: <debug> [1371820818.941827] [mm-sms-part.c:737] mm_sms_part_new_from_binary_pdu(): user data encoding is GSM7
ModemManager[24638]: <debug> [1371820818.941924] [mm-sms-part.c:765] mm_sms_part_new_from_binary_pdu(): user data length: 4 elements
ModemManager[24638]: <debug> [1371820818.942020] [mm-sms-part.c:771] mm_sms_part_new_from_binary_pdu(): user data length: 4 bytes
ModemManager[24638]: <debug> [1371820818.942115] [mm-sms-part.c:846] mm_sms_part_new_from_binary_pdu(): Decoding SMS text with '4' elements
ModemManager[24638]: <debug> [1371820818.943026] [mm-sms-part.c:244] sms_decode_text(): Converting SMS part text from GSM7 to UTF8...
ModemManager[24638]: <debug> [1371820818.943378] [mm-sms-part.c:247] sms_decode_text(): Got UTF-8 text: 'Hepp'
ModemManager[24638]: <debug> [1371820818.943654] [mm-broadband-modem-mbim.c:2406] add_sms_part(): Correctly parsed PDU (27)
ModemManager[24638]: <debug> [1371820818.943953] [mm-sms-list.c:382] mm_sms_list_take_part(): SMS part at 'mt/27' is from a singlepart SMS
ModemManager[24638]: <debug> [1371820818.945286] [mm-iface-modem-messaging.c:500] sms_added(): Added received SMS at '/org/freedesktop/ModemManager1/SMS/0'
Nice!
Bjørn
More information about the libmbim-devel
mailing list