I use USB serial driver to connect activesync. I connected PC, but
the driver on PC is not correct. I use activesync 4.1. my board is
mainstoneii, and the bsp is provided by Intel, which means the dirver
on PC must be intel's?
the following is my platform.reg:
; @CESYSGEN IF CE_MODULES_USBFN
IF BSP_NOUSBFN !
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Usbfn]
"InterfaceType"=dword:0 ; Internal
"Prefix"="UFN"
"Dll"="ms2_usbfn.dll"
"Order"=dword:1
"Priority256"=dword:64
"MemBase"=dword:40600000 ; UDC_BASE_U_VIRTUAL
"MemLen"=dword:1000 ; Needs at least 0xE04. Round up to 1
page.
"Sysintr"=dword:1a
"BusIoctl"=dword:2a0048

"IClass"=multi_sz:"{E2BDC372-598F-4619-BC50-54B3F7848D35}=%b","{6F40791D-300E-44E4-BC38-E0E63CA8375C}=%b"

[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Serial_Class\Config]
"EnableFlowHard"=dword:0
"EnableFlowSoft"=dword:0

[HKEY_LOCAL_MACHINE\Comm\DefaultConnections]
"`USB Default"=multi_sz:"USB Cable:","115200"

;Default Connectoid
[HKEY_CURRENT_USER\ControlPanel\Comm]
"Cnct"="`USB Default"

;Default Connectoid
;[HKEY_CURRENT_USER\ControlPanel\Comm]
;"Cnct"="`Desktop @ 19000"


[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Serial_Class]
"Dll"="serialusbfn.dll"
"InterfaceSubClass"=dword:ff
"InterfaceProtocol"=dword:ff
"DeviceName"="USBFNS1:"
; "DeviceName"="UFN1:"
"Tsp"="Unimodem.dll"
"FriendlyName"="USB Cable:"
"Prefix"="COM"
; "DeviceArrayIndex"=dword:0
"DeviceArrayIndex"=dword:2
"DeviceType"=dword:0
"IClass"="{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}"
; "IClass"="{25dbce51-6c8f-4a72-8a6d-b54c2b4fc835}"
; 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
; "idVendor"=dword:8086
"Manufacturer"="Generic Manufacturer (PROTOTYPE--Remember to change
idVendor)"
; "Manufacturer"="Intel"
"idProduct"=dword:00ce
; "idProduct"=dword:A6CD
"Product"="Generic Serial (PROTOTYPE--Remember to change idVendor)"
; "Product"="WindowsCE.NET 5.0"
"bcdDevice"=dword:0

IF BSP_NOUSBRNDIS

[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
"DefaultClientDriver"=-
"DefaultClientDriver"="Serial_Class"
ELSE

[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\RNDIS]

; idVendor must be changed. 8086 belongs to Intel and is only to be
used for
; prototype devices in your labs. Visit http://www.usb.org to obtain a
vendor id.

"idVendor"=dword:8086

; "Manufacturer"="Generic Manufacturer (PROTOTYPE--Remember to change
idVendor)"

"Manufacturer"="Intel Corporation (PROTOTYPE--Remember to change
idVendor)"
"idProduct"=dword:F003
"Product"="Generic RNDIS (PROTOTYPE--Remember to change idVendor)"
"bcdDevice"=dword:0



