ACR 122u NFC reader does not connect via USB: reverse error

Im developing an NFC reader system with C #, according to these code examples from the SDK, I can not connect the device to the application. Sometimes it returns an unknown error code (- 2146434967) , which is not processed in the sample application code. enter image description here

But sometimes it returns an error code of 6 , which is a constant public const int SCARD_SPECIFIC = 6; and is described as

 /*=============================================================== ' This value implies the card has been reset and specific ' communication protocols have been established. '===============================================================*/ 

enter image description here

I don’t know how to act, does anyone have any ideas?

thanks

+6
source share
1 answer

I turned to a member of the ACS team and found the answers.

For the error 'retCode = 6', follow these steps:

  • Go to the "Assembly Manager"

  • In the "Active Solutions Platform" section, select "Create" (if x86 does not exist)

  • Install 'Enter or select a new platform:' to "x86"

  • Set "Copy settings from:" to ""

  • Check out "Create New Project Platforms"

  • Click OK and rebuild the solution.

For the error "retCode = -2146434967" this means that the smart card has been deleted on the reader.

I tried this with C #. Ive described in my blog: A Simple NFC Reader for Windows

I used Mifare classic 1K Tags. Hope someone takes advantage.

thanks

+6
source

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


All Articles