DSF(device simulation framework)的安装与配置

可以参考online MSDN:http://msdn.microsoft.com/en-us/library/ff538304(v=VS.85).aspx(WDK win7) or

ms-help://MS.MSDNQTR.v90.en/dsf_d/hh/DSF_d/dsf_design_guide_rc1_5fe680fd-01a1-41ee-8155-98d2f3d3add2.xml.htm(WDK server 2008).

以下的安装步骤和文件是对应于WDK server2008(6001.18001),和最新的WDK可能有些不同.

WDK server2008:

1.在目标系统上,安装DSF runtime.

Run dsfx86runtime.msi or dsfx64runtime.msi from the /dsf directory on your WDK installation disk.(To run an unattended installation of the DSF runtime, run msiexec.exe /passive /i dsfx86runtime.msi or msiexec.exe /passive /i dsfx64runtime.msi.)

 

2.Run the DSF sample devices.

1>create a simulated USB 2.0 EHCI controller. (open a Command Prompt window, navigate to the /Program Files/dsf/softehci folder, and run softehcicfg /install.) 在运行sample devices之前,要等待controller枚举完毕.可以去device management查看,如果OK了,会显示:Microsoft USB 2.0 Host Controller Simulator".

2>OK,现在可以运行sample device了,我们选择一个loopback sample. Open the /Program Files/dsf/USBLoopback folder and run any of the script files by using the Microsoft Windows Script Host utility (cscript.exe),

cscript RunLoopbackSample.wsf
cscript Test2.0HubWith2.0Looback.wsf
cscript Test2.0HubWith1.1Looback.wsf

3.Now, 将有一个general USB device出现在Microsoft USB 2.0 Host Controller Simulator下面.我们可以load usb driver去测试我们的驱动了.

 

WDK win7可以有所不同,请参考上面的online msdn.

你可能感兴趣的:(windows,driver--usb)