Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with ACR122U-A9: Invalid RDR_to_PC_DataBlock frame #570

Closed
gmonarque opened this issue Oct 24, 2019 · 8 comments
Closed

Problem with ACR122U-A9: Invalid RDR_to_PC_DataBlock frame #570

gmonarque opened this issue Oct 24, 2019 · 8 comments

Comments

@gmonarque
Copy link

@gmonarque gmonarque commented Oct 24, 2019

Hello!
I have got a brand new ACR122U-A9, and I'm trying to make it work.
I first had the error caused by usb_set_altinterface, and I removed the lines, recompiled the lib, and the error was gone, just as #563 says.

Now, I've got a new error: Invalid RDR_to_PC_DataBlock frame

Here is the full output:

NFC device: ACS / ACR122U PICC Interface opened error libnfc.driver.acr122_usb Invalid RDR_to_PC_DataBlock frame error libnfc.driver.acr122_usb Command Code verification failed error libnfc.driver.acr122_usb Command Code verification failed error libnfc.driver.acr122_usb Command Code verification failed error libnfc.driver.acr122_usb Command Code verification failed error libnfc.driver.acr122_usb Command Code verification failed

I'm running a fresh Debian 10 install.

I did everything I could, looked at all issues related to this, however, I could not find the answer.
Is there going to be an update to NFC-Lib to include the new "generation" of readers? I've encountered a lot of people with the same issue.

Thanks for any answer!

@thekix
Copy link

@thekix thekix commented Oct 24, 2019

@gmonarque
Copy link
Author

@gmonarque gmonarque commented Oct 25, 2019

It works! I modified the source, recompiled, and installed. I installed mfoc after that, but the problem is that apt install libnfc5 with mfoc as a dependency.
I had to install mfoc, then do sudo dpkg -r --force-depends libnfc5 and then sudo make install to finally make this work. Hope this helps others, I'll reply again if I encounter any more problem. Thanks @thekix !

@gmonarque gmonarque reopened this Oct 25, 2019
@triple2digital
Copy link

@triple2digital triple2digital commented Nov 15, 2019

@apyredev - can you provide step by step and detailed instructions on how you resolved this?

@triple2digital
Copy link

@triple2digital triple2digital commented Nov 15, 2019

Here is what I am getting:

i@raspberrypi:~ $ sudo nfc-poll
nfc-poll uses libnfc 1.7.1
NFC reader: ACS / ACR122U PICC Interface opened
NFC device will poll during 30000 ms (20 pollings of 300 ms for 5 modulations)
error libnfc.driver.acr122_usb Invalid RDR_to_PC_DataBlock frame
nfc_initiator_poll_target: Input / Output Error

@sam1902
Copy link

@sam1902 sam1902 commented Aug 23, 2020

Hi there ! I had the exact same issue, so I applied the fix mentionned in the gist above, recomplied and it worked ! I made a fork featuring the fix, if you still have this issue try this and let me know if it fixes it.

Here are the build instructions I use, make sure the ACR122U is plugged in before starting:

sudo modprobe -r pn533_usb pn533 nfc
sudo vim /etc/modprobe.d/blacklist-libnfc.conf
# (add blacklist lines for nfc, pn533 and pn533_usb)
sudo apt update
sudo apt install git binutils make csh g++ sed gawk autoconf automake autotools-dev libglib2.0-dev liblzma-dev libtool
git clone https://github.com/sam1902/libnfc
cd libnfc
sudo autoreconf -is
sudo ./configure --prefix=/usr --sysconfdir=/etc
sudo make -j $(nproc)
sudo make install
cd /usr/lib
sudo cp -p libnfc.* x86_64-linux-gnu/

Cheers

@Rombersoft
Copy link

@Rombersoft Rombersoft commented May 28, 2021

Hi there ! I had the exact same issue, so I applied the fix mentionned in the gist above, recomplied and it worked ! I made a fork featuring the fix, if you still have this issue try this and let me know if it fixes it.

Here are the build instructions I use, make sure the ACR122U is plugged in before starting:

sudo modprobe -r pn533_usb pn533 nfc
sudo vim /etc/modprobe.d/blacklist-libnfc.conf
# (add blacklist lines for nfc, pn533 and pn533_usb)
sudo apt update
sudo apt install git binutils make csh g++ sed gawk autoconf automake autotools-dev libglib2.0-dev liblzma-dev libtool
git clone https://github.com/sam1902/libnfc
cd libnfc
sudo autoreconf -is
sudo ./configure --prefix=/usr --sysconfdir=/etc
sudo make -j $(nproc)
sudo make install
cd /usr/lib
sudo cp -p libnfc.* x86_64-linux-gnu/

Cheers

I have the same problem. I use nfc-frog application (https://github.com/cuamckuu/nfc-frog.git).
On several banking cards on several computers I get this error:

error	libnfc.driver.acr122_usb	Unable to read from USB (Operation not permitted)
error	libnfc.driver.acr122_usb	Invalid RDR_to_PC_DataBlock frame

Arch Linux OS

Your solution does not help, unfortunately...

@d0ub1l
Copy link

@d0ub1l d0ub1l commented Jan 13, 2022

Hi there ! I had the exact same issue, so I applied the fix mentionned in the gist above, recomplied and it worked ! I made a fork featuring the fix, if you still have this issue try this and let me know if it fixes it.

Here are the build instructions I use, make sure the ACR122U is plugged in before starting:

sudo modprobe -r pn533_usb pn533 nfc
sudo vim /etc/modprobe.d/blacklist-libnfc.conf
# (add blacklist lines for nfc, pn533 and pn533_usb)
sudo apt update
sudo apt install git binutils make csh g++ sed gawk autoconf automake autotools-dev libglib2.0-dev liblzma-dev libtool
git clone https://github.com/sam1902/libnfc
cd libnfc
sudo autoreconf -is
sudo ./configure --prefix=/usr --sysconfdir=/etc
sudo make -j $(nproc)
sudo make install
cd /usr/lib
sudo cp -p libnfc.* x86_64-linux-gnu/

Cheers

This one worked for me ! I'm on Ubuntu 20.04 and it's all good. Thanks !

@rfmgob
Copy link

@rfmgob rfmgob commented Mar 9, 2022

Hi there ! I had the exact same issue, so I applied the fix mentionned in the gist above, recomplied and it worked ! I made a fork featuring the fix, if you still have this issue try this and let me know if it fixes it.

Here are the build instructions I use, make sure the ACR122U is plugged in before starting:

sudo modprobe -r pn533_usb pn533 nfc
sudo vim /etc/modprobe.d/blacklist-libnfc.conf
# (add blacklist lines for nfc, pn533 and pn533_usb)
sudo apt update
sudo apt install git binutils make csh g++ sed gawk autoconf automake autotools-dev libglib2.0-dev liblzma-dev libtool
git clone https://github.com/sam1902/libnfc
cd libnfc
sudo autoreconf -is
sudo ./configure --prefix=/usr --sysconfdir=/etc
sudo make -j $(nproc)
sudo make install
cd /usr/lib
sudo cp -p libnfc.* x86_64-linux-gnu/

Cheers

Finally something that fixes my issues with this reader. Thanks a million!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants