1AdityaX / mfrc522-python

The mfrc522-python library is used to interact with RFID readers that use the MFRC522 chip interfaced with a Raspberry Pi.
https://pypi.org/project/mfrc522-python/
GNU General Public License v3.0
10 stars 3 forks source link

[Q] Cannot read tag with this version mfrc522-python #6

Open fra-wwilhelm opened 2 months ago

fra-wwilhelm commented 2 months ago

good day,

i a a litte bit stuck in reading RFID tag with your version of MFRC522 implementation. If i use https://pypi.org/project/mfrc522/ i can read and write tags

pip install mfrc522

file simpleread.py

#!/usr/bin/env python
from mfrc522 import SimpleMFRC522
import RPi.GPIO as GPIO

GPIO.setmode(GPIO.BOARD)
reader = SimpleMFRC522()
id, text = reader.read()
print(f"ID: {id}")
print(f"Text: {text}")

./simpleread.py

Use GPIO.setwarnings(False) to disable warnings.
  GPIO.setup(pin_rst, GPIO.OUT)
ID: 497702468104
Text: mytag
pip uninstall mfrc522
pip install mfrc522-python

./simpleread.py

nothing is displayed. I would like to use your module as it looks like maintained :-)

perenstrom commented 2 months ago

I'm having the same problem! Using a Pi Zero 2w.

MBRGA commented 1 month ago

@1AdityaX the published version of the package does not match the version on GitHub master. Perhaps this is the cause of the issue?

fra-wwilhelm commented 1 month ago
(venv) :~$ pip list mfrc522-python
Package        Version
-------------- -------
mfrc522-python 0.0.7
pip            22.0.2
setuptools     59.6.0

and

git clone https://github.com/1AdityaX/mfrc522-python.git
cd mfrc522-python
python3 -m build
...
Successfully built mfrc522_python-0.0.7.tar.gz and mfrc522_python-0.0.7-py3-none-any.whl

looks the same version 0.0.7 to me