Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2010-09

PC/SC

7 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Johann Glaser

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

Michael Van Canneyt
to Johann Glaser
Johann Glaser wrote 5 lines
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?

Is this for linux or windows ?

Michael.

Johann Glaser
to Michael Van Canneyt

Hi!

Show quoted text 5 lines
> 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? Is this for linux or windows ?

I'm working on Linux.

Thanks
Hansi

DaWorm
to Johann Glaser

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.

Johann Glaser wrote 18 lines
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? > > Is this for linux or windows ? I'm working on Linux. Thanks  Hansi _______________________________________________ fpc-pascal maillist  -   http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Johann Glaser
to DaWorm

Hi!

DaWorm wrote
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.

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

Michael Van Canneyt
to Johann Glaser
Johann Glaser wrote 13 lines
Hi! Am Mittwoch, den 01.09.2010, 16:27 -0400 schrieb DaWorm: > 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. 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.

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.

Johann Glaser
to Michael Van Canneyt

Hi!

Michael Van Canneyt wrote 20 lines
On Wed, 1 Sep 2010, Johann Glaser wrote: > Hi! > > Am Mittwoch, den 01.09.2010, 16:27 -0400 schrieb DaWorm: >> 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. > > 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. 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.

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