Re: OS independent , Platform independent USB device driver



Hi Tim,
I have to disgree with you, because this kind of assertion ....
Ok. We'll agree to disagree on this.

Libusb provides an interface that is much like WinUSB on Windows.  Neither
of them are extra-friendly easy access wrappers.  Both are just mappings of
the kernel-level interfaces to user-mode.  In order to use either libusb or
WinUSB successfully, you really do have to write a user-mode device driver.
You have to understand descriptors, classes, interfaces, endpoints, pipes,
packets, frames, URBs, and control messages.  It requires a level of
expertise that I associate with "device drivers", not "easy access
wrappers".
What you are describing here is the standard USB communications and
infrastructure formats as described in Chapter 8 (as I could remember)
on the USB spec. Who ever uses Libusb surely needs to understand how
USB works. But as far as I am concerned that code does NOT become a
"User space device driver" just because it has to comply with USB
communications spec. As far as I know libUsb based user code does not
have Hardware specific interactions nor time critical response needs
nor interrupts. All of these gets handled on the lower level native
device driver.
Cheers
Janaka
.



Relevant Pages

  • Re: SIM card USB PnP Windows device driver
    ... A SIM card is a small postage stamp size memory module. ... I managed to insert a SIM into the slot and it was recognized as a new device and a device driver was downloaded from Microsoft Update, ... The new device driver showed up in the USB device chain. ... When installed you can use it as a modem. ...
    (microsoft.public.windowsxp.general)
  • USB Device Driver Source Code (for Sale)
    ... USB Video Device Driver ... - Stream Interface for HID Device Driver ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Do I need a new power supply?
    ... The BSO messages say device error or device driver error. ... USB hub from monitor ... if you need the BSOD message ... If the name of a device driver is mentioned for each BSOD, ...
    (alt.comp.hardware.pc-homebuilt)
  • Re: User-mode handle & USB device plug/unplug
    ... Observed this on some app working with USB storage flash drives. ... > handle (normally the user-mode application would register for device ... > Leo Havmøller. ...
    (microsoft.public.development.device.drivers)
  • Re: USB Functionnality with 25meg image, is it possible?
    ... to whole 25 meg dependencies that comes with PnP. ... think in Linux we need 25 meg of data to activate the USB ... The difference between the both is the PnP (User-mode) component. ...
    (microsoft.public.windowsxp.embedded)