USB Serial Function Client Driver with Windows XP PC Host

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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

.



Relevant Pages

  • Re: White Wolf Labs #080922-1: Exploitation Through ActiveSync 4.x
    ... Exploitation Through ActiveSync 4.x ... SF> Medium - Full TCP/IP access via RNDIS protocol over USB from ... SF> altered how the Windows Mobile device communicates with the host PC. ... SF> transmission of data between the Windows Mobile device and the host PC. ...
    (Bugtraq)
  • Re: USB Serial Function Client Driver with Windows XP PC Host
    ... I just want to use ActiveSync driver ... I know that one can read and write from/to USB in two ways: ... it waits at the ReadFile() function infinitely ...
    (microsoft.public.windowsce.platbuilder)
  • Re: ActiveSync and VMWARE
    ... Disabling USB in Files->Connection ... In the ActiveSync window on the guest, ... If I try to use the host PC, ...
    (microsoft.public.windowsce.app.development)
  • Re: USB Serial Function Client Driver with Windows XP PC Host
    ... ActiveSycn installed on the host, ... I have tried connection my wince device over usb to Host PC (windows ... It successfully detects as ActiveSync and loads Microsoft ... it waits at the ReadFile() function infinitely ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Do you tell me how to generate the usbser.dll for PB6?
    ... This code looks to me like it's USB host code for running on a CE ... device that provides the equivalent function of the "wceusbsh" driver ... that loads on a host PC to talk activesync to the device. ...
    (microsoft.public.windowsce.platbuilder)