can't set PIN code on a MC7430

Christophe Ronco c.ronco-externe at kerlink.fr
Tue Dec 27 07:56:52 UTC 2016


On 12/22/2016 12:33 PM, Aleksander Morgado wrote:
> On Thu, Dec 22, 2016 at 11:20 AM, Kasper Holtze <kasper at holtze.dk> wrote:
>> Just an idea - USIM/eUICC has more PIN options than a traditional SIM card.
>> It has the option of multiple PIN codes, and the PIN code can be encrypted
>> using a key. From the latest Gobi API (from Sierra):
>>
>> /**
>>   *  This structure contains the information about the pin parameters that
>> need
>>   *  to be verified.
>>   *
>>   *  \param  pinID
>>   *          - Indicates the PIN ID to be changed.
>>   *              - 1 - PIN1 (also called PIN)
>>   *              - 2 - PIN2
>>   *              - 3 - Universal PIN
>>   *              - 4 - Hidden key
>>   *
>>   *  \param  oldPINLen
>>   *          - Length of the following elements i.e. old pin value.
>>   *
>>   *  \param  oldPINVal[MAX_DESCRIPTION_LENGTH]
>>   *          - Old PIN value.
>>   *          - This value is a sequence of ASCII characters.
>>   *
>>   *  \param  pinLen
>>   *          - Length of the following elements i.e. new pin value.
>>   *
>>   *  \param  pinVal[MAX_DESCRIPTION_LENGTH]
>>   *          - New PIN value.
>>   *          - This value is a sequence of ASCII characters.
>>   *
>>   */
>> typedef struct{
>>      BYTE pinID;
>>      BYTE oldPINLen;
>>      BYTE oldPINVal[MAX_DESCRIPTION_LENGTH];
>>      BYTE pinLen;
>>      BYTE pinVal[MAX_DESCRIPTION_LENGTH];
>> } changeUIMPIN;
>>
>> So, the verify-pin-functions maybe needs to be updated in accordance with
>> this?
> Yeah, that's true.
>
> Currently qmicli doesn't support the "hidden key" type; but we do
> support the "UPIN" type; i.e.:
> $ qmicli -d /dev/cdc-wdm0 --uim-verify-pin=UPIN,0000
>
> Christophe, could you try that? Not sure if that makes much sense,
> given the non-working card was "Application type:  'sim (1)', but
> well...
>
Hi and sorry for the delay. I have the same answer whatever the PIN type 
I try:

root at klk-lpbs_040070:~ # qmicli -d /dev/cdc-wdm0 --uim-verify-pin=UPIN,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
root at klk-lpbs_040070:~ # qmicli -d /dev/cdc-wdm0 --uim-verify-pin=PIN2,0000
error: couldn't verify PIN: QMI protocol error (3): 'Internal'
[/dev/cdc-wdm0] Retries left:
     Verify: 0
     Unblock: 0

Can you tell me where can I find the latest GOBI API from Sierra?


Christophe




More information about the libqmi-devel mailing list