mirror of
https://github.com/brmlab/brmdoor_libnfc.git
synced 2025-06-08 08:34:00 +02:00
README
This commit is contained in:
parent
a3e7765ae6
commit
32c159ba88
1 changed files with 15 additions and 10 deletions
25
README.md
25
README.md
|
@ -4,14 +4,26 @@ This is an access-control system implementation via contactless ISO 14443A cards
|
||||||
and a PN53x-based reader. So you basically swipe your card, and if it's in
|
and a PN53x-based reader. So you basically swipe your card, and if it's in
|
||||||
database, the door unlocks.
|
database, the door unlocks.
|
||||||
|
|
||||||
It's primarily intended for Raspberry Pi, but can work for other plaforms that
|
|
||||||
can work with libnfc (including common x86 systems).
|
|
||||||
|
|
||||||
Info about authorized users and their cards and keys is stored in sqlite database.
|
Info about authorized users and their cards and keys is stored in sqlite database.
|
||||||
|
|
||||||
This was originally designed for Raspberry (Raspbian), but it also runs on
|
This was originally designed for Raspberry (Raspbian), but it also runs on
|
||||||
desktop PC if you have the PN532 USB reader.
|
desktop PC if you have the PN532 USB reader.
|
||||||
|
|
||||||
|
The daemon is implemented in `brmdoor_nfc_daemon.py`.
|
||||||
|
|
||||||
|
## NFC smartcard API
|
||||||
|
|
||||||
|
This project shows how to use libnfc from python to send APDUs to NFC
|
||||||
|
smartcards. Have a look at `test_nfc.py` for some examples, currently it
|
||||||
|
shows four interactions with NFC smartcards:
|
||||||
|
|
||||||
|
* read NDEF message from token (Mifare Desfire, Yubikey Neo)
|
||||||
|
* do HMAC-SHA1 authenthication (Yubikey Neo)
|
||||||
|
* read Track 2 Equivalent Data from Visa
|
||||||
|
* execute signature for payment on Mastercard
|
||||||
|
|
||||||
|
It is much more general in use than to use it as authenthicator to open door.
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
||||||
You need just to run `make`. Additional dependencies:
|
You need just to run `make`. Additional dependencies:
|
||||||
|
@ -21,13 +33,6 @@ You need just to run `make`. Additional dependencies:
|
||||||
- [WiringPi2 pythonic binding](https://github.com/WiringPi/WiringPi2-Python) (for switching lock on Raspberry)
|
- [WiringPi2 pythonic binding](https://github.com/WiringPi/WiringPi2-Python) (for switching lock on Raspberry)
|
||||||
- you may have to change `python2.7-config` to `python-config` on some older systems in Makefile
|
- you may have to change `python2.7-config` to `python-config` on some older systems in Makefile
|
||||||
|
|
||||||
## NFC smartcard API
|
|
||||||
|
|
||||||
This project shows how to use libnfc from python to send APDUs to NFC
|
|
||||||
smartcards. Have a look at `test_nfc.py` for some examples.
|
|
||||||
|
|
||||||
It is much more general in use than to use it as authenthicator to open door.
|
|
||||||
|
|
||||||
## Howto
|
## Howto
|
||||||
|
|
||||||
1. Create the database
|
1. Create the database
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue