EnablePinLock

From IRON Test Suite
Jump to navigation Jump to search

DESCRIPTION

This command activates pin code lock on the SIM.

COMMAND

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

OUTPUT

None

EXAMPLE

~# EnablePinLock 0 "1234"
OK

API

MessageCode: GRA_ENABLE_PIN_LOCK_REQUEST

MESSAGE BODY
Field Name Length Description
PortIndex 4 GSM Port index
PinCode 8 PIN Code

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

typedef struct
{
   ULONG    PortIndex;
   UCHAR    PinCode[8];
} GRAM_ENABLE_PIN_LOCK_REQUEST;

MessageCode: GRA_ENABLE_PIN_LOCK_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_ENABLE_PIN_LOCK_CONFIRM;