阅读:6130回复:5
求助:USB复合设备驱动问题
本人现在做了一个USB复合设备,用了两个接口,第一个接口用实现一个HID设备,第二个接口实现非标准类设备。HID类设备操作系统自带驱动,非标准类设备我也有现成的驱动,现在的问题是不知道如何安装这两个驱动程序,我查了一些资料说要写个*.inf来安装这两个驱动程序,请问哪位高人能给小弟指点一下到底怎么解决这个问题。先谢谢了~~~
|
|
沙发#
发布于:2009-12-16 13:08
USB的两个接口,在Host端表现出来的就是两个设备了(除非它们能组成”接口组“,那样可以被系统识别为同一个设备)。你可以把两个设备的安装信息写在同一个Inf文件中,也可以分别写。
CY001开发板提供的一份固件代码中也包含了两个接口,将固件加载到开发板后,系统就会把它们识别为两个不同的设备,提示安装驱动。两个设备的安装信息都包含在cy001.inf文件中。 可以参考一下附件中CY001说明书。 |
|
|
板凳#
发布于:2009-12-18 20:01
回 1楼(张书爱玉) 的帖子
首先感谢你的回答 你的那个CY001板子做的很好 你能不能把cy001.inf发给我一份 参考一下 这是我的邮箱jack-j@163.com 再次感谢了!!! |
|
地板#
发布于:2009-12-20 10:36
看吧:
;/*++ ;Copyright (c) ChinaHearing. All rights reserved. ; ;Module Name:; ; CY001.INF; ;Abstract: ; Installation inf for CY001 Learning Kit ;--*/ [Version] Signature="$WINDOWS NT$" Class=CY001 Sample ClassGuid={9048DC75-B91C-4392-925A-44A7269D6BD4} Provider=ChinaHearing DriverVer=11/23/2009,6.0.6001.18002 CatalogFile=CY001Sample.cat ;==================driver files======================== [DestinationDirs] CopyFiles.CY001 = 12 CopyFiles.CoInstaller = 11 [SourceDisksNames] 1=%Disk_Description%,,, [SourceDisksFiles] CY001.sys = 1 WdfCoInstaller01007.dll=1 [CopyFiles.CoInstaller] WdfCoInstaller01007.dll [CopyFiles.CY001] CY001.sys ; ================= Class section ===================== [ClassInstall32] Addreg=SampleClassReg [SampleClassReg] HKR,,,0,%ClassName% HKR,,Icon,,-5 ; ================= Device section ===================== [Manufacturer] %MfgName%=ChinaHearing,NTx86 ; For Win2K [ChinaHearing] "USB\VID_04B4&PID_8613"=CY001.Dev, USB\VID_04B4&PID_8613 "USB\VID_04B4&PID_1004"=CY001.Dev, USB\VID_04B4&PID_1004 "USB\VID_04B4&PID_1004_00(4 EndPoints)"=CY001.Dev, USB\VID_04B4&PID_1004&MI_00 "USB\VID_04B4&PID_1004_01(0 Endpoints)"=CY001.Dev, USB\VID_04B4&PID_1004&MI_01 ; For XP and later [ChinaHearing.NTx86] "USB\VID_04B4&PID_8613"=CY001.Dev, USB\VID_04B4&PID_8613 "USB\VID_04B4&PID_1004"=CY001.Dev, USB\VID_04B4&PID_1004 "USB\VID_04B4&PID_1004_00(4 EndPoints)"=CY001.Dev, USB\VID_04B4&PID_1004&MI_00 "USB\VID_04B4&PID_1004_01(0 EndPoints)"=CY001.Dev, USB\VID_04B4&PID_1004&MI_01 [CY001.Dev.NT] CopyFiles=CopyFiles.CY001 [CY001.Dev.NT.Services] Addservice = CY001, 0x00000002, CY001.AddService [CY001.AddService] DisplayName = %CY001.SvcDesc% ServiceType = 1 ; SERVICE_KERNEL_DRIVER StartType = 3 ; SERVICE_DEMAND_START ErrorControl = 1 ; SERVICE_ERROR_NORMAL ServiceBinary = %10%\System32\Drivers\CY001.sys AddReg = CY001.AddReg LoadOrderGroup = Base [CY001.AddReg] HKR, Parameters\Wdf, VerboseOn, 0x00010001, 1 HKR, Parameters\Wdf, VerifierOn, 0x00010001, 1 HKR, Parameters\Wdf, DbgBreakOnError, 0x00010001, 1 ;===================== WDF Coinstaller installation ===================== [CY001.Dev.NT.CoInstallers] AddReg=CoInstaller_AddReg CopyFiles=CopyFiles.CoInstaller [CoInstaller_AddReg] HKR,,CoInstallers32,0x00010000, "WdfCoInstaller01007.dll,WdfCoInstaller" [CY001.Dev.NT.Wdf] KmdfService = CY001, CY001_wdfsect [CY001_wdfsect] KmdfLibraryVersion = 1.7 ;=====================String============================= [Strings] MfgName="ChinaHearing" Disk_Description = "CY001 Installation Disk" CY001.SvcDesc = "CY001 Service" ClassName = "CY001 Sample Device" ;---------------------------------------------------------------; [Strings] MfgName="ChinaHearing" Disk_Description = "CY001 Installation Disk" CY001.SvcDesc = "CY001 Service" ClassName = "CY001 Sample Device" |
|
|
地下室#
发布于:2009-12-24 12:52
回 3楼(张书爱玉) 的帖子
再次表示感谢! |
|
5楼#
发布于:2009-12-26 13:40
联系我们: drivercoding@hotmail.com
|
|
|