T55x7 Protocol PDF
T55x7 Protocol PDF
Communication Protocol
Communication Setting
The communication protocol is byte oriented. Both sending and receiving bytes are in
hexadecimal format. The communication parameters are as follows
Baud rate : 9,600 ~ 115,200 bps / Data : 8 bits / Stop: 1 bit / Parity: None / Flow control : None
Command Format
header + length + reader ID + command code + command data + checksum
Header : 2 Byte , 0xAABB
Length : 2 Byte (word)
Reader ID : 2 Byte , 00 00
Command code : 2 Byte (word)
Command data : command data value (can be blank)
Checksum : 1 Byte (XOR from reader ID to command data)
: 1 Byte , 00 = success
Command Set
void Standard_Write(unsigned char opcode ,unsigned char lock ,unsigned char *
Data ,unsigned char block )
Function
: write data
Parameter :
OPCODE
LOCK
Data
BLOCK
: Block number
Sample :
AA BB, 0b 00, 00 00 ,01 20 ,02 , 00 , 11 11 11 11 , 01 , 22
AA BB 0b 00 00 00 01 20 02 00 11 11 11 11 01 22
Respond : aa bb len1 len2 , 00 00 , 01 20 , Status ,xor
void Protected_Write(unsigned
: aa bb , 09 00 ,00 00 ,03 20 , 77 77 77 77 , 23
: OPCODE :
BLOCK
Block number
R55x7 card
xor
00 = card correct
Parameter :
length : return data length ,4 multiple value , max. value 28
Data : return card data
Command code : (0x2008)
AA BB , len1 len2 , 00 00 , 08 20 ,
Sample
xor
Error code :
0x00 = success , non zero = error
Error code
Description
10
General error
11
12
Parameter error
20
21
22
Verify error
23
24