[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
"DefaultClientDriver"=-
"DefaultClientDriver"="RNDIS"

ENDIF BSP_NOUSBRNDIS

ENDIF BSP_NOUSBFN !

Re: A problem about USB serial Driver by Niels

Niels
Fri Jul 21 05:26:43 CDT 2006

Did you include the ActiveSync components in your OS design?

If you installed activesync on your PC you have the right drivers for
the target, no special intel drivers are required as the device will
identify itself as a windows device.

What errors are you seeing on your PC? USB device not recognized?

Niels

briansccd@gmail.com schreef:

> I use USB serial driver to connect activesync. I connected PC, but
> the driver on PC is not correct. I use activesync 4.1. my board is
> mainstoneii, and the bsp is provided by Intel, which means the dirver
> on PC must be intel's?
> the following is my platform.reg:
> ; @CESYSGEN IF CE_MODULES_USBFN
> IF BSP_NOUSBFN !
> [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Usbfn]
> "InterfaceType"=dword:0 ; Internal
> "Prefix"="UFN"
> "Dll"="ms2_usbfn.dll"
> "Order"=dword:1
> "Priority256"=dword:64
> "MemBase"=dword:40600000 ; UDC_BASE_U_VIRTUAL
> "MemLen"=dword:1000 ; Needs at least 0xE04. Round up to 1
> page.
> "Sysintr"=dword:1a
> "BusIoctl"=dword:2a0048
>
> "IClass"=multi_sz:"{E2BDC372-598F-4619-BC50-54B3F7848D35}=%b","{6F40791D-300E-44E4-BC38-E0E63CA8375C}=%b"
>
> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Serial_Class\Config]
> "EnableFlowHard"=dword:0
> "EnableFlowSoft"=dword:0
>
> [HKEY_LOCAL_MACHINE\Comm\DefaultConnections]
> "`USB Default"=multi_sz:"USB Cable:","115200"
>
> ;Default Connectoid
> [HKEY_CURRENT_USER\ControlPanel\Comm]
> "Cnct"="`USB Default"
>
> ;Default Connectoid
> ;[HKEY_CURRENT_USER\ControlPanel\Comm]
> ;"Cnct"="`Desktop @ 19000"
>
>
> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Serial_Class]
> "Dll"="serialusbfn.dll"
> "InterfaceSubClass"=dword:ff
> "InterfaceProtocol"=dword:ff
> "DeviceName"="USBFNS1:"
> ; "DeviceName"="UFN1:"
> "Tsp"="Unimodem.dll"
> "FriendlyName"="USB Cable:"
> "Prefix"="COM"
> ; "DeviceArrayIndex"=dword:0
> "DeviceArrayIndex"=dword:2
> "DeviceType"=dword:0
> "IClass"="{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}"
> ; "IClass"="{25dbce51-6c8f-4a72-8a6d-b54c2b4fc835}"
> ; 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
> ; "idVendor"=dword:8086
> "Manufacturer"="Generic Manufacturer (PROTOTYPE--Remember to change
> idVendor)"
> ; "Manufacturer"="Intel"
> "idProduct"=dword:00ce
> ; "idProduct"=dword:A6CD
> "Product"="Generic Serial (PROTOTYPE--Remember to change idVendor)"
> ; "Product"="WindowsCE.NET 5.0"
> "bcdDevice"=dword:0
>
> IF BSP_NOUSBRNDIS
>
> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
> "DefaultClientDriver"=-
> "DefaultClientDriver"="Serial_Class"
> ELSE
>
> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\RNDIS]
>
> ; idVendor must be changed. 8086 belongs to Intel and is only to be
> used for
> ; prototype devices in your labs. Visit http://www.usb.org to obtain a
> vendor id.
>
> "idVendor"=dword:8086
>
> ; "Manufacturer"="Generic Manufacturer (PROTOTYPE--Remember to change
> idVendor)"
>
> "Manufacturer"="Intel Corporation (PROTOTYPE--Remember to change
> idVendor)"
> "idProduct"=dword:F003
> "Product"="Generic RNDIS (PROTOTYPE--Remember to change idVendor)"
> "bcdDevice"=dword:0
>
>
>
> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
> "DefaultClientDriver"=-
> "DefaultClientDriver"="RNDIS"
>
> ENDIF BSP_NOUSBRNDIS
>
> ENDIF BSP_NOUSBFN !


Re: A problem about USB serial Driver by briansccd

briansccd
Sat Jul 22 00:59:13 CDT 2006


Niels Brouwers =E5=AF=AB=E9=81=93=EF=BC=9A

> Did you include the ActiveSync components in your OS design?
>
> If you installed activesync on your PC you have the right drivers for
> the target, no special intel drivers are required as the device will
> identify itself as a windows device.
>
> What errors are you seeing on your PC? USB device not recognized?
>
> Niels
>
> briansccd@gmail.com schreef:

Yes, The USB device on PC shows that the driver is not corrected and
not usable.
In addition, in my platform.reg:
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Serial_Class]
"Dll"=3D"serialusbfn.dll"
"InterfaceSubClass"=3Ddword:ff
"InterfaceProtocol"=3Ddword:ff
"DeviceName"=3D"USBFNS1:"
; "DeviceName"=3D"UFN1:"
"Tsp"=3D"Unimodem.dll"
"FriendlyName"=3D"USB Cable:"
"Prefix"=3D"COM"
; "DeviceArrayIndex"=3Ddword:0
"DeviceArrayIndex"=3Ddword:2
"DeviceType"=3Ddword:0
"IClass"=3D"{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}"

The "DeviceArrayIndex" is set to 2, so it could not load serial
driver, it must be 0 or 1. 0 would load USBSerialFN class, 1 would load
USBSerserialFN, which number could I choose?