GithubHelp home page GithubHelp logo

Comments (4)

TheRealBanana avatar TheRealBanana commented on August 16, 2024 2

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.

I've forked the repo and made some changes that get basic reading/writing for NTAG213/215/216 tags. Its very hacky and could be improved but it is a proof of concept. The problem was the NTAG213/215/216 don't require an explicit authentication key to read from their pages like the MIFARE Classic 1k does, for example. Bypassing the authentication part of the read and write scripts was sufficient to fix the issue.

from mfrc522-python.

Cotix avatar Cotix commented on August 16, 2024

I wrote that code a pretty long time ago, and it is pretty much what it says it is.. An authentication error. I am not familiar with NTAG216, but either your supplied key is wrong(you need to supply a key to access a block, default key is [0xFF]*6, but this might differ on your chip), or NTAG216 does not use the same MFRC522 protocol.

The 4th bit of status2reg equals 1, which is somekind of error flag. I dont know from the top of my head what error that bit significes, but I'm guessing wrong password. If you want to debug this, I'd start by googling the documentation and finding out what that bit means.

EDIT: Have you seen this? https://github.com/mj3052/MFRC522-Pi

from mfrc522-python.

Liriel avatar Liriel commented on August 16, 2024

came across this issue with NDEF tags
there are a bunch of Default Keys that you should try...

found mine by trying each key for sectors 3 - 15 :)

from mfrc522-python.

soporteHW avatar soporteHW commented on August 16, 2024

Also having same issue. I use this library: https://stm32f4-discovery.net/2014/07/library-23-read-rfid-tag-mfrc522-stm32f4xx-devices/

When I try to authenticate my mifare card using MFRC422_Auth(*) functions, It returns error -> the MFRC522_REG_STATUS2 is always 0 value.
In my case, I want to read bolck 3, sector 16 with key FFFFFFFF. The call function is as follows:

statusRFID = TM_MFRC522_Auth(0x60,63, RFID_KEY, CardID)

This returns statusRFID = MI_OK; but later when I call readRegister(MFRC522_REG_STATUS2) & 0x08) , statusRFID turns MI_ERR.

Why?

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.