JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html

How to selected protocol of compound device

JavaCard Applet Development Related Questions and Answers.
BirdKing
Posts: 86
Joined: Wed Nov 04, 2015 7:23 am
Points :656
Contact:

How to selected protocol of compound device

Post by BirdKing » Sun Jan 27, 2019 9:30 am

Hello, everyone. I want to implement a compound device. It has two protocol: CCID and FIDO HID.I have some problem with it. How to select protocol? FIDO HID can interrupt CCID to process its commands if CCID is working?

DaHuFa
Posts: 53
Joined: Mon Jun 04, 2018 5:07 am
Points :392
Contact:

Re: How to selected protocol of compound device

Post by DaHuFa » Tue Feb 05, 2019 7:10 am

A device can supports many interfaces. Your CCID and HID is a hardware. And they should have different end points. You can identify which protocol received by end point.

sandbox
Posts: 2
Joined: Tue Feb 05, 2019 3:13 am
Points :22
Contact:

Re: How to selected protocol of compound device

Post by sandbox » Tue Feb 05, 2019 10:09 am

DaHuFa wrote:
Tue Feb 05, 2019 7:10 am
A device can supports many interfaces. Your CCID and HID is a hardware. And they should have different end points. You can identify which protocol received by end point.
Would you give a piece of code OR more details about USB compound device as a reference?

Thanks. :?

DaHuFa
Posts: 53
Joined: Mon Jun 04, 2018 5:07 am
Points :392
Contact:

Re: How to selected protocol of compound device

Post by DaHuFa » Mon Feb 11, 2019 10:07 am

It is so easy. You only need two interface descripters and a config descripter. One of the interface descripters is HID descripter. The other is CCID descripter.

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 26 guests

JavaCard OS : Disclaimer