can't set PIN code on a MC7430
Christophe Ronco
c.ronco-externe at kerlink.fr
Wed Dec 21 07:45:05 UTC 2016
Hello,
On 12/20/2016 06:18 PM, Dan Williams wrote:
> 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
> _______________________________________________
> libqmi-devel mailing list
> libqmi-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/libqmi-devel
Yes, I already tried --uim-verify-pin command (I have even upgraded my
libqmi to support this command). I 've done the test again this morning
with and without '"' but as expected, the result is the same (see
above). Have you already tried these commands on a MC7430?
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
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
Christophe Ronco
More information about the libqmi-devel
mailing list