[sane-devel] libusb and SANE

m. allan noah kitno455 at gmail.com
Fri Mar 21 13:22:53 UTC 2014


On Fri, Mar 21, 2014 at 8:51 AM, Sven Harmstorf <svh79 at gmx.net> wrote:
> I could create the USB device name ('libusb:000:0000' or 'usb 0x0000
> 0x0000') and use sanei_usb_open() to get the device number which is used by
> most sanei_usb functions. But this would also not get me the device name I
> need for the public SANE API functions.
> Background:
>
> My application receives a scan request (addressed to a libusb_device) and I
> have to process and forward that request to the corresponding SANE_Device.
> As there are several identical devices attached via USB and the caller of my
> application does not know anything about SANE, I need the USB bus and
> address to identify the correct SANE device. My application only supports
> scanners attached via USB, as it will be run on an embedded system which
> does not provide any other ports than USB.

How does your app get the indication of which libusb device to scan from?

allan
-- 
"The truth is an offense, but not a sin"



More information about the sane-devel mailing list