积极答复者
smartcard reader share mode disconnect problem on Win8.1

问题
-
This is my operation:
1 Connect smartcard reader usb wire to Win8.1 system PC;
2 Connect the smartcard reader use my pcsc tool with share mode;
3 Hibernate the PC;
4 Wakeup PC;
5 Disconnect the smartcard reader;
6 Connect the smartcard reader use my pcsc tool with exclusive mode;
CCID message in previous steps:
20.2 OUT 65 00 00 00 00 00 51 00 00 00 e.....Q... 1.1.0 // step 3 and 4;
20.2 IN 81 00 00 00 00 00 51 01 00 00 ......Q... 2.1.0
20.1 IN 50 03 P. 3.1.0
20.2 OUT 63 00 00 00 00 00 52 00 00 00 c.....R... 4.1.0 // step 5;
20.2 IN 81 00 00 00 00 00 52 01 00 00 ......R... 5.1.0
20.2 OUT 62 00 00 00 00 00 53 03 00 00 b.....S... 6.1.0
20.2 IN 80 03 00 00 00 00 53 00 00 00 3b 10 95 ......S...;.. 7.1.0
The problem is, why here is a "62" (power on) message send from PC to smartcard reader?
This causes the problem occurs in step 6: Connect failed:
Connect error: The smart card annot be accessed because of other connections outstanding.
Whether this is a bug of CCID device driver?
Please help me!
答案
-
I guess, this is the wake up mechanism of win8 system. Re-establish the connection when wake-up. But the re-established connection handle, is not got by my pcsc tool. How to get it?
Power event is only sent to the device via driver, the application cannot get it. so looks like this is exactly the same behavior as what you see. This is Windows design.http://whqlcn.wordpress.com
- 已标记为答案 duoduobearModerator 2014年9月10日 8:41
全部回复
-
I guess, this is the wake up mechanism of win8 system. Re-establish the connection when wake-up. But the re-established connection handle, is not got by my pcsc tool. How to get it?
Power event is only sent to the device via driver, the application cannot get it. so looks like this is exactly the same behavior as what you see. This is Windows design.http://whqlcn.wordpress.com
- 已标记为答案 duoduobearModerator 2014年9月10日 8:41