Page 1 of 1

How to selected protocol of compound device

Posted: Sun Jan 27, 2019 9:30 am
by BirdKing
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?

Re: How to selected protocol of compound device

Posted: Tue Feb 05, 2019 7:10 am
by DaHuFa
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.

Re: How to selected protocol of compound device

Posted: Tue Feb 05, 2019 10:09 am
by sandbox
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. :?

Re: How to selected protocol of compound device

Posted: Mon Feb 11, 2019 10:07 am
by DaHuFa
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.