Skip to Main Content

Java Card

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Send USSD STK command

843851Dec 19 2003 — edited Aug 17 2007
Hi,
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

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 14 2007
Added on Dec 19 2003
4 comments
1,133 views