can't set PIN code on a MC7430

Aleksander Morgado aleksander at aleksander.es
Thu Dec 22 11:33:49 UTC 2016


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...

-- 
Aleksander
https://aleksander.es


More information about the libqmi-devel mailing list