Nordic IDea 2011 - 2012

Page 29

Text: Sami Heino Editing: Darby Thomas Drawing: Hanna Östman / Nordic ID

EXAMPLE: A MORE COMPLEX SELECTION BASED ON A BIT PATTERN. In this example it is assumed that all the tags are coded by some EPC numbering system and that only certain tags having their filter value set to 5 are of interest (three bits:’101’). The filter location is in the EPC code’s bit address 8; therefore the bit address in the bank is 40 (there are 32 + 8 header bits). // We’ll need a one byte mask byte []Mask = new byte[1];

// The mask used: filter value 5 Mask[0] = 5;

// Set up mask MHLObj.SetBin(hRFID,”RFID.SelectMask”,Mask);

// Set up the mask length (3 filter bits) MHLObj.SetDword(hRFID,”RFID.SelectLength”,3); // The bit address is 40 in the EPC memory MHLObj.SetDword(hRFID,” RFID.SelectAddress”,40);

// Do select based on EPC memory contents (bank 1) MHLObj.SetDword(hRFID,” RFID.SelectBank”,1); // Make sure inventory selec is not inverted MHLObj.SetBool(hRFID,”RFID. SelectInvert”,false);

// Do inventory MHLObj.Execute(hRFID,”RFID.InventorySelect”); // ...get results

Similarly, the next example shows that only SSCC-96 tags can be selected. The SSCC-96 code starts with a byte 0x31, bit address is 32 and length is 8 bits. Mask[0] = 0x31;

MHLObj.SetDword(hRFID,”RFID.SelectLength”,8); MHLObj.SetDword(hRFID,” RFID.SelectAddress”,32);

Find out more! Scan an item to get information on sizes, colour options, origin etc. or call for assistance Win a voucher by giving us feedback!

Nordic IDea • 25 29


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.