Re: [fpc-pascal] PC/SC

2010-09-01 Thread Johann Glaser
Hi!

Am Mittwoch, den 01.09.2010, 22:55 +0200 schrieb Michael Van Canneyt:
> 
> 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


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] PC/SC

2010-09-01 Thread Michael Van Canneyt



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.


Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] PC/SC

2010-09-01 Thread Johann Glaser
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.

> 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


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] PC/SC

2010-09-01 Thread 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.

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.

On Wed, Sep 1, 2010 at 4:12 PM, Johann Glaser  wrote:
> 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  -  fpc-pas...@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] PC/SC

2010-09-01 Thread 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?
> 
> Is this for linux or windows ?

I'm working on Linux.

Thanks
  Hansi


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] PC/SC

2010-09-01 Thread Michael Van Canneyt



On Wed, 1 Sep 2010, Johann Glaser wrote:


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.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] PC/SC

2010-09-01 Thread 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


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal