7 Replies Latest reply: Feb 22, 2012 10:42 PM by Umer RSS

    Simulate a Handset for testing a STK Applet

    917890
      Hi,

      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.
        • 1. Re: Simulate a Handset for testing a STK Applet
          Umer
          Hi,

          You should first read the following basic documnents:

          3GPP 11.11
          3GPP 11.14
          ETSI TS102223

          And download following packages for development:

          sim.access
          sim.tookit

          BR
          Umer
          • 2. Re: Simulate a Handset for testing a STK Applet
            917890
            Thanks for the answer.

            The packages sim.access and sim.toolkit are for the development of STK Applets.
            I know nothing about the implementation of the application.
            The application is already installed on the SIM card.
            Say, I had to make a Blackbox-Test of the STK Applet with a Cardreader on the PC.
            Could these packages help yet nonetheless?

            Please your advice.
            Thank in advance.
            • 3. Re: Simulate a Handset for testing a STK Applet
              Umer
              No these are for development only.
              In that case you need a simulator like Gemalot developer suit to simulate your card or you can test on handset also.
              • 4. Re: Simulate a Handset for testing a STK Applet
                917890
                The Gemalto developer suite is a commercial tool.
                Can you recommend a tool (libraries/frameworks) that are free to use?

                I don't know the implementation/source code of the application.
                I only have the possibility of a Black-Box-Test.

                I want to develop an application that tests the STK Applet.
                This Test Application should run a great number of tests and verify the results from the STK Applet. I could not do this with a Handset.
                So I would simulate a Handset with the PC and communicate with a real SIM-Card over a Card Reader.

                Please your advice.
                Thank in advance.

                Edited by: 914887 on Feb 16, 2012 4:55 AM

                Edited by: 914887 on Feb 16, 2012 5:03 AM
                • 5. Re: Simulate a Handset for testing a STK Applet
                  Umer
                  Well I have not heard any other tool other than gemalto with such good features. But as you are developing an application not an applet so the scenario will be different I thing you don't need any such tool you need a desktop application to test your applet which on the SIM. For this you can use any IDE like netbeans to write your application.
                  • 6. Re: Simulate a Handset for testing a STK Applet
                    917890
                    I was hoping that there are libraries to help me interpreting proactive commands.
                    As for example: to read the available applets on the card,
                    to read a "Set Up Menu" of a selected applet,
                    to interpreting command to "Provide Local Information",
                    to read a "Display Text"...,

                    Please your advice.
                    Thank in advance.
                    • 7. Re: Simulate a Handset for testing a STK Applet
                      Umer
                      gizmo wrote:
                      I was hoping that there are libraries to help me interpreting proactive commands.
                      As for example: to read the available applets on the card,
                      to read a "Set Up Menu" of a selected applet,
                      to interpreting command to "Provide Local Information",
                      to read a "Display Text"...,
                      For such libraries you can search online there is a chance that some third party library is available but I am sure if so then it will be commercial not having GPL license.