public class Gen2PortalIDWithMaskCommand extends AbstractAwidCommand
Constructor and Description |
---|
Gen2PortalIDWithMaskCommand(byte packetLength,
byte memoryBank,
byte startingBit,
byte maskLength,
byte maskValue,
byte qValue,
byte timeout,
byte repeat)
Create a new Gen2PortalWithMaskID command
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
getCommand
public Gen2PortalIDWithMaskCommand(byte packetLength, byte memoryBank, byte startingBit, byte maskLength, byte maskValue, byte qValue, byte timeout, byte repeat)
packetLength
- 1-byte packet length, value depending on how long the mask is or simply MaskLength plus
fourteenmemoryBank
- 0x01 EPC bank
0x02 TID bank
0x03 User bankstartingBit
- starting bit position in memory bankmaskLength
- Mask length ex:
0x06 6 bitsmaskValue
- Mask value for bit mask ex:
0xFC "11111100"qValue
- For example, if there are about 20 tags to be read, then a Q Value of 4 should be
used for reader to have 15 (2^4-1) time slots employed by its searching algorithm and 5
for 35 tags, 7 for 131 tags and so on.timeout
- Execute this command for timeout*100 ms. If set to 0x00,
execute until stop command is sentrepeat
- Return results every repeat*100 ms. If set to 0x00
continuously return tags.
0F 20 5E 02 04 01 20 06 FC 01 08 00 00 XX XX