Hi Juan, sorry for the late reply.
Am Sonntag, 9. April 2006 08:18 schrieb Juan Carlos Borrás: > I've got the wrapper code for my smart card reader working. great! > I have also coded and assigned some calls to ifd_driver_ops so I recompile > and follow the installation instructions but openct-tool -list does not show > my card reader (which is plugged and can be seen in the usb bus). > ifdhandler -h shows that my driver is available. > Could someone please give me a hint or two on how to track where the > problem is? ok, so the usual code is: a) a new file with your driver ops. b) a new function in internal.h to register your driver. c) calling that function in init.c with a-c you can manualy start your driver (call ifdhandler, specify driver and device and maybe debug level and -H for hotplug devices) d) usb driver only: edit openct.conf, add the ids of your device. also edit openct.usermap (linux hotplug map file), Info.plist (for pcscd), and openct.udev / openct.hald (new hotplug replacement, still not working ok). only openct.conf is important, once that is done you can start the init script or "openct-control init" to have openct scan all devices and start an ifdhandler for each device. once that works, try hotplugging: start the init script, remove your device, check "pidof ifdhandler" (-> process gone), insert your device, check agin (-> new ifdhandler process). or use openct-tool list instead of pidof. if you run into any problem, please let me know so I can try helping. hmm, maybe we should add this to the wiki as developer info? Andreas _______________________________________________ opensc-devel mailing list [email protected] http://www.opensc-project.org/mailman/listinfo/opensc-devel
