Hi,
I'm trying to understand how to write a smart card driver for a Schlumberger 72v2, i have already downloaded the developer kit, and i know i must start with the idhandler skeleton, but i wanna know how the kernel calls a smart card driver, or a any device driver for that matter?. Thanks in advance.


First you want write a "smart card reader driver" and not a "smart card driver".

Then kernel never calls an "IFDHandler" also called sometimes "reader driver". The call "driver" is an abuse of language.
The good names are "IFDHandler" or "PC/SC Lite Driver".
Follow you can see the architecture of PC/SC Lite.
The kernel doesn't call an IFDHandler. On the other hand the IFDHandler calls the kernel services throught the API (USB or serial or PCMCIA, ... ). Thus the IFDHandler is only called by the PC/SC Lite Daemon
I hope this may help you to design your IFDHandler.


              +-------------+   +-------------+
              |Application A|   |Application B|
              +-------------+   +-------------+


+---------------------------+ | PC/SC Lite Daemon | +---------------------------+


+----------+ +------------+ |IFDHandler| | IFDHandler | | for USB | | for serial | | reader | | reader | +----------+ +------------+

USER LAND
------------------------------------------------------
KERNEL LAND      +---------+    +------------+
                 | USB API |    | Serial API |
                 +---------+    +------------+

                 +---------------------------+
                 |         The KERNEL        |
                 +---------------------------+

------------------------------------------------------
HARDWARE
                  +--------+      +--------+
                  |  USB   |      | Serial |
                  | reader |      | reader |
                  +--------+      +--------+

Best regards,

--
Damien Sauveron
----------------------------------------
LaBRI, Universit� Bordeaux 1
351, cours de la Lib�ration
33405 Talence cedex
France
T�l. On demand - Fax. +33 5 40 00 66 69
----------------------------------------



_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.musclecard.com/mailman/listinfo/muscle

Reply via email to