SetDefaultPinCode

From IRON Test Suite
Jump to navigation Jump to search

DESCRIPTION

This command sets a default PIN code for the specified GSM port. This PIN code is used for Local SIM cards, and with Remote SIM cards when PIN code is not provided by IRON SimManager.

COMMAND

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

OUTPUT

Command status in the following format:
"%s\n", command_status

EXAMPLE

~# SetDefaultPinCode 0 "0000"
OK

API

MessageCode: GRA_SET_DEFAULT_PIN_CODE_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_SET_DEFAULT_PIN_CODE_REQUEST;

MessageCode: GRA_SET_DEFAULT_PIN_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_SET_DEFAULT_PIN_CODE_CONFIRM;