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 15 - Modem Namespace<br />

modem.antennas.perform_check<br />

This function performs a check on all 4 antenna ports, to determine if an<br />

antenna is connected. It returns a list of ports with antennas connected.<br />

This function will temporarily disrupt any current RFID transactions.<br />

Type<br />

Permissions<br />

function<br />

guest=-,admin=x<br />

modem.control.inventory.perform_rounds<br />

This function is used to perform the number of inventory rounds specified<br />

by the "rounds" parameter. If "block" is true or unspecified, the function<br />

blocks until the rounds are complete before returning. If "block" is false, the<br />

function returns immediately and does not block. In either case, an<br />

"event.status.inventory_rounds_complete" event is generated at the<br />

completion of the inventory rounds.<br />

Type<br />

Permissions<br />

Parameters<br />

function<br />

guest=-,admin=x<br />

rounds (int)<br />

block (bool)<br />

modem.debug.db<br />

This is a debug variable made visible through the Modem API. The Get<br />

command can be used to get the value of this debugging variable and the<br />

Set command can be used to set the value of this variable. = 1 to 8.<br />

This variable can be used in the modem code as follows:<br />

extern int dbg0; if (dbg0 == 2) { // do special<br />

processing, and report result. }<br />

Then, the value of the variable db0 can be changed at run time with the Set<br />

command to cause the about section of code to execute.<br />

set modem.debug.db0 = 2<br />

Type<br />

Permissions<br />

Data Type<br />

var<br />

guest=r,admin=r<br />

int<br />

Default 0<br />

Min<br />

Max<br />

INT_MIN<br />

INT_MAX<br />

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