Quoting leo <[EMAIL PROTECTED]>:

> Hi I am a newbie to linux usb program. I need to write a simple
> program to read data from a usb device ( something like a scanner
> which transmit the scanned image to computer), the device hasn't have
> its driver for linux yet. so can someone send me some simple program
> that does the following:
>
> open usb device,
> configure the device
> read data,
> close the device. 

The problem is not in USB program, it's in the device. Firmware in
even simplest devices is usually complicated, wicked and buggy.
Generally, you'd need to have understanding of the USB standard to
approach the task. This is not that hard though.

You can start by going to http://www.linux-usb.org to study how
USB works in general (configuration, interface, pipe, endpoint,
transfers etc.) Most likely you will need to read that big and bad
USB standard - or some popular books that retell the same thing but
in a readable way.

After that is done you probably will want to start with libusb as
a simple way to get to an USB device from userspace.

Dmitri

-- 
Q: Why did the tachyon cross the road?
A: Because it was on the other side.

PGP signature

Reply via email to