-
Notifications
You must be signed in to change notification settings - Fork 13
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
SCardListReaders returns SCARD_E_NO_READERS_AVAILABLE on iOS #17
Comments
Thanks for your feedback, our engineer working to have check this issue, we will get back to you very soon, keep in touch, |
@dfyx did you set reader delegate? in the latest lib, it supports Bluetooth 3.0, Bluetooth Smart and lightning based readers. so in your application, please make sure you did below work:
We provide demo source code, can find in SDK: There have a version already in Appstore, you can download and have a test too. smartcard-reader source code: https://github.com/FeitianSmartcardReader/FEITIAN_MOBILE_READERS/tree/master/iOS_SDK/demo/iReader_Appstore Please take a test, any questions, contact me anytime, thanks |
@dfyx do you still have issue on this topic? thanks and looking forward your reply, |
Sorry, can't test it right now as I'm in home office for the next few weeks because of Corona. I'll get back to you as soon as I'm at the office again. For now we resolved the problem by downgrading back to 1.32.3 and it appears to work. |
Noted, will keep this open status until have your test result, thanks and take care, |
Better late than never: It was a bit tricky to get it working with C# but now I can at least get it to read my card most of the time. Now I occasionally get |
@dfyx with bR301BLE and bR500(Bluetooth smart), the reader name is FT_XXXXXXXXXX(which is the name of Bluetooth reader), did you input the right name? |
I did and as said, it only happens occasionally. In my last test it happened when I read the same card with the same reader for the fourth time in a row. So maybe it has something to do with not freeing some handles correctly, I'm not sure. Edit: once it happens, I can only fix it by restarting my app which would confirm that there are some dangling handles. |
Alright, my last problem seems to have been a race condition in my app that caused it to not always wait for the callback. It's fixed now. Thanks a lot for your support. |
I've recently upgraded the SDK from version 1.x to 3.5.59 in my iOS project for better compatibility with the latest SDK and since then I've had problems connecting to card readers.
I request bluetooth authorization through
CBCentralManager
. As soon as the state ispoweredOn
and I have authorization, I callSCardEstablishContext
andSCardListReaders
. This has worked great in the past but now I get a return value ofSCARD_E_NO_READERS_AVAILABLE
even thoughEAAccessoryManager
tells me my bR301 is connected. I can temporarily fix this by disconnecting and reconnecting the card reader but the problem reappears after a while.I've also seen similar behavior with the iR301 though debugging that is a bit harder since I obviously can't connect my debugger through USB at the same time as the iR301 and wifi debugging isn't possible because our test devices aren't allowed to be in our company network.
I assume with the new SDK I have to explicitly connect to the devices to make them show up in
SCardListReaders
but I haven't quite figured out how to do that and the documentation isn't quite clear on how to do that.The text was updated successfully, but these errors were encountered: