Commands to read IMSI/ICCID etc

Paul Gildea gildeap at tcd.ie
Mon Jan 21 12:45:41 UTC 2019


Hi,


I notice that newer modems don't seem to support the older dms commands
such as:

qmicli -d /dev/cdc-wdm0 --dms-uim-get-imsi
error: couldn’t get IMSI: QMI protocol error (94): ‘NotSupported’

qmicli -d /dev/cdc-wdm0 --dms-uim-get-pin-status
error: couldn’t get PIN status: QMI protocol error (94): ‘NotSupported’

qmicli -d /dev/cdc-wdm0 --dms-uim-get-state
error: couldn’t get UIM state: QMI protocol error (94): ‘NotSupported’

qmicli -d /dev/cdc-wdm0 --dms-uim-get-iccid
error: couldn’t get ICCID: QMI protocol error (94): ‘NotSupported’


The MC7430 seems to support three of the above and not the other (pin
status). It gets a bit messy, is there a command that works on all of them?
I had hopes for reading the memory with the uim commands for ICCID and
IMSI, and that seemed to work on all the modem types I tried, for instance:

qmicli -p -d /dev/cdc-wdm0 --uim-read-transparent=0x3F00,0x7FFF,0x6F07
[/dev/cdc-wdm0] Successfully read information from the UIM:
Card result:
SW1: '0x90'
SW2: '0x00'
Read result:
08:29:83:02:78:00:21:28:87

Resulting in IMSI (15 digit long):
2 38 20 87 00 12 82 78

A couple of questions, should this command work on all of the Sierra MC/EM
modems?
The second is, why would it work on one modem and not another of the same
type/firmware? I spotted this error on an MC7455 that I have, yet it works
fine on another with the same version of firmware (SWI9X30C_02.26.01.00
r7120 CARMD-EV-FRMWR2 2017/09/15 18:38:46):


qmicli -p -d /dev/cdc-wdm4 --uim-read-transparent=0x3F00,0x7FFF,
[21 Jan 2019, 12:40:00] -Warning ** [/dev/cdc-wdm4] requested auto mode but
no MBIM QMUX support available
error: couldn't read transparent file from the UIM: QMI protocol error (3):
'Internal'

qmicli -p -d /dev/cdc-wdm4 --uim-read-transparent=0x3F00,0x7FFF
[21 Jan 2019, 12:40:49] -Warning ** [/dev/cdc-wdm4] requested auto mode but
no MBIM QMUX support available
error: couldn't read transparent file from the UIM: QMI protocol error (3):
'Internal'


Regards,

--
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20190121/c0323a60/attachment.html>


More information about the libqmi-devel mailing list