[sane-devel] Help writing backend for Lexmark 1100 series scanners

Fred Odendaal freshshelf@rogers.com
Mon, 21 Feb 2005 20:08:16 -0500


I need a little help for the backend I'm writing for the Lexmark X1185 
(should work for other X1100 series printer/scanners as well). So far, 
I've used  Benoit's USB sniffer to capture logs from a Windows XP 
machine and verified that the protocol is essentially the same as the HP 
ScanJet 4400C and 4470C. What I can't figure out is the encoding of  the 
available byte count from the scan buffer. Here are some examples of 
what the scanner indicates is its available byte count and what the XP 
driver then tries to read:

Available Byte Count          Bytes Read by XP Driver
E1 1D 00                      00 B3 4C
E1 1D 00                      00 59 A6
29 07 00                      00 09 C4
11 00 00                      00 01 44

I've tried the big-endian/little-endian comparison and that doesn't 
work. Also, I noticed that different byte counts were read for the same 
available byte count - not sure what's going on there. Any help would be 
appreciated.

regards,
Fred Odendaal