Config Example: Custom Credential
This programming example will demonstrate the process for one of the more complex config scenarios:
programming a reader to read a custom credential.
In this scenario we will create a config to program the reader to read a DESFire card, using the following steps:
1.
Add the
encryption key
for our DESFire card into a
keyslot
.
2.
Configure the DESFire
access credential
settings.
3.
Configure a format string that matches the
data format
of the card.
4.
Create a
card linkage
which links these components together so that the reader can decrypt the card data and
find the custom card format and encryption key to interpret the DESFire credential type.
This is a hypothetical scenario. Before programming a custom credential TLV you would need to know the
specific credential configuration requirements, such as App ID, key number, data format, etc.
Add the Encryption Key
We will first add the encryption key for our DESFire card into a keyslot, using a
Keyslot
Hex TLV (see page 20).
For this example, we want to add encryption key FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF to keyslot 2.
1.
Tap
Add TLV
and select the
Hex
option.
2.
Enter the hex code
03 11 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 02
(omit the spaces).
Configure the DESFire Credential
Credential settings are configured using the
Access Credentials
TLV (see page 13).
1.
Tap
Add TLV
and select
Access Credentials
.
2.
Apply the following access credential configuration:
-
Slot
: 7
-
Credential Type
: Mifare DESFire
-
App ID
: A1B2C3
-
AES Keyslot
: 3
-
File Number
: 0
-
Key Number
: 1
-
Diversification
: AV2 Diversification
Configure the Format String
Our format string needs to be added using the
Custom Card Format Slots
TLV (see page 16).
The format string needs to match the data format of our DESFire card. In this example we will use 64 bit raw, so
the reader will read the first 64 bits of data off the card, and we will add it to slot 6.
1.
Tap
Add TLV
and select
Custom Card Format Slots
.
2.
Set the
Slot Number
to 6.
3.
Tap
Format
and enter the format string
25363472
.
Custom card formats must be entered using ASCII code. 25363472 is the ASCII code for %64r (64 bit raw).
ICT Card Reader | Configuration Guide
28
Содержание Protege
Страница 1: ...ICT Card Reader Configuration Guide...