WISP ERT (Server)  1.0.0
The WISP Extended Runtime (Server side)
wtp.llrp_util Namespace Reference

Functions

def read_opspec (data_size, opspec_id=0)
 Create a LLRP Read OpSpec. More...
 
def write_opspec (data, opspec_id=0)
 Create a LLRP Write or BlockWrite OpSpec. More...
 
def wisp_target_info (wisp_id, wisp_class=consts.RFID_WISP_CLASS)
 Generate LLRP RFID target information from WISP ID. More...
 
def access_stop_param (trigger_type=1, count=1)
 Generate AccessSpec stop parameter. More...
 

Function Documentation

◆ access_stop_param()

def wtp.llrp_util.access_stop_param (   trigger_type = 1,
  count = 1 
)

Generate AccessSpec stop parameter.

Parameters
trigger_typeTrigger type.
countAccessSpec result count.
Returns
AccessSpec stop parameter.

◆ read_opspec()

def wtp.llrp_util.read_opspec (   data_size,
  opspec_id = 0 
)

Create a LLRP Read OpSpec.

Parameters
data_sizeSize of data to read.
opspec_idOpSpec ID.
Returns
LLRP Read OpSpec.

◆ wisp_target_info()

def wtp.llrp_util.wisp_target_info (   wisp_id,
  wisp_class = consts.RFID_WISP_CLASS 
)

Generate LLRP RFID target information from WISP ID.

Parameters
wisp_id16-bit WISP ID.
wisp_classWISP RFID class.
Returns
LLRP RFID target information.

◆ write_opspec()

def wtp.llrp_util.write_opspec (   data,
  opspec_id = 0 
)

Create a LLRP Write or BlockWrite OpSpec.

(A 1-byte data length will be prepended before data)

Parameters
dataData to write.
opspec_idOpSpec ID.
Returns
LLRP Write or BlockWrite OpSpec.