Reply To: SAM AV2 SAM_ChangeKeyPicc 0x6985

Forum MIFARE general topics and applications SAM AV2 SAM_ChangeKeyPicc 0x6985 Reply To: SAM AV2 SAM_ChangeKeyPicc 0x6985

Re: SAM AV2 SAM_ChangeKeyPicc 0x6985

24. August 2017 at 10:33
Hi Hugo,

If you want to change a card key, you always have to authenticate with the key number you want to change first. Finally you can change the key. This procedure can be done using card commands in a secured environment (as part of a card personalization). If you want to do it via SAM commands, you have to call first SAM_Authenticate_PICC and then SAM_ChangeKeyPICC.

Error 0x6985 says, that either no valid PICC authentication is available or the key is disabled or cannot be used for DESFire key change.

The TapLinx team

+ 0  |  - 0