Skip to content

STMicroelectronics CR14 Driver for Linux

License

Notifications You must be signed in to change notification settings

Commit-La-Grenouille/cr14

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CR14 RFID reader driver for Linux (Raspbian)

Datasheet and technical documents

CR14:

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.

About

STMicroelectronics CR14 Driver for Linux

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 97.7%
  • Makefile 2.3%