Comments (4)
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.
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.
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.
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)
- "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.