Which one is better for general purpose USB host application? CDC or PHDC?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Which one is better for general purpose USB host application? CDC or PHDC?

ソリューションへジャンプ
1,441件の閲覧回数
kai_liu
Senior Contributor I

The USB host application I am working on is Android ADB, which has dedicated interface with BulkIN/BulkOUT EPs.

Following instructions from FSL user manual for USB stack, the enumeration process works well. However, the class APIs are quite different. I want to refers some other class implementation as my code base.

Either CDC/PHDC use BulkIN/BulkOUT as main communication EPs, but their implemenations and structures definitions are quite complex.

Since ADB only requires a pair of Bulk EPs to send/receive messages, which one is more closer to my application? CDC or PHDC?

ラベル(3)
タグ(1)
0 件の賞賛
返信
1 解決策
1,244件の閲覧回数
Paul_Tian
NXP Employee
NXP Employee

Hi, Liu Kai

Yes, you are right. PHDC application expects minimum 2 endpoints, and one is bulk In and the other is bulk out. For detail, you can reference USB stack 4.1.1. and file name is usb_host_phdc.c

Hope my reply can help you.

Best Regards

Paul

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,244件の閲覧回数
kai_liu
Senior Contributor I

PHDC is a better reference than CDC.

0 件の賞賛
返信
1,245件の閲覧回数
Paul_Tian
NXP Employee
NXP Employee

Hi, Liu Kai

Yes, you are right. PHDC application expects minimum 2 endpoints, and one is bulk In and the other is bulk out. For detail, you can reference USB stack 4.1.1. and file name is usb_host_phdc.c

Hope my reply can help you.

Best Regards

Paul

0 件の賞賛
返信
1,244件の閲覧回数
kai_liu
Senior Contributor I

Hi, Paul (Zhe Tian),

Thanks for your reply. After reading specification for CDC/PHDC, I have started to migrate my project based upon PHDC implementation. It is painful since FSL structure is complex and takes longer time to read code than my expectation.

I doubted if anyone can add more stacks on basis of FSL USB host, for example, Bluetooth and WiFi    dongles.

Allan K Liu

0 件の賞賛
返信