Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > WinUSB on XP without WDK

Reply
Fix Vista Errors
Thread Tools Display Modes

WinUSB on XP without WDK

 
 
giajh01
Guest
Posts: n/a

 
      10-29-2009



Hi,

warning. newbie question follows!

I'm trying to use WinUSB (WDK 7) on XP with SP2. After a wee bit of work
finally got the INF file to recognise and install the WinUSB and KMDF drivers
when the device is connected. Everything works beautifully, my small test app
communicates (via WinUSB) with my target hardware. So feeling dead chuffed
with myself I asked my college to try out my new driver package (INF +
coinstallers).
And that's where it all went sour! His system is also XP SP2 but without WDK
(shouldn't be necessary right). Driver install works fine, but when he fires
up the test application it hangs on the 1st WinUSB_WritePipe call. After
trying various things (examing installed driver, log files, registery,
rebooting etc.) we install WDK on his system, and low and behold everything
works suddenly.

Now obviously, I've missed something, but I'm dammed if I can spot it.
Anyone here come across a similar issue, or are the symtoms ringing any bells
for anyone?

Also, on a side issue, how can I find the control GUID for WinUSB to use
tracelog to dig a bit deeper into what's happening when the WinUSB call hangs?

thanks in advance
 
Reply With Quote
 
Doron Holan [MSFT]
Guest
Posts: n/a

 
      10-29-2009
are you installing with the winusb and kmdf v1.9 coinstallers? if you get
as far as opening a winusb handle, there should be no need for any more wdk
components, a hang in winusb_writepipe is indicative of a bug in your app or
the hw is hung

d

--

This posting is provided "AS IS" with no warranties, and confers no rights.


"giajh01" <> wrote in message
news:5D6AECC3-6631-4E1A-B24A-...
> Hi,
>
> warning. newbie question follows!
>
> I'm trying to use WinUSB (WDK 7) on XP with SP2. After a wee bit of work
> finally got the INF file to recognise and install the WinUSB and KMDF
> drivers
> when the device is connected. Everything works beautifully, my small test
> app
> communicates (via WinUSB) with my target hardware. So feeling dead chuffed
> with myself I asked my college to try out my new driver package (INF +
> coinstallers).
> And that's where it all went sour! His system is also XP SP2 but without
> WDK
> (shouldn't be necessary right). Driver install works fine, but when he
> fires
> up the test application it hangs on the 1st WinUSB_WritePipe call. After
> trying various things (examing installed driver, log files, registery,
> rebooting etc.) we install WDK on his system, and low and behold
> everything
> works suddenly.
>
> Now obviously, I've missed something, but I'm dammed if I can spot it.
> Anyone here come across a similar issue, or are the symtoms ringing any
> bells
> for anyone?
>
> Also, on a side issue, how can I find the control GUID for WinUSB to use
> tracelog to dig a bit deeper into what's happening when the WinUSB call
> hangs?
>
> thanks in advance


 
Reply With Quote
 
giajh01
Guest
Posts: n/a

 
      11-01-2009
yes I'm using the v1.9 CoInstallers.

Not sure I follow why, a libaray call hanging is necessarily a bug in the
application
making the call. Just for clarification, the exact same app and HW works
fine on my own PC.

I've since had a chance to test this on 2 other PCs (one incidently only
supporting USB1.1) and on both those systems the test application runs fine.
Obviously there's
something dodgy on my the single PC, but God knows what it is. I guess I
could try persuading my collegue to uninstall WDK and see if the problem
reappears but to be honest I don't fancy my chances of either
a) him agreeing
b) the problem reappearing

"Doron Holan [MSFT]" wrote:

