frankmorgner / vsmartcard

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

Invoke vpcd on bluetooth connection osx #275

Closed siddhantmishra1305 closed 1 month ago

siddhantmishra1305 commented 1 month ago

Current behavior

When a USB with vendor and product ID mentioned in plist is connected vpcd is triggered and ports are open.

Is it possible to invoke the vpcd on bluetooth pairing with a device ?

frankmorgner commented 1 month ago

I am not aware of any mechanism that would allow smart card reader drivers to be loaded on any other condition than the USB connection of some device (including bluetooth).

siddhantmishra1305 commented 1 month ago

@frankmorgner In Unix, Serial drivers is supported to operate on a particular port and respond to a particular name. Isn't this not possible for macOS ? Is it because macOS is not using pcsc-lite and have their own implementation ?

frankmorgner commented 1 month ago

No, serial drivers are not supported on macOS. AFAIK, you always need an external trigger (i.e. USB device that is attached) to get a driver loaded. This is the exact mechanism we are using on macOS, as documented here http://frankmorgner.github.io/vsmartcard/virtualsmartcard/README.html#building-and-installing-vpcd-on-mac-os-x

siddhantmishra1305 commented 1 month ago

Thanks @frankmorgner