-
Notifications
You must be signed in to change notification settings - Fork 8
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
Unknown mifare tag (Mifare::Error) #3
Comments
Hi, |
Hi, I'm seeing the same error as above on a project i've inherited. Any ideas of how I can go about fixing it? I've tried installing libnfc and libfreefare via apt-get on ubuntu 16.04 and also tried compiling the latest versions and versions from about a year ago of both libraries from the their code on github IsoDep seems to work but I get the 'Unknown mifare tag' error for any mifare cards/tags |
Can you please dump target variable (line 40 of tags/mifare/tag.rb) and paste it here? |
I'm not sure if i'm doing this correctly as i'm new to ruby but i get the following: p target.to_yaml |
@nomisoft it didn't help, please print value of target[:nti][:nai][:btSak] |
I get: p target[:nti][:nai][:btSak].to_yaml |
It seems like you're using wrong version of libfreefare, please try to remove libfreefare installed via apt-get and then try to re-install libfreefare from github. |
Got it working! I was still getting the same errors using the latest code from the master branches on github but managed to get it working by compiling libnfc 1.7.0 and libfreefare 0.4.0 releases Thanks for your help! |
@nomisoft you're welcome. The last version of libnfc I've tried without any issues was 1.7.1 |
The text was updated successfully, but these errors were encountered: