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 12 - Tag Namespace<br />

tag.read<br />

This function is a generic read function. This can be used to read all fields of<br />

the tag. The parameters supported by this function are:<br />

report – List of fields to read from the tag.<br />

tag_id (optional) – Indicates the id of the tag from which to read data. If<br />

this parameter is not specified, the first tag found in the field is read.<br />

pwd (optional) – Indicates the access password required to read a<br />

locked tag (Gen 2 only).<br />

antenna (optional) – Indicates the list of antennas on which the function<br />

executes. If an antenna is not specified, all antennas will be tried until<br />

the function succeeds or no more antennas are available.<br />

The response to this function is a response name followed by the tag's data.<br />

If the requested fields could not be read, an error is returned.<br />

The following example reads the kill the password, access password, and<br />

user data from tag 0x306800095EFDDF80000987A5:<br />

>>> tag.read (tag_id=0x306800095EFDDF80000987A5, report =<br />

kill_pwd access_pwd user_data)<br />

ok kill_pwd=0x0D19F572, access_pwd=0xA72975B4,<br />

user_data=0x00FD9619028026000A87A5<br />

Type<br />

Permissions<br />

Parameters<br />

Return Values<br />

function<br />

guest=x,admin=x<br />

report (enumlist definitions.enum.tag.read_fields)<br />

tag_id (array)<br />

pwd (array)<br />

antenna (list)<br />

kill_pwd(string)<br />

access_pwd(string)<br />

tag_id(string)<br />

tid(string)<br />

user_data(string)<br />

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