Elatec GmbH
Page 37 of 65
7.4.5.2
Commit Personalization ‘ncp’
Use this command to finish personalization and to switch the transponder from SL0 to SL1. If the
personalized transponder is a so-
called „L3‟-card, the transponder is switched to SL3. This command
is only supported if the transponder is in SL0.
Command:
‘ncp’
Answer
Answer
Description
‘L<CR><LF>’
Personalization successfully completed
‘F<CR><LF>’
Error: General failure
7.4.5.3
Write AES Sector Key / Special Block ‘nw’
Use this command to write an AES sector key or a special block. If an AES sector key shall be written,
you have to be authenticated to the respective sector and the respective key type. If the transponder
has been switched to SL2, an authentication with the Card master key is mandatory prior
authentication to the respective sector. If a Special block shall be written, you must be authenticated
either with the Card master key or the Card configuration key:
Key
Change
Card master key
-
Level switch keys
-
Card configuration key
-
MFP Configuration block
-
Installation Identifier
-
ATS
-
Card master key
Card configuration key
-
Field configuration block
-
Virtual card keys
-
Proximity check key
-
Card configuration key
Command:
‘nw[AESSectorKey / SpecialBlock][KeyType][Data]’
Parameters
Description
[AESSectorKey /
SpecialBlock]
If KeyType is present and set to AA or BB, the first parameter is interpreted as AESKey. This makes
it possible to address the AES keys and their respective key type. Every sector can hold two AES
keys (type A and type B).
00h … 27h:
Parameter addresses an AES key of a data sector
28h:
Card master key
29h:
Card configuration key
2Ah:
Level 2 switch key
2Bh:
Level 3 switch key
2Ch:
SL1 card authentication key
2Dh:
Select Virtual Card key
2Eh:
Proximity Check key
2Fh:
Virtual Card Polling Encryption key
30h:
Virtual Card Polling MAC key
40h:
MFP Configuration Block
41h:
Installation Identifier
42h:
ATS Information
43h:
Field Configuration Block
[KeyType]
AAh:
indicate key type A
BBh:
indicate key type B
[Data]
Data to be written to the transponder (16 bytes)