SendUSSDCommand

From IRON Test Suite
Jump to navigation Jump to search

DESCRIPTION

This command sends specified USSD string to the existing USSD session on the specified GSM port. Optional character set can be specified (GSM, HEX or UCS2).

COMMAND

Command Input arguments Returns
SendUSSDCommand Port index, USSD string, charset In the case of error, Error Code

OUTPUT

None

EXAMPLE

~# SendUSSDCommand 0 "2"

API

MessageCode: GRA_SEND_USSD_COMMAND_REQUEST

MESSAGE BODY
Field Name Length Description
PortIndex 4 GSM Port index
UssdResponse 512 USSD string
CharSet 4 Character set used (set in AT+CSCS):

0- Unknown
1- GSM
2- HEX
3- UCS2

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

typedef struct
{
   ULONG    PortIndex;
   UCHAR    UssdString[512];
   ULONG    CharSet;
} GRAM_SEND_USSD_COMMAND_REQUEST;

MessageCode: GRA_SEND_USSD_COMMAND_CONFIRM

MESSAGE BODY
Field Name Length Description
Status 4 Command status:
0- Successful
1- Error - No existing USSD session
2- Error - Command failed

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

typedef struct 
{
   ULONG    Status;
} GRAM_SEND_USSD_COMMAND_CONFIRM;