Git Product home page Git Product logo

Comments (9)

FeitianSmartcardReader avatar FeitianSmartcardReader commented on June 19, 2024

Thanks for your feedback, our engineer working to have check this issue, we will get back to you very soon, keep in touch,

from feitian_mobile_readers.

FeitianSmartcardReader avatar FeitianSmartcardReader commented on June 19, 2024

@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:

  1. Add corebluetooth framework for Bluetooth smart device, and add ExtrnalAccessory framework for lightning and Bluetooth 3.0 readers.
  2. Set the reader delegate, the API can find in ReaderInterface.h
  3. Call setDeviceType API to set the reader type, if your reader is bR301 with Blue casing, use IR301_AND_BR301

typedef enum FTDEVICETYPE{
EMPTY_DEVICE = 0, // The reader will scan in background automatically, until find the device and then use this type by default
IR301_AND_BR301 = 1, // for lightning and Bluetooth 3.0 readers
BR301BLE_AND_BR500 = 2, //For Bluetooth Smart readers
}FTDEVICETYPE;

  1. Call SCardEstablishContext and SCardListReaders to list your reader and connect it

We provide demo source code, can find in SDK:
https://github.com/FeitianSmartcardReader/FEITIAN_MOBILE_READERS/tree/master/iOS_SDK/demo

There have a version already in Appstore, you can download and have a test too.
https://itunes.apple.com/us/app/smartcard-reader/id525954151?mt=8

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

from feitian_mobile_readers.

FeitianSmartcardReader avatar FeitianSmartcardReader commented on June 19, 2024

@dfyx do you still have issue on this topic? thanks and looking forward your reply,

from feitian_mobile_readers.

dfyx avatar dfyx commented on June 19, 2024

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.

from feitian_mobile_readers.

FeitianSmartcardReader avatar FeitianSmartcardReader commented on June 19, 2024

Noted, will keep this open status until have your test result, thanks and take care,

from feitian_mobile_readers.

dfyx avatar dfyx commented on June 19, 2024

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 SCARD_E_READER_UNSUPPORTED when calling SCardConnect which to my knowledge has never happened before. Feels strange because that should only depend on the reader, not on how I'm talking to it.

from feitian_mobile_readers.

FeitianSmartcardReader avatar FeitianSmartcardReader commented on June 19, 2024

@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?

from feitian_mobile_readers.

dfyx avatar dfyx commented on June 19, 2024

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.

from feitian_mobile_readers.

dfyx avatar dfyx commented on June 19, 2024

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.

from feitian_mobile_readers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.