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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 4 – Reader Behavior<br />

Lock and Unlock Tags<br />

As described previously, the reader can lock portions of the tag memory<br />

space while writing them. However, the reader can also change the lock<br />

state without first performing a write. In this case, the tag.lock*<br />

function are used. As described in the Read Tags and Write Tags sections,<br />

there are specific functions used to lock or unlock individual sections of a<br />

tag’s memory space and a general function used to lock or unlock multiple<br />

sections.<br />

The following functions are used to lock, unlock, perma-lock or permaunlock<br />

a specific portion of a tag’s memory space.<br />

tag.lock_id() - Changes lock state of the Tag ID or EPC of the tag.<br />

tag.lock_tid() - Change lock state of the TID of the tag.<br />

tag.lock_user_data() - Change lock state of the tag’s user data.<br />

tag.lock_access_pwd() - Change lock state of the tag’s access<br />

password.<br />

tag.lock_kill_pwd() - Change lock state of the tag’s kill<br />

password.<br />

Each function uses the following arguments:<br />

• lock_type – Can be either SECURED, UNSECURED,<br />

PERMA_LOCKED, or PERMA_UNSECURED.<br />

• tag_id - Optional parameter specifying the tag to lock.<br />

• pwd - Optional parameter supplying the password required to<br />

change the tag’s lock state.<br />

• antenna - Optional parameter specifying which antenna(s) to use<br />

for the command. If antenna is not specified, all currently enabled<br />

antennas are used.<br />

In addition to the specific tag lock functions, there is a general<br />

tag.lock() function that uses the lock_fields parameter. This<br />

parameter describes which fields will change lock state. This parameter is<br />

a string containing one or more of the following letters:<br />

• k - kill password<br />

• a - access password<br />

• e - EPC<br />

• t - TID<br />

• u - user data<br />

One additional function, tag.unlock(), is used to explicitly unlock<br />

portions of a tag’s memory space. This function takes the same parameters<br />

as tag.lock() except that lock_type is not specified (assumes<br />

UNSECURED) and unlock_fields is used instead of lock_fields.<br />

28 <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!