« | September 2025 | » | 日 | 一 | 二 | 三 | 四 | 五 | 六 | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | | | | | |
| 公告 |
☆★☆★☆★☆★☆★☆ 生活的点点记录,以及一些体会...........
喜欢是淡淡的爱,爱是深深的喜欢.
时间会见证一切.......................
欢迎大家指出错误,共同进步..........
期待中..............................
☆★☆★☆★☆★☆★☆ |
Blog信息 |
blog名称: 日志总数:162 评论数量:312 留言数量:0 访问次数:946960 建立时间:2005年5月17日 |

| |
[wince study]WinCE 5.0 的3 種 USB Function Driver 文章收藏
oceanblue 发表于 2008/5/12 8:50:44 |
Win CE 5.0 下面 USB Client Function Driver 目前有提供
Serial Profile (Emulator a Serial Port, @CESYSGEN_MODULE_SERIALUSBFN, set SYSGEN_USBFN_SERIAL)
RNDIS Profile (Emulator a Network Card, @CESYSGEN CE_MODULE_RNDISFN, set SYSGEN_USBFN_ETHERNET=1)
Mass Storage (Emulator a Disk Device, , @CESYSGEN CE_MODULE_USBMSFN, set SYSGEN_USBFN_STORAGE=1)
如果 OS 選擇要使用那一個 Profile 是透過 下面的 Registry 決定。
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers] "DefaultClientDriver"="Serial_Class"
or
"DefaultClientDriver"="RNDIS"
or
"DefaultClientDriver"="Mass_Storage_Class"
http://msdn2.microsoft.com/en-us/library/ms895481.aspx
USB Function Client Driver Registry SettingsSend Feedback
The registry settings for each USB function client driver are in the %_WINCEROOT%\Public\Common\OAK\Files\Common.reg file. To modify these settings for your hardware platform, add the registry keys you need to alter to your hardware platform's Platform.reg file. The Platform.reg file for each platform is in %_WINCEROOT%\Platform\%_TGTPLAT%\Files. Registry keys placed in Platform.reg override matching registry keys in Common.reg.
Note For all USB function client drivers, in the Platform.reg file for your hardware platform, appropriately update the default Manufacturer and Product strings.
The following table describes the USB function client driver registry settings common to all USB function client drivers. The USB function mass storage client driver registry settings are under [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers].
Registry key
Description
DefaultClientDriver
Use to specify the default client driver. USBFunctionDriverSubkey is a placeholder string that represents a client driver.
Specify a DefaultClientDriver for each type of USB function client.
USBFunctionDriverSubkey\Dll
DLL name for the USB function client driver.
USBFunctionDriverSubkey\DeviceName
Identifies the name of the store to expose to the USB host.
USBFunctionDriverSubkey\FriendlyName
Friendly name for the USB function client.
USBFunctionDriverSubkey\idVendor
idVendor must be changed. 045E belongs to Microsoft and is only to be used for prototype devices in your labs. Visit http://www.usb.org to obtain a vendor identifier.
USBFunctionDriverSubkey\Manufacturer
Name of the USB function client device manufacturer. Replace appropriately.
USBFunctionDriverSubkey\idProduct
Product identifier to be defined by the manufacturer.
USBFunctionDriverSubkey\Product
Name of the USB function client device. Replace appropriately.
USBFunctionDriverSubkey\bcdDevice
USB device's release number, in binary-coded decimal (BCD) format.
USB Function Mass Storage Client Driver Registry Settings
The following table describes the USB function mass storage client driver registry settings. The USB function mass storage client driver registry settings are under [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Mass_Storage_Class].
Registry key
Description
InterfaceSubClass
USB host uses this value to identify the class of an enumerated device.
06h corresponds to the USB mass storage client.
InterfaceProtocol
USB-IF defined value that the USB host uses to determine the USB mass storage transport protocol supported by the device.
50h corresponds to bulk-only transport (BOT).
The following registry keys show the default USB function mass storage client driver registry settings.
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
"DefaultClientDriver"=- ; erase previous default
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
"DefaultClientDriver"="Mass_Storage_Class"
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Mass_Storage_Class]
"Dll"="usbmsfn.dll"
"InterfaceSubClass"=dword:06
"InterfaceProtocol"=dword:50
"DeviceName"="DSK1:"
"FriendlyName"="Mass Storage"
"idVendor"=dword:045E
"Manufacturer"="Generic Manufacturer (PROTOTYPE--Remember to change idVendor)"
"idProduct"=dword:FFFF
"Product"="Generic Mass Storage (PROTOTYPE--Remember to change idVendor)"
"bcdDevice"=dword:0
USB Function Serial Client Driver Registry Settings
The following table describes the USB function serial client driver registry settings. The USB function serial client driver registry settings are under [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Serial_Class].
Registry key
Description
DeviceArrayIndex
Use to load different USB function serial client driver objects.
The following registry keys show the default USB function serial client driver registry settings.
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
"DefaultClientDriver"=- ; erase previous default
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
"DefaultClientDriver"="Serial_Class"
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Serial_Class]
"Dll"="serialusbfn.dll"
"DeviceName"="USBFNS1:"
"Prefix"="COM"
"DeviceArrayIndex"=dword:0 ; Use to load different USB function serial client driver objects.
"IClass"="{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}"
; idVendor must be changed. 045E belongs to Microsoft and is only to be used for
; prototype devices in your labs. Visit http://www.usb.org to obtain a vendor id.
"idVendor"=dword:045E
"Manufacturer"="Generic Manufacturer (PROTOTYPE--Remember to change idVendor)"
"idProduct"=dword:00ce
"Product"="Generic Serial (PROTOTYPE--Remember to change idVendor)"
"bcdDevice"=dword:0
"Tsp"="Unimodem.dll"
"DeviceType"=dword:0
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\USBSER_Class]
"Dll"="serialusbfn.dll"
"DeviceName"="USBFNS2:"
"Prefix"="COM"
"DeviceArrayIndex"=dword:1
"IClass"=multi_sz:"{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}","{C375C787-B721-4b8e-B67F-A112D5C0A404}"
"idVendor"=dword:045E
"Manufacturer"="Generic Manufacturer (PROTOTYPE--Remember to change idVendor)"
"idProduct"=dword:0079
"Product"="Generic Serial (PROTOTYPE--Remember to change idVendor)"
"bcdDevice"=dword:90
"Tsp"="Unimodem.dll"
"DeviceType"=dword:0
USB Function RNDIS Client Driver Registry Settings
The following table describes the USB function RNDIS client driver registry settings. The USB function RNDIS client driver registry settings are under [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\RNDIS].
Registry key
Description
UseActiveSyncIds
If this value is set to anything besides zero (0), RNDIS sets the Device Class, Device Subclass, and Device Protocol codes in the USB device descriptor and interface descriptor to the values recognized by ActiveSync on the desktop computer.
If this value is not in the registry or is set to 0, the standard communication class values are used.
For Pocket PC and Smartphone, this value is set by default.
Priority256
Determines the priority of incoming packets for RX thread processing.
The following registry keys show the default USB function RNDIS client driver registry settings. For information about the RNDIS client driver specific registry settings, see RNDIS Registry Settings.
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
"DefaultClientDriver"=- ; erase previous default
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
"DefaultClientDriver"="RNDIS"
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\RNDIS]
"UseActiveSyncIds"=dword:1
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\RNDIS]
"Dll"="rndisfn.dll"
"FriendlyName"="Rndis"
"idVendor"=dword:045E
"Manufacturer"="Generic Manufacturer (PROTOTYPE--Remember to change idVendor)"
"idProduct"=dword:0301
"Product"="Generic RNDIS (PROTOTYPE--Remember to change idVendor)"
"bcdDevice"=dword:0 |
|
回复:WinCE 5.0 的3 種 USB Function Driver 文章收藏
啊秋(游客)发表评论于2008/6/25 11:27:52 |
请问如何通过自己写的应用程序来达到修改此注册表的目的呢?谢谢!MSN:pqw_pengqiuwen@sina.com |
|
» 1 »
|