Hi!
For a project with wireless chip cards (MiFare) I'm using a reader which is accessed via the PC/SC interface. Did anybody write a Pascal unit to translate the C header files?
Thanks
Hansi

Mailing lists / fpc-pascal / 2010-09
7 messages · 3 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi!
For a project with wireless chip cards (MiFare) I'm using a reader which is accessed via the PC/SC interface. Did anybody write a Pascal unit to translate the C header files?
Thanks
Hansi
Is this for linux or windows ?
Michael.
Hi!
I'm working on Linux.
Thanks
Hansi
Project Jedi has translations for Delphi. I don't know how easily they could be used for Linux and the PC/SC Lite used there, but it could be a helpful start.
If you don't mind me asking, which Mifare reader supports PC/SC? I use both chipcard and Mifare readers, but hadn't seen a PC/SC Mifare reader before.
Jeff.
Hi!
DaWorm wroteProject Jedi has translations for Delphi. I don't know how easily they could be used for Linux and the PC/SC Lite used there, but it could be a helpful start.
Google pointed me to a Delphi component at
http://www.nobbi.com/download/pcsccomp.zip which looks very fine. It includes (modified) versions of some JEDI header translations plus a fine OOP wrapper for PC/SC. But everything is for Windows and I'm unfamiliar with it and with components. So I thought I'd rather ask here for some help.
If you don't mind me asking, which Mifare reader supports PC/SC? I use both chipcard and Mifare readers, but hadn't seen a PC/SC Mifare reader before.
Its an SCM SCL010 reader (really cheap, small and simple, exactly what I was looking for). They offer a proprietary pcsclite driver at their homepage, which simply installs a .so file (and a metadata file) to the driver module directory /usr/lib/pcsc/drivers/. Interestingly the Info.plist file says the driver was LGPL, but their homepage says its proprietary. No source is available. :-(
I've already read the unique serial number from MiFare cards using the "gscriptor" tool in the pcsc-tools package. So, the driver works, PC/SC works, I only need an Pascal interface to PC/SC to start playing. :-)
Thanks
Hansi
I am using this component (heavily improved) but it's geared towards the microsoft API. The Linux API (openSC) has not been translated as far as I know.
Michael.
Hi!
I'm using PCSC-Lite (http://pcsclite.alioth.debian.org/) which is AFAIK a Linux version of the M§ API. At least its API
http://pcsclite.alioth.debian.org/api/group__API.html looks quite similar to what I've seen in this component.
Bye
Hansi