支持 CDC 的 USB 串行电缆

发布于 2024-08-26 08:16:49 字数 336 浏览 3 评论 0原文

我买了一条 USB 转串行电缆,声称符合 CDC 标准。

但接口描述符中的 bInterfaceClass 值为 0xFF(这是特定于供应商的)。我原以为它是 0x02(通信和 CDC 控制)。

在设备管理器中,我发现正在加载的驱动程序是ser2pl.sys和serenum.sys。 我了解到 usbser.sys 是 Windows CDC 驱动程序,但它没有为我的电缆加载。

我对这个 CDC 还很陌生,所以我有以下问题

1.这是否表明该电缆不符合 CDC 标准 2.我可以通过加载 usbser.sys 使该电缆符合 CDC 标准(因为 CDC 是一个驱动程序功能)。如果是的话怎么办?

I bought a USB to Serial cable which claims to be CDC compliant.

But the bInterfaceClass value in interface descriptor is 0xFF(which is vendor specific). I was expecting it to be 0x02 (Communications and CDC control).

In the device manager, i found that the drivers being loaded are ser2pl.sys and serenum.sys.
I had learnt usbser.sys is the windows CDC driver, but it was not loaded for my cable.

I am pretty much new to this CDC, so i have following questions

1.Does this indicate that the cable is not CDC compliant
2.Can i make this cable CDC compliant (since CDC is a driver functionality), by loading usbser.sys. If yes how?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

深空失忆 2024-09-02 08:16:49
  1. 我不确定,但这表明电缆不必遵循 CDC
  2. 我不认为您可以使其兼容,但如果您想使用 usbser.sys 作为该电缆的驱动程序,您应该提供应该加载 usbser 的 inf 文件.sys 如果您的电缆已连接,请检查驱动程序 VID PID 等
    也许这应该有帮助
    http://www.mjmwired.net/kernel/Documentation/usb/gadget_serial。 txt(搜索 usbser.sys 并查找 .inf 文件,并相应地对其进行修改。
  1. I don't know for sure but thats indication that cable will not necessary follow CDC
  2. I don't think you can make it compliant but if you want to use usbser.sys as driver for that cable you should provide inf file which should load usbser.sys if your cable is connected, check the driver VID PID etc
    probably this should help
    http://www.mjmwired.net/kernel/Documentation/usb/gadget_serial.txt (search for usbser.sys and look for .inf file, and modyfi it accordingly.
勿忘初心 2024-09-02 08:16:49

ser2pl.sys 建议使用 Prolific PL2303 设备。它们不符合 CDC 标准,并且无法与 CDC 驱动程序一起使用。 OTOH 它们可在 Windows、Linux 和 OS X 上运行,并且可能是市场上兼容性最好的芯片。

CDC 没有被电缆供应商使用,因为它在 Windows XP 和 IIRC 中实现得很差,在 9x/Me 中根本不可用。很高兴该驱动程序最终在 Windows 7 中正常工作(不知道 Vista 是否如此)。

ser2pl.sys suggests a Prolific PL2303 device. They are not CDC compliant and they cannot be made to work with the CDC driver. OTOH they are working on Windows, Linux and OS X and are probably the most compatible chips on the market.

CDC was not used by cable vendors because it was really poorly implemented in Windows XP and IIRC it was not available at all in 9x/Me. It is nice that the driver finally work as it should in Windows 7 (dunno about Vista).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文