GetSimTMSI

From IRON Test Suite
Jump to navigation Jump to search

DESCRIPTION

This command gets TMSI number of the SIM card allocated on the specified GSM port.

COMMAND

Command Input arguments Returns
GetSimTMSI Port index SIM card TMSI

OUTPUT

Command output in the following format:
"%s\n", tmsi

EXAMPLE

~# GetSimTMSI 2
980267C9

API

MessageCode: GRA_GET_SIM_TMSI_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_GET_SIM_TMSI_REQUEST;

MessageCode: GRA_GET_SIM_TMSI_CONFIRM

MESSAGE BODY
Field Name Length Description
Status 4 Command status:
0- Successful
1- Error SIM not allocated
TMSI 16 Temporary Mobile Subscriber Identity (TMSI) number of the SIM card allocated to GSM port (zero terminated)

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

typedef struct 
{
   ULONG    Status;
   UCHAR    TMSI[16];
} GRAM_GET_SIM_TMSI_CONFIRM;