ZK-RFID102 UHF RFID Reader User's Manual V2.0
20
MaskLen:
One byte, it is the mask length. That a Tag compares against the memory location that begins at
MaskAdr
and ends
MaskLen
bytes later.
MaskAdr + MaskLen
must be less the length of ECP number.
Otherwise, it returns the parameters error message.
Notes: That a tag compares against complete EPC number when the MaskAdr and MaskLen vacant.
Respond:
Len
Adr
reCmd
Status
Data[]
CRC-16
0x05
0xXX
0x06
0x00
——
LSB
MSB
8.2.7 BlockErase
The command is used to erase multiple words in a Tag’s Password, EPC, TID, or User memory.
Command:
Len
Adr
Cmd
Data[]
CRC-16
0xXX
0xXX
0x07
——
LSB
MSB
Data as follows:
Data[]
ENum
EPC
Mem
WordPtr
Num
Pwd
MaskAdr
MaskLen
0xXX
Variable
0xXX
0xXX
0xXX
4Byte
0xXX
0xXX
Parameter Connect:
ENum:
EPC length
,
in word units. The length of EPC is less than 15 words, can be 0 or 15. Otherwise, it
returns the parameters error message.
EPC:
Be operated tag’s EPC number.
EPC
length according to the decision of the EPC number, EPC
numbers in word units, and must be an integer number of lengths. High word first, the high byte of each word first.
Requirement given here is a complete EPC number.
Mem:
One byte. It specifies whether the Erase accesses Password, EPC, TID, or User memory. 0x00:
Password memory; 0x01: EPC memory; 0x02; TID memory; 0x03: User memory. Other values reserved. Other
value when error occurred.
WordPtr:
One byte. It specifies the starting word address for the memory block erase. For example,
WordPtr
= 00h specifies the first 16-bit memory word,
WordPtr
= 01h specifies the second 16-bit memory word, etc.
WordPtr
must be bigger than 0x00 when it erases EPC memory.
Num:
One byte. It specifies the number of 16-bit words to be erased. If
Num
= 0x00, it returns the
parameters error message.
Pwd:
Four bytes, they are Access Password. The most significant word of Access Password is first, the most
significant byte of word is first. The first bit of 32-bit access password is left, and the last bit of 32-bit access
password is right. Only done the memory set to lock and the Access Password is not zero, it needs
Pwd
. In other
cases,
Pwd
can be zero.