Send USSD STK command
843851Dec 19 2003 — edited Aug 17 2007Hi,
I am writing a SIM Toolkit Java Card and having trouble with the Send USSD proactive command.
We are just trying to send a USSD command to the number "*111#" . When dialing this string
from the phone directly I am getting proper response. But when dialling through STK applet I am
always getting the Error code 0x24 in additional info.
(which means UnexpectedDataValue as per GSM 24.080 )
I think it is an error with coding of the USSD String.
In my program I have tested the following three types of USSD String coding.
Type1: (byte)0x0F,(byte)0x03,(byte)0xB0,(byte)0x11,(byte)0xF1
Type2: (byte)0x04,(byte)0x05,(byte)0xB0,(byte)'*',(byte)0x11,(byte)0xF1,(byte)'#'
Type3: (byte)0x0F,(byte)0x05,(byte)0xB0,(byte)'*',(byte)'1',(byte)'1',(byte)'1', (byte)'#'
But all of them are giving the same error code 0x24.
Any suggestions on this will be highly appreciated.
Regards,
Rajat