Closed Tomi2965 closed 7 months ago
Known issues. Fix coming soon.
@skotopes thank you for info. I'll wait for fix.
FYI: I still get that same error with current RC 0.98.0-rc
655685 [E][MfDesfirePoller] Failed to read master key settings
Hello @Tomi2965 , @philicious Can't reproduce this issue with my tags. Could you please install firmware from #3395 , collect logs while reading card and share logs here?
Can and will do in next few days.
@gornekich tryed, see log. If needed anything else, please ask.
: log trace Current log level: trace Use <log ?> to list available log levels Press CTRL+C to stop... 1686461 [T][StorageApi] File/Dir 0000C520 alloc 1686463 [I][Loader] Loading /ext/apps/NFC/nfc.fap 1686467 [T][StorageApi] File 0000C520 - 0000C6CC open (/ext/apps/NFC/nfc.fap) 1686617 [I][Elf] Total size of loaded sections: 60625 1686620 [T][StorageApi] File 0000C520 - 0000C6CC closed 1686623 [T][StorageApi] File/Dir 0000C520 free 1686625 [I][Loader] Loaded in 162ms 1686630 [I][AnimationManager] Unload animation 'L1_Sleep_128x64' 1694378 [D][NfcScanner] Found 5 base protocols 1694386 [D][DolphinState] icounter 3444, butthurt 0 1694397 [D][Nfc] FWT Timeout 1694399 [T][Nfc] Failed TRX state machine 1694435 [D][Nfc] FWT Timeout 1694437 [T][Nfc] Failed TRX state machine 1694471 [D][Nfc] FWT Timeout 1694472 [T][Nfc] Failed TRX state machine 1694535 [D][Nfc] FWT Timeout 1694537 [T][Nfc] Failed TRX state machine 1694539 [T][FelicaPoller] Activation failed error: 8 1694563 [D][Nfc] FWT Timeout 1694564 [T][Nfc] Failed TRX state machine 1694567 [T][ST25TBPoller] error during trx: 2 1694599 [D][Nfc] FWT Timeout 1694601 [T][Nfc] Failed TRX state machine 1694625 [D][Nfc] FWT Timeout 1694627 [T][Nfc] Failed TRX state machine 1694661 [D][Nfc] FWT Timeout 1694662 [T][Nfc] Failed TRX state machine 1694725 [D][Nfc] FWT Timeout 1694727 [T][Nfc] Failed TRX state machine 1694729 [T][FelicaPoller] Activation failed error: 8 1694764 [D][Nfc] FWT Timeout 1694765 [T][Nfc] Failed TRX state machine 1694768 [T][ST25TBPoller] error during trx: 2 1694800 [D][Nfc] FWT Timeout 1694802 [T][Nfc] Failed TRX state machine 1694826 [D][Nfc] FWT Timeout 1694828 [T][Nfc] Failed TRX state machine 1694862 [D][Nfc] FWT Timeout 1694863 [T][Nfc] Failed TRX state machine 1694926 [D][Nfc] FWT Timeout 1694928 [T][Nfc] Failed TRX state machine 1694930 [T][FelicaPoller] Activation failed error: 8 1694954 [D][Nfc] FWT Timeout 1694955 [T][Nfc] Failed TRX state machine 1694958 [T][ST25TBPoller] error during trx: 2 1694993 [T][ISO14443_3A] Sel resp: 24 1694997 [T][ISO14443_3A] Sel resp: 20 1694999 [T][ISO14443_3A] Col resolution complete 1695027 [D][Nfc] FWT Timeout 1695029 [T][Nfc] Failed TRX state machine 1695063 [D][Nfc] FWT Timeout 1695064 [T][Nfc] Failed TRX state machine 1695127 [D][Nfc] FWT Timeout 1695129 [T][Nfc] Failed TRX state machine 1695131 [T][FelicaPoller] Activation failed error: 8 1695155 [D][Nfc] FWT Timeout 1695156 [T][Nfc] Failed TRX state machine 1695159 [T][ST25TBPoller] error during trx: 2 1695183 [D][NfcScanner] Found 4 children 1695196 [T][ISO14443_3A] Sel resp: 24 1695200 [T][ISO14443_3A] Sel resp: 20 1695202 [T][ISO14443_3A] Col resolution complete 1695232 [T][ISO14443_3A] Sel resp: 24 1695237 [T][ISO14443_3A] Sel resp: 20 1695238 [T][ISO14443_3A] Col resolution complete 1695246 [D][Nfc] FWT Timeout 1695248 [T][Nfc] Failed TRX state machine 1695251 [D][Nfc] FWT Timeout 1695252 [T][Nfc] Failed TRX state machine 1695280 [T][ISO14443_3A] Sel resp: 24 1695284 [T][ISO14443_3A] Sel resp: 20 1695286 [T][ISO14443_3A] Col resolution complete 1695294 [D][Nfc] FWT Timeout 1695295 [T][Nfc] Failed TRX state machine 1695328 [T][ISO14443_3A] Sel resp: 24 1695332 [T][ISO14443_3A] Sel resp: 20 1695334 [T][ISO14443_3A] Col resolution complete 1695338 [D][Iso14443_4aPoller] Read ATS success 1695364 [I][NfcScanner] Detected 1 protocols 1695482 [T][StorageApi] File/Dir 0000E8E0 alloc 1695504 [T][StorageApi] Dir 0000E8E0 - 0001F094 open (/data/plugins) 1695509 [T][StorageApi] File/Dir 0001F0C0 alloc 1695525 [T][StorageApi] File 0001F0C0 - 0001F374 open (/data/plugins/aime_parser.fal) 1695562 [I][Elf] Total size of loaded sections: 980 1695565 [T][StorageApi] File 0001F0C0 - 0001F374 closed 1695568 [T][StorageApi] File/Dir 0001F0C0 free 1695571 [D][Fap] Library for NfcSupportedCardPlugin, API v. 1 loaded 1695575 [T][StorageApi] File/Dir 0001F0C0 alloc 1695593 [T][StorageApi] File 0001F0C0 - 0001F45C open (/data/plugins/all_in_one_parser.fal) 1695630 [I][Elf] Total size of loaded sections: 496 1695633 [T][StorageApi] File 0001F0C0 - 0001F45C closed 1695636 [T][StorageApi] File/Dir 0001F0C0 free 1695639 [D][Fap] Library for NfcSupportedCardPlugin, API v. 1 loaded 1695643 [T][StorageApi] File/Dir 0001F0C0 alloc 1695667 [T][StorageApi] File 0001F0C0 - 0001F444 open (/data/plugins/hid_parser.fal) 1695708 [I][Elf] Total size of loaded sections: 964 1695711 [T][StorageApi] File 0001F0C0 - 0001F444 closed 1695713 [T][StorageApi] File/Dir 0001F0C0 free 1695716 [D][Fap] Library for NfcSupportedCardPlugin, API v. 1 loaded 1695720 [T][StorageApi] File/Dir 0001F0C0 alloc 1695744 [T][StorageApi] File 0001F0C0 - 0001F50C open (/data/plugins/mykey_parser.fal) 1695781 [I][Elf] Total size of loaded sections: 1172 1695784 [T][StorageApi] File 0001F0C0 - 0001F50C closed 1695787 [T][StorageApi] File/Dir 0001F0C0 free 1695789 [D][Fap] Library for NfcSupportedCardPlugin, API v. 1 loaded 1695797 [T][StorageApi] File/Dir 0001F0C0 alloc 1695813 [T][StorageApi] File 0001F0C0 - 0001F57C open (/data/plugins/myki_parser.fal) 1695861 [I][Elf] Total size of loaded sections: 1312 1695864 [T][StorageApi] File 0001F0C0 - 0001F57C closed 1695867 [T][StorageApi] File/Dir 0001F0C0 free 1695870 [D][Fap] Library for NfcSupportedCardPlugin, API v. 1 loaded 1695874 [T][StorageApi] File/Dir 0001F0C0 alloc 1695893 [T][StorageApi] File 0001F0C0 - 0001F4B4 open (/data/plugins/opal_parser.fal) 1695931 [I][Elf] Total size of loaded sections: 1428 1695934 [T][StorageApi] File 0001F0C0 - 0001F4B4 closed 1695937 [T][StorageApi] File/Dir 0001F0C0 free 1695939 [D][Fap] Library for NfcSupportedCardPlugin, API v. 1 loaded 1695944 [T][StorageApi] File/Dir 0001F0C0 alloc 1695963 [T][StorageApi] File 0001F0C0 - 0001F5B4 open (/data/plugins/plantain_parser.fal) 1696002 [I][Elf] Total size of loaded sections: 1904 1696005 [T][StorageApi] File 0001F0C0 - 0001F5B4 closed 1696007 [T][StorageApi] File/Dir 0001F0C0 free 1696010 [D][Fap] Library for NfcSupportedCardPlugin, API v. 1 loaded 1696014 [T][StorageApi] File/Dir 0001F0C0 alloc 1696033 [T][StorageApi] File 0001F0C0 - 0001F55C open (/data/plugins/troika_parser.fal) 1696072 [I][Elf] Total size of loaded sections: 1880 1696075 [T][StorageApi] File 0001F0C0 - 0001F55C closed 1696078 [T][StorageApi] File/Dir 0001F0C0 free 1696080 [D][Fap] Library for NfcSupportedCardPlugin, API v. 1 loaded 1696085 [T][StorageApi] File/Dir 0001F0C0 alloc 1696109 [T][StorageApi] File 0001F0C0 - 0001F624 open (/data/plugins/two_cities_parser.fal) 1696151 [I][Elf] Total size of loaded sections: 1576 1696154 [T][StorageApi] File 0001F0C0 - 0001F624 closed 1696157 [T][StorageApi] File/Dir 0001F0C0 free 1696159 [D][Fap] Library for NfcSupportedCardPlugin, API v. 1 loaded 1696164 [T][StorageApi] File/Dir 0001F0C0 alloc 1696182 [T][StorageApi] File 0001F0C0 - 0001F5CC open (/data/plugins/umarsh_parser.fal) 1696217 [I][Elf] Total size of loaded sections: 652 1696220 [T][StorageApi] File 0001F0C0 - 0001F5CC closed 1696223 [T][StorageApi] File/Dir 0001F0C0 free 1696226 [D][Fap] Library for NfcSupportedCardPlugin, API v. 1 loaded 1696233 [T][StorageApi] File/Dir 0001F0C0 alloc 1696250 [T][StorageApi] File 0001F0C0 - 0001F68C open (/data/plugins/washcity_parser.fal) 1696287 [I][Elf] Total size of loaded sections: 1100 1696290 [T][StorageApi] File 0001F0C0 - 0001F68C closed 1696293 [T][StorageApi] File/Dir 0001F0C0 free 1696295 [D][Fap] Library for NfcSupportedCardPlugin, API v. 1 loaded 1696300 [T][StorageApi] Dir 0000E8E0 - 0001F094 closed 1696302 [T][StorageApi] File/Dir 0000E8E0 free 1696305 [D][NfcSupportedCards] Loaded 11 plugins 1696318 [T][ISO14443_3A] Sel resp: 24 1696322 [T][ISO14443_3A] Sel resp: 20 1696324 [T][ISO14443_3A] Col resolution complete 1696328 [D][Iso14443_4aPoller] Read ATS success 1696337 [D][MfDesfirePoller] Read version success 1696340 [D][MfDesfirePoller] Read free memory success 1696344 [E][MfDesfire] Key setting incorrect length: 0
1696347 [E][MfDesfirePoller] Failed to parse read key settings cmd 1696350 [E][MfDesfirePoller] Failed to read master key settings 1696354 [D][Nfc] FWT Timeout 1696356 [T][Nfc] Failed TRX state machine 1696359 [D][Nfc] FWT Timeout 1696360 [T][Nfc] Failed TRX state machine 1696464 [D][Nfc] FWT Timeout 1696466 [T][Nfc] Failed TRX state machine 1696569 [D][Nfc] FWT Timeout 1696571 [T][Nfc] Failed TRX state machine 1696674 [D][Nfc] FWT Timeout 1696676 [T][Nfc] Failed TRX state machine 1696779 [D][Nfc] FWT Timeout 1696781 [T][Nfc] Failed TRX state machine 1696884 [D][Nfc] FWT Timeout 1696886 [T][Nfc] Failed TRX state machine 1696989 [D][Nfc] FWT Timeout 1696991 [T][Nfc] Failed TRX state machine 1697094 [D][Nfc] FWT Timeout 1697096 [T][Nfc] Failed TRX state machine 1697199 [D][Nfc] FWT Timeout 1697201 [T][Nfc] Failed TRX state machine 1697304 [D][Nfc] FWT Timeout 1697306 [T][Nfc] Failed TRX state machine 1697409 [D][Nfc] FWT Timeout 1697411 [T][Nfc] Failed TRX state machine 1697514 [D][Nfc] FWT Timeout 1697516 [T][Nfc] Failed TRX state machine 1697619 [D][Nfc] FWT Timeout 1697621 [T][Nfc] Failed TRX state machine 1697724 [D][Nfc] FWT Timeout 1697726 [T][Nfc] Failed TRX state machine 1697829 [D][Nfc] FWT Timeout 1697831 [T][Nfc] Failed TRX state machine 1697934 [D][Nfc] FWT Timeout 1697936 [T][Nfc] Failed TRX state machine 1698039 [D][Nfc] FWT Timeout 1698041 [T][Nfc] Failed TRX state machine 1698144 [D][Nfc] FWT Timeout 1698146 [T][Nfc] Failed TRX state machine 1698249 [D][Nfc] FWT Timeout 1698251 [T][Nfc] Failed TRX state machine 1698354 [D][Nfc] FWT Timeout 1698356 [T][Nfc] Failed TRX state machine 1698459 [D][Nfc] FWT Timeout 1698461 [T][Nfc] Failed TRX state machine 1698564 [D][Nfc] FWT Timeout 1698566 [T][Nfc] Failed TRX state machine 1698669 [D][Nfc] FWT Timeout 1698671 [T][Nfc] Failed TRX state machine 1698774 [D][Nfc] FWT Timeout 1698776 [T][Nfc] Failed TRX state machine 1698879 [D][Nfc] FWT Timeout 1698881 [T][Nfc] Failed TRX state machine 1698984 [D][Nfc] FWT Timeout 1698986 [T][Nfc] Failed TRX state machine 1699089 [D][Nfc] FWT Timeout 1699091 [T][Nfc] Failed TRX state machine 1699194 [D][Nfc] FWT Timeout 1699196 [T][Nfc] Failed TRX state machine 1699299 [D][Nfc] FWT Timeout 1699301 [T][Nfc] Failed TRX state machine 1699404 [D][Nfc] FWT Timeout 1699406 [T][Nfc] Failed TRX state machine 1699509 [D][Nfc] FWT Timeout 1699511 [T][Nfc] Failed TRX state machine 1699614 [D][Nfc] FWT Timeout 1699616 [T][Nfc] Failed TRX state machine 1699719 [D][Nfc] FWT Timeout 1699721 [T][Nfc] Failed TRX state machine 1699824 [D][Nfc] FWT Timeout 1699826 [T][Nfc] Failed TRX state machine
@gornekich excerpt from my log. looks pretty much the same as for @Tomi2965
nfc-list
1 ISO14443A passive target(s) found:
ISO/IEC 14443A (106 kbps) target:
ATQA (SENS_RES): 03 44
UID (NFCID1): 04 xx xx 62 6a 13 90
SAK (SEL_RES): 20
ATS: 75 77 81 02 80
PS: unfortunately I am loosing access to this fob tomorrow. so wont be able to further help
95999 [T][ISO14443_3A] Sel resp: 24
96003 [T][ISO14443_3A] Sel resp: 20
96005 [T][ISO14443_3A] Col resolution complete
96012 [D][Nfc] FWT Timeout
96014 [T][Nfc] Failed TRX state machine
96050 [T][ISO14443_3A] Sel resp: 24
96054 [T][ISO14443_3A] Sel resp: 20
96056 [T][ISO14443_3A] Col resolution complete
96060 [D][Iso14443_4aPoller] Read ATS success
96086 [I][NfcScanner] Detected 1 protocols
96216 [T][ISO14443_3A] Sel resp: 24
96220 [T][ISO14443_3A] Sel resp: 20
96222 [T][ISO14443_3A] Col resolution complete
96226 [D][Iso14443_4aPoller] Read ATS success
96234 [D][MfDesfirePoller] Read version success
96238 [D][MfDesfirePoller] Read free memory success
96242 [E][MfDesfire] Key setting incorrect length: 0
96244 [E][MfDesfirePoller] Failed to parse read key settings cmd
96248 [E][MfDesfirePoller] Failed to read master key settings
96252 [D][Nfc] FWT Timeout
96253 [T][Nfc] Failed TRX state machine
96256 [D][Nfc] FWT Timeout
96257 [T][Nfc] Failed TRX state machine
96360 [D][Nfc] FWT Timeout
96361 [T][Nfc] Failed TRX state machine
@Tomi2965 @philicious thanks a lot for testing. I think that we get authentication error while trying to read master key. To be sure, could you please update firmware from #3395 once again, read the tag and share logs? Log level Debug will be enough
@gornekich, if it help with diag, I am able to attach that fob to FZ's back and give you full access to remote desktop/other service of virtual machine, with FZ connected to USB. If you agree, just tell me, including type/version of OS (email, WA, Discord?).
Then you will be able to test anything directly, without any delay. It's much faster and cheaper to order/deliver that fob's :)
@Tomi2965 it's a great idea. Let's start with the logs, may be I fix the issue in next iteration. If not, we can proceed fixing issue like you suggested
@gornekich, reinstalled from #3395, then again readed fob with "log debug". Attaching log.
: log debug Current log level: debug Use <log ?> to list available log levels Press CTRL+C to stop... 32194 [D][GattChar] Updating Power State char 32199 [D][GattChar] Updating Battery Level char 32225 [I][Loader] Loading /ext/apps/NFC/nfc.fap 32360 [I][Elf] Total size of loaded sections: 60625 32363 [I][Loader] Loaded in 138ms 32367 [I][AnimationManager] Unload animation 'L1_My_dude_128x64' 38916 [D][NfcScanner] Found 5 base protocols 38922 [D][DolphinState] icounter 3445, butthurt 0 38935 [D][Nfc] FWT Timeout 38962 [D][Nfc] FWT Timeout 38987 [D][Nfc] FWT Timeout 39039 [D][Nfc] FWT Timeout 39067 [D][Nfc] FWT Timeout 39090 [D][Nfc] FWT Timeout 39115 [D][Nfc] FWT Timeout 39140 [D][Nfc] FWT Timeout 39192 [D][Nfc] FWT Timeout 39220 [D][Nfc] FWT Timeout 39243 [D][Nfc] FWT Timeout 39268 [D][Nfc] FWT Timeout 39304 [D][Nfc] FWT Timeout 39356 [D][Nfc] FWT Timeout 39384 [D][Nfc] FWT Timeout 39407 [D][Nfc] FWT Timeout 39432 [D][Nfc] FWT Timeout 39457 [D][Nfc] FWT Timeout 39509 [D][Nfc] FWT Timeout 39537 [D][Nfc] FWT Timeout 39596 [D][Nfc] FWT Timeout 39621 [D][Nfc] FWT Timeout 39673 [D][Nfc] FWT Timeout 39701 [D][Nfc] FWT Timeout 39716 [D][NfcScanner] Found 4 children 39762 [D][Nfc] FWT Timeout 39764 [D][Nfc] FWT Timeout 39798 [D][Nfc] FWT Timeout 39831 [D][Iso14443_4aPoller] Read ATS success 39833 [I][MfDesfirePoller] CMD: 60 39863 [I][NfcScanner] Detected 1 protocols 40051 [I][Elf] Total size of loaded sections: 980 40054 [D][Fap] Library for NfcSupportedCardPlugin, API v. 1 loaded 40107 [I][Elf] Total size of loaded sections: 496 40110 [D][Fap] Library for NfcSupportedCardPlugin, API v. 1 loaded 40166 [I][Elf] Total size of loaded sections: 964 40169 [D][Fap] Library for NfcSupportedCardPlugin, API v. 1 loaded 40227 [I][Elf] Total size of loaded sections: 1172 40230 [D][Fap] Library for NfcSupportedCardPlugin, API v. 1 loaded 40308 [I][Elf] Total size of loaded sections: 1312 40311 [D][Fap] Library for NfcSupportedCardPlugin, API v. 1 loaded 40366 [I][Elf] Total size of loaded sections: 1428 40369 [D][Fap] Library for NfcSupportedCardPlugin, API v. 1 loaded 40425 [I][Elf] Total size of loaded sections: 1904 40428 [D][Fap] Library for NfcSupportedCardPlugin, API v. 1 loaded 40483 [I][Elf] Total size of loaded sections: 1880 40486 [D][Fap] Library for NfcSupportedCardPlugin, API v. 1 loaded 40548 [I][Elf] Total size of loaded sections: 1576 40551 [D][Fap] Library for NfcSupportedCardPlugin, API v. 1 loaded 40602 [I][Elf] Total size of loaded sections: 652 40605 [D][Fap] Library for NfcSupportedCardPlugin, API v. 1 loaded 40660 [I][Elf] Total size of loaded sections: 1100 40663 [D][Fap] Library for NfcSupportedCardPlugin, API v. 1 loaded 40667 [D][NfcSupportedCards] Loaded 11 plugins 40684 [D][Iso14443_4aPoller] Read ATS success 40686 [I][MfDesfirePoller] CMD: 60 40694 [D][MfDesfirePoller] Read version success 40696 [I][MfDesfirePoller] CMD: 6E 40700 [D][MfDesfirePoller] Read free memory success 40702 [I][MfDesfirePoller] CMD: 45 40706 [E][MfDesfirePoller] Error code: AE 40708 [E][MfDesfire] Key setting incorrect length: 3 00 01 00 40711 [E][MfDesfirePoller] Failed to parse read key settings cmd 40714 [E][MfDesfirePoller] Failed to read master key settings 40718 [D][Nfc] FWT Timeout 40720 [D][Nfc] FWT Timeout 40822 [D][Nfc] FWT Timeout 40924 [D][Nfc] FWT Timeout 41026 [D][Nfc] FWT Timeout 41128 [D][Nfc] FWT Timeout 41230 [D][Nfc] FWT Timeout 41332 [D][Nfc] FWT Timeout 41434 [D][Nfc] FWT Timeout 41536 [D][Nfc] FWT Timeout 41638 [D][Nfc] FWT Timeout 41740 [D][Nfc] FWT Timeout
@Tomi2965 thanks a lot for logs. I configured one of my DESFire cards and reproduced the issue. The fix will be ready soon.
@gornekich great to hear! .. as a very curious by nature person, I am looking forward to the commit and seeing the reason
@gornekich have you any news? I know/see, that you have a lot of work, I only want a small ongoing info. This issue is not important for me. Thanks a lot!
@gornekich many thanks for fix! It works now :)
Describe the bug.
I am unable to read one DESFire fob. Same result when I select read DESFire. When I select read MFC, it works.
Sorry for short info. If any info is needed, ask please.
Fob info: https://www.rys.sk/html_sk/500cl3a04sx.php
Reproduction
Scan that token... :) If any help needed, do not hestitate to ask please.
Target
No response
Logs
Anything else?
No response