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 />

Read Tags<br />

There are several functions which can be used to read various portions of a<br />

tag’s set of information:<br />

tag.read_id() – obtains the EPC or tag ID from the first tag<br />

observed. The only argument to this function is the optional antenna<br />

parameter.<br />

For the following functions, you can use the optional tag_id parameter to<br />

specify a specific tag to read (using the tag ID read with tag.read_id()).<br />

If the tag_id parameter is not specified, then the first observed tag is<br />

read.<br />

tag.read_tid()– reads the TID memory of a tag. If the memory is<br />

locked, the pwd argument can be used to specify the password.<br />

tag.read_user_data()– reads the User Data memory of a tag. If<br />

the memory is locked, the pwd argument can be used to specify the<br />

password.<br />

tag.read_access_pwd()– reads the tag’s access password. If the<br />

memory is locked, the pwd argument can be used to specify the<br />

password.<br />

tag.read_kill_pwd()– reads the tag’s kill password. If the<br />

memory is locked, the pwd argument can be used to specify the<br />

password.<br />

The tag.read() function can be used in addition to or in place of the<br />

above tag.read_* commands. This function uses the report argument<br />

to specify which fields to read. This function provides an alternative method<br />

for reading multiple tag fields with one function.<br />

In the following example, the tag ID, TID, and kill password are read from<br />

the tag using individual tag.read_* functions. Next, the same<br />

information is obtained with a single tag.read function.<br />

> tag.read_id()<br />

ok tag_id=0x3000214160C00400000A5937<br />

> tag.read_tid(tag_id=0x3000214160C00400000A5937,<br />

antenna=1)<br />

ok tid=0xE2001040<br />

><br />

tag.read_kill_pwd(tag_id=0x3000214160C00400000A5937)<br />

ok kill_pwd=0x00000000<br />

> tag.read(report=tag_id tid kill_pwd)<br />

ok tag_id=0x3000214160C00400000A5937,<br />

kill_pwd=0x00000000,tid=0xE2001040<br />

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

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

Saved successfully!

Ooh no, something went wrong!