YHY523U-driver
Here is a Ehuoyan's YHY523U module (or YHY632, see below) python driver for Linux.
About the YHY523U 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
- http://www.doc.ic.ac.uk/~mgv98/MIFARE_files/report.pdf
- http://www.cs.ru.nl/~flaviog/publications/Talk.Mifare.pdf
- http://nickholdren.com/wp-content/uploads/2009/07/capstone.pdf
- https://har2009.org/program/attachments/123_%5BHAR2009%5D-Roel.Verdult-Classic.Mistakes.pdf
- http://www.nethemba.com/mifare-classic-slides.pdf
- http://code.google.com/p/mfcuk/
- http://code.google.com/p/crapto1/
- http://code.google.com/p/mfoc/
- http://www.nicolascourtois.com/MifareClassicHack.pdf
- http://ieatbinary.com/2009/02/11/reading-mifare-1k-card-using-java-in-linux/
- https://android.googlesource.com/platform/frameworks/base.git/+/android-4.2.2_r1/core/java/android/nfc/tech/MifareClassic.java
- https://github.com/ikarus23/MifareClassicTool
- https://github.com/dpavlin/perl-Mifare-MAD
Credits
Strongly inspired by the work of Evgeny Boger.
Donations
Bitcoin address: 13BMqpqbzJ62LjMWcPGWrTrdocvGqifdJ3