[sane-devel] Canon Lide 80, USB log

Aaron Lawrence goland55 at aol.com
Sat Oct 21 06:34:35 UTC 2006


Hello all,

A while back I attempted to make some headway with getting the Canon 
Lide 80 to work with the sane backend. 

Tonight, I added in entries to the backend as described here: 
http://lists.alioth.debian.org/pipermail/sane-devel/2006-May/016972.html


sane-find-scanner detects the scanner.  scanimage -L output seems fine.  
Then I attempted scanimage > image.pnm and that's where I find problems.

Input...
export SANE_DEBUG_GENESYS_GL841=255  
export SANE_DEBUG_SANEI_USB=255
export SANE_DEBUG_GENESYS=255
scanimage > image.pnm


Output..
[sanei_debug] Setting debug level of sanei_usb to 255.
[sanei_usb] sanei_usb_init: Looking for kernel scanner devices
[sanei_usb] sanei_usb_init: can't stat /dev/usb/: No such file or directory
[sanei_usb] sanei_usb_init: Looking for libusb devices
usb_set_debug: Setting debugging level to 255 (on)
usb_os_find_busses: Found 003
....
....
[sanei_usb] sanei_usb_init: found libusb device (0x04a9/0x2214) 
interface 0  at libusb:001:012
...
....
[sanei_usb] sanei_usb_open: opened usb device `libusb:001:012' (*dn=1)
[genesys] init_options: start
[genesys] init_options: exit
[sanei_debug] Setting debug level of genesys_gl841 to 255.
[genesys_gl841] gl841_init
[genesys_gl841] gl841_init_registers
[genesys_gl841] gl841_setup_sensor
[genesys_gl841] gl841_init_registers complete
[sanei_usb] sanei_usb_control_msg: rtype = 0x40, req = 12, value = 135, 
index = 0, len = 1
[sanei_usb] 0000: 04                                              
................
[sanei_usb] sanei_usb_control_msg: rtype = 0x40, req = 12, value = 131, 
index = 0, len = 1
[sanei_usb] 0000: 0E                                              
................
[sanei_usb] sanei_usb_control_msg: rtype = 0x40, req = 12, value = 133, 
index = 0, len = 1
[sanei_usb] 0000: 00                                              
................
[genesys] sanei_genesys_write_register (0x0e, 0x00) completed
[genesys_gl841] gl841_bulk_write_register (size = 208)
[sanei_usb] sanei_usb_control_msg: rtype = 0x40, req = 4, value = 131, 
index = 0, len = 2
[sanei_usb] 0000: 01 A0                                           
................
[genesys_gl841] reg[0x01] = 0xa0
[sanei_usb] sanei_usb_control_msg: rtype = 0x40, req = 4, value = 131, 
index = 0, len = 2
[sanei_usb] 0000: 02 38                                           
.8..............
[genesys_gl841] reg[0x02] = 0x38
[sanei_usb] sanei_usb_control_msg: rtype = 0x40, req = 4, value = 131, 
index = 0, len = 2
[sanei_usb] 0000: 03 5F                                           
._..............
[genesys_gl841] reg[0x03] = 0x5f
[sanei_usb] sanei_usb_control_msg: rtype = 0x40, req = 4, value = 131, 
index = 0, len = 2
[sanei_usb] 0000: 04 10                                           
................
[genesys_gl841] reg[0x04] = 0x10
[sanei_usb] sanei_usb_control_msg: rtype = 0x40, req = 4, value = 131, 
index = 0, len = 2
[sanei_usb] 0000: 05 40                                           
. at ..............
[genesys_gl841] reg[0x05] = 0x40
[sanei_usb] sanei_usb_control_msg: rtype = 0x40, req = 4, value = 131, 
index = 0, len = 2
[sanei_usb] 0000: 06 18                                           
................
[genesys_gl841] reg[0x06] = 0x18
[sanei_usb] sanei_usb_control_msg: rtype = 0x40, req = 4, value = 131, 
index = 0, len = 2
[sanei_usb] 0000: 07 00                                           
................
USB error: error sending control message: Protocol error
[sanei_usb] sanei_usb_control_msg: libusb complained: error sending 
control message: Protocol error
[genesys_gl841] gl841_bulk_write_register: failed while writing command: 
Invalid argument
scanimage: open of device genesys:libusb:001:012 failed: Invalid argument
[genesys] sane_exit: start
[genesys] sane_exit: exit



So it appears that the scanner resets when register 7 is written to (as 
someone had mentioned to me previously).  I was told to do a usbsnoop 
and get a log.

I used the awk and perl script on http://john.daltons.info/lide60/ to 
generate some output of plugging in the scanner, initializing and a 
300dpi color scan.  It was a while ago when I took the usb log but I 
believe I canceled the scan partway through. 
http://www.ford23.com/canon_lide_80/300dpi_color/00index.html

If someone can use this, or help me use this information it would be 
appreciated.  I have a windows xp laptop that can be available that I 
can use to acquire usb logs if more are needed.  I've had this scanner 
for about 4 years and 3 years ago I converted the house over to 100% 
linux.  The scanner has been collecting dust since.  I'd really like to 
get this working.

Thank you,

Aaron



More information about the sane-devel mailing list