如何启用“端口设置” USB 串行端口设备的选项卡?

发布于 2024-11-03 02:49:45 字数 345 浏览 10 评论 0 原文

我正在维护 USB 外围设备的软件,该外围设备在 Windows 设备管理器上作为串行端口出现。

.inf 文件仅指定标准 usbser.sys 驱动程序。

大多数此类设备在属性下都有一个“端口设置”​​选项卡,可以在其中更改设备的串行端口分配 - 这就是我希望能够为我正在维护的该设备执行的操作。

如何启用“端口设置”​​选项卡?

我尝试将 serenum.sys 的“AddService”指令添加到我的 .inf 文件中(基于所有具有“端口设置”​​选项卡的设备都有此驱动程序),但这不起作用。但由于 serenum.sys 没有出现在“驱动程序详细信息”下的“驱动程序”选项卡下,也许我没有正确添加它。

I am maintaining software for a usb peripheral that comes up as a serial port on Windows Device Manager.

The .inf file just specifies the standard usbser.sys driver.

Most such devices have a "Port Settings" tab under properties where the serial port assignment for the device can be changed - which is what I want to be able to do for this device I am maintaining.

How can I enable the "Port Settings" tab?

I tried adding an 'AddService' directive for serenum.sys to my .inf file (on the basis that all the devices that do have Ports Settings tab have this driver) but that did not work. But as serenum.sys did not come up under the "Driver" tab under Driver Details maybe I didn't add that correctly.

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

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

发布评论

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

评论(1

爱*していゐ 2024-11-10 02:49:45

此 inf 文件执行以下操作:

http://www.pjrc.com/teensy/cdc_acm_class.inf< /a>

这行似乎是启用“端口设置”​​选项卡的关键。

HKR,,EnumPropPages32,,"msports.dll,SerialPortPropPageProvider"

但仅此还不够 - 与此链接相反http://www.digital-kaos.co.uk/forums/f34/how-change-com-port-settings-using-usb-serial-adapter-1926/(滚动到第二帖子)。

上面的第一个链接还有其他一些优点,例如按照 MS 的建议使用 Include=mdmcpq.inf,而不是直接引用 usbser.sys。

是时候喝杯咖啡了!

编辑:避免我的朋友遇到的麻烦,并且不要在上面的示例 cdc_acm_class.inf 中重命名“FakeModemCopyFileSection”;看来“FakeModemCopyFileSection”是一个众所周知的节名称(从 mdmcpq.inf 导入?)。

This inf file does the business:

http://www.pjrc.com/teensy/cdc_acm_class.inf

This line seems to be the key to enabling the Port Settings tab.

HKR,,EnumPropPages32,,"msports.dll,SerialPortPropPageProvider"

but that alone is not enough - contrary to this link http://www.digital-kaos.co.uk/forums/f34/how-change-com-port-settings-using-usb-serial-adapter-1926/ (scroll down to the second post).

The first link above also has some other goodness such as using Include=mdmcpq.inf, as MS recommends, rather that referencing usbser.sys directly.

Time for some coff-ay!

EDIT: Save yourself the hassle a friend of mine had and don't rename 'FakeModemCopyFileSection' in the example cdc_acm_class.inf above; It seems 'FakeModemCopyFileSection' is a well-known section name (imported from mdmcpq.inf ?).

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