A Ehuoyan's YHY523U RFID module python driver for linux
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
res Initializing the driver Oct 15, 2013
src Fixing (and adding tests for) balance methods Oct 23, 2013
.gitignore Initializing the driver Oct 15, 2013
LICENSE Initial commit Oct 15, 2013
README.md Updating image link Apr 16, 2014

README.md

YHY523U-driver

Here is a Ehuoyan's YHY523U module (or YHY632, see below) python driver for Linux.

About the YHY523U module

YHY523U RFID module

The YHY523U RFID module is made by Ehuoyan Technology Co., Ltd. (Beijing, China).

Features

  • RFID Read/Write module based on RC522 and with built-in transceiver antenna
  • Contactless operating frequency: 13.56 MHz
  • Supports ISO14443A / MIFARE®, Mifare® Classic 1K, Mifare® Classic 4K
  • Communications Interface: USB
  • Typical Operating Distance: 0–90 mm
  • Operating Voltage :DC 5.0V
  • Two LED (red, blue) indicators (software controlled)
  • Buzzer alarm (software controlled)
  • Size: 70 mm x 70mm x 10mm
  • Weight: 20g

Getting started

pip dependencies are listed in src/requirements.txt. The driver only depends on pySerial.

Then just run the following command:

python src/yhy523u.py

Notes

YHY632 compatibility

This driver also works with the Ehuoyan's YHY632 module (as YHY532U and YHY632 command sets are same).

Help

Manually send a command to the serial/USB port

echo -ne '\xaa\xbb\x06\x00\xff\xff\x06\x01\x64\x63' > /dev/ttyUSB0

Sniff a serial/USB port

apt-get install jpnevulator
jpnevulator --ascii --timing-print --tty "/dev/ttyUSB0" --read

More resources

Credits

Strongly inspired by the work of Evgeny Boger.

Donations

Bitcoin address: 13BMqpqbzJ62LjMWcPGWrTrdocvGqifdJ3