ZK-RFID102 UHF RFID Reader User's Manual V2.0
26
Num
: The number of tag detected.
EPC ID
: Inventoried tag’s EPC data,
EPC-1
is the first tag
EPC Len
+
EPC
data. The most significant word
(EPC C1 G2 data in word units) of EPC is transmitted first and the most significant byte of word is transmitted
first.
EPC Len
is one byte.
8.2.16 Block Write
The command is used to write multiple words in a Tag’s Reserved, EPC, TID, or User memory.
Command:
Len
Adr
Cmd
Data[]
CRC-16
0xXX
0xXX
0x10
——
LSB
MSB
Data as follows:
Data[]
WNum
ENum
EPC
Mem
WordPtr
Wdt
Pwd
MaskAdr
MaskLen
0xXX
0xXX
Variable
0xXX
0xXX
Variable
4Byte
0xXX
0xXX
Parameter Connect:
WNum:
One byte. It specifies the number of 16-bit words to be written. The value can not be 0. Otherwise, it
returns the parameters error message.
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 Write 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 write. For example,
WordPtr
= 00h
specifies the first 16-bit memory word,
WordPtr
= 01h specifies the second 16-bit memory word, etc.
Wdt:
Be written words. The most significant byte of each word is first.
Wdt
specifies the array of the word
to be written. For example,
WordPtr
equal 0x02, then the first word in Data write in the address 0x02 of
designated Mem, the second word write in 0x03, etc.
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.