ib technology
Internal Key Storage memory map (default settings)
Location 0 (0x00):
Location 1 (0x01):
Key code 0 (Default 0xFF FF FF FF FF FF)
Key code 1 (Default 0xFF FF FF FF FF FF)
Location 2 (0x02):
Location 3 (0x03):
Key code 2 (Default 0xA0 A1 A2 A3 A4 A5)
Key code 3 (Default 0xB0 B1 B2 B3 B4 B5)
-
-
-
Location 28 (0x1C):
Location 29 (0x1D):
Key code 28 (Default 0xFF FF FF FF FF FF)
Key code 29 (Default 0xFF FF FF FF FF FF)
Location 30 (0x1E):
Location 31 (0x1F):
Key code 30 (Default 0xA0 A1 A2 A3 A4 A5)
Key code 31 (Default 0xB0 B1 B2 B3 B4 B5)
Note that Mifare cards manufactured by Infineon have default transport key codes of (0xFF
FF FF FF FF FF) and Philips cards have (0xA0 A1 A2 A3 A4 A5 / 0xB0 B1 B2 B3 B4 B5)
default transport keys. The MicroRWD MF has both pairs stored as default settings to allow
ease of use when the system is first used. (More information on the Mifare card memory
maps, Security Keys and the KeyA and KeyB types can be found at the end of this
document).
Write Card Block
Command to write 16 bytes of data to specified Mifare block. A Block is made up of 16 bytes
and there are four blocks in each card sector (sixteen blocks per sector in upper half of Mifare
4k card). Note that blocks 3, 7, 11, 15 etc are sector trailer blocks that contain Security Key
data and Access bits. Writing incorrect information to these blocks can permanently disable
the sector concerned. The first argument is the block number to write data to, the second
argument specifies which key code (0 - 31 from the internal storage area) to use for sector
authentication/unlocking and if the Security Key is to be used as a KeyA or KeyB type code.
If the write was unsuccessful (invalid card, authentication failed or card out of field) then
Status flags in acknowledge byte indicate error.
B7
B0
Command:
Argument1:
Argument2:
0 1 0 1 0 1 1 1
N N N N N N N N
T x x K K K K K
(Ascii “W”, 0x57)
(N = MF Card Block Address 0 – 255)
(T = Key Type, 0 = KeyA, 1= KeyB)
(K = Key code number, 0 – 31)
(D = LS Byte of data to write to card)
Argument3:
Argument4:
Argument5:
Argument6:
D D D D D D D D
D D D D D D D D
D D D D D D D D
D D D D D D D D
16 Bytes of data
Argument15:
Argument16:
Argument17:
Argument18:
D D D D D D D D
D D D D D D D D
D D D D D D D D
D D D D D D D D
(D = MS Byte of data to write to card)
(F = Status flags)
Acknowledge: 1 F F F F F F X
13