[sane-devel] Pulstek OpticBook 3800 - problems with openning device on 1.0.23+

Stef stef.dev at free.fr
Mon May 6 19:17:42 UTC 2013


On 05/05/2013 16:38, Nikolay Shaplov wrote:
> All my previous efforts I did with libsane 1.0.22 that comes with debian.
>
> I've tried to do the same trick with git version and with 1.0.23 and did not
> managed to do it.
>
> For some reason sane reports about not being able to open usb device. The more
> strange thing, it that it reports it on different stages of the initialization:
>
> =======================
>   sudo SANE_DEBUG_GENESYS=256  scanimage -d genesys:libusb:002:006 -v -v -v -v
> -v >12345
>
>
> [sanei_debug] Setting debug level of genesys to 256.
> [genesys] SANE Genesys backend version 1.0 build 2302 from sane-backends
> 1.0.23
> [genesys] SANE Genesys backend built with libusb
> [genesys] sane_init: authorize != null
> [genesys] sane_init: little endian machine
> [genesys] probe_genesys_devices start
> [genesys] attach: start: devp != NULL, may_wait = 0
> [genesys] attach: trying to open device `libusb:002:006'
> [genesys] attach: device `libusb:002:006' successfully opened
> [genesys] attach: found PLUSTEK flatbed scanner OpticBook 3800 at
> libusb:002:006
> [genesys] attach completed
> [genesys] probe_genesys_devices completed
> [genesys] sane_genesys_init completed
> [genesys] sane_open: start (devicename = `libusb:002:006')
> [genesys] sane_open: found `plustek-opticbook-3800' in devlist
> [genesys] WARNING: Your scanner is not fully supported or at least
> [genesys]          had only limited testing. Please be careful and
> [genesys]          report any failure/success to
> [genesys]          sane-devel at lists.alioth.debian.org. Please provide as many
> [genesys]          details as possible, e.g. the exact name of your
> [genesys]          scanner and what does (not) work.
> [genesys] init_options start
> [genesys] init_options completed
> scanimage: open of device genesys:libusb:002:006 failed: Invalid argument
> Calling sane_exit
> [genesys] sane_genesys_exit start
> [genesys] sane_genesys_exit completed
> scanimage: finished
> nataraj at lenovo:/.data/home/nataraj/Projects/pulstek/tests$
> nataraj at lenovo:/.data/home/nataraj/Projects/pulstek/tests$ sudo scanimage -L
> device `v4l:/dev/video0' is a Noname Lenovo EasyCamera virtual device
> device `genesys:libusb:002:007' is a PLUSTEK OpticBook 3800 flatbed scanner
>
> ==========================================
> $ sudo SANE_DEBUG_GENESYS=256  scanimage -d genesys:libusb:002:006 -v -v -v -v
> -v >12345
>
>
> [sanei_debug] Setting debug level of genesys to 256.
> [genesys] SANE Genesys backend version 1.0 build 2302 from sane-backends
> 1.0.23
> [genesys] SANE Genesys backend built with libusb
> [genesys] sane_init: authorize != null
> [genesys] sane_init: little endian machine
> [genesys] probe_genesys_devices start
> [genesys] attach: start: devp != NULL, may_wait = 0
> [genesys] attach: trying to open device `libusb:002:007'
> [genesys] attach: device `libusb:002:007' successfully opened
> [genesys] attach: found PLUSTEK flatbed scanner OpticBook 3800 at
> libusb:002:007
> [genesys] attach completed
> [genesys] probe_genesys_devices completed
> [genesys] sane_genesys_init completed
> [genesys] sane_open: start (devicename = `libusb:002:006')
> [genesys] sane_open: couldn't find `libusb:002:006' in devlist, trying attach
> [genesys] attach: start: devp != NULL, may_wait = 1
> [genesys] attach: trying to open device `libusb:002:006'
> [genesys] attach: couldn't open device `libusb:002:006': Invalid argument
> scanimage: open of device genesys:libusb:002:006 failed: Invalid argument
> Calling sane_exit
> [genesys] sane_genesys_exit start
> [genesys] sane_genesys_exit completed
> scanimage: finished
>
>
> Does anybody know about this issue? It does not seems for me to be chipset
> related...
>
> Also it manages to open a device once, and then can not... I do not understand
> what is the matter. :-(
> 1.0.22 from sources with two debian patch that were already applied in 1.0.23,
> works well...(at least it tries to scan)
>
>
>
     Hello,

     what kind of changes have you done in the genesys backend ? I find 
strange that

libusb:002:007 is opened, then libusb:002:006 is tried. How many scanners do you have ? What does lsusb reports ?

Regards,
	Stef




More information about the sane-devel mailing list