/[pcsclite]/trunk/Drivers/ccid/README
ViewVC logotype

Diff of /trunk/Drivers/ccid/README

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 425 by rousseau, Wed Sep 10 16:15:06 2003 UTC revision 1326 by rousseau, Sun Feb 20 14:07:40 2005 UTC
# Line 6  USB CCID IFD Handler Line 6  USB CCID IFD Handler
6  specifications from the USB working group.  specifications from the USB working group.
7    
8    
9  Author:  Authors:
10  =======  ========
11    
12  - Ludovic Rousseau <ludovic.rousseau@free.fr>  - Ludovic Rousseau <ludovic.rousseau@free.fr>
13    - Carlos Prados for the PPS and ATR parsing code (taken from his
14      towitoto driver) in towitoko/ directory.
15    - Olaf Kirch for the T=1 TPDU code (from the OpenCT package) in openct/
16      directory. I (Ludovic Rousseau) greatly improved this code.
17    
18    
19  Supported CCID readers:  Supported CCID readers:
20  =======================  =======================
21    
22  (in alphabetical order)  (in alphabetical order)
23    - Advanced Card Systems ACR 38 [16]
24      old versions of this reader have a bug: the reader do timeout when a
25      special USB frame is sent from the reader. If the frame size if a
26      multiple of wMaxPacketSize the communication is stopped.
27    - Cherry XX33 keyboard [?]
28    - Dell keyboard SK-3106 [?]
29    - Dell smart card reader keyboard [?]
30  - Gemplus GemPC 433 SL [2]  - Gemplus GemPC 433 SL [2]
31  - Gemplus GemPC Key [3]  - Gemplus GemPC Key [3]
32  - Gemplus GemPC Twin [4]  - Gemplus GemPC Twin [4]
33    - Kobil KAAN Base [19]
34    - Kobil KAAN Advanced [20]
35  - OmniKey CardMan 3121 [5]  - OmniKey CardMan 3121 [5]
36  - SCM Micro SCR 331 [6]  - SCM Micro SCR 331 [6]
37      You shall upgrade the firmware [17] using version 5.18 or later.
38    - SCM Micro SCR 331-DI [11]
39      You shall upgrade the firmware [17] using version 6.22 or later.
40  - SCM Micro SCR 335 [7]  - SCM Micro SCR 335 [7]
41      The firmware of this reader can't be upgraded so be sure to buy a
42      recent model with firmware 5.14 or later
43    - SCM Micro SPR 532 [9]
44      You shall contact Torsten Maykranz <tmaykranz@scmmicro.de> to get a
45      firmware upgrade.
46    
47    
48    Should work but untested by me:
49    ===============================
50    
51    I would like to get these readers to perform test and validation and
52    move them in the supported list above. If you are one of the
53    manufacturers, please, contact me.
54    
55    - Cherry XX44 keyboard (SmartBoard G83-6744) [18]
56    - ActivCard USB reader 2.0 [10]
57    - C3PO LTC32 [13]
58    - SCM Micro SCR 333 [15]
59    - Silitek SK-3105 keyboard [12] or C3PO TLTC2USB [14]
60    
61    
62  Unsupported CCID readers:  Unsupported or partly supported CCID readers:
63  =========================  =============================================
64    
65  - LTC31 from C3PO [8]  - C3PO LTC31 [8]
66    Communication errors between the card and the reader. Some cards can't      The reader works fine with Linux kernel 2.4 but does not with Linux
67    send an ATR.  I have the exact same symptoms with the Windows driver      kernel 2.6. The ioctl() syscall returns EINVAL (Invalid argument)
   provided by C3PO.  
