USB Serial Function Client Driver with Windows XP PC Host
- From: sudheer <sudheer.papothi@xxxxxxxxx>
- Date: Fri, 14 Sep 2007 04:52:59 -0700
Hi Guys
I have tried connection my wince device over usb to Host PC (windows
XP). It successfully detects as ActiveSync and loads Microsoft
Activesync driver (wceusbsh.sys).
Now i have to write an application on Host PC (Windows XP) to get all
the debugging messages of my device application with out using
ActiveSync application (but with using the same driver i.e.,
wceusbsh.sys). This is only for internal testing purpose and it is not
for any commercial purpose. So, there should be no issue with the
activesync driver and Microsoft's VID/PID.
There are three ways we consider of developing the application
1. Reading/Writing of data as a COM port
2. Reading/Writing of data from USB port directly
3. Using sockets
In the first step, we tried opening a com port with device name as
"wceusbsh001" in the CreateFile. we got the handle successfully, but
when we tried to read, it waits at the ReadFile() function infinitely
at the host side even messages are pumping at the device end. Can any
one suggest some solution.
In the second step, we tried opening the usb port by enumerating the
usb device and we got the handle but we dont know the endpoints
configuration, i.e., we dont know how to get the handles for ReadFile
and WriteFile separately. i tried like "pipe00" and "pipe01" for in
and out pipes respectively and appending the same to the devicename we
got during enumeration. But it did not work. So we tried giving
enumerated handle as it is, then we have successfully got handle from
CreateFile (), but the same problem persists during read operation. It
waits infinitely.
We have tried alternate approach for USB read. we got the handle from
CreateFile () with devicename as "wceusbsh001" and used the same
handle for ReadFile () to read the data from bulk endpoint but the
result is same, it waits infinitely at the ReadFile () function
The third approach is using sockets, but this we have not tried yet
because we have to change the image (NK.bin) for RNDIS client instead
of serial functional client.
Can any one please provide us information how to read from
(wceusbsh.sys) active sync usb driver.
Thanks in Advance
Sudheer
.
- Follow-Ups:
- Re: USB Serial Function Client Driver with Windows XP PC Host
- From: Henrik Viklund
- Re: USB Serial Function Client Driver with Windows XP PC Host
- Prev by Date: Calling bat file at the very beginning of the build
- Next by Date: Re: MACROS in wince
- Previous by thread: Calling bat file at the very beginning of the build
- Next by thread: Re: USB Serial Function Client Driver with Windows XP PC Host
- Index(es):
Relevant Pages
|