title: Programming ACR122T-E2 in linux
body: <p>I have an ACS ACR122T-E2 NFC reader. I downloaded the linux driver and the ct-api library from
  <a href="http://www.acs.com.hk/en/products/109/acr122t-usb-tokens-nfc-reader/" rel="nofollow">http://www.acs.com.hk/en/products/109/acr122t-usb-tokens-nfc-reader/</a> .</p>
  
  <p>I have extracted the sample C program from the header given in the ct-api library archive file. I compiled it. I also created the ctacs.ini file with this content:</p>
  
  <pre><code>[CardTerminal]
  CTN1=ACR122T
  [ACR122T]
  ICC1=ACS ACR122 25 00
  </code></pre>
  
  <p>When I running the compiled executable I just get:</p>
  
  <pre><code>Error: CT_init failed with error -8
  </code></pre>
  
  <p>where -8 is for "CT Error" based on the documentation in the header file.</p>
  
  <p>Does somebody have some experience with this ACR122T-E2 and the official C API given for it?
  Does anyone have some idea on what should I check for or what should I try to do?</p>
  
  <p>The only one thing I guess I might be wrong with, is the ctacs.ini file. I am not really sure if the </p>
  
  <pre><code>ICC1=ACS ACR122 25 00
  </code></pre>
  
  <p>line is right. I used "lsusb -t" which shows:</p>
  
  <pre><code>Bus 03.Port 1: Dev 25, If 0, Class=Chip/SmartCard, Driver=pn533, 12M
  </code></pre>
  
  <p>Of course I already have tried </p>
  
  <pre><code>ICC1=ACS ACR122 03 01
  </code></pre>
  
  <p>config line, but did not help.</p>
  
  <p>Does anybody have some idea, what this configuration line should be?</p>