DWM 156 A7 reading SMS
Aleksander Morgado
aleksander at aleksander.es
Mon Jun 16 07:20:02 PDT 2014
On Mon, Jun 16, 2014 at 12:24 PM, Bjørn Mork <bjorn at mork.no> wrote:
> 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.
Ha! Nice catch;
There's indeed a problem... :) MBIM hardcodes the MT storage as the
only one available, but then the interface code has this:
/* We'll skip the 'MT' storage, as that is a combination of 'SM' and 'ME' */
else if (g_array_index (storage_ctx->supported_mem1,
MMSmsStorage,
ctx->mem1_storage_index) == MM_SMS_STORAGE_MT) {
ctx->mem1_storage_index++;
if (ctx->mem1_storage_index >= storage_ctx->supported_mem1->len)
all_loaded = TRUE;
}
So yeah, we shouldn't skip the MT storage in this case. Will prepare a
patch for this.
--
Aleksander
https://aleksander.es
More information about the libmbim-devel
mailing list