public interface IHF14443A
Modifier and Type | Method and Description |
---|---|
boolean |
authentication(byte cMode,
byte cBlock,
byte[] pcKey)
验证14443A卡(Authentication 14443A card)
|
byte[] |
cpuCommand(byte[] cmd)
CPU卡发送命令(execute cpu card command)
|
byte[] |
ratsTypeA()
CPU卡RATS操作指令(CPU card RATS operation command)
|
byte[] |
readBlock(byte cBlock)
读卡(Read card)
|
HF14443RequestEntity |
requestTypeA()
寻卡(Search card)
|
HF14443RequestEntity |
requestTypeA(int mode)
寻卡(Search card)
|
boolean |
writeBlock(byte cBlock,
byte[] pcBlockData)
写卡(Write card)
|
HF14443RequestEntity requestTypeA()
HF14443RequestEntity requestTypeA(int mode)
mode
- 0x26:request idle; 0x52:request allboolean authentication(byte cMode, byte cBlock, byte[] pcKey) throws RFIDArgumentException
cMode
- 模式0x60:类型A,0x61类型B (0x60 A type key, 0x61 B type key)cBlock
- 要写入的数据块S50 0-63,S70 0-255(the cBlock of card,such as S50 card value 0~63,S70 0~255)pcKey
- 6个字节的密码(6 bytes key value)RFIDArgumentException
byte[] readBlock(byte cBlock)
cBlock
- 数据块0~63 (the cBlock of card,such as M1 card value 0~63 )boolean writeBlock(byte cBlock, byte[] pcBlockData) throws RFIDArgumentException
cBlock
- 要写入的数据块S50 0-63,S70 0-255(the cBlock of card,such as S50 card value 0~63,S70 0~255)pcBlockData
- 十六个字节的数据(16 bytes Block data)RFIDArgumentException
byte[] ratsTypeA()
byte[] cpuCommand(byte[] cmd)
cmd
- 命令数据