EnterPUKCode

From IRON Test Suite
Jump to navigation Jump to search

DESCRIPTION

This command allows to enter a PUK code.

COMMAND

Command Input arguments Returns
EnterPUKCode Port index, PIN code, PUK code In the case of error, Error Code

OUTPUT

None

EXAMPLE

~# EnterPUKCode 0 "12345678" "1234" OK

API

MessageCode: GRA_ENTER_PUK_CODE_REQUEST

MESSAGE BODY
Field Name Length Description
PortIndex 4 GSM Port index
PukCode 16 PUK Code
NewPinCode 8 PIN Code

The format of Message Body can be coded as the following C-language structure:

typedef struct
{
   ULONG    PortIndex;
   UCHAR    PukCode[16];
   UCHAR    NewPinCode[8];
} GRAM_ENTER_PUK_CODE_REQUEST;

MessageCode: GRA_ENTER_PUK_CODE_CONFIRM

MESSAGE BODY
Field Name Length Description
Status 4 Command status (0 if successful, otherwise see list of Error Codes Values)

The format of Message Body can be coded as the following C-language structure:

typedef struct 
{
   ULONG    Status;
} GRAM_ENTER_PUK_CODE_CONFIRM;