China Desfire Card / Reader Programming

Discuss RFID Readers using HID, Mifare, etc
User avatar
ZerOne
Site Admin
Posts: 108
Joined: Sun Dec 13, 2020 8:21 am

Programming Desfire Cards

This guide provides information on how to program blank desfire cards to work with an existing (programmed) Desfire reader.

NOTE: In order for the Desfire card to be matched with a pre programmed Desfire reader, the corresponding Desfire reader key MUST be known.

Step 1:
Open the “SW for creating user card” (DESFireDEMO.exe)

Card-Config-1.PNG

Card-Config-2.PNG
You do not have the required permissions to view the files attached to this post.
User avatar
ZerOne
Site Admin
Posts: 108
Joined: Sun Dec 13, 2020 8:21 am

Step 2:
Connect the Desfire card programmer to the USB port on your PC,
If this is the first time you are connecting the Desfire programmer to your windows P.C., Windows will attempting to locate and install the drivers for the programmer device.

Once the required drivers have been installed, and the software is open, click on the [CONNECT] button, as shown below.

If the programmer was successfully connected, the Programmer will beep once, and the software will display “Reader connection is successful”.

Card-COnfig-3.PNG
You do not have the required permissions to view the files attached to this post.
User avatar
ZerOne
Site Admin
Posts: 108
Joined: Sun Dec 13, 2020 8:21 am

Step 3:
Set the Corresponding Desfire Reader Key that you want to program cards for, in the top key field.
The key value entered should be 16 Hexadecimal characters.

In the example above, the key is “JustSmartHomes”
This key is then converted from ASCII to Hexadecimal to become
“4A 75 73 74 53 6D 61 72 74 48 6F 6D 65 73”
Because this key value is only 14 Hexadecimal digits long, the remaining digits are then padded with 00 to become
“4A 75 73 74 53 6D 61 72 74 48 6F 6D 65 73 00 00”

NOTE: ANSII strings can be converted to Hexadecimal (and vice versa) using online tools such as
https://www.binaryhexconverter.com/asci ... -converter

JSH-Card_key-1.PNG
You do not have the required permissions to view the files attached to this post.
User avatar
ZerOne
Site Admin
Posts: 108
Joined: Sun Dec 13, 2020 8:21 am

Step 4:
Set the Corresponding Desfire Reader Key that you want to program cards for, in the second Card Key field.
NOTE: This is the same key that was entered above in Step 3.
JSH-Card_key-2.PNG
You do not have the required permissions to view the files attached to this post.
User avatar
ZerOne
Site Admin
Posts: 108
Joined: Sun Dec 13, 2020 8:21 am

Step 5:
Set the Catalogue ID number to 2
jsh-catalogue_number.PNG
You do not have the required permissions to view the files attached to this post.
User avatar
ZerOne
Site Admin
Posts: 108
Joined: Sun Dec 13, 2020 8:21 am

Step 6:
Set the Ganmi ID (Catalogue ID) number to 2

JSH-gamni_id.PNG
You do not have the required permissions to view the files attached to this post.
User avatar
ZerOne
Site Admin
Posts: 108
Joined: Sun Dec 13, 2020 8:21 am

Step 7:
Place the blank card on top of the desfire programmer, and click on the [Activate] button.
This will “Activate” the cards programming (Write) mode.
User avatar
ZerOne
Site Admin
Posts: 108
Joined: Sun Dec 13, 2020 8:21 am

Step 8:
Click on the [Format Card] button.
This will clear the card of any data, and will ensure that there are no problems writing to the card.
User avatar
ZerOne
Site Admin
Posts: 108
Joined: Sun Dec 13, 2020 8:21 am

Step 9:
Click on the [Create App] button.
This will create the required directories on the Desfire card to store the data required to communicate with a Desfire reader.
User avatar
ZerOne
Site Admin
Posts: 108
Joined: Sun Dec 13, 2020 8:21 am

Step 10:
Click on the [Modified Key] button.
This will connect to the Desfire card, and will update the card’s key from the default blank key, to the “New Key” value entered, matching the Desfire readers key value.
Post Reply

Return to “RFID Reader Discussion”