Simulate a Handset for testing a STK Applet
917890Feb 16 2012 — edited Feb 22 2012Hi,
I want to test a STK application on a real simcard with a card reader on a PC.
For that I would have to simulate a Handset.
I would need intercept the proactive commands.
The proactive commands are:
Set Up Menu
Provide Local Information
Timer Management
Display Text
The STK application should also use events:
Profile Download
Menu Selection
Timer expiration
Can you recommend me tutorials and libraries/frameworks that are free to use and make my work easier?
I can't use commercial tools.
Would it also work without using special libraries/frameworks? For example, only with javax.smartcardio.*;
But that would mean a lot to work, right?
I have no experience with STK development but I read something in this subject.
What would be the first steps to communicate with the SIM? Is the following correct:
1. Boot Phase
2. Verify PIN
3. Profile download (Send Terminal Profile to the SIM)
4. Request the "Set Up Menu" (Top-level STK menu/Display List of Applets on the SIM)
5. Applet Selection
6. Intercept "Menu selection" Read the Menu of the Applet
7. Send the "Menu selection" to the SIM
8. Intercept "Display Text"
..
..
Can I skip point 2 by disabling the PIN request with a Handset. Are there other restrictions to communicate with a SIM?
Can I skip point 4 and jump directly to the known application?
Please your advice.
Thank in advance.