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!

Starting and Stopping a Timer in Java Card + GSM

843851Dec 23 2002 — edited Jan 7 2003
Hi,

I seem to not be able to start a timer that my applet has
allocated using the PRO_CMD_TIMER_MANAGEMENT
pro active command. I want to for example set the timer
interval to 5 seconds and I understand from the gsm
specs that the TLV value should then be {(byte) 0x00,
(byte) 0x00, (byte) 0x05} as the hour is zero, the minute is
zero and the seconds = 5 .
The command qualifier I set to 0x00 to start the timer and
I set it to 0x02 to stop the timer. The start and stop I
control from two menu items. From the GSM spec the first 2 bits
control the timer and the remaining 6 are RFU (reserved for future use),
now I assume I can then set the RFU bits to 0.

I then have a EVENT_TIMER_EXPIRED in my processToolkit which then plays a tone.
The tone proactive command works but I dont seem to be able to start the time or
stop it ?

HELP ?

is there any suggestions or any error in my reasoning here ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 4 2003
Added on Dec 23 2002
3 comments
793 views