Skip to content

Commit 1b4a932

Browse files
committed
Initial commit
Tested on Ubuntu 13.10
0 parents  commit 1b4a932

File tree

15 files changed

+930
-0
lines changed

15 files changed

+930
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.o
2+
*~
3+
quicktill-nfc-bridge

85-quicktill-nfc-bridge.rules

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SUBSYSTEM=="usb", ACTION=="add", ATTRS{idVendor}=="072f", ATTRS{idProduct}=="2200", RUN+="/lib/quicktill-nfc-bridge/start-quicktill-nfc-bridge.sh" # ACR122U

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

Makefile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.PHONY: all clean install
2+
3+
libnfcdir=../libnfc-1.7.0
4+
5+
# Places to install to
6+
libdir=lib/quicktill-nfc-bridge/
7+
udevruledir=lib/udev/rules.d/
8+
9+
CFLAGS:=-Wall -I$(libnfcdir)/include/
10+
LDFLAGS:=-L $(libnfcdir)/
11+
12+
all: quicktill-nfc-bridge
13+
14+
clean:
15+
rm -f quicktill-nfc-bridge quicktill-nfc-bridge.o
16+
17+
install: all
18+
install -d $(DESTDIR)/$(libdir)
19+
install -d $(DESTDIR)/$(udevruledir)
20+
install -d $(DESTDIR)/etc/modprobe.d/
21+
install -s quicktill-nfc-bridge $(DESTDIR)/$(libdir)
22+
install start-quicktill-nfc-bridge.sh $(DESTDIR)/$(libdir)
23+
install 85-quicktill-nfc-bridge.rules $(DESTDIR)/$(udevruledir)
24+
install blacklist-quicktill.conf $(DESTDIR)/etc/modprobe.d/
25+
26+
quicktill-nfc-bridge: quicktill-nfc-bridge.o
27+
gcc -o quicktill-nfc-bridge quicktill-nfc-bridge.o \
28+
$(libnfcdir)/libnfc/.libs/libnfc.a -lusb

README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
quicktill-nfc-bridge
2+
====================
3+
4+
This is a quick and dirty interface between libnfc and quicktill, to
5+
convert NFC card taps on an ACR122U NFC reader into user tokens
6+
delivered as UDP packets to localhost:8455. It's intended for use
7+
with Ubuntu 12.04, but might work with later versions as well.
8+
9+
Copying
10+
-------
11+
12+
quicktill-nfc-bridge is Copyright (C) 2014 Stephen Early <sde@individualpubs.co.uk>
13+
14+
It is distributed under the terms of the GNU General Public License
15+
as published by the Free Software Foundation, either version 3
16+
of the License, or (at your option) any later version.
17+
18+
This program is distributed in the hope that it will be useful, but
19+
WITHOUT ANY WARRANTY; without even the implied warranty of
20+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21+
General Public License for more details.
22+
23+
You should have received a copy of the GNU General Public License
24+
along with this program. If not, see [this
25+
link](http://www.gnu.org/licenses/).
26+
27+
Building
28+
--------
29+
30+
Start with this repository as the current working directory. Download
31+
libnfc-1.7.0 from
32+
[code.google.com](https://code.google.com/p/libnfc/downloads/detail?name=libnfc-1.7.0.tar.bz2),
33+
extract it in the parent directory of this repository and build it:
34+
35+
cd ..
36+
wget https://libnfc.googlecode.com/files/libnfc-1.7.0.tar.bz2
37+
tar xjf libnfc-1.7.0.tar.bz2
38+
cd libnfc-1.7.0/
39+
./configure
40+
make
41+
42+
To build quicktill-nfc-bridge, start with this repository as the
43+
current working directory:
44+
45+
make
46+
47+
To build the Debian package:
48+
49+
fakeroot debian/rules binary

blacklist-quicktill.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Ubuntu >12.04 has kernel support for pn533-based NFC readers. We
2+
# want to use user-space support, so blacklist the kernel driver.
3+
blacklist pn533

debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
quicktill-nfc-bridge (1.0) unstable; urgency=low
2+
3+
* Initial Release.
4+
5+
-- Stephen Early <sde@individualpubs.co.uk> Mon, 06 Jan 2014 12:05:16 +0000

debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8

debian/control

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Source: quicktill-nfc-bridge
2+
Section: unknown
3+
Priority: extra
4+
Maintainer: Stephen Early <sde@individualpubs.co.uk>
5+
Build-Depends: debhelper (>= 8.0.0)
6+
Standards-Version: 3.9.4
7+
Homepage: https://github.com/sde1000/quicktill-nfc-bridge
8+
9+
Package: quicktill-nfc-bridge
10+
Architecture: any
11+
Depends: ${shlibs:Depends}, ${misc:Depends}
12+
Description: Convert NFC card taps to quicktill user tokens
13+
quicktill-nfc-bridge converts NFC card taps on an ACR122U NFC card
14+
reader into quicktill user tokens delivered as UDP packets to
15+
localhost:8455.

debian/copyright

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
Upstream-Name: quicktill-nfc-bridge
3+
Source: https://github.com/sde1000/quicktill-nfc-bridge
4+
5+
Files: *
6+
Copyright: 2014 Stephen Early <sde@individualpubs.co.uk>
7+
License: GPL-3.0+
8+
9+
Files: debian/*
10+
Copyright: 2014 Stephen Early <sde@individualpubs.co.uk>
11+
License: GPL-3.0+
12+
13+
License: GPL-3.0+
14+
This program is free software: you can redistribute it and/or modify
15+
it under the terms of the GNU General Public License as published by
16+
the Free Software Foundation, either version 3 of the License, or
17+
(at your option) any later version.
18+
.
19+
This package is distributed in the hope that it will be useful,
20+
but WITHOUT ANY WARRANTY; without even the implied warranty of
21+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22+
GNU General Public License for more details.
23+
.
24+
You should have received a copy of the GNU General Public License
25+
along with this program. If not, see <http://www.gnu.org/licenses/>.
26+
.
27+
On Debian systems, the complete text of the GNU General
28+
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".

0 commit comments

Comments
 (0)