Re: USB bulk transfer help needed

From: Arnaud Debaene (adebaene_at_club-internet.fr)
Date: 02/09/05


Date: Wed, 9 Feb 2005 23:21:44 +0100

B. Klosterman wrote:
> I have never done USB programing before and nedd a little help.
> I using the MS WIN32 C model and would like to poll the OS(WIN2K or
> XP) for all the
> devices attached to the USB.
Use SetupDiGetClassDevsEx to enumerate all devices on the system, then for
each device enumerate recursively it's parent to check if one of it's parent
is an USB host (see article "Obtaining the Parent of a Device in the Device
Tree" in MSDN). You will need the DDK to have the correct GUID for USB Host.

> Also, is there a generic USB driver that let's one do "generic" bulk
> data transfers to/from a USB device?
No.
An USB device export one or more "interface" that describe it's
functionnality (examples : "mass storage", "joystick", "Network card",
etc...). You manipulate the device through this interface. Windows has
drivers to manage the most common interfaces (such as USB mass storage), but
if your device doesn't fit in one of thosecategories, you need your own
driver.

Arnaud
MVP - VC



Relevant Pages

  • Page Fault with the USB audio device in Win98.
    ... We developd a usb device (Audio device) which provides audio class ... interface and HID interface. ... We captuerd the usb bus trace. ... USB drivers to debug this issue. ...
    (microsoft.public.development.device.drivers)
  • Re: unfixed regression in 2.6.20-rc6 (since 2.6.19)
    ... In short, it turned, that usb drivers aren't drivers at all, they are ... just "USB interface drivers", i.e. managers of the particular USB ... Where's configuration and/or interfaces choosing? ...
    (Linux-Kernel)
  • Re: USB mass storage devices just dont work using XP?
    ... It all depends upon how the interface for the device is designed. ... manufacturers think they can get better performance by using a non standard ... If all of your other USB 2,0 devices are working, and your external drive is ... > too weird as it is pre XP only and XP has native drivers for it). ...
    (microsoft.public.windowsxp.hardware)
  • Re: Dont Want Complicated
    ... there are Linux drivers for some hardware. ... if you also want to do any recording generally you'll get better results from an external interface. ... The smallest interfaces, like the M-Audio Transit USB, start around $75 - it's about the size of a deck of cards. ...
    (alt.guitar)
  • Re: Biometric Interfaces
    ... > Has anyone used a biometric fingerprint scanner (USB) with WinCE yet. ... > I want to interface one, and was wondering if anyone has tried it yet. ... Do they have drivers? ...
    (microsoft.public.windowsce.app.development)