Skip to content

pguyot/cr14

Repository files navigation

CR14 RFID reader driver for Linux (Raspbian)

GitHub Super-Linter ARM Runner Codacy

Datasheet and technical documents

Chipset:

PICC:

This driver may be compatible with CRX14 as well. Tested with CR14 and SRI512/SRT512 PICCs.

Installation

Install requirements

sudo apt-get install raspberrypi-kernel-headers

Clone source code.

git clone https://github.com/pguyot/cr14

Compile and install with

cd cr14
make
sudo make install

Makefile will automatically edit /boot/config.txt and add/enable if required the following params and overlays:

dtparam=i2c_arm=on
dtoverlay=cr14

You might want to review changes before rebooting.

Reboot.

Interface

Driver creates device /dev/rfid0

Several modes are available, see the sample Python scripts in examples.

Simplest mode consists in opening device read-only. The CR14 will be polled every 0.5 second, printing detected tag UIDs preceeded by 'u' (UIDs are printed in little endian, LSB first).

More complex interactions are possible by opening device r/w and sending commands, for example to read or write EEPROM.