List Info

Thread: Canon Lide 80, USB log




Canon Lide 80, USB log
user name
2006-10-21 06:34:35
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                                     
     
...............
[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/00
index.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

-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org
Canon Lide 80, USB log
user name
2006-10-21 13:08:03
Aaron Lawrence schrieb:
> Hello all,
> 
[...]
> 
> 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/00
index.html
> 

Can you somehow give me access to the raw log? That way i
should be able
to create a test program replicating the behavior in the log
to figure
out which parts of the scanning process is missing. Private
mail should
be possible, if your web server does not allow you to upload
such large
amounts of data. Alternatively i can setup a ftp server.

Regards,
  Pierre

-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org
Canon Lide 80, USB log
user name
2006-10-22 14:06:36
pirsoft.dnsalias.org">pierrepirsoft.dnsalias.org wrote:
pirsoft.dnsalias.org" type="cite">
Aaron Lawrence schrieb:
  
Hello all,

    
[...]
  
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

    

Can you somehow give me access to the raw log? That way i should be able
to create a test program replicating the behavior in the log to figure
out which parts of the scanning process is missing. Private mail should
be possible, if your web server does not allow you to upload such large
amounts of data. Alternatively i can setup a ftp server.

Regards,
  Pierre
  
Here's the raw log.

http://www.ford23.com/canon_lide_80/usbsnoop-300dpi_color.log.zip (38 MB zipped, 180MB unzipped)


Thanks,
Aaron
Canon Lide 80, USB log
user name
2006-10-22 19:59:23
Aaron Lawrence schrieb:
> pierrepirsoft.dnsalias.org wrote:
>> Aaron Lawrence schrieb:
>>   
>>> Hello all,
>>>
>>>     
>> [...]
>>   
>>> 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/00
index.html
>>>
>>>     
>>
>> Can you somehow give me access to the raw log? That
way i should be able
>> to create a test program replicating the behavior
in the log to figure
>> out which parts of the scanning process is missing.
Private mail should
>> be possible, if your web server does not allow you
to upload such large
>> amounts of data. Alternatively i can setup a ftp
server.
>>
> Here's the raw log.
> 
> http://www.ford23.com/canon_lide_80/usbsnoop-30
0dpi_color.log.zip (38 MB zipped, 
> 180MB unzipped)
> 

So, here is the small test program. It closely resembles the
actions in
the log, but i still expect it to hang, because there seem
to be at
least two gaps in the log. To compile simply use make in the
directory.

In the meantime i will try to create a patch that makes sane
work with
your scanner.

Regards,
  Pierre
-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )