[sane-devel] CanoScan 5000F support?

Gernot Hassenpflug aikishugyo at gmail.com
Wed Mar 24 04:03:37 UTC 2010


On Tue, Mar 23, 2010 at 6:23 AM, xy <abi1789 at googlemail.com> wrote:
> On 03/22/2010 07:39 PM, xy wrote:
>>
>> But I made some USB-Sniffs.
>> While doing this, I noticed the logfile grows to lots of megabytes in some
>> seconds of idle state.
>> It seems like the host is continously sending the numbers from 0 to 255.
>> Is there some tool to edit usbsnoop logfiles? It would be difficult to
>> delete the boring parts with sed/awk and I definitely can't distribute a
>> 50Mb logfile.
>>
>>
>> PyroPeter
>
> I managed to remove 30Mb of crap from one of the logfiles, which is now 20Mb
> in size.
> gzip cut the size to 1.6Mb.
> This is still to big for the list, so you can download it here:
> http://keks.selfip.org/tmp/usbsnoop_canoscan_5000F.log.gz
>
> I hope that helps, I will try to remove some more crap tomorrow.


There is a program called spike4.pl which does that

cat $logfile | perl spike4.pl > $output

Doing that shows that your scanner seems similar to 4200F and 5600F,
maybe GL640 and/or other Genesys chip (?). I don't know the status of
the genesys backend (need to search ML archives) or what
chipsets/scanners are currently supported. But I suppose that would be
the next thing to investigate.

Urb 1 (C) ep= (read) 1 ms
 00000000: 12 01 00 02 ff ff ff 40 a9 04 12 22 03 03 02 03
 00000010: 01 01
 00000000: 80 06 00 01 00 00 12 00

pause 0 ms

Urb 2 (C) ep= (read) 0 ms
 00000000: 09 02 27 00 01 01 00 c0 05
 00000000: 80 06 00 02 00 00 09 00

pause 0 ms

Urb 3 (C) ep= (read) 1 ms
 00000000: 09 02 27 00 01 01 00 c0 05 09 04 00 00 03 00 00
 00000010: 00 00 07 05 81 02 00 02 00 07 05 02 02 00 02 00
 00000020: 07 05 83 03 01 00 08
 00000000: 80 06 00 02 00 00 27 00

pause 0 ms

Urb 4 (C) ep= (write) 91 ms

pause 73 ms

Urb 5 (C) ep= (read) 0 ms
 00000000: 00
 00000000: c0 0c 8e 00 00 00 01 00

pause 1 ms

Urb 6 (C) ep= (write) 1 ms
 00000000: 84
 00000000: 40 0c 8c 00 10 00 01 00

pause 1 ms

Urb 7 (C) ep= (write) 0 ms
 00000000: 8e e0
 00000000: 40 04 83 00 00 00 02 00

pause 1 ms

Urb 8 (C) ep= (write) 1 ms
 00000000: 8f
 00000000: 40 0c 83 00 00 00 01 00

pause 1 ms

Urb 9 (C) ep= (write) 0 ms
 00000000: 8e 00
 00000000: 40 04 83 00 00 00 02 00

Regards,
Gernot Hassenpflug



More information about the sane-devel mailing list