Elatec GmbH
Page 36 of 65
7.4.5 Mifare® PLUS Related Commands
7.4.5.1 Write
Personalization Data ‘nwp’
Use this command to transmit personalization data to the transponder in SL0. At least Card Master
key, Card configuration key, Level 2 switch key (Mifare® PLUS X only) and Level 3 switch key must
be written in order to personalize the transponder. The personalization is finished by sending the
command „Commit Personalization‟. Personalization shall happen at a secure place because all data
is transmitted in plain.
Command:
‘nwp[DataBlock / SpecialBlock][KeyType][Data]’
Parameters
Description
[DataBlock /
SpecialBlock]
If KeyType is present and set to AA or BB, the first parameter is interpreted as SpecialBlock. This makes it
possible to address e.g. AES keys and Configuration blocks. Every sector can hold two AES keys (type A
and
type B). Otherwise the standard data blocks are accessed (00h … FFh)
00h … 27h:
Parameter addresses an AES key of 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)
Answer
Answer
Description
Data<CR><LF>
Written data
‘F<CR><LF>’
Error: General failure
‘R<CR><LF>’
Error: Parameter out of range
Examples
Command
Description
nwp010011223344556677
8899AABBCCDDEEFF<CR>
Writes 00112233445566778899AABBCCDDEEFFh to data block 01
nwp00AA0011223344556677
8899AABBCCDDEEFF
Set AES key of sector 00, key type A, key is: 00112233445566778899AABBCCDDEEFFh
nwp01BB0011223344556677
8899AABBCCDDEEFF
Set AES key of sector 01, key type B, key is: 00112233445566778899AABBCCDDEEFFh
nwp28AA0001020304050607
08090A0B0C0D0E0F
Set Card master key to 000102030405060708090A0B0C0D0E0Fh