Characteristics of "MASK" reading filtration
Mask filtration is designed to verify the string of characters written in the tag. Only tags that satisfy the mask condition will be sent to the host. The condition is that the data read from the tag memory bank will start with the characters contained in the mask. The condition applies to data stored in the EPC and USER memory banks, excluding PC data from the EPC bank.
In addition, the filtering option has the "Invert" attribute that allows you to read only tags whose data read from the memory bank does not start with the mask.
This option is configured in the " MASK_CONFIG; " line.
The mask filtering configuration consists of 3 attributes that must be separated by the " : " character.
MASK_CONFIG;0000:1:0
The first attribute (mask) is responsible for saving the masks that we want to put on the read tags. If more than 1 is used, it's obligatory to separate them with ",". If the user does not want to use the mask, leave the field blank. For example, "0000" means that tags whose memory bank data starts with 4 zeros will be read and sent to the host.
The second attribute (Memory Bank) is responsible for setting the memory bank that will be displayed in the tag protocol sent to the host.
- 1 - means that only the EPC memory bank will be displayed
- 2 - means that only the USER memory bank will be displayed.
- 3 - means EPC and USER memory bank will be displayed
Attention!!! This attribute is not responsible for setting the memory bank on which the MASK filtering will work. The option "MB_CONFIG;" is responsible for that.
The third attribute (Invert) is responsible for enabling/disabling the "Invert" option.
- 1 -means enabling the Invert option. All tags will be read, except those with the mask on
- 0 -means disable the Invert option. All tags with the mask on will be read
Example 1:
MASK_CONFIG;1001:1:0
The option configured in this way says:
- MASK filtering will check if the data from the memory bank (set in "MB_CONFIG;", for example EPC) will start with the value "1001"
- the protocol of data sent to the host will only contain data from the EPC bank
The tag protocol that meets the above filtering condition will be form:
test;13312:100100000000000000000000:;A1;-25#
Example 2:
MASK_CONFIG;1001:2:0
The option configured in this way says:
- MASK filtering will check if the data from the memory bank (set in "MB_CONFIG;", for example EPC) will start with the value "1001"
- the protocol of data sent to the host will only contain data from the USER bank
The tag protocol that meets the above filtering condition will be form:
test;13312::00000001234;A1;-25#
Example 3:
MASK_CONFIG;1001,1003:3:0
The option configured in this way says:
- MASK filtering will check if the data from the memory bank (set in "MB_CONFIG;", for example EPC) will start with the value "1001" and 1003
- the protocol of data sent to the host will only contain data from the EPC and USER bank
The tag protocol that meets the above filtering condition will be form:
test;13312:000000000000000000000048:10010001234;A1;-25#
Example 4:
MASK_CONFIG;1001:3:1
The option configured in this way says:
- "Invert" attribute will cause that only those tags will be read whose data from the memory bank (set in "MB_CONFIG;", for example EPC) will not start with the value "1001"
- the protocol of data sent to the host will only contain data from the EPC and USER bank
The tag protocol that meets the above filtering condition will be form:
test;13312:000000000000000000005462:00000001234;A1;-25#
Return