Re: USB Serial Function Client Driver with Windows XP PC Host
- From: Henrik Viklund <henrik.viklund@xxxxxxxxx>
- Date: Fri, 14 Sep 2007 06:08:13 -0700
Not exactly sure what you want to do, but ActiveSync actually opens a
PPP link to the device, so it's probably a lot easier to use a socket
connection to communicate directly with the device (you still need
ActiveSycn installed on the host, though). IIRC you should be able to
use 'gethostbyname("ppp_peer")' on the host to get the ip address of
the device ("ppp_peer" serves as a proxy for the IP address of the
remote PPP peer that the Windows CE device is connected to).
Henrik Viklund
http://www.addlogic.se
On 14 Sep, 13:52, sudheer <sudheer.papo...@xxxxxxxxx> wrote:
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:
- References:
- Prev by Date: Re: What tools to build a WinMobile rom
- Next by Date: Re: Write directly to video
- Previous by thread: USB Serial Function Client Driver with Windows XP PC Host
- Next by thread: Re: USB Serial Function Client Driver with Windows XP PC Host
- Index(es):
Relevant Pages
|