-
Notifications
You must be signed in to change notification settings - Fork 131
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
Write operation failed: Status code: 0x6300 #25
Comments
Hi @bdsomer, it is certainly not a bug (hopefully). 😄 Firstly, what card you you use? (Mifare Classic?) In case, that you use Mifare Classic, you need to authenticate every block, that you want to access (write to). That you do with the following: await reader.authenticate(4, KEY_TYPE_A, 'ffffffffffff'); Note: Further, if you use Mifare Classic, you need to pass the third parameter (blockSize) to await reader.write(4, data, 16); Please also be ware of the memory organization (structure) of Mifare Classic card – see my comment explaining it. Finally, take a look at the main example, where everything is explained in comments (note that you need to uncomment some code to make it work with Mifare Classic). Just read the comments I you will be okay. 🙂 That should be all. Please let me know if it solves your problems. Hope it helps. |
@pokusew Awesome, thanks! This solved my problem. To fix, I followed your steps:
Thanks, again. 👍 |
@bdsomer could you give a full descripton and better summary. I'm facing similar issues here as well. thanks. |
Hi @Philip-Nunoo, firstly, I suppose you use Mifare Classic card, right? I think that everything is summed up in my previous comment #25 (comment). There is a link to the example, where everything is explained with comments and code (you need to uncomment some code for Mifare Classic as there is described) 🙂 Just a small recapitulation – how to read/write data on Mifare Classic card (just for your convenience, but be sure to read my previous comment, links and example):
Hope it helps. 🙂 PS Don't forget to star ⭐️ my library, if you find it useful. 😃 Thanks. |
@pokusew nice. Was able to figure it out and thanks for the prompt reply as well. I'd sure ⭐ it ayt. |
A very simple program that just writes to a card:
When a card is touched to the reader, the error occurs:
Before writing, I've tried adding:
and
without success.
What's causing this? Is this a bug?
I was getting the same status code at a lower level, as well.
The text was updated successfully, but these errors were encountered: