-
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: support parsing DESFire, add myki and Opal parsers #2326
Conversation
lib/nfc/parsers/myki.c
Outdated
furi_assert(nfc_worker); | ||
MifareDesfireData* data = &nfc_worker->dev_data->mf_df_data; | ||
|
||
if(!furi_hal_nfc_detect(&nfc_worker->dev_data->nfc_data, 300)) return false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not quite sure why this extra operation is needed compared to ultralight, but the card fails to read successfully without it. Would anyone be able to shine some light on this?
I'm not a maintainer, but I think it's bad idea to read the tag 3 times (mf_df_read_card is called in every parser and in nfc_worker_read_mf_desfire). |
@AloneLiberty that's a good point. I'll look at implementing that. Thanks! |
Hello @emilytrau However, I am not sure that we can merge your code right now. Flipper has too little free flash memory left. Your code increases firmware size by 4kB and is useful to relatively small number of users. The best solution here is to implement all supported NFC cards as a library and store it on SD card. Please, give me some time to think about further steps here. |
@gornekich Yes I agree it would be better if there was a way for parsers to live on the SD card especially as more are added. Would allow for more detail and functionality without impact on flash size. Happy to put this on hold and looking forward to hear about how we could proceed. Thanks! |
@emilytrau , I need to estimate how much time it will take to rework all parsers to live on SD card. I will convert your PR to draft and come back next week. |
Hey @gornekich, there hasn't been any news since 7 months ago, is this on hold due to waiting for #2529 to land in Master ? |
@AkechiShiro yes, we are waiting for that PR. Also in branch with refactoring we already added opal parser as a plugin, launching from SD card |
@emilytrau we implemented opal and myki parses as plugins in #3050 . You can update the flipper to the latest release and test it. Thanks a lot for your PR! |
@gornekich thank you! |
What's new
IMG_1211.mov
Verification
For each of the following cards:
NFC -> Saved -> [card] -> Info
myki.nfc
opal.nfc
Checklist (For Reviewer)