User's Manual

CHAPTER 7 READER-HOST PROTOCOL EXTENSIONS FOR BATTERY POWERED BACKSCATTER TAGS
NANOSCANNER READER USER GUIDE DOC # 8101029-000 REV A 92
© 2003 Alien Technology™
Memory Commands
Each tag may have on-board memory that can be used for arbitrary user data
storage, or for holding sensor logging data. These commands allow this memory
to be interrogated and programmed. As always, use the ‘set mask’ command to
identify the unique tag to communicate with.
S
ET MEMORY
GET MEMORY
Set and Get Memory commands allow the direct manipulation and interrogation
of the tag memory. The Get Memory command will return blocks of the tag
memory, and the Set Memory command will write data to the tag memory.
Get Memory takes two parameters (length, address). Parameter one is the
number of bytes to get expressed as a single decimal number. Parameter two is
the start address of the memory to get, expressed as a single decimal number.
The maximum number of bytes that this command will return is 4Kb, i.e., 4096
bytes. The results of the Get Memory command are multiple lines of ascii data,
where each line of data will represent up to 16 hexadecimal bytes of memory. A
line of data may include asterisk characters instead of expected data – this
indicates that the request for a particular block of memory failed (usually RF
communications failure). The data can usually be extracted by repeating the
command after repositioning the tag.
Set Memory takes two parameters (address, data). Parameter one is the start
address of the memory to set, expressed as a single decimal number. The
second parameter is an ascii string of hex bytes, up to a total of
memoryPacketSize. After the packet of data is written, it is read back for
verification. If the data is verified the message “Memory@0000 = Written and
Verified” will be output. If the data was not verified, the message “Error: Memory
Written but not Verified” will be output.
Note: Memory is transferred to and from the tag in blocks of memory defined by
the memorypacketsize command. The smaller the packet (i.e. 1 or 2 bytes) the
smaller the transmission rate but also the smaller the error rate. Likewise the
higher the packet size (i.e. 16 bytes) the higher the transmission rate but also the
higher the error rate in a noisy environment.
Note: Please refer to the Nanoscanner Tag Guide for detailed descriptions of
formatted tag memory. Because there are many different types of sensors
attached to the Nanoscanner tags, the memory formatting may change due to
the type of data being stored. All details can be found in this separate guide.