06.01.2015 Views

INfinity 510 Protocol Reference Guide - Sirit

INfinity 510 Protocol Reference Guide - Sirit

INfinity 510 Protocol Reference Guide - Sirit

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 4 – Reader Behavior<br />

A tag id matches the filter if the important bits (as specified by a ‘1’ in<br />

the mask) of the pattern match the same bits in the tag id. Each of<br />

the filters is specified to be either ‘inclusive’ = true, meaning that only<br />

tags matching the filter are reported, or ‘inclusive’ = false (or<br />

exclusive), meaning that tags not matching the filter are reported.<br />

This can be described with the following algorithm:<br />

if ((tag.filter.n.pattern & tag.filter.n.mask) ==<br />

(tag_id & tag.filter.n.mask))<br />

{<br />

// tag id matches the pattern with the mask.<br />

if (tag.filter.n.inclusive == true)<br />

{<br />

// report tag<br />

}<br />

}<br />

else<br />

{<br />

// tag id does NOT matches the pattern with the<br />

mask.<br />

if (tag.filter.n.inclusive == false)<br />

{<br />

// report tag<br />

}<br />

}<br />

Using Multiple Filters<br />

Multiple filters can be specified. Each of the filters is specified to be either<br />

inclusive meaning that only tags matching the filter are reported, or<br />

exclusive, meaning that tags not matching the filter are reported. If multiple<br />

filters are used, a tag is reported only if the following two conditions hold:<br />

The tag matches at least one of the inclusive filters and<br />

The tag does not match any of the exclusive filters.<br />

There is a special case, if no inclusive patterns are defined, the first check<br />

is omitted.<br />

Example Filter Usage<br />

This section presents the filter setting to configure a reader to only report<br />

SGTIN-96 tags with a filter value indicating a Single Shipping/ Consumer<br />

Trade Item.<br />

SGTIN-96 tags are identified with an 8-bit header value of 0011 0000<br />

(binary) or 0x30 (hex). The next 3 bits of an SGTIN-96 tag are the<br />

filter value. The filter value is additional data that is used for fast<br />

filtering and pre-selection of basic logistics types.<br />

34 <strong>INfinity</strong> <strong>510</strong> <strong>Protocol</strong> <strong>Reference</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!