NFC SWP applet selection returns 6999

I have a simple JavaCard applet installed on my SIM. I am trying to communicate with my applet using the Omnikey 5121 CL reader and NFC compatible Sony Xperia L via NFC / SWP (single wire protocol).

The problem is I cannot select the applet - as the status word I get 6999

. The LED is on, so I guess there is some connection between the reader and the SIM card. Also, I am unable to select my security domain.

However, when I put the SIM into a standard smart card reader everything works fine.

Is there any additional configuration for Android OS, SIM card, NFC modem, etc. Do I need to set up before communicating with my SIM card via NFC? Any ideas?

Additional Information:

ATR SIM card available by contact:

3B9F96C00A3FC6A08031E073FE211F65D001900F3B810FE6

      

ATR (generated by PCSC from ATS) of a SIM card that can be accessed via NFC in a contactless way:

3B8880010000000000817000F8

      

My INSTALLATION TO INSTALL APDU: (worked finally!)

80E6040C32 //CLA INS P1 P2 Lc
0CF0AAAAAAAAAAAAAAAABBBBBB // AIDs
09F0AAAAAAAAAAAAAAAA
09F0AAAAAAAAAAAAAAAA
01
 00 //privileges
0B //length of parameters
 EF07 //system parameters
  A005A5038201FF
 C900 //applet parameters
00

      

+3


source to share


1 answer


The receive status code 6999

in response to the SELECT command (by AID) is a clear indication that the applet was not found / not selected. If an applet has been installed and can be selected (using the same AID) via the pin interface of the UICC / SIM card, then most likely it will not be selected via the SWP interface (no pin). Typically protected elements allow you to selectively enable / disable applets for specific interfaces (in addition to this, applets can determine which interface they are selected on and can react accordingly).

Applets should usually be explicitly selected over the contactless interface by setting the contactless protocol parameters in the INSTALL command (for MAKE SELECTABLE) (or later by performing a registry update). For more information, see Attachment C to the Global Platform Map specification.



Btw. a security domain that cannot be selected via the contactless interface is not unusual for a SIM card. Card management is usually limited to the contact interface for security reasons. (Card control via a contactless interface is not commonly used in production environments.)

+3


source







All Articles