frankmorgner / vsmartcard

umbrella project for emulation of smart card readers or smart cards
http://frankmorgner.github.io/vsmartcard/
712 stars 200 forks source link

Disconnects after card scan #238

Closed ShockedCoder closed 1 year ago

ShockedCoder commented 1 year ago

Expected behaviour

It stays connected and works.

Actual behaviour

As soon as a card gets read it end the connection.

Steps to reproduce

  1. Open app
  2. Config correct server ip and port (everything else is default)
  3. Click button to connect
  4. Scan and realize from #79 that it connects to the server as a dummy card
  5. Don't press yellow button
  6. wait...
  7. wait...
  8. Nothing happens and it doesn't any data to the server

Logs

sudo pcscd -fTd pcscd pcscd w/ color

Notes

This is just a normal cheap NFC card with some plain text data currently written on it

frankmorgner commented 1 year ago

I think I've explicitly excluded such kind of memory cards from the app, because you cannot use them as smart card (i.e. use it for cryptographic purposes).

Just to be sure: When you tap your card to the phone, do you see any reaction from the app? If the app recognizes the card, then it should automatically connect to the server. If the app isn't active, then you should see a popup asking whether the app should be launched to handle the card.

ShockedCoder commented 1 year ago

If the app isn't active, then you should see a popup asking whether the app should be launched to handle the card.

Yes, it asks if I want to use the reader app or the default nfc app, but it depends on what I currently have on card.

If the app recognizes the card, then it should automatically connect to the server.

I'm not sure if it even tries to connect to the server.

When you tap your card to the phone, do you see any reaction from the app?

When I read the card it says Discovered ISO/IEC 14443-A tag, that's it. Nothing before or after this.