The exclusive promotional activities on JCOP J3H145 card and Feitian R301 Smartcard Reader are in full swing. Please check this page for details.

How to selected protocol of compound device

JavaCard Applet Development Related Questions and Answers.
BirdKing
Posts: 76
Joined: Wed Nov 04, 2015 7:23 am
Points :558
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: 40
Joined: Mon Jun 04, 2018 5:07 am
Points :280
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: 40
Joined: Mon Jun 04, 2018 5:07 am
Points :280
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: Baidu [Spider], Bing [Bot] and 1 guest

JavaCard OS : Disclaimer