Mifare & ISO14443A & ISO14443B & ISO15693 Module
http://www.jinmuyu.com
Copyright © 2003-2011 Jinmuyu Electronics Co., LTD. All rights reserved.
18/35
Module returns success:
0x02
0x25
Checksum
Module returns failure:
0x02
0xDA
Checksum
5.2.20
Mifare 1K/4K purse decrement
Function:
purse decrement of Mifare 1K/4K. The format of the purse uses Mifare 1K/4K’s
default. Purse decrement means the decrement on the basis of the original number. Purse
decrement only needs the read authority of the key.
Host sends:
0x0E
0x26
Key ID
Block
Key
Value
Checksum
Key ID: 1 byte, Key identification
Block: 1 byte, Block number to initialize, 0 to 0x3F for S50; 0 to 0xFF for S70
Key: 6 bytes, the key of the card
Value: 4 bytes, increment value, LSB first
Module returns success:
0x02
0x26
Checksum
Module returns failure:
0x02
0xD9
Checksum
5.2.21
Mifare 1K/4K purse copy
Function:
copy the Mifare 1K/4K purse to another block in the same sector. The format of
the purse uses Mifare 1K/4K’s default.
Host sends:
0x0B
0x27
Key ID
Source
Target
Key
Checksum
Key ID: 1 byte, Key identification
Source: 1 byte, block number to copy, 0 to 0x3F for S50; 0 to 0xFF for S70
Target: 1 byte, copy the purse to this block (source and target need in same sector)
Key: 6 bytes, the key of the card
Module returns success: