MIFARE SAM X-MODE DESFire_ReadX and DESFire_WriteX

Forum / MIFARE and NFC Reader IC`s / MIFARE SAM X-MODE DESFire_ReadX and DESFire_WriteX

  • 20. July 2018 at 5:10
    Dear Support.

    I use MIFARE SAM in X-MODE.
    For Plain communication I can use DESFire_ReadX and DESFire_WriteX to ReadData, GetValue, ReadRecord, WriteData, Credit, Debit and WriteRecord. It works very fine.
    For Fully Enciphered communication, I get success to ReadData, GetValue and ReadRecord with DESFires_ReadX and WriteRecord, WriteData with DESFire_WriteX. For Credit and Debit I get Error. This is the command I use:

    Fully Enciphered communication, GETVALUE
    File 2
    SentFrmHost=80D20030050400006C0200
    Send to SAM: 80D20030050400006C0200
    Recv from SAM: 20A107009000
    GivenToHost=20A107009000 ==> CORRECT value!!!

    Fully Enciphered communication, CREDIT
    File 2, credit 0x0000AA
    SentFrmHost=80D30038060C02AA00000000
    Send to SAM: 80D30038060C02AA00000000
    Recv from SAM: 6A86
    GivenToHost=6A86

    Fully Enciphered communication, DEBIT
    File 2, debit 0x000001
    SentFrmHost=80D3003806DC020100000000
    Send to SAM: 80D3003806DC020100000000
    Recv from SAM: 6A86
    GivenToHost=6A86

    Appreciate your help.

    Best regards
    Tony


    + 0  |  - 0

    Re: MIFARE SAM X-MODE DESFire_ReadX and DESFire_WriteX

    21. July 2018 at 18:42
    Dear Support,

    The problem I got :
    SAM X-MODE
    use WRITE_X
    CREDIT Fully Enciphered communication is solved!! No issue anymore.
    DEBIT Fully Enciphered communication is solved!! No issue anymore.

    Best regards
    Tony
    + 0  |  - 0

    Re: MIFARE SAM X-MODE DESFire_ReadX and DESFire_WriteX

    25. July 2018 at 8:18
    Hi Tony

    Please take in mind after Credit() and Debit() you need always a CommitTransaction() to save the current value back.

    The TapLinx team

    + 0  |  - 0

    Re: MIFARE SAM X-MODE DESFire_ReadX and DESFire_WriteX

    28. July 2018 at 12:33
    Dear support,

    Thank for feedback. The problwm was the Credit and Debit did not success. The commit is needed when the action write, credit and debit is successed. I give always the commit after success with write , credit and debit.

    COMMIT
    SentFrmHost=80EC000001C700
    Send to SAM: 80EC000001C700
    Recv from SAM: 00757D97B3403AD39C9000
    GivenToHost=00757D97B3403AD39C9000

    Best regards
    Tony Nguyen
    + 0  |  - 0

    Re: MIFARE SAM X-MODE DESFire_ReadX and DESFire_WriteX

    30. July 2018 at 8:28
    Hi Tony

    Please take also account of the value file permission. For data files you control reading and writing independently, but for value files you grant the access as follow:

    • R: GetValue, Debit

    • W: GetValue, Debit, Limited Credit

    • R & W: GetValue, Debit, Limited Credit, Credit

    • C: Change Access Rights

    Source: AN0945 – MIFARE DESFire EV1 – Features and Hints

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

You must be logged in to reply to this topic.