On Fri, Aug 17, 2012 at 2:02 PM, Philip Gwyn <philipgwyn at gmail.com> wrote:
>
> And yes, I figured the Windows driver would be better.  I've been resisting 
> setting up VirtualBox and a Windows VM because I dislike Windows and it seems 
> like an annoying level of effort.   I'm going to give USBlyser a spin first.

I tried out USBlyser.  It doesn't save to a text format, so I can't
diff them.  A rough look over what is happening and I see nothing to
change the hypothesis that the scanner does the entire page in colour
and cropping, BW, greyscale happen in the driver.

After much cursing, I got VirtualBox, Windows, CapturePerfect and the
DR-9050C drivers to work and captured the output.  Annoyingly,
CapturePerfect polls the scanner and this clutters up the logs.
Output is here:
     http://pied.nu/Sane/canon_dr-20120820-b.tar.gz

'filter' is perl post-processor for tshark -x -r foo. pcap.  It
isolates bytes 0020-002F of host->device transfers, which seems to be
where the commands are.  Diffing the output, I see that the resolution
is set with buffers that look like :

0000  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
0010  01 00 00 00 00 00 00 00 00 00 00 3c 00 02 b0 00   ...........<....
0020  00 00 00 00 00 00 00 00 00 00 00 2c 00 00 01 2c   ...........,...,
0030  01 2c 00 00 08 f4 00 00 00 00 00 00 27 d8 00 00   .,..........'...
0040  33 90 80 80 80 00 01 00 00 20 00 00 00 00 00 00   3........ ......
0050  00 00 00 00 00 00 00 00                           ........

NB : 12c == 300 dpi

Reply via email to