some reality update of the README file
[librfid] / README
1 librfid - low-level RFID access library
2 (C) 2005-2006 by Harald Welte <laforge@gnumonks.org>
3 ======================================================================
4
5 This library intends to provide a reader- and (as much as possible)
6 PICC / tag independent API for RFID applications.
7
8 1. Supported Prodocols:
9
10 At this early stage of implementaition, it offers only ISO 14443-2, ISO 14443-3
11 A and B as well as ISO 14443-4 (T=CL) support.  Other protocols, both open
12 (such as ISO 15693) and proprietary are to be added as soon as I find some
13 more time.
14
15 2. Supported Readers:
16
17 At this time, the Omnikey Cardman 5121 and the OpenPCD readers are supported. 
18
19 2.1 Omnikey Cardman 5121 RFID (http://www.omnikey.de/)
20
21 The cm5121 is a relatively stupid piece of hardware.  Basically a contact-based
22 cm3121 that was enhanced by putting a Philips CL RC632 reader ASIC next to it.
23 There is no RFID protocol implementation on the cm5121, everything is done on
24 the host (PC) software.  Four primitives (read/write byte/fifo) are provided
25 via simple PC_to_RDR_Escape CCID messages.
26
27 2.2 OpenPCD (http://www.openpcd.org/)
28
29 The OpenPCD reader is completely free.  You get the full schematics, the PCB
30 design, the source code to the device firmware (written in C, to be compiled
31 with the free GNU toolchain).
32
33 Also, it has various headers for access to the intermediate signal processing
34 steps.
35
36 This makes it the ideal device to learn and play with RFID, since you don't
37 have any (proprietary) software interfere and puts you in full control of
38 everything.
39
40 2.3 Philips Pegoda
41
42 This reader is not yet supported.
43
44 2.x Further Readers
45
46 Support for more devices shouldn't be too difficult to add, provided the
47 devices are stupid enough.  More sophisticated readers like Integrated
48 Engineering or Philips Pegoda do much of the protocol handling in firmware on a
49 Microcontroller.  This makes them (at least till now) faster, but also of
50 limited use, especially in education and research.
51
52 So if you happen to run into any other dumb RFID readers, especially those
53 based on Philips CL RC622, RC531 and RC632, adding support should be very
54 straightforward.  If you want to contract me for implementing a driver
55 backend, don't hesitate to contact me.
56
57 3. Installation
58
59 In order to run librfid, you need a reader transport backend that provides a
60 PC_to_RDR_Escape function.  The current version of this library offers two backends
61
62 3.1 (new) native CCID backend
63
64 If you add the '--with-ccid' option to the './configure' command, then the new
65 native CCID driver (courtesy of Werner Koch) will be linked into the library.
66 This requires a working libusb with development headers.  
67
68 In order to use the reader, you will need to set the permissions of the
69 respective /proc/bus/usb or /sys/bus/usb files (or run the application as
70 root, if you trust my code, which you shouldn't).
71
72 If you run udev, just use the 'etc/udev/librfid.rules' udev rulefile, which should
73 change the group of the usb device to 'users'.
74
75 3.2 (old) OpenCT backend
76
77 This backend has the advantage that it will allow you to use the contact-based
78 part and the contactless part of the CM5121 simultaneously.  However, it requires
79 a patched version of OpenCT.
80
81 A patch against openct-0.6.7 is available as openct-0.6.7-librfid.patch.
82
83 Please note that while librfid in this configuration _uses_ OpenCT as a
84 lower-layer transport interface, it doesn't actually provide a virtual reader
85 interface to it, i.e. you can't use CT-API/OpenCT/PCSC API's to access RFID
86 transponders.
87
88 4. Testing
89
90 In the 'utils' directory, you will get a 'librfid-tool' binary.  It is very
91 minimalistic, and mainly an example on how to use the librfid api. For an ICAO
92 compliant passport, you may try "--layer2 iso14443a --protocol tcl".  For a
93 mifare ultralight transponder, "--layer2 iso14443a --protocol
94 mifare-ultralight" will give you a full dump of the transponder.
95
96 -- Harald Welte <laforge@gnumonks.org>
97