Skip to content
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

Windows "SCardTransmit error: . (0x0000001f)" #57

Open
OgNellis opened this issue Jun 22, 2016 · 6 comments
Open

Windows "SCardTransmit error: . (0x0000001f)" #57

OgNellis opened this issue Jun 22, 2016 · 6 comments

Comments

@OgNellis
Copy link

OgNellis commented Jun 22, 2016

Windows 7 x86

reader.transmit(new Buffer([0x00, 0xB0, 0x00, 0x00, 0x20]), 200, protocol, function(err, data) {
   if (err) {
      console.log(err);
   } else {
       console.log('Data received', data);
       reader.close();
       pcsc.close();
   }
});

I've got the error in the callback.
"SCardTransmit error: �������������� � ������� ���������� �� ��������.
(0x0000001f)"
My Windows is on Russian and this can be cause this strange "question marks"

@OgNellis OgNellis changed the title Windows "SCardTransmit error: �������������� � ������� ���������� �� ��������. ↵(0x0000001f)" Windows "SCardTransmit error: . (0x0000001f)" Jun 22, 2016
@santigimeno
Copy link
Owner

From https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382%28v=vs.85%29.aspx it looks a problem with the device itself

ERROR_GEN_FAILURE

    31 (0x1F)

    A device attached to the system is not functioning.

We should try to resolve the message encoding issue though

@santigimeno
Copy link
Owner

@OgNellis just to make sure it's not a problem with github... do you see the error message correctly in your computer or with the question marks?

@atallo
Copy link

atallo commented Jul 12, 2018

Any solution or round trip?

@riyupatel
Copy link

@santigimeno i start "Smart Card" and "Smart Card Device Enumeration Service" in services on Windows 10 , but even so i face this error
C:\node_pro\node_modules\pcsclite\lib\pcsclite.js:39
var p = new PCSCLite(); ^ Error: SCardEstablishContext error: The Smart Card Resource Manager is not running. (0x8010001d)

card reader : verifone vx 520 (connected via USB Serial Device(COM3))

@riyupatel
Copy link

riyupatel commented Sep 2, 2020

@santigimeno i start "Smart Card" and "Smart Card Device Enumeration Service" in services on Windows 10 , but even so i face this error
C:\node_pro\node_modules\pcsclite\lib\pcsclite.js:39
var p = new PCSCLite(); ^ Error: SCardEstablishContext error: The Smart Card Resource Manager is not running. (0x8010001d)

card reader : verifone vx 520 (connected via USB Serial Device(COM3))

plz reply @santigimeno

@martinpaljak
Copy link

@riyupatel fix your pc/sc installation, this project can't fix broken or missing windows drivers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants