Tag Programming
33
Programming the EPC1 Tag
SAMSys UHF readers can be used to program 64-bit and 96-bit EPC1 tags.
Both the
Wa
and
Wv
command can be used with the EPC1 (Alien) tags. The
Wv
command
is discussed at the end of this section.
Do not use
Wt
since the tag does not support singulated write operations.
Prior to writing, EPC1 tags must be erased. The
Wv
command and the
Wa
with the
f:3
option will perform the erase action during command execution. 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 of the
blk data
passed in the
Wa
command is the kill passcode. In the examples that follow, this passcode is set to
00
.
The format of the
Wa
command is as follows:
}Wa,a:<blk addr>,b:<blk data>[,l:<# blks>]
[,f:<control flag>]!
where:
a:<blk addr>
. This parameter is optional since there is only a single writeable
piece of memory. If specified, the parameter should use block address 0x00.
l:<# blks>
. This parameter reflects the number of bytes being written and should
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. If you are not specifying the kill code, the
values should be
8
and
C
, respectively.
b:<blk data>
. This parameter must contain the entire EPC ID (64- or 96-bit),
followed by the one byte kill passcode.
f:<control flag>.
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!
Summary of Contents for MP9311 Series
Page 1: ...User s Guide MP9311 Low Power UHF Reader Module THE POWER TO CHOOSE...
Page 6: ...MP9311 User s Guide iv...
Page 12: ...MP9311 User s Guide 6...
Page 34: ...MP9311 User s Guide 26...
Page 58: ...MP9311 User s Guide 50...
Page 59: ......