Re: OS independent , Platform independent USB device driver



Janaka <janakas@xxxxxxxxxxxx> wrote:

As Tim points out libusb installs its own generic device driver in
windows (that sometimes stuffs up windows native USB functionality).
But this part of libusb is never portable; its windows specific. I
wouldn't call the portable bits of libusb a "user space device
driver". Its just a easy access wrapper.

I have to disgree with you, because this kind of assertion raises the hopes
of USB beginners who think they can whack their USB devices just like
reading from a disk file. We see this all the time on the libusb mailing
list.

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".
--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
.



Relevant Pages

  • Re: PORUS: an open-source embedded USB stack
    ... Windows; it's text only. ... :) (or use libusb) ... Drivers are outside of the scope of this project. ... USB comms package, which is how I use it anyway. ...
    (comp.arch.embedded)
  • Re: OS independent , Platform independent USB device driver
    ... that user space apps can access lower level USB functionality. ... AFAIK libusb uses the OS provided root hub interface to do low level ... controlled manner through the OS provided device driver. ... windows. ...
    (comp.os.linux.development.system)
  • USB problem with media readers
    ... I have been experiencing intermittent trouble with USB Compact Flash Reader. ... said Starting Windows, Troubleshooting Press F8. ... reinstalling this device driver manually does not work if that light does not ...
    (microsoft.public.win2000.general)
  • Re: how to continue my installation software after Windows restart???
    ... > I am making a installation software for one of our USB product. ... > install some additional software after the device driver installed. ... my software would wait Windows Found New ...
    (microsoft.public.development.device.drivers)
  • RE: How to use .NET framework to toggle the power on a USB-powered dev
    ... USB is a hardware bus and as such not directly exposed to ... Windows side, you have to write your own device driver with the Windows ... Besides posting here, you can also post in microsoft.public.ddk. ...
    (microsoft.public.dotnet.general)