miguelbalboa / rfid

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

trouble writing in the upper blocks to 4 in the 1K Mifare card #223

Closed sistemasneytorres closed 8 years ago

sistemasneytorres commented 8 years ago

Hello everyone,

I am writing to ask for your help, because I'm writing a code to read and write Mifare 1K cards, using a mega arduino and rfid-rc522 module. The problem that I present is that only managed to read and write in blocks 1 and 2 of the card (Autenticándome with the key A), when I try to write in the following blocks (from block 4) I get an error message NAK. And I tried to authenticate with the keys A and B but I get the same error. I used the example code available https://github.com/miguelbalboa/rfid/blob/master/examples/rfid_write_personal_data/rfid_write_personal_data.ino.

I honestly do not know if the card model only allows write only in blocks 1 and 2, or there really is a problem with the code that does not allow write in the following blocks.

Any help or information that allows me to understand what is happening will be enormously grateful.

Happy day to everyone,

simbadMarino commented 8 years ago

Hola Torres, Check my repository here: https://github.com/simbadMarino/CardIDFlashTool I've created a block by block reader and writer. I0ve only tested it with 4K tags, but maybe it works also for 1K.

Let me know if it works! See ya!

Rotzbua commented 8 years ago

@sistemasneytorres Did you solved your issues? Will you share your solution? Can I close it?

sistemasneytorres commented 8 years ago

Hi,

thanks for your help, honestly I did not continue with that project so I could not test your solution.

You can close the case, and whe I resume the project again, I will let you know if I having the same trouble.

Regards!!!!

On Thu, Aug 25, 2016 at 6:55 PM, Rotzbua notifications@github.com wrote:

@sistemasneytorres https://github.com/sistemasneytorres Did you solved your issues? Will you share your solution? Can I close it?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/miguelbalboa/rfid/issues/223#issuecomment-242582521, or mute the thread https://github.com/notifications/unsubscribe-auth/ATQPMlkSZuUrqwToJyCB-tT2NRcFw6kyks5qjiuCgaJpZM4JHehp .