miguelbalboa / rfid

Arduino RFID Library for MFRC522
The Unlicense
2.74k stars 1.43k forks source link

Example Code Bug #567

Closed hackintoshlover closed 3 years ago

hackintoshlover commented 3 years ago

Step 1: Describe your environment

Step 2: Describe the problem

I am trying to use the inbuilt library example code Access Control The program behaves weird It adds master card as expected But while adding user card it does not work

  1. It does not save more than two unknown cards in EEPROM, moreover only the first save data is correct after that all are incorrect, it says successfully added PICC card, but upon scanning says card not found.
  2. Automatically overwrites EEPROM with same card data multiple times.

Affected file(s) or example(s):

Access Control

Steps to reproduce:

Connect mfrc522 to arduino uno and scan cards

Observed Results:

Does not work properly

Expected Results:

As explained in the example

Relevant Code:

Access Control Example in the library mfrc522

I am attaching my serial monitor output for access control example and eeprom data read below Kindly help Screenshot (51) Screenshot (41) Screenshot (42) Screenshot (43) Screenshot (44) Screenshot (45) Screenshot (46) Screenshot (47) Screenshot (48) Screenshot (49) Screenshot (50)

Rotzbua commented 3 years ago

Hi hackintoshlover, thanks for the detailed report 👍 . Sadly there are issues #403 with this example since it was added to the repository years ago. Sorry I don't have a satisfactory solution than to remove the example so as not to confuse more people. Best wishes