Comments (12)
Why do you expect a prompt to select a reader?
I agree the continuous loop is a bug somewhere.
from pcsc-tools.
from pcsc-tools.
I can't reproduce the problem on my Windows 10.
Please apply this patch, rebuild and try again.
diff --git a/pcsc_scan.c b/pcsc_scan.c
index e054624..6e6b29c 100644
--- a/pcsc_scan.c
+++ b/pcsc_scan.c
@@ -630,6 +630,7 @@ get_readers:
{
time_t t;
+ printf("rv: 0x%08X\n", rv);
if (pnp)
{
#ifdef WIN32
from pcsc-tools.
Current output is as follows:
Scanning present readers...
0: Alcor Micro USB Smart Card Reader 0
1: JAVACOS Virtual Contact Reader 0
2: JAVACOS Virtual Contactless Reader 1
rv: 0x00000000
It still loops over and over, regardless of card state.
from pcsc-tools.
OK.
Try again with this new patch:
diff --git a/pcsc_scan.c b/pcsc_scan.c
index e054624..f231e14 100644
--- a/pcsc_scan.c
+++ b/pcsc_scan.c
@@ -635,6 +635,7 @@ get_readers:
#ifdef WIN32
/* check if the number of readers has changed */
LONG newNbReaders = rgReaderStates_t[nbReaders-1].dwEventState >> 16;
+ printf("nbReaders: %d, .dwEventState: 0x%08X\n", nbReaders, rgReaderStates_t[nbReaders-1].dwEventState);
if (newNbReaders + 1 != nbReaders)
#else
if (rgReaderStates_t[nbReaders-1].dwEventState &
from pcsc-tools.
New looping message:
Scanning present readers...
0: Alcor Micro USB Smart Card Reader 0
1: JAVACOS Virtual Contact Reader 0
2: JAVACOS Virtual Contactless Reader 1
nbReaders: 4, .dwEventState: 0x00040002
from pcsc-tools.
What version of Windows do you use?
What is the output of pcsc_scan if you unplug one reader, for example the Alcor Micro USB reader?
from pcsc-tools.
from pcsc-tools.
Microsoft Windows [Version 10.0.18363.657]
from pcsc-tools.
Try the version available at http://ludovic.rousseau.free.fr/softwares/pcsc-tools/pcsc_scan.c
from pcsc-tools.
Fixed in 1727dbf
from pcsc-tools.
See also https://ludovicrousseau.blogspot.com/2020/03/better-pcscscan-on-windows.html
from pcsc-tools.
Related Issues (20)
- pcsc_scan under Ubuntu requirements: libgtk3-perl HOT 1
- pcsc_scan ISO/IEC 14443-4B ? HOT 2
- pcsc_scan not detecting the cards unless I unplug and replug the reader HOT 6
- How to submit misrecognized card HOT 3
- Reader AK910 HKey not detected HOT 2
- Need to add new DOD CAC card HOT 2
- can not compile under windows HOT 2
- how to compile the pcsc_scan.exe with UNICODE on Windows platform HOT 5
- Non-relevant application to strings of red color code HOT 4
- Observations HOT 1
- File LICENCE not in tar.bz2 archive HOT 1
- configure fails
- compile from git fails HOT 5
- Please add more maps to the database HOT 1
- SCardEstablishContext: Service was stopped. HOT 2
- SCardGetStatusChange for PNP notification return SCARD_E_TIMEOUT HOT 10
- try setup in raspberry pi HOT 13
- Update to smartcard_list.txt for ATR 3BB2110010800016 HOT 3
- pcsc scan : waiting for the first reader HOT 1
- ACR122u is visible only after disconnection and reconnection HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pcsc-tools.