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

Bluetooth smart card reader #186

Closed
siddhantmishra1305 opened this issue May 16, 2024 · 6 comments
Closed

Bluetooth smart card reader #186

siddhantmishra1305 opened this issue May 16, 2024 · 6 comments
Labels

Comments

@siddhantmishra1305
Copy link

I am working on to create a bluetooth smart card reader (ex: ex: https://www.youtube.com/watch?v=RPm3VPsIfvg ). Since IFDHandler is only for USB based readers it wouldn't detect a smart card over bluetooth.

I need to create a driver that could interface between bluetooth reader and OS.

Any idea how I can proceed with this ? or any other way to achieve this ?

@LudovicRousseau
Copy link
Owner

The API is also for serial (or non-USB) readers.
See https://pcsclite.apdu.fr/api/group__IFDHandler.html

@siddhantmishra1305
Copy link
Author

@LudovicRousseau Is it possible to achieve this in macOS ? I was under the impression that Mac OS X 10.10+ ships with a proprietary implementation of the PC/SC layer instead of with PCSC-Lite and it only supports USB.

@LudovicRousseau
Copy link
Owner

Yes, it is a bit different on macOS.
But is it still possible.

@siddhantmishra1305
Copy link
Author

Okay I am new to this so do not have much idea but I was thinking in below direction and got stuck on Step 3.

Step 1. Connect Reader over Multipeer/bluetooth.

Step 2. SCardEstablishContext -> This would provide context

Step3. SCardListReaders -> This would provide list of readers but I guess this would only return readers connected over USB right ?



Since BT reader won’t be part of list, how to connect to the reader and transmit APDU commands ?

I think I might need to add custom implentation for functions SCardListReaders, SCardConnect, SCardTransmit in winscard.c . So I could add code to detect a BT reader and transmit/recieve APDU commands.

Please let me know If I am thinking in the right direction ? Also if you see any better way to achieve this please share your inputs.

Thank you

@LudovicRousseau
Copy link
Owner

It does not work like that.

github issue is not the place to discuss. Contact me by email. See https://blog.apdu.fr/articles/about_me/

@LudovicRousseau
Copy link
Owner

Hello,
I received your email but lost it before I was able to read it.
Can you send it again? sorry.

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

No branches or pull requests

2 participants