All Projects → charlysan → pyrfidhid

charlysan / pyrfidhid

Licence: MIT license
Python library to control Chinese USB HID 125Khz RFID Reader/Writer

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pyrfidhid

rdm6300
A simple library to interface with RDM6300 RFID reader.
Stars: ✭ 46 (-55.77%)
Mutual labels:  rfid, rfid-reader, 125khz
Node Escpos
🖨️ ESC/POS Printer driver for node
Stars: ✭ 752 (+623.08%)
Mutual labels:  usb, drivers
Helenos
A portable microkernel-based multiserver operating system written from scratch.
Stars: ✭ 553 (+431.73%)
Mutual labels:  usb, drivers
stm32 i2c to usb hid multitouch
i2c to usb hid multi touch with stm32
Stars: ✭ 55 (-47.12%)
Mutual labels:  usb, usb-hid
FPGA-USB-Device
FPGA-based USB-device controller to implement USB-CDC, USB-HID, etc.
Stars: ✭ 29 (-72.12%)
Mutual labels:  usb, usb-hid
8821au-20210708
Linux Driver for USB WiFi Adapters that are based on the RTL8811AU and RTL8821AU Chipsets - v5.12.5.2
Stars: ✭ 40 (-61.54%)
Mutual labels:  usb, wireshark
Tinyusb
An open source cross-platform USB stack for embedded system
Stars: ✭ 2,257 (+2070.19%)
Mutual labels:  usb, usb-hid
Libwdi
Windows Driver Installer library for USB devices
Stars: ✭ 928 (+792.31%)
Mutual labels:  usb, drivers
DualSenseWindows UE4
Unreal Engine 4 port of the Windows API for the PS5 DualSense controller created at Ohjurot/DualSense-Windows
Stars: ✭ 25 (-75.96%)
Mutual labels:  usb, usb-hid
8821au
Linux Driver for USB WiFi Adapters that are based on the RTL8811AU and RTL8821AU Chipsets
Stars: ✭ 67 (-35.58%)
Mutual labels:  usb, wireshark
CH55x USB CompositeDevice
USB Composite Device Demo (Keyboard, Custom HID and Massive Storage) using CH55x
Stars: ✭ 94 (-9.62%)
Mutual labels:  usb, usb-hid
PN532-HSU
PN532 HSU (UART) library for Python
Stars: ✭ 29 (-72.12%)
Mutual labels:  rfid, rfid-reader
Ksniff
Kubectl plugin to ease sniffing on kubernetes pods using tcpdump and wireshark
Stars: ✭ 1,339 (+1187.5%)
Mutual labels:  wireshark, sniffing
ccid-utils
A USB smartcard driver including GSM SIM and EMV credit/debit card development platforms
Stars: ✭ 37 (-64.42%)
Mutual labels:  usb, drivers
Daggy
Daggy - Data Aggregation Utility. Open source, free, cross-platform, server-less, useful utility for remote or local data aggregation and streaming
Stars: ✭ 91 (-12.5%)
Mutual labels:  wireshark, sniffing
awesome-webhid
Curated list of resources relating to the WebHID (Human Interface Device) API
Stars: ✭ 126 (+21.15%)
Mutual labels:  usb, usb-hid
qtpy-knob
QT Py Media Knob using rotary encoder & neopixel ring
Stars: ✭ 49 (-52.88%)
Mutual labels:  usb, usb-hid
hid-tminit
Linux driver to properly initialize some Thrustmaster Wheels
Stars: ✭ 23 (-77.88%)
Mutual labels:  usb, usb-hid
asl-validator
A simple Amazon States Language validator based on JSON schemas.
Stars: ✭ 66 (-36.54%)
Mutual labels:  state-machine
fs2-es
Event sourcing utilities for FS2
Stars: ✭ 75 (-27.88%)
Mutual labels:  state-machine

pyrfidhid

Python library to control Chinese USB HID 125Khz RFID Reader/Writer

Introduction

This library is the result of reverse-engineering the communication protocol of a Chinese USB 125Khz RFID Reader/Writer. A detailed document describing the whole procedure can be found at the wiki section of this project:

How to reverse engineer a USB HID RFID Reader/Writer

The library can be used to control the USB RFID device under Linux or MacOS, and it uses pyusb and libusb to communicate through the USB port.

Installation (using pip)

You will need Python 2.7.x or greater, and pip.

MacOS

$ brew install libusb
$ pip install pyusb
$ pip install --upgrade pyrfidhid

Linux

$ sudo apt-get install libusb-1.0-0-dev
$ sudo pip install pyusb
$ sudo pip install --upgrade pyrfidhid

Manual Installation

If you can't install the library using pip, then try to install it using setup.py script. Just clone this repo, install the dependencies and run the setup.py script:

$ python setup.py install

Usage

The library should work with both Python 2.7.x and 3.x. After running the setup.py script you should be able to import and use the library within your project like this:

from rfidhid.core import RfidHid

try:
    # Try to open RFID device using default vid:pid (ffff:0035)
    rfid = RfidHid()
except Exception as e:
    print(e)
    exit()

payload_response = rfid.read_tag()
uid = payload_response.get_tag_uid()

rfid.beep()
print(uid)

The above script should try to connect to the device, read a Tag (if it is already close to the device), print the UID and beep.

For more complex read/write examples, please check out the examples folder.

You can also check the API documentation for a list of exported methods.

RFID CLI Tool

A command line tool called rfid_cli is also included with the library, and it can be used to read, write and clone tags. For a complete documentation please check rfid_cli documentation

Final notes

If you are looking for an Android tool similar to IDRW V3 you can check this project

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].