im getting "Error occured: ERROR Data: A MIFARE PICC responded with NAK."
i saw this on github
Hi, when i've tested amiibomb 10 days ago I had the same "Waiting for NTAG..." problem with my Tags.
Was totally new to arduino and elegy rc522, running on a windows VM so I'd suspected that it would be too much for it run as excepted and i forgave.
I've recode a flask python web ui that wraps amiitool, amiibo_tool bash and communicate with a modified write_amiibo to get bytes from serial...all of it to run on a raspberry pi with 3,5 inch lcd on top.
I've succeeded in writing some dump, well recognized on my switch but randomly depending of the tags i use the process often fail with an "MIFARE PICC responded with NAK error".
My issue seems nearly similar as this
#8 one, regarding to the random reproduction and the fact my NAK error is related to password auth process on the mirage side.
I just realize my lib MFRC522 was so out to date(v1.1.6 Jan 2016). miguelbalboa have been very active within the last year and the lib is now at v1.3.6(Mar 2017) and it has a fix for an auth problem with long UIDs since Jan 2017.
https://github.com/miguelbalboa/rfid/blob/master/changes.txt
I can't see the versioning of the MFRC522 you're using in amibombuino.
I need to find some time to give it a try on my code this week-end and see if can help to solve my issue.
I'll let you know
I've first test my proposed solution on amiibomb it seems i can now read the content of an amiibo
on amiibombuino Dump with the updated MFRC522 lib.
Now it can see my previously not detected Tags.
But i'm still stuck in the Create Tag action with the same "Waiting for NTAG..."
For a same Tag with the old lib my ID was:
04C7C388
2AAF4F80
and with the last updated one it is:
0493C3DC
2AAF4F80
If you want to test by yourself and give more feedback:
Just rename and replace MFRC522.cpp and MFRC522.h with the fresh ones in the amibombuino folder and flash it again to your arduino.
olijouve commented 17 days ago
ok it definitely works for me in amiibomb in Writing tags.
I removed the MFRC522 lib from amibombuino folder, update MFRC522 in the library manger of the official arduino studio and i flashed amiibombuino with my arduino with the arduino studio.
All my tag creation with amiibomb works like a charm now !!!
I'll also fix my raspberry app as i like the very convenient and portable way of creating amiibos.