Commands to read IMSI/ICCID etc
Paul Gildea
gildeap at tcd.ie
Wed Jan 23 10:45:23 UTC 2019
Great thanks Dan, I'll transition to those commands.
On Tue, 22 Jan 2019 at 15:46, Dan Williams <dcbw at redhat.com> wrote:
> On Mon, 2019-01-21 at 12:45 +0000, Paul Gildea wrote:
> > Hi,
> >
> >
> > I notice that newer modems don't seem to support the older dms
> > commands
> > such as:
>
> Correct; newer modems inconsistently support DMS, but they should all
> support UIM. For the SIM file specific ones (read-transparent) a lot of
> that also depends on the SIM card itself.
>
> Dan
>
> > 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
> > _______________________________________________
> > libqmi-devel mailing list
> > libqmi-devel at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/libqmi-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20190123/31d8bb34/attachment.html>
More information about the libqmi-devel
mailing list