can't set PIN code on a MC7430
Dan Williams
dcbw at redhat.com
Tue Dec 20 17:18:58 UTC 2016
On Tue, 2016-12-20 at 18:06 +0100, Aleksander Morgado wrote:
> Hey,
>
> >
> >
> > I am trying to manage a MC7430 modem using libqmi.
> >
> > After a kernel upgrade, I am now able to send basic commands to my
> > modem.
> > Example:
> >
> > qmicli -d /dev/cdc-wdm0 --dms-get-ids
> > [/dev/cdc-wdm0] Device IDs retrieved:
> > ESN: '0'
> > IMEI: '359074060071935'
> > MEID: '35907406007193'
> >
> > I use libqmi version 1.16.2.
> >
> > I am not able to send PIN code to modem. I tried the following
> > commands:
> >
> > root at klk-lpbs_040070:~ # qmicli -d /dev/cdc-wdm0
> > --dms-uim-verify-pin=PIN,0000
> > error: couldn't verify PIN: QMI protocol error (71):
> > 'InvalidQmiCommand'
> >
> > root at klk-lpbs_040070:~ # qmicli -d /dev/cdc-wdm0 --uim-verify-
> > pin=PIN1,0000
> > error: couldn't verify PIN: QMI protocol error (3): 'Internal'
> > [/dev/cdc-wdm0] Retries left:
> > Verify: 0
> > Unblock: 0
> >
> > I also tried the following commands to get PIN status:
> >
> > root at klk-lpbs_040070:~ # qmicli -d /dev/cdc-wdm0 --dms-uim-get-pin-
> > status
> > error: couldn't get PIN status: QMI protocol error (71):
> > 'InvalidQmiCommand'
> >
> > root at klk-lpbs_040070:~ # qmicli -d /dev/cdc-wdm0 --uim-get-card-
> > status
> > [/dev/cdc-wdm0] Successfully got card status
> > Provisioning applications:
> > Primary GW: slot '0', application '0'
> > Primary 1X: session doesn't exist
> > Secondary GW: session doesn't exist
> > Secondary 1X: session doesn't exist
> > Card [0]:
> > Card state: 'present'
> > UPIN state: 'not-initialized'
> > UPIN retries: '0'
> > UPUK retries: '0'
> > Application [0]:
> > Application type: 'sim (1)'
> > Application state: 'pin1-or-upin-pin-required'
> > Application ID:
> > Personalization state: 'unknown'
> > UPIN replaces PIN1: 'no'
> > PIN1 state: 'enabled-not-verified'
> > PIN1 retries: '3'
> > PUK1 retries: '10'
> > PIN2 state: 'enabled-not-verified'
> > PIN2 retries: '3'
> > PUK2 retries: '10'
> > Card [1]:
> > Card state: 'absent'
> > UPIN state: 'not-initialized'
> > UPIN retries: '0'
> > UPUK retries: '0'
> >
> > So with --uim-get-card-status, I am able to get PIN status but I
> > don't know
> > how to set PIN.
> >
> > Does anyone have done that on a MC7430? Or an idea of what I did
> > wrong?
> >
>
> The new MC74XX series does no longer support the "DMS UIM" commands;
> you need to use the more powerful "UIM" commands. E.g.:
> $ qmicli --uim-verify-pin="PIN1,0000"
I was going to say that too, but he did try that already:
root at klk-lpbs_040070:~ # qmicli -d /dev/cdc-wdm0 --uim-verify-pin=PIN1,0000
error: couldn't verify PIN: QMI protocol error (3): 'Internal'
[/dev/cdc-wdm0] Retries left:
Verify: 0
Unblock: 0
Dan
More information about the libqmi-devel
mailing list