GetSimLocation

From IRON Test Suite
Jump to navigation Jump to search

DESCRIPTION

This command gets SIM Rack location of the SIM card allocated on the specified GSM port. SIM Rack boards and slots are numbered starting from 0 (contrary from ISSO Web interface where SIM Rack slots are numbered from 1).

COMMAND

Command Input arguments Returns
GetSimLocation Port index SIM Rack IP address, board/slot

OUTPUT

Command output in the following format:
“%s %d %d\n”, sim_rack_ip_addr, board, slot


EXAMPLE

~# GetSimLocation 2
198.214.100.025 2 17

API

MessageCode: GRA_GET_SIM_LOCATION_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_LOCATION_REQUEST;

MessageCode: GRA_GET_SIM_LOCATION_CONFIRM

MESSAGE BODY
Field Name Length Description
Status 4 Command status:
0- Successful
1-Error SIM not allocated
SimRackIpAddr 16 SIM Rack IP address (zero terminated string)
SimRackBoard 4 SIM Rack board
SimRackSlot 4 SIM Rack slot

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

 typedef struct {
 ULONG    Status;
 UCHAR    SimRackIpAddr[16];
 ULONG    SimRackBoard;
 ULONG    SimRackSlot;
 } GRAM_GET_SIM_LOCATION_CONFIRM;