07.11.2011 21:43, Ludovic Rousseau kirjoitti:
> 2011/11/7 Hannu Kotipalo <[email protected]>:
>> Hi!
> 
> Hello,
> 
>> I updted the latest source of pcsclite and after that my OmniKey CardMan
>> 4040 reader stopped to work. It just jamms when trying to read a card.
>> Unfortunately, when using command line "pcscd -f --debug", it will work
>> fine.
>>
>> I tried different svn versions and the problem has been there since
>> revision 6019. I Revision 6018 works well, 6019 does not. Fortunately,
>> change on that version seems to be very small.
> 
> I don't think the problem comes with revision 6019. I guess it is an
> access right issue. Read "Configuring your system for pcscd
> auto-start" [1].

I think I already have it on.

hko@xxxx:~/src/pcsclite/trunk/PCSC$ ls -la /dev/cmx0
crw-rw---- 1 root pcscd 250, 0 2011-11-07 22:04 /dev/cmx0

> 
> To have more debug you can use:
> 1. kill any running pcscd process
> 
> 2. define the environment variable PCSCLITE_PCSCD_ARGS
> $ export PCSCLITE_PCSCD_ARGS=-df
> 
> 3. run your program
> $ my_program
> 
> You should now have pcscd log message in the terminal. Cut and paste
> the pcscd logs here.
> 
I'm running pcsc_scan and the result is a lot of same line:
00010116 readerfactory.c:1301:RFWaitForReaderInit() Waiting init for
reader: OMNIKEY CardMan 4040 Socket 0 00 00

Wont stop until I killpcscd on another term.

Another thing; If I disable CardMan, my USB token works fine with the
same version.

> Bye
> 
> [1] 
> http://ludovicrousseau.blogspot.com/2010/12/configuring-your-system-for-pcscd-auto.html
> 

For reference, here is a log after I downgrade to r 6018 (btw, ATR is
from Finnish ID card):
-------------------------------------
hko@xxxx:~/src/pcsclite/trunk/PCSC$ pcsc_scan
PC/SC device scanner
V /home/hko/src/pcsclite/trunk/pcsc-tools (c) 2001-2011, Ludovic
Rousseau <[email protected]>
Compiled with PC/SC lite version: 1.7.4
02571481 winscard_msg_srv.c:227:ProcessEventsServer() Common channel
packet arrival
00000042 winscard_msg_srv.c:239:ProcessEventsServer()
ProcessCommonChannelRequest detects: 6
00000016 pcscdaemon.c:93:SVCServiceRunLoop() A new context thread
creation is requested: 6
00000080 winscard_svc.c:297:ContextThread() Thread is started:
dwClientID=6, threadContext @0x91300d0
00000033 winscard_svc.c:315:ContextThread() Received command:
CMD_VERSION from client 6
00000021 winscard_svc.c:327:ContextThread() Client is protocol version 4:2
00000017 winscard_svc.c:347:ContextThread() CMD_VERSION rv=0x0 for client 6
00000152 winscard_svc.c:315:ContextThread() Received command:
ESTABLISH_CONTEXT from client 6
00000031 winscard.c:193:SCardEstablishContext() Establishing Context:
0x1031637
00000014 winscard_svc.c:408:ContextThread() ESTABLISH_CONTEXT rv=0x0 for
client 6
00000099 winscard_svc.c:315:ContextThread() Received command:
CMD_GET_READERS_STATE from client 6
00000106 winscard_svc.c:315:ContextThread() Received command:
CMD_WAIT_READER_STATE_CHANGE from client 6
00000035 winscard_svc.c:315:ContextThread() Received command:
CMD_STOP_WAITING_READER_STATE_CHANGE from client 6
00000024 winscard_svc.c:389:ContextThread()
CMD_STOP_WAITING_READER_STATE_CHANGE rv=0x0 for client 6
00000077 winscard_svc.c:315:ContextThread() Received command:
CMD_GET_READERS_STATE from client 6
Using reader plug'n play mechanism
Scanning present readers...
00000178 winscard_svc.c:315:ContextThread() Received command:
CMD_GET_READERS_STATE from client 6
00000100 winscard_svc.c:315:ContextThread() Received command:
CMD_GET_READERS_STATE from client 6
0: OMNIKEY CardMan 4040 Socket 0 00 00
00000133 winscard_svc.c:315:ContextThread() Received command:
CMD_GET_READERS_STATE from client 6

Mon Nov  7 22:20:21 2011
Reader 0: OMNIKEY CardMan 4040 Socket 0 00 00
  Card state: Card inserted,
  ATR: 3B 7B 94 00 00 80 62 12 51 56 46 69 6E 45 49 44

ATR: 3B 7B 94 00 00 80 62 12 51 56 46 69 6E 45 49 44
+ TS = 3B --> Direct Convention
+ T0 = 7B, Y(1): 0111, K: 11 (historical bytes)
  TA(1) = 94 --> Fi=512, Di=8, 64 cycles/ETU
    62500 bits/s at 4 MHz, fMax for Fi = 5 MHz => 78125 bits/s
  TB(1) = 00 --> VPP is not electrically connected
  TC(1) = 00 --> Extra guard time: 0
+ Historical bytes: 80 62 12 51 56 46 69 6E 45 49 44
  Category indicator byte: 80 (compact TLV data object)
    Tag: 6, len: 2 (pre-issuing data)
      Data: 12 51
    Tag: 5, len: 6 (card issuer's data)
      Card issuer data: 46 69 6E 45 49 44

Possibly identified card (using /usr/share/pcsc/smartcard_list.txt):
        NONE

Your card is not present in the database.
You can get the latest version of the database from
  http://ludovic.rousseau.free.fr/softwares/pcsc-tools/smartcard_list.txt
or use: wget
http://ludovic.rousseau.free.fr/softwares/pcsc-tools/smartcard_list.txt
--output-document=/home/hko/.smartcard_list.txt

If your ATR is still not in the latest version then please send a mail
to <[email protected]> containing:
- your ATR
- a card description (in english)
00054031 winscard_svc.c:315:ContextThread() Received command:
CMD_GET_READERS_STATE from client 6
00000145 winscard_svc.c:315:ContextThread() Received command:
CMD_WAIT_READER_STATE_CHANGE from client 6


Attachment: smime.p7s
Description: S/MIME-salakirjoitettu allekirjoitus

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to