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,435 次查看
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?

标记 (1)
0 项奖励
回复
1 解答
1,238 次查看
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,238 次查看
kai_liu
Senior Contributor I

PHDC is a better reference than CDC.

0 项奖励
回复
1,239 次查看
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,238 次查看
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 项奖励
回复