我想用D12做一个USB的温度采集系统,驱动程序用别人的,但就是装不上去,每次插上设备时,通过向导来添加程序,但都显示找不到相关硬件信息 设备描述符如下: sizeof(DEVICE_DESCRIPTOR_STRUCT), //设备描述符的字节数大小 DEVICE_DESCRIPTOR, //设备描述符类型编号 0x1001, //USB版本号 0x00, //USB分配的设备类代码 0x00, //USB分配的子类代码 0x00, //USB分配的设备协议代码 0x10, //端点0的最大包大小 0x7104, //厂商编号VID, 0x2202, //产品编号PID, 0x0001, //设备出厂编号 0x01, //设备厂商字符串的索引 0x02, //描述产品字符串的索引 0x03, //描述设备序列号字符串的索引 0x01 接口描述如下: { sizeof(INTERFACE_DESCRIPTOR_STRUCT), //接口描述符的字节数大小 INTERFACE_DESCRIPTOR, //接口描述符类型编号 0x00, //接口编号为0 0x00, //该接口描述符的编号 0x00, //非0端点数量为0 0x00, // 0x00, //使用的子类 0x00, // 0x00 //接口描述符字符串索引 }, INF文件如下: Version] Signature="$CHICAGO$" Class=USB provider=%PHILIPS% LayoutFile=layout.inf
[Manufacturer] %MfgName%=Philips
[Philips] %USBVID_0471&PID_0222.DeviceDesc%=D12TEST.Dev, USBVID_0471&PID_0222 %USBVID_0471&PID_0666.DeviceDesc%=D12TEST.Dev, USBVID_0471&PID_0666 %USBVID_0471&PID_0888.DeviceDesc%=D12TEST.Dev, USBVID_0471&PID_0888
[PreCopySection] HKR,,NoSetupUI,,1
[DestinationDirs] D12TEST.Files.Ext = 10,System32Drivers D12TEST.Files.Inf = 10,INF
[D12TEST.Dev] CopyFiles=D12TEST.Files.Ext AddReg=D12TEST.AddReg
[D12TEST.Dev.NT] CopyFiles=D12TEST.Files.Ext AddReg=D12TEST.AddReg
[D12TEST.Dev.NT.Services] Addservice = D12TEST, 0x00000002, D12TEST.AddService
[D12TEST.AddService] DisplayName = %D12TEST.SvcDesc% ServiceType = 1 ; SERVICE_KERNEL_DRIVER StartType = 2 ; SERVICE_AUTO_START ErrorControl = 1 ; SERVICE_ERROR_NORMAL ServiceBinary = %10%System32DriversD12TEST.sys LoadOrderGroup = Base
[D12TEST.AddReg] HKR,,DevLoader,,*ntkern HKR,,NTMPDriver,,D12TEST.sys HKLM,"SystemCurrentcontrolsetServicesD12TESTParameters","MaximumTransferSize",0x10001,65536 HKLM,"SystemCurrentcontrolsetServicesD12TESTParameters","DebugLevel",0x10001,2
[D12TEST.Files.Ext] D12TEST.sys
;---------------------------------------------------------------;
[Strings] PHILIPS="Philips Semiconductors" MfgName="Philips" USBVID_0471&PID_0222.DeviceDesc="Philips PDIUSBD12 Evaluation Board" USBVID_0471&PID_0666.DeviceDesc="Philips PDIUSBD12 SMART Evaluation Board" USBVID_0471&PID_0888.DeviceDesc="Philips PDIUSBD12 USB-EPP Evaluation Board" D12TEST.SvcDesc="D12TEST.Sys PDIUSBD12 Bulk IO test driver"
|