GithubHelp home page GithubHelp logo

AUTH ERROR about mfrc522-python HOT 12 OPEN

mxgxw avatar mxgxw commented on August 16, 2024
AUTH ERROR

from mfrc522-python.

Comments (12)

Kobes avatar Kobes commented on August 16, 2024 1

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.

mj3052 avatar mj3052 commented on August 16, 2024

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.

whitehorse5353 avatar whitehorse5353 commented on August 16, 2024

@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.

Denisfmartinez avatar Denisfmartinez commented on August 16, 2024

Hi, Did you fix the authentication problem? I've the same problem with the MFCrypto1ON bit of the register "Status2Reg"

from mfrc522-python.

mikicaivosevic avatar mikicaivosevic commented on August 16, 2024

I have fixed the issue with auth error, so you can try my fork: https://github.com/mikicaivosevic/MFRC522-python

from mfrc522-python.

xcxz1994 avatar xcxz1994 commented on August 16, 2024

@mikicaivosevic Hello,I found https://github.com/mikicaivosevic/MFRC522-python still this Auth Error exist,what can i do?

from mfrc522-python.

TheRealBanana avatar TheRealBanana commented on August 16, 2024

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.

doppelhund-developer avatar doppelhund-developer commented on August 16, 2024

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.

robertmuth avatar robertmuth commented on August 16, 2024

the tag may not support authentication.
Try something like:

nfc.SelectTag(uid)
for i in range(16):
nfc.Read(i)

from mfrc522-python.

CosmaP avatar CosmaP commented on August 16, 2024

Where do I put that @robertmuth ?

nfc.SelectTag(uid)
for i in range(16):
nfc.Read(i)

from mfrc522-python.

CosmaP avatar CosmaP commented on August 16, 2024

Thanks Kobes, I will try that tomorrow.

from mfrc522-python.

Sologaistoa avatar Sologaistoa commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.