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 7 - Reader Namespace<br />

reader.create_csd<br />

This function creates customer support data to be obtained via the web<br />

Customer Support page or via scp (secure copy). It creates an encrypted file<br />

in the tmp directory called /tmp/csd.sir that can be sent to <strong>Sirit</strong> for<br />

support.<br />

Type<br />

Permissions<br />

function<br />

guest=x,admin=x<br />

reader.flash_led<br />

This function flashes the reader LEDs. The led parameter is a bitmask<br />

where 1=flash power led, and 2=flash fault led, 4=flash tx led, and 8=flash<br />

sense led. The time parameter specifies the on-off duty cycle and must be<br />

specified in milli-seconds. Note, the minimum allowed on-off time is 50 milliseconds.<br />

The LEDs will flash continuously until canceled. To cancel all<br />

flashing, set time=0, with any led parameter value. If no parameters are<br />

entered, all LEDs will flash for 5 seconds.<br />

The following example continuously flashes both the power and sense LEDs<br />

for 1 second on, 1 sec off.<br />

>>> reader.flash_led(led=9, time=1000)<br />

ok<br />

Type<br />

Permissions<br />

Parameters<br />

function<br />

guest=x,admin=x<br />

led (int)<br />

time (int)<br />

reader.is_alive<br />

This function verifies if the reader is operational.<br />

The following example shows how to use this command to verify the reader<br />

is alive and responsive.<br />

>>> reader.is_alive ()<br />

ok<br />

Type<br />

Permissions<br />

function<br />

guest=x,admin=x<br />

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