Re: [opensc-devel] Problem with hanging cards

2009-03-11 Thread Tomas Gustavsson
Thanks! I'll try it the next time. Just have to write a small cli program to run it :) Regards, Tomas Ludovic Rousseau wrote: > 2009/3/11 Tomas Gustavsson : >> Is there some way to powercycle/reset a card without physically pulling >> it from the reader? > > Use something like: > rv = SCardReco

Re: [opensc-devel] Problem with hanging cards

2009-03-11 Thread Ludovic Rousseau
2009/3/11 Tomas Gustavsson : > Is there some way to powercycle/reset a card without physically pulling > it from the reader? Use something like: rv = SCardReconnect(hCard, SCARD_SHARE_SHARED, SCARD_PROTOCOL_T0, SCARD_UNPOWER_CARD, &dwActiveProtocol); See [1] for details. Bye [1] http://pcsclit

[opensc-devel] Problem with hanging cards

2009-03-11 Thread Tomas Gustavsson
Hi, I have a problem in one location. We are using smart cards to store CA keys, so they are always active for a long time. In one place running Oracle Enterprise Linux, kernel 2.6.9 and pcsc-lite 1.4.102, the cards seem to hang randomly. Sometimes after one week, sometimes after three months.