Skip to content
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

MIFARE_Ultralight_Write command giving timeout in communication error #653

Open
krulkip opened this issue Feb 22, 2025 · 0 comments
Open

Comments

@krulkip
Copy link

krulkip commented Feb 22, 2025

I am using the line below to write to an ultralight-c card. I know that this works because i have another program which works correctly.
When i use it in my latest program i get timeout in communication error and cannot figure out what is different.
I think the ultralight card has to be put into a certain state before you can write to it.
I tried

bsize = sizeof(buffer);
MFRC522Extended::StatusCode status=mfrc522.PICC_WakeupA(buffer, &bsize);

Does anyone know what commands need to be given before you can use the MIFARE_Ultralight_Write command ?

MFRC522::StatusCode status = mfrc522.MIFARE_Ultralight_Write(page, &Buffer[0], 4);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant