Re: USB Serial modem class driver on Windows CE 5.0
- From: Milind <milind.vk@xxxxxxxxx>
- Date: Thu, 24 Jul 2008 02:41:07 -0700 (PDT)
On Jul 23, 12:42 am, Valter Minute
<v_a_l_t_e_r.m_i_n_u_t_e@xxxxxxxxxxxxx> wrote:
Milind <milind...@xxxxxxxxx> wrote in news:9c3d6ceb-b40a-4c56-a225-
07ce7621c...@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:
Hi All,
I want to expose my Windows CE device as USB serial modem to Windows
XP host PC. Is that possible on with Windows CE 5.0 running on my
device? If so can you please tell me how do I implement this
functionality? I have working USB function driver (I have tested all
the 3 profiles Serial (Activesync), RNDIS and Mass storage). Now I
want to support USB serial modem class. Please help!
You should implement a class driver that will interact with your USB
function driver. You may use the Serial driver as a sample and
implements your own interface and endpoints. You should also configure
it inside the registry (you can also find a sample of this
configuration in the serial driver) to load it when the function
device driver is loaded.
Loading your function class driver will disable the others.
--
Valter Minutewww.fortechembeddedlabs.it
Training, support and development for Windows CE
(the reply address of this message is invalid)
Hi,
Thanks for the quick reply. As a first step I tried compiling the USB
serial class driver locally and I could do it. Now activesync connects
with "Myserialusbfn.dll", instead of default "serialusbfn.dll". Next I
want, my windows CE device to appear as COM port on my XP machine
(instead of appearing as sync device). What modification is required
in Myserialusbfn.dll do achieve this?
Following link talks about USB serial modem class:
http://groups.google.co.in/group/microsoft.public.windowsce.platbuilder/browse_thread/thread/65d0983f7cd240c1/9ddcbcf91ede1d6e?hl=en&lnk=st&q=How+USB+Modem+Handle+these+commands#9ddcbcf91ede1d6e
According to this in Windows Mobile 5.0 MSFT has extended
functionality of serial usb class driver to support modem
functionality. So I compiled serialusbfn from Windows Mobile 5.0 and
tried with following registry settings, but my device doesn't appear
as COM port to my PC. Can you please help?
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
"DefaultClientDriver"=- ; erase previous default
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
"DefaultClientDriver"="USBSER_Class"
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\USBSER_Class]
"Dll"="Myserialusbfn.dll"
"DeviceName"="USBFNS2:"
"Prefix"="COM"
"Index"=dword:8
"RxBufferSize"=dword:4000
"DeviceArrayIndex"=dword:1
"IClass"=multi_sz:"{CC5195AC-BA49-48a0-BE17-
DF6D1B0173DD}","{C375C787-B721-4b8e-B67F-A112D5C0A404}"
; 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:0079
"Product"="Generic Serial (PROTOTYPE--Remember to change
idVendor)"
"bcdDevice"=dword:90
"Tsp"="Unimodem.dll"
"DeviceType"=dword:0
I guess based on the DeviceArrayIndex key, the class driver should
expose the device as serial modem. But it is not happening. Is there
any registry settings I am missing? Then I tried debugging the class
driver and I found that the class driver fails to initialize
"serialpdd". The exact function where it fails is
(UfnInitializeInterface -->CreateBusAccessHandle). Am I missing any
thing?
Thanks
-Milind
.
- Follow-Ups:
- Re: USB Serial modem class driver on Windows CE 5.0
- From: Valter Minute
- Re: USB Serial modem class driver on Windows CE 5.0
- References:
- USB Serial modem class driver on Windows CE 5.0
- From: Milind
- Re: USB Serial modem class driver on Windows CE 5.0
- From: Valter Minute
- USB Serial modem class driver on Windows CE 5.0
- Prev by Date: USB client mass storage detection problem on WINCE5.0
- Next by Date: Re: USB Serial modem class driver on Windows CE 5.0
- Previous by thread: Re: USB Serial modem class driver on Windows CE 5.0
- Next by thread: Re: USB Serial modem class driver on Windows CE 5.0
- Index(es):
Relevant Pages
|