-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reader removed and connected again not detected #68
Comments
@boris-savic I've just tested locally and it works correctly for me. Can you check that the pcscd daemon is still up after removing / pluggin the reader? I've seen sometimes pcscd crashes when doing that and could explain why you're not receiving the event |
Hmmm, there are some errors being outputted by pcscd status command after the reader is unplugged, but the pcscd daemon is still running after.
|
ok, can you check that this scenario works correctly using |
Yes,
|
Then it looks like a problem of your reader with pcscd, there's not much /cc @LudovicRousseau just in case |
Versions:
It's using proprietary ACS drivers. |
Thanks. Will check out and get to you with all needed information tomorrow. I also ran the simple example on Windows 10 and similar error happens. Just as I unplug the reader from USB port the app crashes with following output.
I have tried with both Windows stock drivers and vendor specific drivers - same result. |
Hi @boris-savic I had the same issues on Windows like you. The problem is that Windows automatically stops pcsc daemon (Smart Card Service – SCardSvr) when the device is unplugged. In some cases the same problem occurs also when no devices are plugged (because SCardSvr is stopped). The behaviour on Windows is really inconsistent. However, I have solved all these Windows related problems. You can try my fork https://github.com/pokusew/node-pcsclite (which on top of that removes buffertools dependency). Hope it helps. |
@pokusew that's useful info! |
Hi @santigimeno At the beginning I removed just the buffertools dependency, reformatted the code and replaced var by const, so there was no point in creating PR. But then I came across the Windows issues and solved them. But because of previous changes I couldn't create PR (with so many another modifications). Definitely, it would be great if you included my improvements to your library. Your library is awesome. I will be glad when my changes and findings will be useful for another people. Here is a brief summary of my most significant changes:
Thanks for your library. It is awesome. Hope it helps. |
@pokusew those changes indeed look very useful! It would be great if you could open PR's for those changes (at least those that you don't find hard to integrate). If not, I'll try to include them myself when I have time. Thanks!! |
@santigimeno I will definitely create PR's for my changes as soon as I have some free time (in a week or so). |
Hi @pokusew, I'm running into this problem right now, where Windows stops the PCSC daemon. Any chance of your changes being merged still? Or should I use your fork instead? Regardless, thanks for your earlier work on this! |
Uncaught Error when the card reader is unplugged: |
@Zoe314 I guess you are using Windows. Right? |
yes,Windows10 |
i connect the card and after sometime i unplug the reader from the device . Again i connect the reader ,When i trying to reestablish the context i am getting invalid handle error both from reset context and connect reader |
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
i used pcscd lib on linux based boss operating system |
re-creating a lib instance actually helps with making readers work again. |
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
Hi,
I've noticed that whenever I disconnect my reader the library does emit end as intended to notify about reader removal. But once the reader is plugged back in the reader message is never emitted again?
Shouldn't there be a message when a reader is detected?
Using latest release 0.5.0 on Linux.
Thanks for your help.
The text was updated successfully, but these errors were encountered: