Skip to main content

Python driver for Zebra FX series RAIN RFID readers via LLRP

Project description

zebra-llrp

PyPI - Version PyPI - Python Version

Python driver for Zebra FX series RAIN RFID readers via LLRP protocol (sllurp).

Features

  • Connect to Zebra FX9600 (and compatible) readers via LLRP (TCP 5084)
  • Start/stop inventory with configurable antenna ports, TX power, RF mode, and session
  • Real-time tag streaming with callback-based notifications
  • Query reader capabilities (model, firmware, antenna count, TX power range, RF modes)
  • EPC decoding with double-encoding detection (FX9600 quirk)
  • TX power control by index or dBm

Installation

pip install zebra-llrp

Quick Start

from zebra_llrp import ZebraLlrp, ZebraLlrpTagReport

reader = ZebraLlrp()

def on_tag(report: ZebraLlrpTagReport):
    print(f"EPC: {report.epc}  RSSI: {report.peak_rssi_dbm} dBm")

reader.set_notification_callback(on_tag)
reader.connect("192.168.1.100")
reader.set_tx_power_dbm(25.0)
reader.set_rf_mode(1)
reader.start()

# ... tags arrive via callback ...

reader.stop()
reader.disconnect()

API Reference

ZebraLlrp

Method Description
connect(ip, port) Connect to reader via LLRP
disconnect() Stop inventory and disconnect
is_connected() Check connection status
set_notification_callback(fn) Register tag report callback
get_reader_info() Get model, firmware, antenna count, power limits, RF modes
start() Start inventory
stop() Stop inventory
get_tx_power() / set_tx_power(index) Get/set TX power by index
get_tx_power_dbm() / set_tx_power_dbm(dbm) Get/set TX power in dBm
get_antenna_config() / set_antenna_config(list) Get/set active antenna ports
get_rf_mode() / set_rf_mode(mode) Get/set LLRP mode identifier
get_session() / set_session(n) Get/set inventory session (0-3)

ZebraLlrpTagReport

Field Type Description
epc str Tag EPC (hex string)
antenna_port int Antenna port number
peak_rssi_dbm int Peak RSSI in dBm
last_seen_timestamp int Last seen timestamp (microseconds UTC)
tag_seen_count int Number of times tag was seen

ZebraLlrpReaderInfo

Field Type Description
manufacturer str Device manufacturer
model str Reader model
firmware_version str Firmware version
antenna_count int Number of antenna ports
min_tx_power_dbm float Minimum TX power
max_tx_power_dbm float Maximum TX power
rf_modes list[dict] Available RF modes with miller, bdr, tari, pie

License

zebra-llrp is distributed under the terms of the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zebra_llrp-0.7.0.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zebra_llrp-0.7.0-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file zebra_llrp-0.7.0.tar.gz.

File metadata

  • Download URL: zebra_llrp-0.7.0.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for zebra_llrp-0.7.0.tar.gz
Algorithm Hash digest
SHA256 f4ed34f21c23ec9e4ff12b7551717ee6724644c5b0fb7198e846d3bea1df5c74
MD5 ee62f5fc781b6c9b62938d82ccbefff9
BLAKE2b-256 8fcc27e948ee48aad071e0fec380c76676723f01f3b33dd2da67839c35c8ddde

See more details on using hashes here.

File details

Details for the file zebra_llrp-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: zebra_llrp-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for zebra_llrp-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aefd1f26dcd1e4e5b48b19c329b0d67a75951a70df4306b497848870e7f5e3dd
MD5 33c8f2ddf3dcf17e2fc25c0471f8554a
BLAKE2b-256 6c1817d349a00738dbcf2bef008c70a8e9111c4fd1c3541ded537b31f0a81932

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page