On Feb 8, 2008 11:38 PM, chrysn <[EMAIL PROTECTED]> wrote:
> i can, by the way, provide you with another id, in case you accept
> records aquired by experiment (just tried the gsm adapter that came with
> my reader):
> 3F 3D 11 00 80 67 28 50 04 02 20 00 00 83 8E 90 00 matches a gsm sim
> card of the austrian provider A1

Added to the list. Thanks

> for the same program, there is another issue i'd need your help:
> is there a way to determine a characteristic of a reader that i can use
> to find a matching device in the file system?
> for example, my reader identifies as 'SCM SCR 335 (21120608436358) 00
> 00', but i'd need to get a kind of device i can use for matching against
> hal (eg /sys/devices/pci0000:00/0000:00:03.0/usb2/2-1/2-1:1.0). the
> closest thing i get up to now is the usb.serial, which is a part of the
> readerName i get, but matching against that looks very fuzzy and,
> moreover, would only work for usb readers.

PCSC-lite does not announce reader or card events on DBus. The SVN
version of pcsc-lite [1] now uses HAL to detect reader connection and
deconnection. I guess pcscd could also send a notification using HAL
that when a reader or card state change. Help is needed since I do not
yet know all HAL/DBus details.

> if this can only be done in C instead of python, that would be ok, as
> i'm thinking of migrating that anyway.

You are free to use your preferred language. I think Python is fine
and should be easier to use.

pcsc_hal_interface should be integrated inside pcscd and pcscd is in C, so...

Some remarks:
- you are using pycsc. You mat have a look at pyscard [2]. It is also
a PC/SC wrapper for Python but much more advanced. And a debian/
directory is included to generate a Debian (or Ubuntu) package.
- you should use the complete GPLv3 text instead of just "GPL3 or
higher" in LICENSE
- you should wrap the README file at 72 columns per line

You are really welcome to propose patches for pcsc-lite with a better
HAL integration.

One fun and simple application would be to start a screen saver when a
card is removed and stop it when a card is inserted. It is not secure
at all and pam_pkcs11 provides a better solution but is more complex.

Bye,

[1] http://ludovic.rousseau.free.fr/softwares/pcsc-lite/
[2] http://pyscard.sourceforge.net/

-- 
 Dr. Ludovic Rousseau
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to