Issue with writing data to DESFire EV1 & EV2

Forum / MIFARE and NFC Reader IC`s / Issue with writing data to DESFire EV1 & EV2

Tagged: 

  • 1. September 2020 at 14:26
    Hi Guys

    We have built a DESFire reader / writer based on a CLRC663+ with a credit card sized antenna.
    The system allows us to authenticate with AES and read data from 32 byte files in encrypted mode.
    We can also write data into the same files in encrypted mode but not the full 32 bytes of data.

    Having tested with both DESFire EV1 and EV2 cards we do not end up with same result:

    On EV1 cards we can write 22 bytes successfully, but trying to write more than 22 bytes of data results in _no_ response from the card.
    On EV2 cards we can write 12 bytes successfully, but trying to write more than 12 bytes of data results in _no_ response from the card.

    The cards may not come from the same manufacturer, but I would have expected this to be the reverse as the EV2 cards have a better read range.

    All cards that we have tested are also checked using the TagInfo app on a Samsung S10.

    The timeout for the transaction is set to max to ensure ample time for the write sequence to complete.
    I have checked the power supply levels around the CLRC663+ chip to see if the supply voltage is dropping during a write but that does not seem to be the case.

    Any suggestions or pointers would be much appreciate


    Regards

    Søren Bang




    + 0  |  - 0

    Re: Issue with writing data to DESFire EV1 & EV2

    8. September 2020 at 12:38
    Hi Søren,

    I assume, the issue is in your reader. Generally, you can read any size of data block from the card. Here you must take attention, the reader buffer is limited. First, there is a reader buffer in card, and also buffer in the transport chain. But if you use larger blocks, automatically read extension will be used. This is not efficient, therefore I would not read more than 64 bytes in one chunk. 32 bytes data blocks should not be a problem.

    Is it possible for you, to verify your software with a different approach? I mean you can check your software with a simple PC/SC USB reader and a desktop software. Or, if possible, with a simple Android app and TapLinx SDK. There is no GUI required, only the NFC communication and log output is needed to verify your reader implementation.

    The TapLinx team

    + 0  |  - 0

    Re: Issue with writing data to DESFire EV1 & EV2

    9. September 2020 at 9:06
    Hi Team

    Thank You for your reply - I'll take another look at our antenna matching as that could limited the power delivery to the transponder.

    One other question : Does the DESFire EV2 chip require more power to work than the EV1 ?


    Regards

    Søren
    + 0  |  - 0

    Re: Issue with writing data to DESFire EV1 & EV2

    10. September 2020 at 16:00
    Hi Søren,

    The field strength requirement of the MIFARE DESFire EV2 is <1.5A/m. This is quite lower as from ISO/IEC required. The EV2 need less energy in boot process and therefore it is slightly faster. The most commands for security requires the same energy as for the EV1 (more or less).

    The TapLinx team
    + 0  |  - 0
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.