Comments (11)
Hi,
thank you for reporting this bug.
I have looked into and I have noticed that there were expected format of UID when getting card UID.
I have removed this limitation and released the new version v0.3.0.
Now you should be able to read card UID when you attach it to your NFC reader without any problems.
Could you test it? If everything is OK, I will close this issue.
from nfc-pcsc.
@pokusew
I still get the following error in using autoprocessing.
Here is the code. Thanks for your response
https://gist.github.com/SuThaw/688b0e9570c5d72a0074da05d63fe437
from nfc-pcsc.
Hi @SuThaw,
I am so sorry. I have mistakenly forgotten to run build before publishing the 0.3.0 version, so the dist folder in 0.3.0 was outdated and still contained the bug.
Now I have properly run build before publishing and published the new version 0.3.1. Everything should now work in version 0.3.1 as I have written before.
Could you test it? If everything is OK, I will close this issue.
Thank you very much.
from nfc-pcsc.
Hi @pokusew
I can read the uid. Thanks for that. But i still have one more problem. I cannot read the data. It show the following message. I read on block 8 length 16. When I tried to write , I also got the error. Thanks for your changes and response.
from nfc-pcsc.
Hi @SuThaw,
This error means that the operation (reading/writing) could not be completed successfully (response status code is 0x9000).
I haven't tested reading Mifare 1K Card because I don't have any (I am using Mifare Ultralight)
But I have looked into some docs. According to them, it looks like you must authenticate using authenticating keys (A or B, depending which blocks you want to access) before you can read/write data.
Here is the documentation of ARC122U API API-ACR122U-2.03.pdf. There are methods for loading authentication keys and authenticating blocks. You can send them to the reader using reader.transmit
method.
I could integrate this commands to this library, if it is useful for you.
I hope my answer will help you.
btw. you can join here https://discord.gg/bg3yazg and we can solve this issue faster using chat
from nfc-pcsc.
Hi @SuThaw,
I have finally implemented support for authentication. Keys are automatically loaded into reader's memory when authenticating. See https://github.com/pokusew/nfc-pcsc/blob/authentication-support/test/index.js.
I have created new branch authentication-support
for testing this feature. Once you confirm it works I will merge it into master and I will release new version and publish it to npm.
Could you clone this branch and test if everything works for you?
Thank you.
from nfc-pcsc.
@pokusew
Thanks for your support :) . When i check for authentication, I got the following error.
from nfc-pcsc.
Hi @SuThaw,
I am sorry for late response, but I have been very busy.
It's strange that you have got this error.
It could be caused by incompatibility of authenticate command with version of your reader. According to the API specification, I have added support for obsolete version of authenticate command too. For easier debugging, I have also added console.log to log content of sent APDU commands packets.
Could you test it if it solves the problem?
Please make sure that you are using correct authentication key and key type for blocks that you want to access.
If the problem persists, we can chat to solve this faster. I believe it should work.
from nfc-pcsc.
Hi @pokusew
Thank for your response. I feel sorry for giving trouble to you. I am still getting the following error.
from nfc-pcsc.
Hi @SuThaw,
It is different error than last time.
It looks you have removed the card from the reader too fast but it could be something else.
I am ready for chat.
from nfc-pcsc.
This issue should be resolved as authentication support for Mifare Classic cards has been merged to master and released in v0.4.0.
from nfc-pcsc.
Related Issues (20)
- Mifare DESfire EV2 2k - error in step 2 - authenticate HOT 1
- Constructing APDU command on NTAG21x
- Error when writing data. Receives an Invalid data length error. HOT 3
- Authentication failed for same blocks BUT is Working in others HOT 1
- P2P Feature
- Empty Data
- Multi RFID Reader
- was compiled against a different Node.js version using NODE_MODULE_VERSION 111. This version of Node.js requires NODE_MODULE_VERSION 110. HOT 3
- UnhandledPromiseRejectionWarning: WriteError: Write operation failed: Status code: 0x6300 HOT 3
- I don't understand that code HOT 1
- Module not found: Error: Can't resolve 'fs' HOT 2
- Unable to run the basic example HOT 2
- Add disposition parameter in disconnect method
- MacOS installation issue using npm HOT 2
- Cannot access "events.EventEmitter" in client code HOT 4
- Context Aware Native Module, Electron Context Isolation and Node Integration Support
- Unsupported engine Please Help
- Emulate Tag NFC?
- Sveltekit build fails when running 'npm run build' but works on 'npm run dev' HOT 1
- It turned out to connect the library in CRA(React)? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nfc-pcsc.