20楼#
发布于:2004-02-03 15:58
;; Usbdriver.inf
;; ********* PLEASE READ *********** ;; The wizard cannot create exact INF files for all buses and device types. ;; You may have to make changes to this file in order to get your device to ;; install. In particular, hardware IDs and logical configurations require ;; intervention. ;; ;; The Win2K DDK documentation contains an excellent INF reference. ;--------- Version Section --------------------------------------------------- [Version] Signature="$Windows 95$" Provider=%ProviderName% ; If device fits one of the standard classes, use the name and GUID here, ; otherwise create your own device class and GUID as this example shows. Class=USB ClassGUID={ff646f80-8def-11d2-9449-00105a075f6b} ;--------- SourceDiskNames and SourceDiskFiles Section ----------------------- ; These sections identify source disks and files for installation. They are ; shown here as an example, but commented out. ;[SourceDisksNames] ;1 = "Install Disk",Disk1,, ;[SourceDisksFiles] ;Usbdriver.sys = 1,, ;--------- ClassInstall/ClassInstall32 Section ------------------------------- ; Not necessary if using a standard class ; 9X Style [ClassInstall] Addreg=Class_AddReg ; NT Style [ClassInstall32] Addreg=Class_AddReg [Class_AddReg] HKR,,,,%DeviceClassName% HKR,,Icon,,"-18" ;--------- DestinationDirs Section ------------------------------------------- [DestinationDirs] Usbdriver_Files_Driver = 10,System32\Drivers ;--------- Manufacturer and Models Sections ---------------------------------- [Manufacturer] %MfgName%=Mfg0 [Mfg0] %DeviceDesc%=Usbdriver_DDI, USB\VID_6513&PID_0089 ;---------- DDInstall Sections ----------------------------------------------- ; --------- Windows 9X ----------------- ; Experimentation has shown that DDInstall root names greater than 19 characters ; cause problems in Windows 98 [Usbdriver_DDI] CopyFiles=Usbdriver_Files_Driver AddReg=Usbdriver_9X_AddReg [Usbdriver_9X_AddReg] HKR,,DevLoader,,*ntkern HKR,,NTMPDriver,,Usbdriver.sys HKR, "Parameters", "BreakOnEntry", 0x00010001, 0 ; --------- Windows NT ----------------- [Usbdriver_DDI.NT] CopyFiles=Usbdriver_Files_Driver AddReg=Usbdriver_NT_AddReg [Usbdriver_DDI.NT.Services] Addservice = Usbdriver, 0x00000002, Usbdriver_AddService [Usbdriver_AddService] DisplayName = %SvcDesc% ServiceType = 1 ; SERVICE_KERNEL_DRIVER StartType = 3 ; SERVICE_DEMAND_START ErrorControl = 1 ; SERVICE_ERROR_NORMAL ServiceBinary = %10%\System32\Drivers\Usbdriver.sys [Usbdriver_NT_AddReg] HKLM, "System\CurrentControlSet\Services\Usbdriver\Parameters",\ "BreakOnEntry", 0x00010001, 0 ; --------- Files (common) ------------- [Usbdriver_Files_Driver] Usbdriver.sys ;--------- Strings Section --------------------------------------------------- [Strings] ProviderName="Your Company Name here" MfgName="Name of HW Manufacturer here" DeviceDesc="Description of Device here" DeviceClassName="Description of Device class here" SvcDesc="Description of NT service here" |
|
21楼#
发布于:2004-02-03 16:12
;; Usbdriver.inf
;; ********* PLEASE READ *********** ;; The wizard cannot create exact INF files for all buses and device types. ;; You may have to make changes to this file in order to get your device to ;; install. In particular, hardware IDs and logical configurations require ;; intervention. ;; ;; The Win2K DDK documentation contains an excellent INF reference. ;--------- Version Section --------------------------------------------------- [Version] Signature="$CHICAGO$" Class=USB ClassGUID={36FC9E60-C465-11CF-8056-444553540000} Provider=%ProviderName% DriverVer=2/2/2004,4.10.2222.12 ;--------- SourceDiskNames and SourceDiskFiles Section ----------------------- ; These sections identify source disks and files for installation. They are ; shown here as an example, but commented out. [SourceDisksNames] 1 = "Install Disk",Disk1,, [SourceDisksFiles] Usbdriver.sys = 1,, ;--------- ClassInstall/ClassInstall32 Section ------------------------------- ; Not necessary if using a standard class ; 9X Style [ClassInstall] Addreg=Class_AddReg ; NT Style [ClassInstall32] Addreg=Class_AddReg [Class_AddReg] HKR,,,,%DeviceClassName% HKR,,Icon,,"1" ;--------- DestinationDirs Section ------------------------------------------- [DestinationDirs] Usbdriver_Files_Driver = 10,System32Drivers ;--------- Manufacturer and Models Sections ---------------------------------- [Manufacturer] %MfgName%=Mfg0 [Mfg0];;最重要的地方要修改 %DeviceDesc%=Usbdriver_DDI, USBVID_6513&PID_0089 ;---------- DDInstall Sections ----------------------------------------------- ; --------- Windows 9X ----------------- ; Experimentation has shown that DDInstall root names greater than 19 characters ; cause problems in Windows 98 [Usbdriver_DDI] CopyFiles=Usbdriver_Files_Driver AddReg=Usbdriver_9X_AddReg [Usbdriver_9X_AddReg] HKR,,DevLoader,,*ntkern HKR,,NTMPDriver,,Usbdriver.sys HKR, "Parameters", "BreakOnEntry", 0x00010001, 0 ; --------- Windows NT ----------------- [Usbdriver_DDI.NT] CopyFiles=Usbdriver_Files_Driver AddReg=Usbdriver_NT_AddReg [Usbdriver_DDI.NT.Services] Addservice = Usbdriver, 0x00000002, Usbdriver_AddService [Usbdriver_AddService] DisplayName = %SvcDesc% ServiceType = 1 ; SERVICE_KERNEL_DRIVER StartType = 3 ; SERVICE_DEMAND_START ErrorControl = 1 ; SERVICE_ERROR_NORMAL ServiceBinary = %10%System32DriversUsbdriver.sys [Usbdriver_NT_AddReg] HKLM, "SystemCurrentControlSetServicesUsbdriverParameters", "BreakOnEntry", 0x00010001, 0 ; --------- Files (common) ------------- [Usbdriver_Files_Driver] Usbdriver.sys ;--------- Strings Section --------------------------------------------------- [Strings] ProviderName="yyouking" MfgName="yyouking" DeviceDesc="system" DeviceClassName="ss" SvcDesc="sss" |
|
|
22楼#
发布于:2004-02-03 16:37
[Mfg0];;最重要的地方要修改
%DeviceDesc%=Usbdriver_DDI, USBVID_6513&PID_0089 --------- 这是什么意思啊? 我的vid,pid 都对阿!! 还有你的ClassGUID={36FC9E60-C465-11CF-8056-444553540000} 是怎么来的啊,我原来的可是自己生成的阿! |
|
23楼#
发布于:2004-02-03 16:43
那个是USB类的GUID
改设备的PID、VID后就是新设备,发现新设备安装新驱动更方便 |
|
|
24楼#
发布于:2004-02-03 16:52
你要是亲临指导就好了,我现在连驱动都装不上了,郁闷!
我再试试! [Class_AddReg] HKR,,,,%DeviceClassName% HKR,,Icon,,"1"为什么把-18改成1呢? |
|
25楼#
发布于:2004-02-03 16:55
安装了你得以后,安装设备出现错误,配置注册表项无效。
怎么回事?? |
|
26楼#
发布于:2004-02-03 17:18
-18那个没有关系的,不改也可以的
不影响的 你也用D12吗 |
|
|
27楼#
发布于:2004-02-03 17:26
我没用d12,用的是公司自己做的板子,它要求中断传输,其他的就没有要求了,
所以我在read,write中增加了usbinterrupttransfer,其他的并没有改动,不知道这样对不?而且没有涉及到寄存器等,我觉得因为我们做的是上层的驱动,下层的才涉及那些,你觉得对么? 我把guid改成你说得usb的那个,可是还是不能启用啊? 真是不知道为什么? 我要下班了,你明天还在线么? |
|
28楼#
发布于:2004-02-04 08:27
下位机是什么开发板啊
|
|
|
29楼#
发布于:2004-02-04 10:09
没有任何开发板,
这个芯片现在已经有可以用的驱动,但是没有源代码,老板让从新开发(因为原来的不是我们作的) |
|
30楼#
发布于:2004-02-04 10:17
固件呢 源程序有的吧
|
|
|
31楼#
发布于:2004-02-04 11:02
没有,只有一个已经可以使用的硬件,应用程序与固件都没有源代码。
您说,驱动程序需要固件的源代码么? 我生成的驱动框架怎么不好用,为什么呢? |
|
32楼#
发布于:2004-02-07 13:26
固件中的PID,VID代表产品,但是当安装驱动错误后,这个PID,VID
的设备再次插上后不会提示安装驱动了 我也碰到过这个问题 |
|
|
33楼#
发布于:2004-02-07 13:47
yyouking :
你有没有试过改变pid 和vid 后再安装驱动,为什么显示“安装驱动错误,名称已用作服务名或服务显示名”。固件和inf中的pid和vid都改过了。 |
|
|
34楼#
发布于:2004-02-07 14:03
hityumiao :
重新安装的话,要改三个地方: 1。插入你的usb设备,卸载驱动程序 2。删除注册表相关键值:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Services\你的驱动目录 3。删除系统盘\windows\inf\某个oemxx.inf和oemxx.PNF文件,他们是你的inf文件备份,你可以打开oemxx.inf文件看一下,应该认得的,千万不要删错了。 删除系统盘\windows\system32\DRIVERS\你的 .sys文件 然后重新启动机器,再插入设备重新安装。 可能还有别的地方有你的安装信息,不过我改了这三个地方就可以重新安装了。 |
|
|
35楼#
发布于:2004-02-08 00:51
是啊,我的设备也是这样的问题,装好了有问号,但通讯正常.是不是要去USB什么网站注册什么东西才有?还有,D12的片子怎么设置中断传输和批传输啊?我的端点2设置了批传输好象他有几个字节他就传几个,不是等到64个字节才传的?
|
|
36楼#
发布于:2004-02-08 12:57
服务器名字那种情况我也遇到过,可能是那个PID,VID已经用做已经存在的设备了,而且操作系统中包括这个驱动了, 利用其他的值就可以了
要不就全部关闭重新启动运行 |
|
|
37楼#
发布于:2004-02-09 09:59
我是用的新的pid 和vid,重新安装驱动就装不上,到底什么问题啊。。。。
|
|
|
38楼#
发布于:2004-02-11 09:16
不会吧,已经安装上过,就是说枚举已经通过了啊
修改PID,VID后就是新设备了,枚举应该也能通过,那是驱动或者是INF的问题了 |
|
|
39楼#
发布于:2004-02-11 09:37
安装出现问题主要是INF的问题,
通信成功否是驱动的问题 |
|
|