-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple Readers - Authentication Problems #438
Comments
Hi @Tomas1337 , did you found a solution for your question? Would you like to share your solution or can I close? |
Unfortunately, I gave up and just resorted to modifying the project for one reader. |
I'm sorry to hear that. Good luck for your current project. I will close this issue. |
I had the same problem, but due to time shortage I moved to using 1 rfid sensor, but after completion I moved to solving the problem of multiple rfid personal data.
at line 64, i.e. above LOCKER SETUP (comments) |
@Rotzbua @Tomas1337 I have added pull request #532 , which is working fine for me, might solve your problem |
Step 1: Describe your environment
Setup:
Arduino Uno connected to 2 RC522 boards with everything in parallel except the SDA pin. Pin 10 and Pin 8 of the Arduino are attached to each SDA pin of the RC522. Everything is bread boarded so wire length shouldnt be much of an issue.
Problem:
I'm trying to Write into NFC card using multiple readers. For the love of me, I have not yet seen a post out there yet who's trying to do authentication using multiple readers. I've only seen getting UID posts with multiple readers.
I've based my code off miguelbalboa's ReadUIDMultireader example and added authentication methods found on MiFareClassicValueBlock example. The problem is, I can't get past the authentication A method. When Authenticating I get the following error:
I've gotten the ReadUIDMultireader & the ValueBlock to work so it's not my hardware nor the keys that are the problem.
Stuff i've tried:
First I thought that the data being passed into the PCD_Authenticate was incorrect or lost but I've double checked that the data is correct by serial printing out the key and the UID from the library itself when the Authenticate function is called.
I thought that the waitIRq found in PCD_Authenitace was sort of a wait time for the reader to get a response and thought increasing this value would allow the reader more allowance(stupid I know). so I changed the value of it from 0x10 to 0x64. Result was that it passed the Authentications sequence, but I still wasn't able to write. The more I dig deep into the library, it seems like I just bypassed the authentication routine forcing the status to OK.
I'm now thinking it has something to do with PCD_CommunicateWithPICC routine found in the main library. Somehow not sending out the correct data from the pointer *sendData?
Relevant Code:
I'd really appreciate a discussion to start on this so we can help each other out.
Any suggestions are welcome as I'm starting to get desperate here
The text was updated successfully, but these errors were encountered: