FeitianSmartcardReader / FEITIAN_MOBILE_READERS

This is first Combo SDK, support bR301,iR301,bR301BLE,bR500
http://www.pcscreader.com/docs/getting_started.html
25 stars 13 forks source link

Feitian iR301 SmartCard Reader Does not Get Powered On When Connecting to iOS Device #54

Closed bikashpoudel17 closed 3 weeks ago

bikashpoudel17 commented 1 month ago

I purchased two Feitian USB-C iR301 smart card readers. When I connect it to my MAC and ran tests using PCSC tool. But, when I connect it to my iPhone (which has lightning port) using a USB-C to Lightning Dongle, the smart card reader did not get powered on. I tried on my Nokia Phone which has iReader and has USB-C port, I experience similar issue. Am I missing anything?

bikashpoudel17 commented 1 month ago

I was able to connect it to my iPad which has USB-C port and able to interact with the card reader using iReader App. on iPhone or Android phone with iReader App, the App says "No Reader Connected" and the Power LED is off in the card.

Stunc0 commented 1 month ago

If i don't tell a mistake, the reader with lithning cannot be compatible with iPhone with usb-c port (even with a dongle). You must use the usb-c reader from feitian on iphone with usb-c port.

FeitianSmartcardReader commented 1 month ago

You are right. The main reason is lightning definition is totally different than Type-C, so even go with adapter, it must be customized adapter.

Thanks.

On Oct 8, 2024, at 12:51 AM, nma @.***> wrote:

If i don't tell a mistake, the reader with lithning cannot be compatible with iPhone with usb-c port (even with a dongle). You must use the usb-c reader from feitian on iphone with usb-c port.

— Reply to this email directly, view it on GitHub https://github.com/FeitianSmartcardReader/FEITIAN_MOBILE_READERS/issues/54#issuecomment-2397431203, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACI3BISSJYZBPLV323DYYYDZ2K323AVCNFSM6AAAAABPKUE5CSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJXGQZTCMRQGM. You are receiving this because you are subscribed to this thread.

bpoudel7 commented 1 month ago

I am developing an iOS App in React Native. It is a crypto app. I am using the secure element in my JCOS smart card to perform some cryptographic functions. I looked into the demo applications provided with the SDK. What is the preferred way to use the iOS SDK for react-native? This is the approach I took: I have a FeitianSmartcardReader.swift file that calls the APIs in the wincards.h. I used the bridging header file to import the .h files from the SDK. Then, I use a bridge.m file to export the APIs to react native. Finally, I have a smartcardreader.js that provides all the APIs to connect and sendData to the smart card. Is there a better way?

bpoudel7 commented 1 month ago

You are right. The main reason is lightning definition is totally different than Type-C, so even go with adapter, it must be customized adapter. Thanks. On Oct 8, 2024, at 12:51 AM, nma @.***> wrote: If i don't tell a mistake, the reader with lithning cannot be compatible with iPhone with usb-c port (even with a dongle). You must use the usb-c reader from feitian on iphone with usb-c port. — Reply to this email directly, view it on GitHub <#54 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACI3BISSJYZBPLV323DYYYDZ2K323AVCNFSM6AAAAABPKUE5CSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJXGQZTCMRQGM. You are receiving this because you are subscribed to this thread.

I tested on iPhone 16 that has USB-C, it worked fine. I was able to use the iReader App to interact with the smart card.

bpoudel7 commented 1 month ago

This issue is resolved thank you.