> are you installing with the winusb and kmdf v1.9 coinstallers? if you get
> as far as opening a winusb handle, there should be no need for any more wdk
> components, a hang in winusb_writepipe is indicative of a bug in your app or
> the hw is hung
>
> d
>
> --
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
> "giajh01" <> wrote in message
> news:5D6AECC3-6631-4E1A-B24A-...
> > Hi,
> >
> > warning. newbie question follows!
> >
> > I'm trying to use WinUSB (WDK 7) on XP with SP2. After a wee bit of work
> > finally got the INF file to recognise and install the WinUSB and KMDF
> > drivers
> > when the device is connected. Everything works beautifully, my small test
> > app
> > communicates (via WinUSB) with my target hardware. So feeling dead chuffed
> > with myself I asked my college to try out my new driver package (INF +
> > coinstallers).
> > And that's where it all went sour! His system is also XP SP2 but without
> > WDK
> > (shouldn't be necessary right). Driver install works fine, but when he
> > fires
> > up the test application it hangs on the 1st WinUSB_WritePipe call. After
> > trying various things (examing installed driver, log files, registery,
> > rebooting etc.) we install WDK on his system, and low and behold
> > everything
> > works suddenly.
> >
> > Now obviously, I've missed something, but I'm dammed if I can spot it.
> > Anyone here come across a similar issue, or are the symtoms ringing any
> > bells
> > for anyone?
> >
> > Also, on a side issue, how can I find the control GUID for WinUSB to use
> > tracelog to dig a bit deeper into what's happening when the WinUSB call
> > hangs?
> >
> > thanks in advance

>
> .
>

 
Reply With Quote
 
Doron Holan [MSFT]
Guest
Posts: n/a

 
      11-03-2009
you need to attach a debugger (windbg) and see exactly where the call is
hanging

d

"giajh01" <> wrote in message
news:0C295F9C-387B-4E87-B1FE-...
> yes I'm using the v1.9 CoInstallers.
>
> Not sure I follow why, a libaray call hanging is necessarily a bug in the
> application
> making the call. Just for clarification, the exact same app and HW works
> fine on my own PC.
>
> I've since had a chance to test this on 2 other PCs (one incidently only
> supporting USB1.1) and on both those systems the test application runs
> fine.
> Obviously there's
> something dodgy on my the single PC, but God knows what it is. I guess I
> could try persuading my collegue to uninstall WDK and see if the problem
> reappears but to be honest I don't fancy my chances of either
> a) him agreeing
> b) the problem reappearing
>
> "Doron Holan [MSFT]" wrote:
>
>> are you installing with the winusb and kmdf v1.9 coinstallers? if you
>> get
>> as far as opening a winusb handle, there should be no need for any more
>> wdk
>> components, a hang in winusb_writepipe is indicative of a bug in your app
>> or
>> the hw is hung
>>
>> d
>>
>> --
>>
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>>
>> "giajh01" <> wrote in message
>> news:5D6AECC3-6631-4E1A-B24A-...
>> > Hi,
>> >
>> > warning. newbie question follows!
>> >
>> > I'm trying to use WinUSB (WDK 7) on XP with SP2. After a wee bit of
>> > work
>> > finally got the INF file to recognise and install the WinUSB and KMDF
>> > drivers
>> > when the device is connected. Everything works beautifully, my small
>> > test
>> > app
>> > communicates (via WinUSB) with my target hardware. So feeling dead
>> > chuffed
>> > with myself I asked my college to try out my new driver package (INF +
>> > coinstallers).
>> > And that's where it all went sour! His system is also XP SP2 but
>> > without
>> > WDK
>> > (shouldn't be necessary right). Driver install works fine, but when he
>> > fires
>> > up the test application it hangs on the 1st WinUSB_WritePipe call.
>> > After
>> > trying various things (examing installed driver, log files, registery,
>> > rebooting etc.) we install WDK on his system, and low and behold
>> > everything
>> > works suddenly.
>> >
>> > Now obviously, I've missed something, but I'm dammed if I can spot it.
>> > Anyone here come across a similar issue, or are the symtoms ringing any
>> > bells
>> > for anyone?
>> >
>> > Also, on a side issue, how can I find the control GUID for WinUSB to
>> > use
>> > tracelog to dig a bit deeper into what's happening when the WinUSB call
>> > hangs?
>> >
>> > thanks in advance

>>
>> .
>>

 
Reply With Quote
 
giajh01
Guest
Posts: n/a

 
      12-03-2009
Hi,

sorry for not getting back on this sooner. As expected the enthusiasm level
for uninstalling WDK was low. It did however transpire that my collegue had
similar/worse issues (BSOD even) with a USB->Com adaptor on the same PC. In
short appears to be a HW issue there. If I discover anymore I'll post it here



"Doron Holan [MSFT]" wrote:

> you need to attach a debugger (windbg) and see exactly where the call is
> hanging
>
> d
>


 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WinUSB install on Vista 64 Denis @ TheOffice Windows Vista Drivers 19 11-09-2009 10:36 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59