Discussion:
SLE 4428: read & write
(too old to reply)
Stefano 'HappyMan'
2004-12-31 22:53:33 UTC
Permalink
Hi all,
do you know how to read and write data in a SLE 4428 card ? I have a
gemplus GemPC410 reader, I know that for memory card I don't have to use
the PC/SC layer but I don't find sample for Windows (C, C++, VB) for the
access to this memory card. Also the datasheet for this card by siemens is
not so clear and the GPB library of Gemplus is for Linux...

Thanks

Stefano "HappyMan" (Lake Maggiore - Italy)
--
The Personal Framework for Object Oriented Windows Development (Win32)
http://www.sgr.info
Email happyman69 (at) libero.it
Brad Thomas
2005-01-04 00:10:50 UTC
Permalink
Stafano

I have only just scratched the surface with writing to an SLE4428 card
with PC/SC. I did successfully open the card with SCARD_SHARED_DIRECT,
and then had to call ScardControl with IOCTL_SMARTCARD_SET_CARD_TYPE in
the dwControlCode parameter, and 0x5 (5 decimal) as the card type value
in the pvInBuffer byte array parameter (to set the type of card)

That's about as far as I've gone, but I didn't get any returned errors,
so I assume that I had connected to the card correctly. My PC (Win2K)
went to 100% CPU for minutes at a time, but I suspect that had more to
do with my experimentation than anything else (sending wrong
commands/data etc)

I haven't continued with it because I decided to use the ACOS2 CPU card
from ACS instead of the SLE44xx series - I'm getting a VB6 class module
together that reads/writes the ACOS2 card (see it on The Code Project
sometime in the next week or so), and really want to add support for the
SLE cards, so I'll revisit it when I get the rest finished.

Regards

Brad (Sunny Queensland, Australia)
Post by Stefano 'HappyMan'
Hi all,
do you know how to read and write data in a SLE 4428 card ? I have a
gemplus GemPC410 reader, I know that for memory card I don't have to use
the PC/SC layer but I don't find sample for Windows (C, C++, VB) for the
access to this memory card. Also the datasheet for this card by siemens is
not so clear and the GPB library of Gemplus is for Linux...
Thanks
Stefano "HappyMan" (Lake Maggiore - Italy)
Stefano 'HappyMan'
2005-01-04 15:36:28 UTC
Permalink
Post by Brad Thomas
Stafano
I have only just scratched the surface with writing to an SLE4428 card
with PC/SC. I did successfully open the card with SCARD_SHARED_DIRECT,
and then had to call ScardControl with IOCTL_SMARTCARD_SET_CARD_TYPE in
the dwControlCode parameter, and 0x5 (5 decimal) as the card type value
in the pvInBuffer byte array parameter (to set the type of card)
That's about as far as I've gone, but I didn't get any returned errors,
so I assume that I had connected to the card correctly. My PC (Win2K)
went to 100% CPU for minutes at a time, but I suspect that had more to
do with my experimentation than anything else (sending wrong
commands/data etc)
I haven't continued with it because I decided to use the ACOS2 CPU card
from ACS instead of the SLE44xx series - I'm getting a VB6 class module
together that reads/writes the ACOS2 card (see it on The Code Project
sometime in the next week or so), and really want to add support for the
SLE cards, so I'll revisit it when I get the rest finished.
Thanks for the info.

Reading almost all (!) the posts using groups.google I've arrived to a
similar result, this is my code:
SCardEstablishContext(SCARD_SCOPE_SYSTEM,0,0,&hContext);
SCardConnect(hContext,"Gemplus GemPC410
0",SCARD_SHARE_DIRECT,0,&hCard,&ActiveProtocol);

hCard is a valid handle.

I don't know and I don't find the codes for the SCardControl function with
the Gemplus reader for memory cards so I stopped my tests.

I decided to write to the Gemplus support, this is the answer (good service
with a very fast answer !)

"The GempPC Twin can read SLE 4428 memory cards but you have to use special
GCS.dll library created by Gemplus. Unfortunately, the GemPC 410 has a
older version of the chipset and doesn't support this library.
Please see the attachment. You will see the GemCorePro reference manual,
library ,test program , example in VB how to use memory cards."

I was going to change the reader with a Gem Twin for the final version of
my project, I will anticipate the purchase.

Thanks

Stefano "HappyMan" (Lake Maggiore - Italy)
--
The Personal Framework for Object Oriented Windows Development (Win32)
http://www.sgr.info
Email happyman69 (at) libero.it
Loading...