Emsa HS500E Car Stereo System User Manual


 
CHAPTER 3: RFID COMMANDS
C OMMAND 03:
W RITE D ATA
DESCRIPTION
Command 03 instructs the HS500E to write segments of data to contiguous
addresses
of an RFID tag’s memory. The Write Data command consists of an Overall
Length, the Command ID, a Timeout Value, Start Address and Write Length, and the
Data Byte Value(s) to be written to the tag.
Start Address: 0x0001 = Starts writing to the first accessible byte of tag
memory (byte 0x0000 is reserved for the Battery Counter Value).
Write Length: 0x0001 = One byte is the shortest possible Write Length. If
the Write Length is set to 0, or extends past the last byte address of the tag,
the unit will generate an error.
When an odd number of bytes are to be written, the LSB (least significant
byte) of the final word must contain 0x00.
EXAMPLE
In this example, a Write Data command will instruct the HS500E to write the specified
four bytes to the tag beginning at the Start Address of 0x0001. The Timeout value is
set for 5 seconds (0x0032 = 50 decimal, 50 x .10 = 5 seconds) for the completion of
this command.
Command 03: Write Data – Command Structure
Field Name MSB LSB Word Value
Overall Length (in words) 00 08 0008
[0xAB] + Command ID Number: 0x03 AB 03 AB03
MSB = Reserved (always 0x00)
LSB = Node ID # (always 0x01)
00 01 0001
Timeout 00 32 0032
Start Address 00 01 0001
Write Length 00 04 0004
Data Byte Values (01, 02) 11 22 1122
Data Byte Values (03, 04) 33 44 3344
HS500E – OPERATOR’S MANUAL P/N: 17-1305 REV02 (12-05)
PAGE 28 OF 82