gpt4 book ai didi

installation - 预装 WinXP USB 驱动程序,无需交互即可连接设备

转载 作者:行者123 更新时间:2023-12-04 17:13:21 27 4
gpt4 key购买 nike

我们是一家小型硬件制造商。我们的大部分产品都使用 USB 对所使用的 Controller 进行编程。
目前的情况是对硬件(组装处理器的一部分)进行编程是相当费力的。
每次插入新的 USB 设备时,Windows 都会提示安装驱动程序。这意味着对于每个新产品,我们都必须经历“不,不要上网”-->“是,自动搜索”-->“完成”的过程。我们甚至必须为每个产品执行两次此操作。

我一直在尝试使用 Windows 预安装程序 (DPInst),但这似乎只会促进“是的,自动搜索”部分的成功。
有没有办法在插入USB设备后完全自动安装驱动程序?

亲切的问候,

罗纳德

最佳答案

我认为您的设备具有唯一的 USB 序列号,因此每个设备都被检测为以前从未见过的新设备。

如果是这样,那么解决方案是这样的,来自 http://www.lvr.com/usbfaq.htm :

During device testing, we attach many devices that are identical except for the serial numbers. How can I prevent Windows from asking to install a new driver every time a device is attached?

The method described below causes Windows 2000 and XP to ignore a device's serial number. It's recommended for test environments only.

This registry key controls whether Windows uses or ignores device serial numbers:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\UsbFlags]

It's possible to ignore all serial numbers, though this approach is NOT recommended. To ignore all serial numbers, in the above key, change this value to zero:

GlobalDisableSerNumGen = 1

To ignore the serial number for an individual device, create an entry under the above ...\UsbFlags key. The name must start with "IgnoreHWSerNum" followed by the vendor and product ID of the device. A value of 1 = "disable the serial number."

Example (Vendor ID = 0925h, Product ID = 016Ah):

IgnoreHWSerNum0925016A= 1



另一种硬件/固件解决方案是在生产期间禁用设备 USB 序列号(例如,使用链接,可能是由测试夹具制作的)。如果没有 USB 序列号,Windows 将根据设备在连接树中的位置为其分配一个伪序列号。这在生产运行期间不太可能改变,因此所有设备都将被视为相同,Windows 不会打扰新的驱动程序内容。

关于installation - 预装 WinXP USB 驱动程序,无需交互即可连接设备,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3316155/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com