68    
69    
70  Supported operating systems:  Supported operating systems:
# Line 41  Supported operating systems: Line 75  Supported operating systems:
75    to libusb)    to libusb)
76    
77    
78    Debug informations:
79    ===================
80    
81    The driver uses the debug function provided by pcscd. So if pcscd sends
82    its debug to stdout (pcscd --foreground) then the CCID will also send
83    its debug to stdout. If pcscd sends its debug to syslog (by default)
84    then the CCID will also send its debug to syslog.
85    
86    You can change the debug level using the Info.plist configuraion file.
87    The Info.plist is installed, by default, in
88    /usr/local/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
89    
90    The debug level is set in the ifdLogLevel field. It is a binary OR
91    combinaison of 4 different levels.
92    - 1: critical: important error messages
93    - 2: info:     informative messages like what reader was detected
94    - 4: periodic: periodic info when pcscd test if a card is present (every
95                   1/10 of a second)
96    - 8: comm:     a dump of all the bytes exchanged between the host and the
97                   reader
98    
99    By default the debug level is set to 3 (1 + 2) and correspond to the
100    critical and info levels.
101    
102    You have to restart the driver so it read the configuration file again
103    and use the new debug level value.  To restart the driver you just need
104    to unplug all your CCID readers so the the driver is unloaded and then
105    replug your readers. You can also restart pcscd.
106    
107    
108  Known problems:  Known problems:
109  ===============  ===============
110    
111  All platforms  MacOSX libusb
112      readers enumeration  """""""""""""
113      """""""""""""""""""      There is a bug in libusb that crash the libusb library when you
114        You may have wrong reader identification if you connect two or      unplug a reader and replug it in another USB socket.  So if you
115        more reader at the exact same time.      unplug a reader replug it in the same USB socket.
116    
117        The daemon pcscd and the CCID driver do not list connected readers      see http://sourceforge.net/tracker/index.php?func=detail&aid=886778&group_id=1674&atid=101674
       in the same order. The driver has no way to know which reader has  
       been detected as a new reader by pcscd.  
   
       So if you plug two readers at the same time (for example if you  
       start pcscd with two readers connected or if you plug a USB hub  
       with two readers on the hub) you may have this (with two readers  
       foo and bar):  
       - pcscd scans the USB bus and finds a new CCID reader foo and  
         calls the driver  
       - the CCID driver scan the USB bus and finds a new different  
         reader bar  
       - pcscd continues scanning the USB bus and finds the second reader  
         bar and calls the driver  
       - the CCID driver scan the USB bus and finds an unused reader foo.  
   
         Now the reader foo will be called bar by pcscd and bar will be  
         called foo. This may not be a problem if the two readers have  
         the same name. But it is strange to insert a card in the  
         physical reader foo and see pcscd detect the card insertion in  
         the reader he calls bar.  
   
         The solution is to use IFDHCreateChannelByName() instead of  
         IFDHCreateChannel() and specify the USB device to use. But pcscd  
         does not implement IFDHCreateChannelByName() yet. Maybe in the  
         future.  
   
         Another solution is to plug readers one after the other and not  
         at the same time.  
   
 MacOS X/Darwin  
     hotplug  
     """""""  
       Due to libusb work in progress the driver may crash on a reader  
       insertion after a few insert/remove actions.  
       So if your reader is always connected you should not have  
       problems.  
       A new version of libusb should fix this bug  
   
 *BSD  
     libusb  
     """"""  
       The libusb does not yet support USB interrupt endpoints. You will  
       notice that the driver will stop working as soon as you insert a  
       card in the reader.  
       A new version of libusb should fix this bug.  
