-
Notifications
You must be signed in to change notification settings - Fork 135
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
HCE like feature for simulating NFC card #43
Comments
Hi @prodigy7, yes, that's perfectly possible to do using this library 🎉, but it depends on whether your card reader supports card emulation mode (it acts like a NFC card/tag). To be precise, with nfc-pcsc you can do everything you could do with standard system C++ PC/SC API. It means if you reader has a feature XXX, you can most likely use it with nfc-pcsc. 🙂 However, the way, how to achieve that, differs from reader to reader. But before you can call Thus, you have to call Note! By default standard system PCSC driver doesn't allow to send any commands in direct mode (i.e. without any card present). You'll have to setup a few things depending on your OS. I think, that's all from nfc-pcsc's side. The other side are the actual APDU commands you'll need. You can usually find them in the reader's API and technical docs. For example, to use card emulation mode on ACR122U USB NFC reader you could follow the steps described in this StackOverflow answer.
Finally, I must admit, I have never tried this. But I believe it is perfectly possible and doable. I hope my answer gave you some useful information and thoughts how to implement the card emulation using nfc-pcsc. 🙂 Thank you very much for your interesting question. 👍 Feel free to contact me, if you encounter any problems or need any help. PS Don't forget to star ⭐️ my library, if you find it useful. 😃 Thanks. |
Wow! That is really detailed answere! Thank you very much for any detail and your time, you've spend answering my question! Maybe a second questions: Its possible, using nfc-pcsc also in electron. Is it also possible, use it in android? My idea is, writing a app which simulates a card. For that I would use NativeScript which could also include that lib. Question is: Does this lib supports android or does android a complete own api so I've to use other nfc libs? |
Hi,
is it possible, simulate a nfc card with that library and when yes, how?
Regards
The text was updated successfully, but these errors were encountered: