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.6.0.tar.gz (14.3 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.6.0-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for zebra_llrp-0.6.0.tar.gz
Algorithm Hash digest
SHA256 eb14125f7bfae3ce689fb0cc35d0d385f504878266419404dc785cad2c73b4fa
MD5 5d6abe9dce8b08cff696125d077032d2
BLAKE2b-256 49edc5a5c25f42fbea4326342682eaea0b474a6f95bda028c93b176ce852e0fd

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for zebra_llrp-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3d51454129312b1a2378db61d23636e037aa1ee1b5391594702e491e94ca7bfa
MD5 e74f1bfc6e6807ac5785aa49c5a03fd3
BLAKE2b-256 28dd190ff788ababfe34f7525ad255af49dd98ed154d2018003fb74afbb1e048

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