-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
NFC Plugin for type 4 tags #4031
Comments
It sounds a lot like there is no way to send iso14443a-4 frame from within a plugin?
I'd like to select an AID: |
I understand, well technically I see some ways, how poller can be provided to plugin, but all of them look very odd.
From these 2 options I would choose the second one if there is no others😸, but you can also try such thing which, in my opinion will be better, rather than previous workarounds upper:
P.s. Idea of 'Poller as a plugin' looks interesting, I will talk to other nfc devs, about it |
Thanks for the response, yeah a lot to think about. One more thing on this topic: am I crazy, or is the iso14443a-4 working different in this case compared to MFC or desfire? I looked through some of those plugins and it seemed like you could auth and read data from mifare in your plugin, but maybe I was misunderstanding? or for desfire I saw a function about selecting an AID.
To give more context for what I was trying to do: I'd hoped to write a plugin for the main NFC app to detect a card type and tell the user to investigate the specific app. There are lots of type 4 tags out there where you don't want to write all the support in a plugin, but for the best user experience, if the main NFC app could point them to the right app to look into, that'd be a win. I'm going to close this, given I have an answer for the time being. |
I was looking into writing a plugin for a type 4 tag (iso14443a-4, speaks APDUs). The plugin's parse method receives a
NfcDevice *
, but looking through the NFC code, I can't see a way to go from that to aIso14443_4aPoller *
poller so I can calliso14443_4a_poller_send_block
.I presume the parse is in something akin the NFC callback where one would normally do this, but it doesn't have the same event that the poller is pulled from in the other code I've written.
Is getting the poller possible, or is there something that needs to be changed in the firmware?
The text was updated successfully, but these errors were encountered: