Hello
I've been searching all over the internet and can't seem to find a clear answer, hoping someone can help out.
Components being used in the project:
Problem to be solved:
Preferred workflow:
Here is a dump of the NTAG213 (read by the RobotDyn MFRC522):
I've read in the documentation that the authentication is being checked on black 7? Is that right?
I just have no idea how to change this key it uses.
Example of error reading it:
Example of error writing to it:
Code example of writing script (basic one just for testing): (SimpleMFRC522 source: MFRC522-python/SimpleMFRC522.py at master · pimylifeup/MFRC522-python · GitHub )
#!/usr/bin/env python
import RPi.GPIO as GPIO
from mfrc522 import SimpleMFRC522reader = SimpleMFRC522()
try:
text = input('New data:')
print("Now place your tag to write")
reader.write(text)
print("Written")
finally:
GPIO.cleanup()
I'm guessing I need to include code in my read/write and registration script to authenticate first (giving the auth key) and if necessary (during write/read) giving a password (after I've set a password during the registration step).
I just have no idea which values or in which way I should give the auth key in script.
If anybody can help in any way or point me in the right direction that'd be great!
Did you get a solution ?
I have the same problem, did anyone find a solution?
Hello Ice,
I'd recommend to follow the flow chart that is on page 8 of the User Manual for the NTAG 213. In the following pages the commands that should be used to appropriately enter the authenticated state are described. Section 8.8 explains how to proceed in configuring the password itself and the commands to be used.
The commands themselves are also described in the same document. Unfortunately we do not have any example code made with python. You can check the NFC Reader library that has examples created in C, it does use different modules but you may get a general idea of what needs to occur in order to properly read and write the Tag.
As an observation in your code, it does need more information so your tag properly receives the instructions in needs to access certain areas of the memory. As you mentioned yourself you need to include the part that authorizes the user. This you will find described in the flow chart I've mentioned above.
Hope this helps,
Sabina