Skip to main content

Python Library for interfacing with the RRHFOEM04 RFID Reader

Project description

RRHFOEM04 Python Library

This Python library provides an interface to interact with the RRHFOEM04 RFID/NFC reader. The library supports multiple RFID protocols including ISO15693 and ISO14443A, allowing for various card operations such as inventory scanning, reading, and writing.

Features

  • Multiple Protocol Support: Supports ISO15693, ISO14443A, and Mifare.
  • Automatic Connection Management: Easily manage device connections.
  • Error Handling: Robust error handling and recovery mechanisms.
  • Timing Controls: Built-in timing controls for reliable communication.
  • Single and Multi-Block Operations: Support for single and multiple block read/write operations.

Usage

Here's a simple example to get started with the RRHFOEM04 reader:

from rrhfoem04 import RRHFOEM04

# Initialize the reader and connect
reader = RRHFOEM04(auto_connect=True)

# Activate the buzzer
if reader.buzzer_on():
    print("Buzzer activated")

# Get reader information
info = reader.getReaderInfo()
print(f"Reader Model: {info['model']}, Serial: {info['serial']}")

# Perform an ISO15693 inventory scan
tags = reader.ISO15693_singleSlotInventory()
if tags:
    print(f"Detected tags: {tags}")

# Close the reader connection
reader.close()

Note:

The hidapi module (dependency to interact with hid modules) requires superuser privilage to run. Therefore, run your python script with sudo if you are using linux based system. eg: sudo python3 script.py

Contributing

Contributions are welcome! Please refer to the docs folder for more details on the library's internals and how to contribute.

License

This project is licensed under the MIT License.

Contact

For any inquiries or support, please open an issue on the GitHub repository.

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

rrhfoem04_lib-0.0.1.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

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

rrhfoem04_lib-0.0.1-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file rrhfoem04_lib-0.0.1.tar.gz.

File metadata

  • Download URL: rrhfoem04_lib-0.0.1.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for rrhfoem04_lib-0.0.1.tar.gz
Algorithm Hash digest
SHA256 26d7f5bc66f9c71037e5fed8be84c7ccb74073c8b248903efaa8bd7ba64bbda8
MD5 4ccdd946eb208adb1e2e13fa6f224943
BLAKE2b-256 087c48e93abda6296bb5d31ebb6a5452bd367dadbf0c88e75c99a735c6259fe8

See more details on using hashes here.

File details

Details for the file rrhfoem04_lib-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: rrhfoem04_lib-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for rrhfoem04_lib-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ff8b32742c7d817a88cada3122a6d2be0de1744b12157b4162dbabcf29b0ebc8
MD5 ee3220e1425f51bee3caefdf9711e45d
BLAKE2b-256 b55fb5ac9cffd9642bac76e58938a447f94a14fdd2f07762cc3cceaf992d560f

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