Gen2.select, Iso180006b.select, Gen2.select 40 iso180006b.select 40 – ThingMagic Mercury API v1.23.0 User Manual
Page 40

Selecting Specific Tags
40
Level 2 API
Note
Currently, the sequence in which the
TagFilters are applied is not
guaranteed.
Gen2.Select
The
Gen2.Select class represents selection operations specific to the Gen2 protocol.
This class provides the capability to select Gen2 tags based on the value in any Gen2 tag
memory bank, except
RESERVED. The tag selection criteria can be specified using the
Gen2.Select constructor:
Gen2.Select(boolean invert, Gen2.Bank bank, int bitPointer, int
bitLength, byte[] mask)
invert = Whether to invert the selection (deselect tags that match the filter criteria
and return/operate on the ones which don’t)
bank = The Gen2.Bank enumeration constant (EPC, TID, USER) indicating the
memory bank to be matched.
bitPointer = The memory bank offset, in bits (zero-based 16 bit multiples), at
which to begin comparing the
mask value.
bitLength = The length, in bits (16 bit multiples), of the mask.
mask = The value to compare with the data in the specified memory bank (bank) at
the specified address offset (
bitPointer), MSB first.
ISO180006B.Select
The
ISO180006B.Select class represents a selection operation in the ISO18000-6b
protocol. This class provides the capability to select ISO18000-6B tags based on the
value of data stored on the tag. The tag selection criteria can be specified using the
ISO180006B.Select constructor:
ISO180006B.Select(boolean invert, ISO180006b.SelectOp op, int
address, byte mask, byte[] data)
invert = Whether to invert the selection (deselect tags that match the filter criteria
and return/operate on the ones which don’t)
op = The type of The operation to use to compare the tag data to the provided data.
See the
ISO180006b.SelectOp class info.
address = The address of the tag memory to compare to the provided data.
mask = Bitmask of which of the eight provided data bytes to compare to the tag
memory. Each bit=‘1’ indicates the corresponding byte will be compared. If bit[0]=1
then byte[0] value will be compared with found tags.
data = The data to compare. Exactly eight bytes.