This topic has been archived. It cannot be replied.
-
工作学习 / 学科技术 / 有没有人对USB协议很了解的,CDC的设备和HID的设备在数据传输上哪些地方有区别。比如我猜想建立连接的时候,主机问是啥设备,一个说我是C,一个说我是H,虽然回答内容不一样,但是格式是一样。有什么数据包格式不同的地方么?多谢。
-haihai(享受阳光🌞);
2023-8-5
(#15590710@0)
-
主机在enumeration的时候通过设备描述符知道是什么设备连过来。
-hashicorp1(耶鲁妈妈);
2023-8-8
(#15596269@0)
+2
-
嗯,我读了个大概,CDC和HID是使用不同的包来通讯,但主机上都是调用个read/write, 至于具体用什么样的包,上层不需要关心了
-haihai(享受阳光🌞);
2023-8-8
(#15596342@0)
+1