skip to navigation
skip to content

sllurp 0.2.7

RFID reader control library

sllurp is a Python library to interface with RFID readers. It is a pure-Python implementation of the Low Level Reader Protocol (LLRP).

These readers are known to work well with sllurp, but it should be adaptable with not much effort to other LLRP-compatible readers:

  • Impinj Speedway (R1000)
  • Impinj Speedway Revolution (R220, R420)
  • Impinj Speedway xPortal
  • Motorola MC9190-Z (handheld)

File an issue on GitHub if you would like help getting another kind of reader to work.

sllurp is distributed under version 3 of the GNU General Public License. See LICENSE.txt for details.

Quick Start

Install from PyPI:

$ virtualenv .venv
$ source .venv/bin/activate
$ pip install sllurp
$ sllurp inventory

Run sllurp --help and sllurp inventory --help to see options.

Or install from GitHub:

$ git clone
$ cd sllurp
$ virtualenv .venv
$ source .venv/bin/activate
$ pip install .
$ sllurp inventory

If the reader gets into a funny state because you’re debugging against it (e.g., if your program or sllurp has crashed), you can set it back to an idle state by running sllurp reset

Reader API

sllurp relies on Twisted for network interaction with the reader. To make a connection, create an LLRPClientFactory and hand it to Twisted:

# Minimal example; see for more.
from sllurp import llrp
from twisted.internet import reactor
import logging

def cb (tagReport):
    tags = tagReport.msgdict['RO_ACCESS_REPORT']['TagReportData']
    print 'tags:', tags

factory = llrp.LLRPClientFactory()
reactor.connectTCP('myreader', llrp.LLRP_PORT, factory)

Getting More Information From Tag Reports

When initializing LLRPClientFactory, set flags in the tag_content_selector dictionary argument:

    'EnableROSpecID': False,
    'EnableSpecIndex': False,
    'EnableInventoryParameterSpecID': False,
    'EnableAntennaID': True,
    'EnableChannelIndex': False,
    'EnablePeakRRSI': True,
    'EnableFirstSeenTimestamp': False,
    'EnableLastSeenTimestamp': True,
    'EnableTagSeenCount': True,
    'EnableAccessSpecID': False,
}, ...)


sllurp logs under the name sllurp, so if you wish to log its output, you can do this the application that imports sllurp:

sllurp_logger = logging.getLogger('sllurp')
# or .setHandler(logging.StreamHandler()) to log to stderr...

Handy Reader Commands

To see what inventory settings an Impinj reader is currently using (i.e., to fetch the current ROSpec), ssh to the reader and

> show rfid llrp rospec 0

The “nuclear option” for resetting a reader is:

> reboot

If You Find a Bug

Start an issue on GitHub!

Bug reports are most useful when they’re accompanied by verbose error messages. Turn sllurp’s log level up to DEBUG, which you can do by specifying the -d command-line option to sllurp. You can log to a logfile with the -l [filename] option. Or simply put this at the beginning of your own code:

import logger
sllurp_logger = logging.getLogger('sllurp')

Known Issues

Reader mode selection is confusing, not least because the LLRP specification traditionally conflated ModeIndex and ModeIdentifier. If you’re using sllurp inventory, you probably want to use --mode-identifier N instead of -mode-index. Check your reader’s manual to see what mode identifiers it supports via the C1G2RFControl parameter, or run sllurp --debug inventory against a reader to see a dump of the supported modes in the capabilities description.


Want to contribute? Here are some areas that need improvement:

  • Reduce redundancy in the encode_* and decode_* functions in
  • Support the AccessSpec primitive (basis for tag read and write).
  • Write tests for common encoding and decoding tasks.
  • Make get_reader_config use the fabric library to connect to readers via SSH.
  • Generalize LLRP support beyond Impinj readers. Remove Impinj-specific assumptions.


Much of the code in sllurp is by Ben Ransford, although it began its life in August 2013 as a fork of LLRPyC. Many fine citizens of GitHub have contributed code to sllurp since the fork.

File Type Py Version Uploaded on Size
sllurp-0.2.7-py2.py3-none-any.whl (md5) Python Wheel py2.py3 2017-07-24 48KB
sllurp-0.2.7.tar.gz (md5) Source 2017-07-24 40KB