Intermec IF2 Basic Reader Interface Programmer's Reference Manual (BRI version - Page 35

AFI, BIT(memory_bank:startbit, bits), COUNT, EPCID, see the Valid Memory Bank Values

Page 35 highlights

Chapter 3 - Understanding BRI Programming Elements AFI AFI is a keyword used to point at the bits within the Gen 2 PC bits that are used to carry the Application Family Identifier. When writing the AFI the tag EPC/ISO bit is set to one. For example: WRITE AFI=Hxx Once the AFI has written to a tag, the tag takes on the ISO-6C definitions. The EPCID keyword will return the 96 bit value, however, once the AFI is written, the EPCID keyword can no longer be used in the WHERE clause for EPCID matching. BIT(memory_bank:startbit, bits) Data types declared as BIT can range in length from zero to the number of bits given by the bit parameter. All BIT data types are represented as the binary characters [0-1]. The BIT data type is currently restricted for use in WHERE clauses only. This means that the BIT data type can not be used to refer to data that are either read or written from /to tags. The memory_bank parameter is optional and only applies to EPCglobal Class 1 Gen 2 tags. For a list of valid values for memory_bank, see the Valid Memory Bank Values table in the data field definition: "HEX(memory_bank:address, length)" on page 24. The startbit parameter can range from zero to the maximum address for the defined field. For EPCglobal Class 1 Gen 2 tags and other tag types, if an address is larger than the space available on the tag, an error is returned for out of range addresses. The bits parameter can range from zero to the number of bits in memory minus the startbit value. The length parameter is required. Bit addressing is defined as the least significant bit if the byte with the lowest address in a bank has a bit address of zero. The most significant bit of the same byte has a bit address of seven. The least significant bit of the next byte has the bit address of eight, and so forth. COUNT The COUNT keyword is a positive integer data field associated with a tag and indicates the number of times a tag was seen in the current inventory round. Additionally, this data field cannot be used in a WHERE clause. EPCID For both EPCglobal Class 1 Gen 2 and ISO 18000-6C tags, EPCID is a special keyword that equates to HEX(1:4,L) which is the EPC memory bank. Here L is variable length that depends on the data read or written to the tag. EPCID corresponds to the electronic product code (EPC), the unique identifier for the tag, that is automatically returned when the tags in the field of view or the reader are inventoried. The EPCID refers to the 12 byte or greater data starting in location 4 of memory bank 1 of a tag. The first 4 bytes should not be written to by a user. Basic Reader Interface Programmer Reference Manual 23

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146

Chapter 3 — Understanding BRI Programming Elements
Basic Reader Interface Programmer Reference Manual
23
AFI
AFI is a keyword used to point at the bits within the Gen 2 PC bits that are used to
carry the Application Family Identifier. When writing the AFI the tag EPC/ISO bit is
set to one. For example:
WRITE AFI=Hxx
Once the AFI has written to a tag, the tag takes on the ISO-6C definitions. The
EPCID keyword will return the 96 bit value, however, once the AFI is written, the
EPCID keyword can no longer be used in the WHERE clause for EPCID matching.
BIT(memory_bank:startbit, bits)
Data types declared as BIT can range in length from zero to the number of bits given
by the
bit
parameter. All BIT data types are represented as the binary characters [0-1].
The BIT data type is currently restricted for use in WHERE clauses only. This means
that the BIT data type can not be used to refer to data that are either read or written
from /to tags.
The
memory_bank
parameter is optional and only applies to EPCglobal Class 1 Gen
2 tags. For a list of valid values for
memory_bank
, see the Valid Memory Bank Values
table in the data field definition:
“HEX(memory_bank:address, length)” on
page 24
.
The
startbit
parameter can range from zero to the maximum address for the defined
field. For EPCglobal Class 1 Gen 2 tags and other tag types, if an address is larger
than the space available on the tag, an error is returned for out of range addresses.
The
bits
parameter can range from zero to the number of bits in memory minus the
startbit value. The
length
parameter is required.
Bit addressing is defined as the least significant bit if the byte with the lowest
address in a bank has a bit address of zero. The most significant bit of the same byte
has a bit address of seven. The least significant bit of the next byte has the bit
address of eight, and so forth.
COUNT
The COUNT keyword is a positive integer data field associated with a tag and
indicates the number of times a tag was seen in the current inventory round.
Additionally, this data field cannot be used in a WHERE clause.
EPCID
For both EPCglobal Class 1 Gen 2 and ISO 18000-6C tags, EPCID is a special
keyword that equates to
HEX(1:4,L)
which is the EPC memory bank. Here
L
is
variable length that depends on the data read or written to the tag.
EPCID corresponds to the electronic product code (EPC), the unique identifier for
the tag, that is automatically returned when the tags in the field of view or the reader
are inventoried. The EPCID refers to the 12 byte or greater data starting in location
4 of memory bank 1 of a tag. The first 4 bytes should not be written to by a user.