I changed it to try different baud values, as I said: //#define BAUDRATE B9600 #define BAUDRATE B38400 //#define BAUDRATE B115200
(void)cfsetspeed(¤t_termios, BAUDRATE); I ONLY changed that line, because I thought that could be the problem, but it is not. I had a copy of that file and have already reset it to its initial state. By the way, my reader is GemCore Serial Lite Pro AT83C21, and I have configured reader.conf like this FRIENDLYNAME "Gemplus GemPC Twin" DEVICENAME /dev/ttyS1 LIBPATH libccidtwin.so CHANNELID 1 could the problem be with this? I am also trying the driver http://ludovic.rousseau.free.fr/softwares/ifd-GemPC/index.html, in its GemPC410 version. I get communication with the reader, but the driver does not understand the commands, maybe because is is not a supported reader. FRIENDLYNAME "GemPC410" DEVICENAME /dev/ttyS1 LIBPATH /VaniOs/ifd_handler/libGemPC410.so.1.0.5 CHANNELID 1 00000000 debuglog.c:230:DebugLogSetLevel() debug level=debug 00001219 debuglog.c:259:DebugLogSetCategory() Debug options: APDU 00011987 readerfactory.c:1024:RFInitializeReader() Attempting startup of GemPC410 00 00 using /VaniOs/ifd_handler/libGemPC410.so.1.0.5 00003190 readerfactory.c:877:RFBindFunctions() Loading IFD Handler 3.0 00002127 ifdhandler.c:51:IFDHCreateChannelByName() lun: 0, device: /dev/ttyS1 00000941 gbpserial.c:328:OpenGBP() Lun: 0, device: /dev/ttyS1 00001287 gbpserial.c:514:OpenGBP() Serial port baudrate already set to 38400 (3) 00000518 GCCmds.c:407:GCCmdSetMode() 00001094 -> 000000 42 00 03 01 00 01 41 00014886 <- 000000 24 00 01 01 24 00000670 GCCmds.c:416 GCCmdSetMode Unknown GemCore command 00000482 gbpserial.c:520:OpenGBP() GCCmdSetMode success (4.a) 00000757 GCCmds.c:328:GCCmdGetOSVersion() 00000619 -> 000000 42 40 05 22 05 3F E0 10 EF 00017545 <- 000000 24 40 11 00 47 65 6D 43 6F 72 65 2D 52 31 2E 34 34 2D 47 48 43 00000646 GemPC410Utils.c:42:OpenGemPC410ByName() OS string: GemCore-R1.44-GH 00000479 GCCmds.c:407:GCCmdSetMode() 00000858 -> 000000 42 00 03 01 00 01 41 00007901 <- 000000 24 00 01 01 24 00000605 GCCmds.c:416 GCCmdSetMode Unknown GemCore command 00000541 ifdhandler.c:184:IFDHGetCapabilities() lun: 0, tag: FB0 00000791 readerfactory.c:249:RFAddReader() Using the pcscd polling thread 00000547 ifdhandler.c:585:IFDHICCPresence() lun: 0 00000501 GCCmds.c:389:GCCmdCardStatus() 00000783 -> 000000 42 40 01 17 14 00016287 <- 000000 24 40 07 00 04 02 00 00 00 00 65 00000633 ifdhandler.c:643:IFDHICCPresence() Card present, just inserted 00001581 ifdhandler.c:585:IFDHICCPresence() lun: 0 00000530 GCCmds.c:389:GCCmdCardStatus() 00000530 -> 000000 42 00 01 17 54 00016735 <- 000000 24 00 07 00 04 02 00 00 00 00 25 00000636 ifdhandler.c:643:IFDHICCPresence() Card present, just inserted 00000536 ifdhandler.c:585:IFDHICCPresence() lun: 0 00000738 GCCmds.c:389:GCCmdCardStatus() 00000583 -> 000000 42 40 01 17 14 00017509 <- 000000 24 40 07 00 04 02 00 00 00 00 65 00000639 ifdhandler.c:643:IFDHICCPresence() Card present, just inserted 00000533 ifdhandler.c:326:IFDHPowerICC() lun: 0 00000808 GCCmds.c:244:GCCmdPowerUp() 00000548 -> 000000 42 00 02 12 13 41 00477404 <- 000000 24 00 01 A2 87 00000613 GCCmds.c:261 GCCmdPowerUp Card is mute 00000541 -> 000000 42 40 01 12 11 00478841 <- 000000 24 40 01 A2 C7 00000613 GCCmds.c:272 GCCmdPowerUp Card is mute 00000564 -> 000000 42 00 03 17 00 47 11 00008851 <- 000000 24 00 02 00 47 61 00000681 -> 000000 42 40 02 12 13 01 00469294 <- 000000 24 40 01 A2 C7 00000610 GCCmds.c:285 GCCmdPowerUp Card is mute 00000477 ifdhandler.c:341:IFDHPowerICC() PowerUp failed 00000850 eventhandler.c:297:EHStatusHandlerThread() Error powering up card: -2146435050 0x80100016 00001035 ifdhandler.c:585:IFDHICCPresence() lun: 0 00000704 GCCmds.c:389:GCCmdCardStatus() 00000629 -> 000000 42 00 01 17 54 00015767 <- 000000 24 00 07 00 04 02 00 00 00 00 25 00000637 ifdhandler.c:643:IFDHICCPresence() Card present, just inserted 00000631 ifdhandler.c:184:IFDHGetCapabilities() lun: 0, tag: FAE 00000794 pcscdaemon.c:512:main() pcsc-lite 1.5.5 daemon ready. 00008729 hotplug_linux.c:186:HPReadBundleValues() No bundle files in pcsc drivers directory: /VaniOs/pcsc/pcsc/drivers 00000681 hotplug_linux.c:187:HPReadBundleValues() Disabling USB support for pcscd 00398322 ifdhandler.c:585:IFDHICCPresence() lun: 0 00000605 GCCmds.c:389:GCCmdCardStatus() 00000540 -> 000000 42 40 01 17 14 00009066 <- 000000 24 40 07 00 04 02 00 00 00 00 65 00000636 ifdhandler.c:643:IFDHICCPresence() Card present, just inserted 00409166 ifdhandler.c:585:IFDHICCPresence() lun: 0 00000600 GCCmds.c:389:GCCmdCardStatus() 00000541 -> 000000 42 00 01 17 54 00009058 <- 000000 24 00 07 00 04 02 00 00 00 00 25 00000639 ifdhandler.c:643:IFDHICCPresence() Card present, just inserted 00409139 ifdhandler.c:585:IFDHICCPresence() lun: 0 00000597 GCCmds.c:389:GCCmdCardStatus() 00000538 -> 000000 42 40 01 17 14 00009088 <- 000000 24 40 07 00 04 02 00 00 00 00 65 00000637 ifdhandler.c:643:IFDHICCPresence() Card present, just inserted 00409142 ifdhandler.c:585:IFDHICCPresence() lun: 0 00000607 GCCmds.c:389:GCCmdCardStatus() 00000540 -> 000000 42 00 01 17 54 00009076 <- 000000 24 00 07 00 04 02 00 00 00 00 25 00000641 ifdhandler.c:643:IFDHICCPresence() Card present, just inserted 00409134 ifdhandler.c:585:IFDHICCPresence() lun: 0 There isn't any card inserted, but it looks like the driver thinks there is! It is a really strange behaviour.... 2009/12/15 Ludovic Rousseau <[email protected]> > Hello, > > 2009/12/14 Ruben Lagar <[email protected]>: > > 00000968 ccid_serial.c:736:OpenSerialByName() Set serial port baudrate to > > 4098 and correct configuration > > I have no idea where this "4098" value comes from. > > The source code has: > /* set serial port speed to 115200 bauds */ > (void)cfsetspeed(¤t_termios, B115200); > > DEBUG_INFO("Set serial port baudrate to 115200 and correct > configuration"); > > I guess you modified the souce code or have corrupted it some way. > > 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
