Re: developing Application software for a host to communicate with a USB device



Tomás Ó hÉilidhe wrote:
This all depends on what kind of USB device you're using. There are many
possibilities:

1. Mass storage device
2. Standard HID device (mouse, keyboard, joystick)
3. Custom HID device
4. Audio device
5. Virtual serial port
6. Custom device type
7. Many other types like printers, scanners, cameras, etc.


Is there any cross-platform library for USB communication?

In general, USB devices are intended to be accessed
using the same operating system features as non-usb
devices of the same type.

For example:

- Mass storage devices are accessed just like any
other "disk drive" using file i/o.

- Serial port devices are intended to be used just
like any COM or /dev/tty type device.

- HID devices are used by the system to support
mouse, keyboard and similar types of human input
devices.

The need to access lower level USB explicit functions
is usually reserved for those writing device drivers
for custom devices.

Linux has support for user-space access to certain
parts of the USB sub-system (libusb).

However, most USB class/interface/device drivers
execute within the operating system kernel.

--
Michael N. Moran (h) 770 516 7918
5009 Old Field Ct. (c) 678 521 5460
Kennesaw, GA, USA 30144 http://mnmoran.org

"So often times it happens, that we live our lives in chains
and we never even know we have the key."
"Already Gone" by Jack Tempchin (recorded by The Eagles)

The Beatles were wrong: 1 & 1 & 1 is 1
.



Relevant Pages

  • Re: developing Application software for a host to communicate with a USB device
    ... Standard HID device ... Custom device type ... Is there any cross-platform library for USB communication? ... Serial port devices are intended to be used just ...
    (comp.arch.embedded)
  • USB Active sync problem
    ... My eventual task is to run my own custom tests via the CETK on the ... connect via USB, Activesync does not allow a connection to the device. ... trying to connect to Active sync does not yield any results, ...
    (microsoft.public.windowsce.platbuilder)
  • USB Active sync problem
    ... My eventual task is to run my own custom tests via the CETK on the ... connect via USB, Activesync does not allow a connection to the device. ... trying to connect to Active sync does not yield any results, ...
    (microsoft.public.pocketpc.activesync)
  • Re: Active Sync 3.8 hangs my PC
    ... Since your device is custom, you will need to contact the hardware designer ... I would suspect thatt tthe problem could be in the USB ... > I use a custom Windows CE device that I connect to my Dell PC over USB ... > What happens is the the Active Sync app hangs and so does the entire ...
    (microsoft.public.pocketpc.activesync)
  • Virtual USB Mouse Device only shows as generic HID device.
    ... virtual USB mouse PDO. ... An usermode application access bus driver to add a new PDO ... System find this is a HID device and start to query Device Descriptor, ...
    (microsoft.public.development.device.drivers)