Open paulomcnally opened 8 years ago
Hi, What version of libfreefare do you use? And how did you install it?
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
@nomisoft
Can you please dump target variable (line 40 of tags/mifare/tag.rb) and paste it here? I've seen this error when I tried wrong version of libfreefare.
I'm not sure if i'm doing this correctly as i'm new to ruby but i get the following: p target
p target.to_yaml --- !ruby/object:LibNFC::Target {}
@nomisoft it didn't help, please print value of target[:nti][:nai][:btSak]
I get: p target[:nti][:nai][:btSak] D, [2017-03-18T15:11:46.953329 #6644] DEBUG -- : 0
p target[:nti][:nai][:btSak].to_yaml D, [2017-03-18T15:11:46.953839 #6644] DEBUG -- : --- 0
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