https://github.com/pguyot/cr14
STMicroelectronics CR14 Driver for Linux
https://github.com/pguyot/cr14
linux-driver nabaztag raspbian rfid-reader
Last synced: 11 months ago
JSON representation
STMicroelectronics CR14 Driver for Linux
- Host: GitHub
- URL: https://github.com/pguyot/cr14
- Owner: pguyot
- License: other
- Created: 2020-02-09T20:38:05.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-06T06:23:18.000Z (almost 2 years ago)
- Last Synced: 2025-03-17T17:04:08.277Z (11 months ago)
- Topics: linux-driver, nabaztag, raspbian, rfid-reader
- Language: C
- Size: 65.4 KB
- Stars: 6
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CR14 RFID reader driver for Linux (Raspbian)
[](https://github.com/marketplace/actions/super-linter)
[](https://github.com/marketplace/actions/arm-runner)
[](https://www.codacy.com/gh/pguyot/cr14/dashboard)
## Datasheet and technical documents
Chipset:
- [CR14](https://datasheet.octopart.com/CR14-MQP/1GE-STMicroelectronics-datasheet-10836722.pdf)
PICC:
- [SRIX4K](http://www.orangetags.com/wp-content/downloads/datasheet/STM/srix4k.pdf)
- [SRI512](https://www.advanide.de/wp-content/uploads/products/rfid/SRI512.pdf)
- [SRT512](https://www.advanide.de/wp-content/uploads/products/rfid/SRT512.pdf)
- [SRI4K](https://www.advanide.de/wp-content/uploads/products/rfid/SRI4K.pdf)
- [SRI2K](https://www.advanide.de/wp-content/uploads/products/rfid/SRI2K.pdf)
- [ST25TB512-AC](https://www.st.com/resource/en/datasheet/st25tb512-ac.pdf)
- [ST25TB04K](https://www.st.com/resource/en/datasheet/st25tb04k.pdf)
- [ST25TB512-AT](https://www.st.com/resource/en/datasheet/st25tb512-at.pdf)
- [ST25TB02K](https://www.st.com/resource/en/datasheet/st25tb02k.pdf)
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.