Comments (12)
If the tag does not support authentication, you should simply not call MIFAREReader.MFRC522_Auth(MIFAREReader.PICC_AUTHENT1A, 8, key, uid)
. For example around line 85 in the Read.py example.
If you would out comment that line and just call MIFAREReader.MFRC522_Read(8)
instead, it will work for cards without authentication (or at least it seems so in my first checks).
In a broader sense, this is not a great solution, as you will now no longer support tags that require auth. So, doing a try, catch etc (or some other design) is better, but requires some other changes as well.
I hope I will be able to pull that off soon.
from mfrc522-python.
I've fixed the issue with authentication. Until the maintainer of this repo answers the issue I created, you can get the working code from:
https://github.com/mj3052/MFRC522-Pi
from mfrc522-python.
@mj3052 hey Mat already i have reported in your repo https://github.com/mj3052/MFRC522-Pi still this Auth Error exist can you please look into that, because when i try to use dump.py it reads once and later it prints only auth error msg which is shared already by @afkham-azeez . I am using nodejs to python-shell to run this library.
from mfrc522-python.
Hi, Did you fix the authentication problem? I've the same problem with the MFCrypto1ON bit of the register "Status2Reg"
from mfrc522-python.
I have fixed the issue with auth error, so you can try my fork: https://github.com/mikicaivosevic/MFRC522-python
from mfrc522-python.
@mikicaivosevic Hello,I found https://github.com/mikicaivosevic/MFRC522-python still this Auth Error exist,what can i do?
from mfrc522-python.
Also having the same issue. I've tried all the common auth keys as well as all the different forks out there of this library with no success. I have at least verified that the MFRC522 can for sure read the NTAG213 and NTAG216 rfid tags using the arduino MRFC522 library. Maybe comparing the way that library works vs this one would help.
from mfrc522-python.
I also have this autherror and it is the same error like afkham. The error only came if i used the small rfid tag, it didn't happened with the big card.
from mfrc522-python.
the tag may not support authentication.
Try something like:
nfc.SelectTag(uid)
for i in range(16):
nfc.Read(i)
from mfrc522-python.
Where do I put that @robertmuth ?
nfc.SelectTag(uid)
for i in range(16):
nfc.Read(i)
from mfrc522-python.
Thanks Kobes, I will try that tomorrow.
from mfrc522-python.
Hello there, I had the same issue when reading the 13.56 Mhz tags. What I did is to go to the SimpleMFRC522.py file located in /usr/local/lib/python3.7/dist-packages/mfrc522/SimpleMFRC522.py, I commented the following lines.
` # Check if an error occurred
if not (status == self.MI_OK):
self.logger.error("AUTH ERROR!!")
if not (self.Read_MFRC522(self.Status2Reg) & 0x08) != 0:
self.logger.error("AUTH ERROR(status2reg & 0x08) != 0")`
so far so goo!
from mfrc522-python.
Related Issues (20)
- "The channel sent is invalid on a Raspberry Pi”
- Problem to MFRC522
- getting a too many Files Open Error
- MFRC522 Hexadecimal input
- GPIO.setwarnings(False) to disable HOT 3
- Error when trying to run read.py HOT 11
- Read.py (MFRC522.py) throws error on import spi HOT 1
- Error Trying to run Read.py without sudo on RPI 3 B+
- Problem with write.py and read.py script on Raspberry Pi3B+ HOT 1
- Error when running the python Code to read RFID tag HOT 1
- TypeError HOT 6
- ModuleNotFoundError: No module named 'spi' HOT 1
- Read.py & Write.py NOT WORKING IN RPi 4B
- Read.py not returning entire UID HOT 1
- Any Documenation?
- Syntax error in MFRC522.py causing a massive slowdown
- ..
- Spi has no attribute openSpi
- can't send spi message: Invalid argument
- If anyone MFRC522.py or Read.py file is broken you can try this scripts I found HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mfrc522-python.