SetKcFile

From IRON Test Suite
Jump to navigation Jump to search

DESCRIPTION

This command emulates content of SIM EF-KC (7F20/6F20) file in the SetSimLocation SIM_EMUL mode. EF-KC content is specified as 9 hexadecimal digits.

COMMAND

Command Input arguments Returns
SetKcFile Port index, EF-KC content In the case of error, Error Code

OUTPUT

None

EXAMPLE

~# SetKcFile 3 9E CE 19 04 C1 F3 19 FB 01 OK

API

MessageCode: GRA_SET_KC_FILE_REQUEST

MESSAGE BODY
Field Name Length Description
PortIndex 4 GSM Port index
KcFileContent 12 Content of SIM EF-KC (7F20/6F7E) file

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

typedef struct
{
   ULONG    PortIndex;
   BYTE     KcFileContent[12];
} GRAM_SET_KC_FILE_REQUEST;

MessageCode: GRA_SET_KC_FILE_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_KC_FILE_CONFIRM;