nfc-tools / libnfc

Platform independent Near Field Communication (NFC) library
http://nfc-tools.org
GNU Lesser General Public License v3.0
1.71k stars 445 forks source link

ACR1252U-M1, nfc-list: NFC device not found. #574

Closed zhaxylykbayev closed 4 years ago

zhaxylykbayev commented 4 years ago

I know its not an issue, but need help. Firstly, does libnfc compatible with ACR1252U ? I'm using version 1.7.1 and tried on Mac OS 10.15, fully fresh ubuntu 18.04 but no luck. Reader Im using- https://www.acs.com.hk/en/products/342/ I have tried everything on stackoverflow and github with no results

thekix commented 4 years ago

Hi,

please, check it with this patch: https://github.com/nfc-tools/libnfc/pull/563

Remember to clean the previous libnfc packages to avoid wrong library selection.

If the problem is solved with this patch, please, merge the issues.

Regards, kix

zhaxylykbayev commented 4 years ago

Deleting usb_set_altinterface didn't help, even on clean ubuntu steps i followed: 1) install fresh ubuntu 2) clone last version 1.7.1 3) go to library folder > libnfc > drivers> acr122_usb.c,then deleted

      if (res < 0) {
        log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_ERROR, "Unable to set alternate setting on USB interface (%s)", _usb_strerror(res));
        usb_close(data.pudh);
        // we failed to use the specified device
        goto free_mem;
      }

4) install all required libraries 5) and in library folder typed these commands:

autoreconf -vis
./configure --with-drivers=acr122_usb --prefix=/usr
make
sudo make install
thekix commented 4 years ago

Did you remove this line too?:

res = usb_set_altinterface(data.pudh, 0);

You need remove these lines:

      res = usb_set_altinterface(data.pudh, 0);
      if (res < 0) {
        log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_ERROR, "Unable to set alternate setting on USB interface (%s)", _usb_strerror(res));
        usb_close(data.pudh);
        // we failed to use the specified device
        goto free_mem;
      }
zhaxylykbayev commented 4 years ago

Yes, sorry, i've mistaken here. I deleted all these lines including

res = usb_set_altinterface(data.pudh, 0);
zhaxylykbayev commented 4 years ago

Closing issue, didn't find any solution with acr reader. Just bought pn532 and it's working