by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 10 08:35
    rkalkani synchronize #86
  • Jan 10 08:31
    santigimeno commented #86
  • Jan 10 08:27
    rkalkani commented #86
  • Dec 17 2019 23:55
    ellenlowing commented #65
  • Jul 16 2019 10:10
    c0nstructer closed #89
  • Jul 16 2019 10:04
    c0nstructer opened #89
  • Jun 30 2019 20:35
    santigimeno closed #80
  • Jun 30 2019 20:35
    santigimeno commented #80
  • Jun 30 2019 20:31
    santigimeno closed #62
  • Jun 30 2019 20:31
    santigimeno commented #62
  • Jun 30 2019 20:31
    santigimeno closed #83
  • Jun 30 2019 20:31
    santigimeno commented #83
  • Jun 30 2019 20:28
    santigimeno closed #81
  • Jun 30 2019 20:28
    santigimeno commented #81
  • Jun 30 2019 20:26
    santigimeno closed #88
  • Jun 30 2019 20:26
    santigimeno commented #88
  • Jun 30 2019 20:21

    santigimeno on v1.0.0

    (compare)

  • Jun 30 2019 20:21

    santigimeno on master

    Version 1.0.0 (compare)

  • Jun 30 2019 20:21

    santigimeno on v0.6.0

    (compare)

  • Jun 30 2019 20:19

    santigimeno on master

    test: fixups so they pass with … (compare)

Jeppe Christiansen
@jeppech
```Oct 10 18:42:17 flexhotel2 pcscd: commands.c:1116:CmdGetSlotStatus() Not enough data received: 0 bytes
They just seems to appear, out of nowhere
Jeppe Christiansen
@jeppech
Also, I'm on version 0.4.8
Santiago Gimeno
@santigimeno
Hey! Well, the only place where i'm polling is here https://github.com/santigimeno/node-pcsclite/blob/master/src/pcsclite.cpp#L180-L219 and only on OS's where PNP notification is not supported. See: santigimeno/node-pcsclite@5b10f85
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 :/
Jeppe Christiansen
@jeppech
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. :)
Xasanboy Akbarov
@Tsar8808_twitter
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
Santiago Gimeno
@santigimeno
@Tsar8808_twitter what error are you getting?
Martin Paljak
@martinpaljak
Hello!
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()
Martin Paljak
@martinpaljak
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) :)
Martin Paljak
@martinpaljak
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)
Martin Paljak
@martinpaljak
checkdone.
Santiago Gimeno
@santigimeno
@martinpaljak hey
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 :)
thanks!
Barış Velioğlu
@barisvelioglu

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

image.png

Barış Velioğlu
@barisvelioglu
Ok the problem is solved by rebuild buffertools module.
Martin Paljak
@martinpaljak
I have shifted away from node back to java/c++ for a while.
Will check back once in JS sphere.
nickkhan
@nickkhan
hi @santigimeno
do you have a port for this lib in typescript?
but i dont see any .ts files only js
nickkhan
@nickkhan
guys is there a typescript library available for pcslite?
Santiago Gimeno
@santigimeno
@nickkhan no that I know of. There was some talk about it some time ago but nothing came out of it: santigimeno/node-pcsclite#63
Hakan Pinar
@hakan_pnr_twitter
@barisvelioglu What is code that you write for the rebuild?
Pureewat Kaewpoy
@sgnsys3
Hello Are your have a problem with Insufficient Buffer on 0xFF Lc ?
Sergey Novikov
@Stranger7
Hi!
How can I read the card number using the node-pclite library?
Sergey Novikov
@Stranger7
I ran the code from the example, but got the error:
Status( ACS ACR1252 1S CL Reader [ACR1252 Dual Reader PICC] 00 00 ): { state: 65570,
atr: <Buffer 3b 8f 80 01 80 4f 0c a0 00 00 03 06 03 00 01 00 00 00 00 6a> }
card inserted
Protocol( ACS ACR1252 1S CL Reader [ACR1252 Dual Reader PICC] 00 00 ): 2
[Error: SCardTransmit error: Transaction failed.(0x80100016)]
Status( ACS ACR1252 1S CL Reader [ACR1252 Dual Reader PICC] 00 00 ): { state: 131090, atr: <Buffer > }
card removed
Disconnected
vamsideepak
@vamsideepak
Hi!,
anyone know that how to write data to card using node-pcsclite ??
lewix
@lewixlabs
@santigimeno hi, i started implementing your pcsclite library to wrap it into TypeScript version, link here https://github.com/lewixlabs/TsCard
my TypeScript wrapper project, https://github.com/lewixlabs/TsCard, can now detect reader, smartcard and send apdus
working for many years with memory cards too :), i'm implementing SLE support with ACR Reader, if somebody can contribute or wants to suggests me improvements, he's welcome :)
lewix
@lewixlabs
I used Promise pattern with async/await
qiphon
@qiphon
hello
Sai Kishore Komanduri
@fatman-
Can we use pcsclite on the browser?
Luigino De Togni
@lewixlabs_twitter
Hi! I developed a cross platform app thanks to TsCard https://github.com/lewixlabs/TsCard (node js library built upon node-pcsclite). This app is charta https://github.com/lewixlabs/charta
with this app you can send apuds to asynchronous cards (emv, etc) or memory card like siemens sle
hanna
@hanna41080646_twitter
@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)]