Programming ACR122T-E2 on Linux

I have an NFC ACS ACR122T-E2 reader. I downloaded the linux driver and ct-api library from http://www.acs.com.hk/en/products/109/acr122t-usb-tokens-nfc-reader/ .

I extracted the sample C program from the header specified in the ct-api library archive file. I compiled it. I also created a ctacs.ini file with this content:

[CardTerminal]
CTN1=ACR122T
[ACR122T]
ICC1=ACS ACR122 25 00

When I run the compiled executable, I just get:

Error: CT_init failed with error -8

where -8 for "CT Error" based on the documentation in the header file.

Does anyone have experience with this ACR122T-E2 and the official C API? Does anyone have an idea of ​​what I should check or what I should do?

The only thing that I think might be wrong is the ctacs.ini file. I'm not sure

ICC1=ACS ACR122 25 00
Line

. "lsusb -t", :

Bus 03.Port 1: Dev 25, If 0, Class=Chip/SmartCard, Driver=pn533, 12M

,

ICC1=ACS ACR122 03 01

config, .

- , ?

+4
2

, NFC Ubuntu, / ACS, .

, / .

modprobe -r np533
modprobe -r nfc

pcscd:

apt-get install pcscd
service start pcscd

pcsc_scan:

apt-get install pcsc-tools

pcsc_scan ICC ini :

...
Reader 0: ACS ACR122U 00 00
...

, ini :

[CardTerminal]
CTN1=ACR122T
[ACR122T]
ICC1=ACS ACR122U 00 00

C- ( ct-api, ACS):

Response: 62 00

, , NFC.

+4

Windows ctacs.ini. ( ) CCID. , Springcc pcsc, CCID . ACS ACR122U-A9 8.1. ini .

[CardTerminal]
CTN1=ACS-ACR122-0 ;Just a name, can be an arbitrary value
[ACS-ACR122-0] ;Must correspond to name given above
ICC1=ACS ACR122 0 ;This is the actual name of the device (CCID)
+2

Source: https://habr.com/ru/post/1570160/


All Articles