[sane-devel] Mustek ScanExpress A3 USB 1200 PRO

scar scar at drigon.com
Thu Mar 25 04:06:57 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Ille @ 03/24/2010 12:39 AM:
> Le Tue, 23 Mar 2010 11:11:18 -0700,
> scar <scar at drigon.com> a écrit :
> 
>> i re-plugged the USB cable and tried /usr/local/bin/sane-find-scanner
>> and it detects the scanner like before (thinking it is an HP, etc.)
>> but still 'sudo /usr/local/bin/scanimage -L' doesn't detect
>> anything....
>>
>>
> 
> Do you still have the unmodified backend in /usr?
> If yes, it would be better to remove the package.
> 

i found that the package 'libsane' is where all the backends are
contained.  but, several things depend on it, like hplip and hpjis,
which appears something i need for my HP printer to function.  ok i'll
remove it all for now in order to troubleshoot this....


> Try to run scanimage in DEBUG mode, the mustek_usb2 backend is
> relatively verbose, so you can trace the operations and see where the
> failure occurs.

the failure was due to permission denied, so i'll re-run as root.  how
to avoid running as root, though?

$ sudo su -
# export SANE_DEBUG=255
# export SANE_DEBUG_SANEI=255
# export SANE_DEBUG_DLL=255
# export SANE_DEBUG_MUSTEK_USB2=255
# sane-find-scanner
[...]
found USB scanner (vendor=0x055f [Hewlett-Packard.        ],
product=0x040b [USB2.0 Scanner            ]) at libusb:001:010
[...]
$ scanimage -L
[sanei_debug] Setting debug level of dll to 255.
[dll] sane_init: SANE dll backend version 1.0.12 from sane-backends
1.0.21cvs
[dll] sane_init/read_dlld: processing /usr/local/etc/sane.d/dll.d ...
[dll] sane_init/read_dlld: done.
[dll] sane_init/read_config: reading dll.conf
[...adding a bunch of backends...]
[dll] add_backend: adding backend `mustek_usb2'
[...adding more backends...]
[dll] sane_get_devices
[dll] load: searching backend `xerox_mfp' in `/usr/local/lib/sane'
[dll] load: trying to load `/usr/local/lib/sane/libsane-xerox_mfp.so.1'
[dll] load: couldn't open `/usr/local/lib/sane/libsane-xerox_mfp.so.1'
(No such file or directory)
[dll] load: couldn't find backend `xerox_mfp' (No such file or directory)
[...etc, etc... i only built mustek_usb2...]
[dll] load: searching backend `mustek_usb2' in `/usr/local/lib/sane'
[dll] load: trying to load `/usr/local/lib/sane/libsane-mustek_usb2.so.1'
[dll] load: dlopen()ing `/usr/local/lib/sane/libsane-mustek_usb2.so.1'
[dll] init: initializing backend `mustek_usb2'
[sanei_debug] Setting debug level of mustek_usb2 to 255.
[mustek_usb2] sane_init: start
[mustek_usb2] SANE Mustek USB2 backend version 1.0 build 10 from
sane-backends 1.0.21cvs
[mustek_usb2] sane_init: authorize != null
[mustek_usb2] sane_init: exit
[dll] init: backend `mustek_usb2' is version 1.0.10
[mustek_usb2] sane_get_devices: start: local_only = false
[mustek_usb2] GetDeviceStatus: start
[mustek_usb2] Asic_Open: Enter
[mustek_usb2] attach_one_scanner: enter
[mustek_usb2] attach_one_scanner: devname = libusb:001:010
[mustek_usb2] OpenScanChip:Enter
[mustek_usb2] OpenScanChip: Exit
[mustek_usb2] Mustek_SendData: Enter. reg=94,data=27
[mustek_usb2] RegisterBankStatus=255
[mustek_usb2] RegisterBankStatus=0
[mustek_usb2] Mustek_SendData: Enter. reg=86,data=0
[mustek_usb2] Mustek_SendData: Enter. reg=79,data=60
[mustek_usb2] Mustek_SendData: Enter. reg=87,data=f1
[mustek_usb2] Mustek_SendData: Enter. reg=87,data=a5
[mustek_usb2] Mustek_SendData: Enter. reg=87,data=91
[mustek_usb2] Mustek_SendData: Enter. reg=87,data=81
[mustek_usb2] Mustek_SendData: Enter. reg=87,data=f0
[mustek_usb2] Asic_WaitUnitReady:Enter
[mustek_usb2] GetChipStatus:Enter
[mustek_usb2] Mustek_SendData: Enter. reg=8b,data=1
[mustek_usb2] Mustek_WriteAddressLineForRegister: Enter
[mustek_usb2] Mustek_WriteAddressLineForRegister: Exit
[mustek_usb2] Mustek_ReceiveData
[mustek_usb2] GetChipStatus:Exit
[mustek_usb2] Wait 0 s
[mustek_usb2] Mustek_SendData: Enter. reg=f4,data=0
[mustek_usb2] Asic_WaitUnitReady: Exit
[mustek_usb2] Asic_WaitUnitReady
[mustek_usb2] SafeInitialChip:Enter
[mustek_usb2] Mustek_SendData: Enter. reg=f3,data=0
[mustek_usb2] Mustek_SendData: Enter. reg=86,data=0
[mustek_usb2] Mustek_SendData: Enter. reg=f4,data=0
[mustek_usb2] Asic_WaitUnitReady:Enter
[mustek_usb2] GetChipStatus:Enter
[mustek_usb2] Mustek_SendData: Enter. reg=8b,data=1
[mustek_usb2] Mustek_WriteAddressLineForRegister: Enter
[mustek_usb2] Mustek_WriteAddressLineForRegister: Exit
[mustek_usb2] Mustek_ReceiveData
[mustek_usb2] GetChipStatus:Exit
[mustek_usb2] Wait 0 s
[mustek_usb2] Mustek_SendData: Enter. reg=f4,data=0
[mustek_usb2] Asic_WaitUnitReady: Exit
[mustek_usb2] isFirstOpenChip=0
[mustek_usb2] SafeInitialChip: exit
[mustek_usb2] Asic_Open: device libusb:001:010 successfully opened
[mustek_usb2] Asic_Open: Exit
[mustek_usb2] Asic_Close: Enter
[mustek_usb2] Mustek_SendData: Enter. reg=86,data=1
[mustek_usb2] CloseScanChip:Enter
[mustek_usb2] CloseScanChip: Exit
[mustek_usb2] Asic_Close: Exit
[mustek_usb2] sane_get_devices: exit
[...searching for remaining backends]
[dll] sane_get_devices: found 1 devices
device `mustek_usb2:libusb:001:010' is a Mustek BearPaw 2448 TA Pro
flatbed scanner
[dll] sane_exit: exiting
[dll] sane_exit: calling backend `mustek_usb2's exit function
[mustek_usb2] sane_exit: start
[mustek_usb2] sane_exit: exit
[dll] sane_exit: finished
#


when i run 'sudo scanimage > test.pnm' the scanner does appear to
operate, the light starts moving down the glass, etc.  when it gets to
the end of the glass it doesn't stop, though.  is my x_range and y_range
too large?

so i press ^C to abort and it returns home.  the test.pnm, when opened
with eog (eye of gnome) appears all black but with some colorful
stripes/specs; there's no sign of the image i had on the glass.

i would like to share this test.pnm, where is a suitable place to put it?

secondly, how can i save all of the debug output of 'scanimage
>test.pnm' for you all to see?

thanks


-----BEGIN PGP SIGNATURE-----

iEYEAREIAAYFAkuq4WEACgkQXhfCJNu98qDhSwCbB9er+xPgaYzskBHFfwF1/+W6
wwoAoJTCHPIaz+rnzYOxEQSNrw/lEXH4
=V29h
-----END PGP SIGNATURE-----




More information about the sane-devel mailing list