title: NFC SWP applet selection returns 6999
body: <p>I have a simple JavaCard applet installed on my SIM card. I try to communicate with my applet using Omnikey 5121 CL reader and NFC-enabled Sony Xperia L through NFC/SWP (single wire protocol).</p>
  
  <p>The problem is I cannot select the applet - as a status word I get <code>6999</code>. The LED light is turned on, so I suppose there is some communication between reader and the SIM card. Moreover, I cannot select my security domain either.</p>
  
  <p>However, when I put the SIM card into a standard contact smartcard reader, everything works fine.</p>
  
  <p>Is there any extra configuration of Android OS, SIM card, NFC modem etc. I have to setup before communicating with SIM card over NFC? Any ideas?</p>
  
  <p><strong>More information:</strong></p>
  
  <p>ATR of SIM accessed in the contact way:</p>
  
  <pre><code>3B9F96C00A3FC6A08031E073FE211F65D001900F3B810FE6
  </code></pre>
  
  <p>ATR (generated by PCSC from ATS) of SIM accessed over NFC in the contactless way:</p>
  
  <pre><code>3B8880010000000000817000F8
  </code></pre>
  
  <p><strong>My INSTALL for INSTALL APDU: (worked, finally!)</strong></p>
  
  <pre><code>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
  </code></pre>