For example on OS X, I have to poll in order to find out if there are new readers in the system
The card not transacted error looks like a bogus command send to a card though :/
Aha, thanks for the insight, appreciate it. This is a server application, where client's sends data to the cards, so the chances of getting bogus data, is definitely there. Imma setup some more verbose logging on my end. :)
hello actually I was trying to use nfc-pcsc in Electron app but I can't use require with it ? and if I use import it is giving error can you suggest me solution? thanks
@Tsar8808_twitter what error are you getting?
I am a bit confused about reader.close() and pcsc.close() and how to cleanly shut down an application after I am done with the reader I was interested in.
Like. Do I have to call reader.close() after disconnect() ? Both reader.close() and pcsc.close() ?
Then regarding the documentation, it is unclear to me why both call SCardCancel. Are there separate calls? AFAIU only one SCardGetSTatusChange is sufficient to get events for existing and pnp readers.
anyway, calling both is not enough, firstly I get a PCSC error SCardGetStatusChange error: Command cancelled.(0x80100002) when calling pcsc.close()
wherever that happens, it should be expected, IMHO SCARD_CANCELLED should never trigger a pcsc error, as that is expected behavior ?
and finally, I still need to call process.exit to quit the app.
after calling reader.close() and pcsc.close()
And thanks for an otherwise charming library, works flawlessly on linux/osx for my needs (other than the clean shutdown issu) :)
Once I can resolve the shutdown issue, I have a feature request, regarding transactions (and careful with those on Windows, due to the "5 second rule")
Sometimes an exclusive connection is not available/possible, but reliablity should be assured as much as possible (no interference from other applications) thus I would like to propose an argument to SCardConnect wrapper for non-windows machines, where a transaction would be set on the reader after connect, if specified so in options
(looking at gitter activity it seems to be as heavily used as ... not at all. I will file issues as well, for better tracking)
would love to have code that reproduces the error, I've fixed similar errors in the past :)
WRT to transactions, would you be up to implementing them? I'm no already using them but would gladly accept PR :)
Hi @santigimeno. I am using windows 10. I have node v6.10.3. When I install pcsclite 0.5.0, and running example code, it says
Ok the problem is solved by rebuild buffertools module.
I have shifted away from node back to java/c++ for a while.
with this app you can send apuds to asynchronous cards (emv, etc) or memory card like siemens sle
@santigimeno Hi, I am getting the following error when using library, I would really appreciate your help if possible please to see when this happens: [2020-03-08T18:24:44.410] [ERROR] ALL - [Error: SCardTransmit error: Transaction failed.(0x80100016)]