flipperdevices / flipperzero-firmware

Flipper Zero firmware source code
https://flipperzero.one
GNU General Public License v3.0
12.63k stars 2.69k forks source link

NFC Type B card cannot be read #3189

Closed ronny17 closed 9 months ago

ronny17 commented 11 months ago

Describe the bug.

With the latest firmware update 0.94.1 my flipperzero cannot read the Type B NFC card

Reproduction

  1. Open NFC app
  2. Select read action
  3. Apply NFC Type B Card to back

Target

NFC Type B Card

Logs

No response

Anything else?

No response

gsurkov commented 11 months ago

Could you please give more info on the card?

ronny17 commented 11 months ago

Logs of the reading process v 0.94.1 205433 [D][ST25TBPoller] error during trx: 2 205466 [D][Nfc] FWT Timeout 205506 [D][Iso14443_3bPoller] Unexpected ATTRIB response 205538 [D][Nfc] FWT Timeout Logs of the reading process v 0.93 138639 [I][FuriHalNfc] Deinit OK 138767 [I][FuriHalNfc] Init OK 138772 [D][DolphinState] icounter 101, butthurt 0 With 0.93 the device read the UID of the card.

I have only one NFC-B card (ISO14443B) and i can read it with my pc (uTrust 3700F +Cardpeek) and with my Android smartphone.

gornekich commented 10 months ago

Hello @ronny17 ! Looks like that Flipper can't parse ATTRIB response. Could you please share data that your Android smartphone or pc can read? The ATTRIB response is what we need to see

ronny17 commented 10 months ago

Using nfc-list I get this nfc-list uses libnfc 1.8.0 NFC device: PN532Reader opened 1 ISO14443B passive target(s) found: ISO/IEC 14443-4B (106 kbps) target: PUPI: 77 4d 92 42
Application Data: 11 00 00 11
Protocol Info: 33 81 a3

Using NXP TagInfo App on my android device i get -- FULL SCAN ------------------------------ Technologies Supported: ISO/IEC 7816-4 compatible ISO/IEC 14443-4 (Type B) compatible ISO/IEC 14443-3 (Type B) compatible ISO/IEC 14443-2 (Type B) compatible Detailed Protocol Information: ID: 77:4D:92:42 Application Data: 0x11000011 Protocol info: 0x3381A3

gornekich commented 10 months ago

@ronny17 There are some updates on iso14443-3b poller logic arived in #3264 . Since we can't reproduce this issue, we need your help with testing. Could you please update flipper on latest RC or dev, read your card and provide logs as before.

ronny17 commented 10 months ago

I've updated my flipper to 0.96.1-rc and these are the logs 340384 [D][Nfc] FWT Timeout 340413 [D][Iso14443_3bPoller] Incorrect CID in ATTRIB response: 80

gornekich commented 10 months ago

Thank you very much. Unfortunately your card doesn't follow iso14443-3b standard. We will make flipper read these type of cards, but in next release. Need some time to think how to implement it better. I will let you know once we make changes.

gornekich commented 9 months ago

Hello @ronny17 ! I believe #3285 fix the issue. It would be very helpful if you test that PR and confirm that your card is read successfully

ronny17 commented 9 months ago

Now my card is read successfully Thanks