DWM 156 A7 reading SMS

Bjørn Mork bjorn at mork.no
Mon Jun 16 03:24:52 PDT 2014


Aleksander Morgado <aleksander at aleksander.es> writes:
> On Sun, Jun 15, 2014 at 8:03 PM, Younes Manton <younes.m at gmail.com> wrote:
>> On Fri, Jun 13, 2014 at 7:46 PM, Aleksander Morgado
>> <aleksander at aleksander.es> wrote:
>>>
>>> On Fri, Jun 13, 2014 at 6:20 PM, Bjørn Mork <bjorn at mork.no> wrote:
>>> >> I did not realize that SMSes are not
>>> >> stored on the modem itself, or perhaps they are but in a way not
>>> >> visible on
>>> >> the Linux side, since the D-Link app has 2 separate SMS stores: "Local"
>>> >> and
>>> >> "DataCard".
>>> >
>>> > That is probably an MBIM specific ModemManager MBIM bug?
>>> >
>>> > The messages are stored on the modem, but it doesn't seem like MM will
>>> > retrieve the list of already stored messages on discovery like it does
>>> > for e.g. QMI modems.
>>>
>>>
>>> The logic is there; so there has to be some error somewhere...
>>>
>>> Younes, can you run MM with debug logs to see what's happening?
>>>
>>
>> I was too optimistic earlier, I still can't seem to consistently receive
>> SMSes. The SMSes I'm interested in are from the service provider and they
>> don't seem to show up without some voodoo before hand. Not sure what I did
>> earlier to receive one successfully, possibly it has to do with repeating
>> Bjørn's test.
>>
>> Anyhow, I grabbed some logs while starting NM and MM, checking to see that
>> most of the expected SMSes that I see in Windows are not there in nmclli and
>> NM GUI, and I went through the service provider's website and triggered an
>> SMS to me, which was also not received. If that's not enough let me know
>> what else you would like to see.
>>
>> Logs at http://goo.gl/bpF2El
>
> Don't see any new SMS notification in the log. Please try without
> involving NetworkManager at all; i.e. don't launch a connection in the
> modem, and play only with mmcli:
>
> First, run MM with --debug; then plug in modem; then, if needed, unlock SIM-PIN:
> $ sudo mmcli -i 0 --pin=XXXX
> Enable modem
> $ sudo mmcli -m 0 -e
> Check that the modem is registered to the network; so run the basic
> status command and look for "status: registered". If not yet
> registered, wait a bit and retry until it's registered.
> $ sudo mmcli -m 0
>
> (now send the SMS to the modem)
>
> Run the SMS listing command several times:
> $ sudo mmcli -m 0  --messaging-list-sms

I don't know if I do anything wrong, but I have never been able to list
previously received (i.e. prior to starting MM) SMSes using MBIM.  This
is the same with all my MBIM modems.

Using the DWM-156 A7 as an example, I can manually send:

03 00 00 00 3c 00 00 00 01 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 00 00 00 00 00 00 00 00 

and receive the list of 1 stored SMS (with the origin phone number
slighly modified here):

03 00 00 80 08 01 00 00 01 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 d8 00 00 00
00 00 00 00 01 00 00 00 10 00 00 00 c8 00 00 00 01 00 00 00 01 00 00 00
10 00 00 00 1c 00 00 00 06 91 74 09 00 12 00 04 0a 91 74 00 00 00 00 00
00 21 20 80 51 10 31 40 03 c8 72 1a ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff


I'm attaching the MM log of this modem being probed and then sent these
commands: 

 bjorn at nemi:~$  mmcli -i 0 --pin=xxxx
 successfully sent PIN code to the SIM
 bjorn at nemi:~$  mmcli -m 0 -e
 successfully enabled the modem
 bjorn at nemi:~$  mmcli -m 0  --messaging-list-sms
 
 No SMS messages were found
 bjorn at nemi:~$  mmcli -m 0  --messaging-list-sms
 
 No SMS messages were found


As you can see, there are absolutely no 'sms' commands in that log.  The
only 'sms' service CID seen is the 'configuration' indication.  But MM
never attempt to retrieve the list of stored messages.

This is particularily obvious with the QMI/MBIM modems, where the
stored messages will be listed in QMI mode but not in MBIM mode.


Bjørn

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mm-debug.log
URL: <http://lists.freedesktop.org/archives/libmbim-devel/attachments/20140616/eb5f72c7/attachment-0001.ksh>


More information about the libmbim-devel mailing list