Texas Instruments HFDEMOKITII 用户手册

下载
页码 45
September 2001
                S6350 Reader Reference Guide
20
3.2  Command Definitions
3.2.1  Tag-it™ HF Command Definitions
Command Function (Tag-it HF)
Command Code
Read Single Non-addressed & Addressed Block
02
hex
Write Single Non-addressed & Addressed Block
03
hex
Lock Single Non-addressed & Addressed Block
04
hex
Read Transponder Details
05
hex
Special  Read Block Command
0F
hex
Read Block Command (02
hex
)
Reads a single block of data from a Tag-it
TM
 transponder. If the address flag is set, the
address forms the first part of the data section (LSbyte first), followed by a single byte
containing the block number to be read. If the address flag is clear the data section
only contains the block number.
Example
Read block 3 of a Tag-it
TM
 transponder whose address is 0134A4D5
hex
Request packet
01 0E 00 00 00 10 02 D5 A4 34 01 03 5A A5
hex
The response packet is similar to the request packet, with the data section containing
the data received from the transponder (LSbyte first) followed by a single byte
indicating the lock status and then another single byte containing the block address.
The two LSB’s of the lock status byte reflect the two lock bits in the transponder.
Example
Response packet
01 0F 00 00 00 00 02 33 22 11 00 00 03 0F F0
 hex
00112233
hex
 read from unlocked block 3 of a Tag-it
TM
 transponder.
Write Block Command (03
hex
)
Writes a single block of data to a Tag-it
TM
 transponder. If the address flag is set, the
address forms the first part of the data section, followed by a single byte containing the
block number to be written. The data to be written follows the block number. If the
address flag is clear the data section only contains the block byte and the data to be
written.
Example
Write Block 4 of a Tag-it
TM
 transponder whose address is 000134A4
hex 
with data
01234567
hex
Request packet
01 12 00 00 00 10 03 A4 34 01 00 04 67 45 23 01 95 6A
hex
The response packet is similar to the request packet; with the data section containing
00
hex
 for a successful write operation.