118    
119    
120  Licence:  Licence:
# Line 119  Inc., 59 Temple Place, Suite 330, Boston Line 138  Inc., 59 Temple Place, Suite 330, Boston
138  History:  History:
139  ========  ========
140    
141    0.9.2 - 15 August 2004, Ludovic Rousseau
142        - T=1 TPDU code:
143          . the work on T=1 TPDU code was possible thanks to Gemplus
144            validation team who helped me test, debug and bring the code to
145            an EMV validation level. Thanks to Jérôme, Jean-Yves, Xavier and
146            the Gemplus readers department
147          . error code was not checked correctly
148          . avoid a (nearly) infinite loop when resynch are needed.
149          . correctly initialise an internal value to allow more than one
150            reader to work
151        - multi-slots readers
152          . add support for multi-slots readers. The only one I have is a
153            SCM Micro SCR 331-DI with a contact and a contactless interface.
154            The contactless interface may or may not work for you since the
155            reader uses proprietary (undocumented) commands.
156        - GemPC Twin serial reader
157          . perform a command (get the reader firmware) to be sure a GemPC
158            Twin (serial or pcmcia) reader is connected
159          . use a dynamic timeout when reading the serial port.
160            The first timeout used when detecting the reader is 2 seconds to
161            not wait too long if no reader is connected. Later timeouts are
162            set to 1 minute to allow long time APDU.
163        - use `pkg-config libpcsclite --cflags` to locate the pcsc-lite
164          header files
165        - use `pkg-config --print-errors --atleast-version=1.2.9-beta5 libpcsclite`
166          to test the pcsc-lite version
167        - code improvements thanks to the splint tool (http://www.splint.org/)
168    
169    0.9.1 - 1 July 2004, Ludovic Rousseau
170        - I forgot to define IFD_PARITY_ERROR in a .h file
171    
172    0.9.0 - 1 July 2004, Ludovic Rousseau
173        - The T=1 TPDU automata from Carlos Prados' Towitoko driver is very
174          limited and do not support error management mechanisms.
175          I then used the T=1 TPDU automata from OpenCT (OpenSC project).
176          This automata is much more powerful but still lacks a lot of error
177          management code.
178          I then added all the needed code to reach the quality level
179          requested by the EMV standard.
180        - add support for new readers:
181          . Advanced Card Systems ACR 38
182          . Cherry XX33
183          . Dell keyboard SK-3106
184          . Dell smart card reader keyboard
185          . SCR 333
186        - add support of multi procotol cards (T=0 and T=1)
187        - the debug level is now dynamic and set in the Info.plist file (no
188          need to recompile the driver any more)
189        - add support for the libusb naming scheme: usb:%04x/%04x:libusb:%s
190        - INSTALL: add a "configuring the driver for the serial reader
191          (GemPC Twin)" part
192        - use `pkg-config libpcsclite --variable=usbdropdir` so you do not
193          have to use --enable-usbdropdir=DIR or --enable-ccidtwindir=DIR
194          even if pcscd does not use the default /usr/local/pcsc/drivers
195        - add support of IOCTL_SMARTCARD_VENDOR_IFD_EXCHANGE and
196          IOCTL_SMARTCARD_VENDOR_VERIFY_PIN in IFDHControl()
197        - read ifdDriverOptions from Info.plist to limit the use of
198          IOCTL_SMARTCARD_VENDOR_IFD_EXCHANGE (idea from Peter Williams)
199        - provide an example of use of SCardControl()
200          IOCTL_SMARTCARD_VENDOR_IFD_EXCHANGE and
201          IOCTL_SMARTCARD_VENDOR_VERIFY_PIN in example/
202        - add a --enable-pcsclite option (default to yes) so that the driver
203          can be compiled for a different framework (one needing
204          tokenparser.l like Solaris)
205        - Reset action is power off and power on, not just power on
206        - use the include files from pcsc-lite
207        - add a mechanism to allow power on at 1.8V, 3V and then 5V as
208          specified by ISO 7816. We still use 5V for now to avoid problems
209          with non ISO compliant cards
210    
211    0.4.1 - 14 February 2004, Ludovic Rousseau
212        - distribute missing files readers/supported_readers.txt and
213          src/create_Info_plist.pl
214          'make install' failed because of this.
215    
216    0.4.0 - 13 February 2004, Ludovic Rousseau
217        - support of T=1 with TPDU readers. A lot of the T=1 code comes from
218          Carlos Prados towitoko driver.
219          My code is GNU GPL, his code is GNU LGPL so the global driver is
220          GNU GPL
221        - PPS negotiation if the reader does not do it automatically
222        - add support for the Silitek SK-3105 keyboard. It's a USB device
223          with multiple interfaces
224        - use the create_Info_plist.pl script to generate the installed
225          Info.plist from an Info.plist template and a list of supported
226          readers. The Info.plist was too "complex" to maintain by hand
227          since it now contains 11 entries
228        - add support of IFDHCreateChannelByName to avoid wrong reader
229          enumeration. This is not complete if you have multiple _identical_
230          readers. You need to use a > 1.2.0 pcsc-lite version (not yet
231          released at that time)
232        - build but do not install the serial ccidtwin driver by default
233          since it is useless on computers without a serial port or without
234          this reader for example.
235        - read and write timeouts are not symmetric. write timout can be
236          shorter since the reader and card is not supposed to do anything
237          before receiving (write) a command
238        - do not try to find usb.h and other libusb files if
239          --disable-libusb is used. Needed if you only want to build the
240          serial driver.  Thanks to Niki Waibel for the patch
241        - add a --enable-ccidtwindir argument to ./configure to specify the
242          serial GemPC Twin installation directory
243        - debug and code improvements and simplifications
244    
245    0.3.2 - 4 November 2003, Ludovic Rousseau
246        - src/commands.c: correct a stupid bug that occurs with an APDU with
247          2 bytes response.
248        - Info.plist: add SPR 532 in list of supported readers
249        - parse.c: do not exit if the InterfaceClass is 0xFF (proprietary).
250          It is the case with old readers manufactured before the final
251          release of the CCID specs.
252        - move LTC31 reader from unsupported to supported reader list. It
253          was my f ault since in used odd INS byte in my test applet and odd
254          INS bytes are forbidden by ISO 7816-4 ch. 5.4.2 Instruction byte.
255          Thanks to Josep Moné s Teixidor for pointing the problem.
256        - src/commands.c: comment out the automatic GET RESPONSE part. I
257          don't think it should be in the driver. Maybe in pcscd instead?
258    
259    0.3.1 - 23 September 2003, Ludovic Rouseau
260        - add --enable-multi-thread (enabled by default) for thread safe
261          support an APDU multiplexing. You will need pcsc-lite-1.2.0-rc3 or
262          above to use this feature.
263        - add --enable-libusb=PATH option is your libusb is not installed in
264          /usr or /usr/local
265        - honor DESTDIR in install rules (closes [ #300110 ]). Thanks to
266          Ville Skyttä for the patch.
267        - src/ccid.c: do not switch the GemPC Key and GemPC Twin in APDU
268          mode since it also swicth in EMV mode and may not work with non
269          EMV cards
270        - src/ccid_serial.c: complete reimplementation of the Twin serial
271          protocol using a finite state automata (code much simpler)
272    
273  0.3.0 - 10 September 2003, Ludovic Rousseau  0.3.0 - 10 September 2003, Ludovic Rousseau
274      - support of GemPC Twin connected to a serial port. Thanks to Niki      - support of GemPC Twin connected to a serial port. Thanks to Niki
275        W. Waibel for a working prototype.        W. Waibel for a working prototype.
# Line 152  Bibliography: Line 303  Bibliography:
303  [5] http://www.omnikey.com/en/produkt_details.php3?produkt=1&variante=47  [5] http://www.omnikey.com/en/produkt_details.php3?produkt=1&variante=47
304  [6] http://www.scmmicro.com/security/SCR331.html  [6] http://www.scmmicro.com/security/SCR331.html
305  [7] http://www.scmmicro.com/security/SCR335.html  [7] http://www.scmmicro.com/security/SCR335.html
306  [8] http://www.c3po.es/pcsc.htm  [8] http://www.c3po.es/ltc31.html
307    [9] http://www.scmmicro.com/security/SPR532.html
308    [10] http://www.activcard.com/products/usb_reader.html
309    [11] http://www.scmmicro.com/security/SCR331-DI.html
310    [12] http://www.silitek.com/prod/getProduct.do?xml_id=4_2&menu_id=4_2_8&cid=1_8_5
311    [13] http://www.c3po.es/ltc32.html
312    [14] http://www.c3po.es/tltc2usb.html
313    [15] http://www.scmmicro.com/security/SCR333.html
314    [16] http://www.acs.com.hk/Product_Readers.asp?productID=59&PCate=Products_PC_Linked_SmartCard_Readers
315    [17] http://www.scmmicro.com/support/pcs_product_drivers.html
316    [18] http://www.cherrycorp.com/english/advanced-line/advanced-line_smartboard_g83-6744.htm
317    [19] http://www.kobil.com/e/products/smartcard/kaan-base.php
318    [20] http://www.kobil.com/e/products/smartcard/kaan-advanced.php
319    
320  $Id$  $Id$
321    

Legend:
Removed from v.425  
changed lines
  Added in v.1326

  ViewVC Help
Powered by ViewVC 1.1.5