Readings IMSI (was: Re: Getting ICCID from locked qmi modem)

Aleksander Morgado aleksander at aleksander.es
Mon Nov 10 02:01:17 PST 2014


On Mon, Nov 10, 2014 at 8:24 AM, Torsten Hilbrich
<torsten.hilbrich at secunet.com> wrote:
> Am 07.11.2014 um 16:50 schrieb Aleksander Morgado:
>> <warn> [1415360816.142083] [mm-base-sim.c:1428]
>> load_sim_identifier_ready(): couldn't load SIM identifier: 'QMI
>> operation failed: Cannot send message: QMI service 'dms' version '1.3'
>> required, got version '1.1''
>>
>> Basically, the "UIM Get ICCID" message in libqmi is configured to be
>> available if DMS service >= 1.3, and you're using 1.1. But, it is
>> clearly wrong as you can run that message with qmicli... I just
>> updated that in libqmi so that it requests at least DMS 1.1:
>>
>> http://cgit.freedesktop.org/libqmi/commit/?id=ce723135cabb20e79f23f93a885410762c73d3ef
>>
>> Also pushed to the qmi-1-10 branch, the current stable.
>
> I can confirm that the patch works for us.
>
> The same change can be made for the IMSI command, with the following patch:
>
> diff --git a/data/qmi-service-dms.json b/data/qmi-service-dms.json
> index 8120fa0..a6cf57e 100644
> --- a/data/qmi-service-dms.json
> +++ b/data/qmi-service-dms.json
> @@ -852,7 +852,7 @@
>       "type"    : "Message",
>       "service" : "DMS",
>       "id"      : "0x0043",
> -     "version" : "1.3",
> +     "version" : "1.1",
>       "output"  : [  { "common-ref" : "Operation Result" },
>                      { "name"      : "IMSI",
>                        "id"        : "0x01",
>

Changed that in git master and qmi-1-10, thanks.


> the IMSI can successfully be read with the ModemManager.
>
> However, there seems to be some problem reading or interpreting the lock
> state. SIM_PIN1 is unlocked and set. I would then (as seen with other
> modems) expect to see this information in the 3GPP section of the modem
> information in the "enabled locks". However, I see 'none' there.
> Expected output is at least the presence of pin.
>
> The command "qmicli -d /dev/cdc-wdm9 --dms-uim-get-pin-status" outputs
> information that seem to be correct (see attached
> qmicli-read-pin-status.txt).
>
> I have also added the output of "mmcli -m 0" (mmcli-modem.txt) and
> "mmcli -i 0" (mmcli-sim.txt) as well as the complete modem-manager.log.
>
> Version of libqmi was the current qmi-1-10 branch (5778785
> libqmi,message: fix qmi_message_set_transaction_id() in non-CTL
> messages) with the IMSI patch applied.
>
> The version of modemmanager is still 1.4.0 as in the original report.

This is not a bug, it's a missing implementation. Listing enabled
locks isn't implemented for QMI modems yet, that's why you see a
"none" there. Not sure if it's just something I forgot to do, or if I
couldn't find correct QMI DMS/UIM messages to query those. Patches
welcome :)

-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list