I will contact them again, maybe they don't know how their devices are...
I am again trying to get your GemCore based PC/SC reader driver working. I
am not sure if it is, it looks like it is. Running pcscd I am obtaining
00000000 debuglog.c:230:DebugLogSetLevel() debug level=debug
00001203 debuglog.c:259:DebugLogSetCategory() Debug options: APDU
00012529 readerfactory.c:1024:RFInitializeReader() Attempting startup of
GemPC410 00 00 using /VaniOs/ifd_handler/libGemPC410.so.1.0.5
00003255 readerfactory.c:877:RFBindFunctions() Loading IFD Handler 3.0
00002030 ifdhandler.c:51:IFDHCreateChannelByName() lun: 0, device:
/dev/ttyS2
00000922 gbpserial.c:328:OpenGBP() Lun: 0, device: /dev/ttyS2
00001274 gbpserial.c:514:OpenGBP() Serial port baudrate already set to 38400
(3)
00000516 GCCmds.c:407:GCCmdSetMode()
00000785 -> 000000 42 00 03 01 00 01 41
00013528 <- 000000 24 92 00 B6
00000641 gbpserial.c:615:ExplainGBP() NAD: gemcore to host
00000480 gbpserial.c:650:ExplainGBP() PCB: R-block S=1, EDC error=0,
another error=1
00000502 gbpserial.c:674:ExplainGBP() LEN: 00 bytes
00000748 gbpserial.c:278:ReadGBP() PCB error
00000632 GCGBPTransport.c:151:GCSendCommand() resent sequence n�1
00000849 -> 000000 42 40 03 01 00 01 01
00006116 <- 000000 24 40 01 01 64
00000675 GCCmds.c:416 GCCmdSetMode Unknown GemCore command
00000480 gbpserial.c:520:OpenGBP() GCCmdSetMode success (4.a)
00000719 GCCmds.c:328:GCCmdGetOSVersion()
00000655 -> 000000 42 00 05 22 05 3F E0 10 AF
00017611 <- 000000 24 00 11 00 47 65 6D 43 6F 72 65 2D 52 31 2E 34 34 2D 47
48 03
00000600 GemPC410Utils.c:42:OpenGemPC410ByName() OS string: GemCore-R1.44-GH
00000525 GCCmds.c:407:GCCmdSetMode()
00000827 -> 000000 42 40 03 01 00 01 01
00007903 <- 000000 24 40 01 01 64
00000602 GCCmds.c:416 GCCmdSetMode Unknown GemCore command
00000535 ifdhandler.c:184:IFDHGetCapabilities() lun: 0, tag: FB0
00000755 readerfactory.c:249:RFAddReader() Using the pcscd polling thread
00000573 ifdhandler.c:585:IFDHICCPresence() lun: 0
00000495 GCCmds.c:389:GCCmdCardStatus()
00000524 -> 000000 42 00 01 17 54
00016574 <- 000000 24 00 07 00 04 02 00 00 00 00 25
00000635 ifdhandler.c:643:IFDHICCPresence() Card present, just inserted
00001571 ifdhandler.c:585:IFDHICCPresence() lun: 0
00000523 GCCmds.c:389:GCCmdCardStatus()
00000530 -> 000000 42 40 01 17 14
00016749 <- 000000 24 40 07 00 04 02 00 00 00 00 65
00000637 ifdhandler.c:643:IFDHICCPresence() Card present, just inserted
00000536 ifdhandler.c:585:IFDHICCPresence() lun: 0
00000490 GCCmds.c:389:GCCmdCardStatus()
00000827 -> 000000 42 00 01 17 54
00017517 <- 000000 24 00 07 00 04 02 00 00 00 00 25
00000641 ifdhandler.c:643:IFDHICCPresence() Card present, just inserted
00000535 ifdhandler.c:326:IFDHPowerICC() lun: 0
00000756 GCCmds.c:244:GCCmdPowerUp()
00000614 -> 000000 42 40 02 12 13 01
00067553 <- 000000 24 40 13 00 3B 7D 95 00 00 80 31 80 65 B0 83 02 04 7E 83
00 90 00 A8
00000860 Card ATR: 3B 7D 95 00 00 80 31 80 65 B0 83 02 04 7E 83 00 90 00
00001316 ifdhandler.c:585:IFDHICCPresence() lun: 0
00000485 GCCmds.c:389:GCCmdCardStatus()
00000530 -> 000000 42 00 01 17 54
00016712 <- 000000 24 00 07 00 07 02 11 00 0A 00 3D
00000633 ifdhandler.c:603:IFDHICCPresence() Card present and powered
00000626 ifdhandler.c:184:IFDHGetCapabilities() lun: 0, tag: FAE
00000773 pcscdaemon.c:512:main() pcsc-lite 1.5.5 daemon ready.
00008807 hotplug_linux.c:186:HPReadBundleValues() No bundle files in pcsc
drivers directory: /VaniOs/pcsc/pcsc/drivers
00000690 hotplug_linux.c:187:HPReadBundleValues() Disabling USB support for
pcscd
00398250 ifdhandler.c:585:IFDHICCPresence() lun: 0
00000603 GCCmds.c:389:GCCmdCardStatus()
00000793 -> 000000 42 40 01 17 14
00008819 <- 000000 24 40 07 00 07 02 11 00 0A 00 7D
00000632 ifdhandler.c:603:IFDHICCPresence() Card present and powered
00409158 ifdhandler.c:585:IFDHICCPresence() lun: 0
00000607 GCCmds.c:389:GCCmdCardStatus()
00000802 -> 000000 42 00 01 17 54
00008807 <- 000000 24 00 07 00 07 02 11 00 0A 00 3D
00000593 ifdhandler.c:603:IFDHICCPresence() Card present and powered
00409185 ifdhandler.c:585:IFDHICCPresence() lun: 0
00000602 GCCmds.c:389:GCCmdCardStatus()
00000542 -> 000000 42 40 01 17 14
00009077 <- 000000 24 40 07 00 07 02 11 00 0A 00 7D
00000632 ifdhandler.c:603:IFDHICCPresence() Card present and powered
^C00358819 pcscdaemon.c:588:signal_trap() Preparing for suicide
00050352 ifdhandler.c:585:IFDHICCPresence() lun: 0
00000200 GCCmds.c:389:GCCmdCardStatus()
00000220 -> 000000 42 00 01 17 54
00009782 <- 000000 24 00 07 00 07 02 11 00 0A 00 3D
00000213 ifdhandler.c:603:IFDHICCPresence() Card present and powered
00349622 hotplug_linux.c:369:HPEstablishUSBNotifications() Hotplug stopped
00059965 ifdhandler.c:585:IFDHICCPresence() lun: 0
00000201 GCCmds.c:389:GCCmdCardStatus()
00000224 -> 000000 42 40 01 17 14
00009769 <- 000000 24 40 07 00 07 02 11 00 0A 00 7D
00000218 ifdhandler.c:603:IFDHICCPresence() Card present and powered
00409583 ifdhandler.c:585:IFDHICCPresence() lun: 0
00000206 GCCmds.c:389:GCCmdCardStatus()
00000224 -> 000000 42 00 01 17 54
00009772 <- 000000 24 00 07 00 07 02 11 00 0A 00 3D
00000217 ifdhandler.c:603:IFDHICCPresence() Card present and powered
00109576 readerfactory.c:1270:RFCleanupReaders() entering cleaning function
00000216 readerfactory.c:1279:RFCleanupReaders() Stopping reader: GemPC410
00 00
00000193 eventhandler.c:131:EHDestroyEventHandler() Stomping thread.
00000178 ifdhandler.c:184:IFDHGetCapabilities() lun: 0, tag: FB1
00000172 eventhandler.c:144:EHDestroyEventHandler() Waiting polling thread
00299408 eventhandler.c:479:EHStatusHandlerThread() Die
00000477 eventhandler.c:168:EHDestroyEventHandler() Thread stomped.
00000193 readerfactory.c:1065:RFUnInitializeReader() Attempting shutdown of
GemPC410 00 00.
00000224 ifdhandler.c:149:IFDHCloseChannel() lun: 0
00000203 GCCmds.c:211:GCCmdPowerDown()
00000231 -> 000000 42 40 01 11 12
00008649 <- 000000 24 40 01 00 65
00000468 readerfactory.c:914:RFUnloadReader() Unloading reader driver.
00000726 pcscdaemon.c:537:at_exit() cleaning /var/run/pcscd
So it looks like it is getting the correct chip OS version, and it is
powering up and down the inserted card. However, I have this running as a
demon, and I execute
SCARDCONTEXT hContext;
LONG rv;
if (SCARD_S_SUCCESS == SCardEstablishContext(SCARD_SCOPE_SYSTEM, NULL,
NULL, &hContext)) {
DWORD dwReaders;
LPSTR mszReaders;
rv = SCardListReaders(hContext, NULL, NULL, &dwReaders);
if (rv == SCARD_S_SUCCESS) {
mszReaders = (LPSTR)malloc(sizeof(char)*dwReaders*1024);
rv = SCardListReaders(hContext, NULL, mszReaders, &dwReaders);
printf("Lectores: %s\n", mszReaders);
} else if (rv == SCARD_E_INSUFFICIENT_BUFFER) {
printf("Error en el SCardListReaders
SCARD_E_INSUFFICIENT_BUFFER\n");
} else if (rv == SCARD_E_INVALID_HANDLE) {
printf("Error en el SCardListReaders SCARD_E_INVALID_HANDLE\n");
} else if (rv == SCARD_E_NO_READERS_AVAILABLE) {
printf("Error en el SCardListReaders
SCARD_E_NO_READERS_AVAILABLE. Num lectores %i\n", dwReaders);
} else {
printf("Error en el SCardListReaders %lx\n", rv);
}
if (SCardReleaseContext(hContext) != SCARD_S_SUCCESS) {
printf("Error en el release\n");
} else {
printf("Todo bien\n");
}
} else {
printf("Error en el establish\n");
}
And I am always obtaining SCARD_E_NO_READERS_AVAILABLE, but dwReaders is 1.
How is this possible? If pcscd is running and it has even detected the
card...
Thank you again for you help, this integration is being a pain.
2009/12/15 Ludovic Rousseau <[email protected]>
> 2009/12/15 Ruben Lagar <[email protected]>:
> > Ok, I'm sorry for the missinformation in my first email.
> >
> > It was Gemalto support who advised me to use the
> > http://pcsclite.alioth.debian.org/ccid.html driver, configured to use
> the
> > serial connection as stated in
> >
> >
> http://svn.debian.org/viewsvn/pcsclite/trunk/Drivers/ccid/INSTALL?revision=3001&view=markup
>
> Ok, I see ;-(
>
> > Doesn't this driver support ICCD (Integrated Circuit(s) Card Devices)?
>
> Yes, my CCID driver supports ICCD. See the top of the webpage
> http://pcsclite.alioth.debian.org/ccid.html
>
> But your "GemCore Serial Lite Pro AT83C21" is NOT a ICCD nor a CCID device.
>
> > I am really sorry, but I am starting to be more and more confused...
>
> So am I.
>
> Bye
>
> --
> Dr. Ludovic Rousseau
> _______________________________________________
> Muscle mailing list
> [email protected]
> http://lists.drizzle.com/mailman/listinfo/muscle
>
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle