Giter Site home page Giter Site logo

cr14's Introduction

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.

cr14's People

Contributors

commit-la-grenouille avatar f-laurens avatar guilhem avatar lgtm-com[bot] avatar pguyot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cr14's Issues

Driver build fails with kernel 5.15.xx

/usr/bin/git pull -v
From https://github.com/pguyot/cr14
 = [up to date]      release    -> origin/release
 = [up to date]      master     -> origin/master
Already up to date.
Building cr14 driver for kernel 5.15.30+.
/usr/bin/make KERNELRELEASE=5.15.30+ clean && /usr/bin/make KERNELRELEASE=5.15.30+ && /usr/bin/sudo /usr/bin/make KERNELRELEASE=5.15.30+ install && /usr/bin/make KERNELRELEASE=5.15.30+ clean
make -C /lib/modules/5.15.30+/build M=/home/pi/cr14 clean
make[1]: Entering directory '/usr/src/linux-headers-5.15.30+'
make[1]: Leaving directory '/usr/src/linux-headers-5.15.30+'
make -C /lib/modules/5.15.30+/build M=/home/pi/cr14 modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.30+'
  CC [M]  /home/pi/cr14/cr14.o
  MODPOST /home/pi/cr14/Module.symvers
  CC [M]  /home/pi/cr14/cr14.mod.o
  LD [M]  /home/pi/cr14/cr14.ko
make[1]: Leaving directory '/usr/src/linux-headers-5.15.30+'
make: *** No rule to make target 'cr14.dtbo', needed by 'install'.  Stop.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.