ReadKcFile

From IRON Test Suite
Jump to navigation Jump to search

DESCRIPTION

This command reads content of SIM EF-KC (7F20/6F20) file. EF-KC content is displayed as 9 hexadecimal digits.

COMMAND

Command Input arguments Returns
ReadKcFile Port index SIM card EF-KC file content

OUTPUT

Command output in the following format:
"%s\n", EF-KC_content

EXAMPLE

~# ReadKcFile 2
9E CE 19 04 C1 F3 19 FB 01

API

MessageCode: GRA_READ_KC_FILE_REQUEST

MESSAGE BODY
Field Name Length Description
PortIndex 4 GSM Port index

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

typedef struct
{
   ULONG    PortIndex;
} GRAM_READ_KC_FILE_REQUEST;

MessageCode: GRA_READ_KC_FILE_CONFIRM

MESSAGE BODY
Field Name Length Description
Status 4 Command status (0 if successful, otherwise see list of Error Codes Values)
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    Status;
   BYTE     KcFileContent[12];
} GRAM_READ_KC_FILE_CONFIRM;