预安装WinXP USB驱动程序,以便无需交互即可连接设备 [英] Preinstalling WinXP USB drivers to be able to connect device without interaction

查看:169
本文介绍了预安装WinXP USB驱动程序,以便无需交互即可连接设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们是一家小型硬件制造商。我们的大多数产品都使用USB对所使用的控制器进行编程。
当前的情况是对硬件(汇编处理器的一部分)进行编程非常耗费人力。
每次在Windows中插入新的USB设备时,都会提示安装驱动程序。这意味着对于每个新产品,我们都必须经历不,不访问互联网->是,自动搜索->完成的过程。我们甚至对每个产品都必须这样做两次。

We are a small hardware manufacturer. Most of our products use USB for programming the controllers used. The current situation is that programming the hardware (part of the assembly processor) is rather labour intensive. Each time a new USB device gets plugged in Windows prompts for a driver install. This means that for each new product we have to go through a process of "no, don't go to internet" --> "yes, search automatically" --> "done". We even have to do this twice for each product.

我一直在尝试Windows预安装程序(DPInst),但这似乎只能成功实现是的,搜索自动部分。
插入USB设备后是否可以完全自动安装驱动程序?

I have been experimenting with the Windows preinstaller (DPInst), but this seems to only facilitate a succesful "yes, search automatically" part. Is there a way to have the drivers installed fully automatically after plugging in the USB device?

亲切问候,

Ronald

推荐答案

我认为您的设备具有唯一的USB序列号,因此每个序列都被检测为

I take it your devices have a unique USB serial number, and hence each one is detected as a new device that hasn't been seen before.

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

If so, then the solution is this, from http://www.lvr.com/usbfaq.htm:


在设备测试期间,我们会附加许多相同的
设备,只是序列号为
。如何防止
Windows在每次连接设备
时要求安装新的
驱动程序?

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?

下面描述的方法导致
Windows 2000和XP忽略
设备的序列号。推荐
仅用于测试环境

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

此注册表项控制Windows使用或忽略设备序列号

Windows :

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

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\UsbFlags]

[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

GlobalDisableSerNumGen = 1

要忽略单个
设备的序列号,请在上述... \UsbFlags键下创建条目

名称必须以 IgnoreHWSerNum
开头,后跟设备的供应商和产品ID
。值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."

示例(供应商ID = 0925h,产品ID
= 016Ah):

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

IgnoreHWSerNum0925016A = 1

IgnoreHWSerNum0925016A= 1

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

An alternative hardware/firmware solution is to disable the device USB serial number during production (e.g. with a link, possibly one made by a test fixture). Without a USB serial number, Windows will assign a pseudo serial-number to the device, based on its position in the connection tree. That wouldn't be likely to change during a production run, so all devices would then be treated as identical and Windows wouldn't bother with the new driver stuff.

这篇关于预安装WinXP USB驱动程序,以便无需交互即可连接设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