OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
[Muscle] PCSC-lite and iKey3000

From: Luciano Coelho (coelhoesec.com.br)
Date: Mon Jan 24 2005 - 06:23:55 CST


Guys,

    I trying to use a iKey 3000 and I'm having some problems.
   
    During my tests, I receive a message "Card not present" or "Card is
unresponsive". In the pcscd's log I see the message
"rothandler.c:138:PHSetProtocol PTS failed (607), using T=1".

    Can somebody help me?

    My environment is:

    Gentoo Linux (2.6.8-gentoo-r2)
    PCSC-lite: 1.2.9-beta7
    Driver para o iKey3000: rnboifd-1.0.0-0.i386.rpm

    I've had to transform the rpm as a tar to deploy in my environment.

    In the file /etc/reader.conf, i've put the follows lines:

FRIENDLYNAME "Rainbow Technologies iKeyVirtualReader"
DEVICENAME temp:GEN_SMART_RDR
LIBPATH
/usr/local/pcsc/drivers/rnboifd.bundle/Contents/Linux/librnboifd.so.1.0.0
CHANNELID 0

    The value for the DEVICENAME was a tip found at
(http://archives.neohapsis.com/archives/dev/muscle/2004-q3/0182.html)

    Whem I start de pcscd without the token connected I have the messages:
"
pcscdaemon.c:238:main pcscd set to foreground with debug send to stderr
pcscdaemon.c:257:main debug messages send to stdout
readerfactory.c:1065:RFInitializeReader Attempting startup of FT CARD 00 00.
readerfactory.c:907:RFBindFunctions Loading IFD Handler 2.0
readerfactory.c:556:RFSetReaderName Support 16 simultaneous readers
readerfactory.c:1065:RFInitializeReader Attempting startup of FT CARD 01 00.
readerfactory.c:779:RFLoadReader Warning library pointer not NULL
readerfactory.c:907:RFBindFunctions Loading IFD Handler 2.0
readerfactory.c:556:RFSetReaderName Support 16 simultaneous readers
readerfactory.c:556:RFSetReaderName Support 16 simultaneous readers
readerfactory.c:1065:RFInitializeReader Attempting startup of FT CARD 02 00.
readerfactory.c:779:RFLoadReader Warning library pointer not NULL
readerfactory.c:907:RFBindFunctions Loading IFD Handler 2.0
readerfactory.c:556:RFSetReaderName Support 16 simultaneous readers
readerfactory.c:556:RFSetReaderName Support 16 simultaneous readers
readerfactory.c:556:RFSetReaderName Support 16 simultaneous readers
readerfactory.c:1065:RFInitializeReader Attempting startup of FT CARD 03 00.
readerfactory.c:779:RFLoadReader Warning library pointer not NULL
readerfactory.c:907:RFBindFunctions Loading IFD Handler 2.0
configfile.l:124:evaluatetoken WARNING *************************************
configfile.l:125:evaluatetoken WARNING: USB drivers SHOULD NOT be
declared in reader.conf:
/usr/local/pcsc/drivers/rnboifd.bundle/Contents/Linux/librnboifd.so.1.0.0
configfile.l:126:evaluatetoken WARNING *************************************
readerfactory.c:1065:RFInitializeReader Attempting startup of Rainbow
Technologies iKeyVirtualReader 00 00.
readerfactory.c:907:RFBindFunctions Loading IFD Handler 2.0
pcscdaemon.c:440:main pcsc-lite 1.2.9-beta7 daemon ready.

"

    Whem I connect it, pcscd give me the messages:
"
ATR: 3B B7 94 00 81 31 FE 65 53 50 4B 32 33 90 00 D1
atrhandler.c:87:ATRDecodeAtr Conv: 01, Y1: 0B, K: 07
atrhandler.c:105:ATRDecodeAtr TA1: 94, TB1: 00, TC1: FFFFFFFF, TD1: 81
atrhandler.c:138:ATRDecodeAtr T=1 Protocol Found
atrhandler.c:105:ATRDecodeAtr TA2: FFFFFFFF, TB2: FFFFFFFF, TC2:
FFFFFFFF, TD2: 31
atrhandler.c:138:ATRDecodeAtr T=1 Protocol Found
atrhandler.c:105:ATRDecodeAtr TA3: FE, TB3: 65, TC3: FFFFFFFF, TD3: FFFFFFFF
atrhandler.c:244:ATRDecodeAtr CurrentProtocol: 2, AvailableProtocols: 2
eventhandler.c:413:EHStatusHandlerThread Card inserted into Rainbow
Technologies iKeyVirtualReader 00 00
Card ATR: 3B B7 94 00 81 31 FE 65 53 50 4B 32 33 90 00 D1
"

    I've tried the app ./testpcsc, and in the pcscd the follow messages
was prompted:
"
winscard_msg.c:191:SHMProcessEventsServer Common channel packet arrival
winscard_msg.c:198:SHMProcessEventsServer SHMProcessCommonChannelRequest
detects: 8
pcscdaemon.c:136:SVCServiceRunLoop A new context thread creation is
requested: 8
winscard_svc.c:102:ContextThread Thread is started: 8
winscard_msg.c:252:SHMProcessEventsContext correctly processed client: 8
winscard_svc.c:142:ContextThread Client is protocol version 2:0
winscard_msg.c:252:SHMProcessEventsContext correctly processed client: 8
winscard.c:69:SCardEstablishContext Establishing Context: 16998707
winscard_msg.c:252:SHMProcessEventsContext correctly processed client: 8
winscard.c:122:SCardConnect Attempting Connect to Rainbow Technologies
iKeyVirtualReader 00 00 3
ATR: 3B B7 94 00 81 31 FE 65 53 50 4B 32 33 90 00 D1
atrhandler.c:87:ATRDecodeAtr Conv: 01, Y1: 0B, K: 07
atrhandler.c:105:ATRDecodeAtr TA1: 94, TB1: 00, TC1: FFFFFFFF, TD1: 81
atrhandler.c:138:ATRDecodeAtr T=1 Protocol Found
atrhandler.c:105:ATRDecodeAtr TA2: FFFFFFFF, TB2: FFFFFFFF, TC2:
FFFFFFFF, TD2: 31
atrhandler.c:138:ATRDecodeAtr T=1 Protocol Found
atrhandler.c:105:ATRDecodeAtr TA3: FE, TB3: 65, TC3: FFFFFFFF, TD3: FFFFFFFF
atrhandler.c:244:ATRDecodeAtr CurrentProtocol: 2, AvailableProtocols: 2
ATR: 3B B7 94 00 81 31 FE 65 53 50 4B 32 33 90 00 D1
atrhandler.c:87:ATRDecodeAtr Conv: 01, Y1: 0B, K: 07
atrhandler.c:105:ATRDecodeAtr TA1: 94, TB1: 00, TC1: FFFFFFFF, TD1: 81
atrhandler.c:138:ATRDecodeAtr T=1 Protocol Found
atrhandler.c:105:ATRDecodeAtr TA2: FFFFFFFF, TB2: FFFFFFFF, TC2:
FFFFFFFF, TD2: 31
atrhandler.c:138:ATRDecodeAtr T=1 Protocol Found
atrhandler.c:105:ATRDecodeAtr TA3: FE, TB3: 65, TC3: FFFFFFFF, TD3: FFFFFFFF
atrhandler.c:244:ATRDecodeAtr CurrentProtocol: 2, AvailableProtocols: 2
prothandler.c:126:PHSetProtocol Attempting PTS to T=1
prothandler.c:138:PHSetProtocol PTS failed (607), using T=1
winscard_msg.c:252:SHMProcessEventsContext correctly processed client: 8
winscard.c:80:SCardReleaseContext Releasing Context: 16998707
winscard_msg.c:241:SHMProcessEventsContext Client has disappeared: 8
winscard_svc.c:114:ContextThread Client die: 8
"

    The testepcsc give me the messages:
"
rootesec-lcoelho src # ./testpcsc

MUSCLE PC/SC Lite unitary test Program

THIS PROGRAM IS NOT DESIGNED AS A TESTING TOOL FOR END USERS!
Do NOT use it unless you really know what you do.

Testing SCardEstablishContext : Command successful.
Testing SCardGetStatusChange
Please insert a working reader : Command successful.
Testing SCardListReaderGroups : Command successful.
Group 01: SCard$DefaultReaders
Testing SCardListReaders : Command successful.
Reader 01: FT CARD 00 00
Reader 02: FT CARD 01 00
Reader 03: FT CARD 02 00
Reader 04: FT CARD 03 00
Reader 05: Rainbow Technologies iKeyVirtualReader 00 00
Enter the reader number : 05

Waiting for card insertion : Command successful.
Testing SCardConnect : Card is unresponsive.
"

    Thanks a lot.

    Luciano Coelho
_______________________________________________
Muscle mailing list
Musclelists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle