Skip to content

AUTH ERROR with NFC NTAG213  #65

@Jacques-Olivier-Farcy

Description

@Jacques-Olivier-Farcy

Hi,
I am using a PI400 with the JOY-It reader (https://joy-it.net/en/products/SBC-RFID-RC522)
When i read the card with this code i have some errors even if the ID is read:

#!/usr/bin/env python

import RPi.GPIO as GPIO

from mfrc522 import SimpleMFRC522

reader = SimpleMFRC522()

try:

        id, text = reader.read()

        print(id)

        print(text)

finally:
 GPIO.cleanup()

AUTH ERROR!!
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
AUTH ERROR(status2reg & 0x08) != 0
584190898496

And when i use this code to write:

#!/usr/bin/env python

import RPi.GPIO as GPIO

from mfrc522 import SimpleMFRC522

reader = SimpleMFRC522()

try:

        text = input('New data:')

        print("Now place your tag to write")

        reader.write(text)

        print("Written")

finally:
 GPIO.cleanup()

I have this message:
New data:0123456
Now place your tag to write
AUTH ERROR!!
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
AUTH ERROR(status2reg & 0x08) != 0
Error while reading!
Error while reading!
Written

Any ideas ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions