User's Manual

Table Of Contents
Tag Programming
31
Programming the EPC1 Tag
SAMSys MP9320 and MP9310 readers can be used to program 64-bit and 96-bit
EPC1 tags.
Use the Wa command to write EPC1 (Alien) tags. Do not use Wt since the tag does
not support singulated write operations. In addition, before writing to a 96-bit EPC
ID tag, you must send a Tag Reset (Tr) command prior to issuing the write
operation.
Prior to writing, EPC1 tags must be erased. If the command specified does not
erase the tag during the command execution then specify the erase operation
separately using the Tag Erase (Te) command.
Also, in order to calculate the CRC, the entire tag ID must be presented to the
reader in one command. EPC1 tags contain an internal CRC value which covers
the EPC ID and the kill passcode. The reader always calculates the CRC and
writes the correct value to the tag during the write operation. As a result, the
entire tag ID and passcode must be presented to the reader in one command. The
last byte is the lock password and must be always set to 00.
The Wa command has several different parameters that can occur in any order in
the command string. These parameters include the following:
a: address block (in Hex). This parameter is optional since there is only a
single writeable piece of memory. If specified, the parameter should use block
address 0x00.
l: length. This parameter reflects the number of bytes being written and must
be equal to 9 if writing a 64-bit EPC ID with the kill passcode or equal to d if
writing a 96-bit EPC ID with the kill passcode.
b: write data. This parameter must contain the entire EPC ID (64- or 96-bit),
followed by the one byte kill passcode.
f: control flags. This parameter controls operations related to writing a tag.
Set f:1 to verify the data in the tag following the write operation. Set f:2 to
erase the data prior to the write operation. For most applications, set both of
these bits with f:3.
The following is a typical command to write a 96-bit EPC1 ID tag:
}wa,a:0,b:80020304050607090a0b0c0e00,l:d,f:3!
The following is a typical command to write a 64-bit EPC1 ID tag:
}wa,a:0,b:800080042504600200,l:9,f:3!