RFID Communications

Example

Reads four bytes of data from the tag starting at address 0001H. A timeout of 2 seconds (07D0H = 2000 x 1 ms increments) is set for the completion of the Read.

Command from Host

Field

Content

Header

0202H

 

 

Command Size

0007H

 

 

Command Code

05H

 

 

Start Address

0001H

 

 

Number of Bytes

0004H

 

 

Timeout, 2 seconds

07D0H

 

 

Checksum

17H

 

 

Terminator

03H

 

 

Response from Controller

Field

Content

Header

0202H

 

 

Response Size

0005H

 

 

Command Echo

05H

 

 

Data from address 0001H

05H

 

 

Data from address 0002H

AAH

 

 

Data from address 0003H

E7H

 

 

Data from address 0004H

0AH

 

 

Checksum

55H

 

 

Terminator

03H

 

 

6.5.3 ABxF Command 06H: Write

DESCRIPTION

Command 06H writes data to an RFID tag.

DISCUSSION

The Write command is used to write segments of data to contiguous areas of tag memory. It is capable of addressing 1 kByte of the read/write address space of a tag in a single command. The BlockWrite command requires as parameters the start address, the number of bytes to be written, and the data to be written to the RFID tag. If the write range exceeds the last tag address, the controller returns an invalid format error message (error code 21H).

Field

Content

Header

0202H

 

 

Packet Size

Packet length in bytes excluding the header, command size, checksum and terminator bytes. 0007H

 

plus the number of data bytes

 

 

Command

06H

 

 

Start Address

2-byte value for the starting tag address

 

 

Number of Bytes

2-byte value for the number of bytes that will be written

 

 

Timeout

2-byte value for timeout in 1 ms units (1EH - FFFEH)

 

 

Data

Data bytes to be written

 

 

Checksum

Optional checksum

 

 

Terminator

03H

 

 

LRP2000 Passive Reader/Writer

94

Page 99
Image 99
Escort LRP2000 manual ABxF Command 06H Write, E7H