Re: [sane-devel] Ricoh IS410

2015-09-12 Thread Jeremy Johnson
> I now have three other scanners, which work, including my scsi Microtek
> Scanmaker e3, which is on the same scsi bus as my Ricoh IS410.  I still
> would like to get it going, if you're game.  I started from scratch, using
> your latest  tarball, which was dated February 2015.  It seems to be
> complaining about window size?  I have not been able to find the
> specifications for this scanner anywhere.  I have even talked to the local
> Ricoh office about it.  Her's hoping you will be able to solve this
> mystery..

Terrence,

Good News and Bad News.

First the Good News. From your logfile, it looks like there are no egregious 
bugs in the hs2p 
backend. 

Now the Bad News: 
It looks like you need to reverse engineer the DATA WINDOW command for the 
IS410:

[hs2p] >> set_window
[hs2p] set_window: SET WINDOW COMMAND Transfer Length = 328 (should be 8 + 
n*320)
[hs2p] set_window: COPYING 648 bytes from settings to Set Window Command (648)
[hs2p-sci.c:  
This is OK, even though 648 != 328, since we're just filling in a blank STRUCT 
of size header + 2 
windows of 320. We'll only actually write 328 (header + one window)  bytes to 
the scanner in 
the case of the IS410.]
[hs2p] set_window: SET WINDOW COMMAND Window Descriptor Length = 320 (should be 
n*320)
[hs2p] set_window: calling sanei_scsi_cmd(3,&win,338, NULL, NULL)
[hs2p] >> sense_handler
...
[hs2p] sense_handler: sense_buffer=0x70, sense=0x5, asc=0x26, ascq=0
[hs2p] sense_handler: ErrorCode 70 ValidData: 0 EOM: 0 ILI: 0 MissingBytes: 0
[hs2p] sense_handler: sense=70 00 05 00 00 00 00 06 00 00 00 00 26 00 00 00 
[hs2p] sense_handler: sense_key=0x5 'ILLEGAL REQUEST - Used such as when 
illegal 
parameter exists in data or command'
[hs2p] Looking up ascq=(0x26,0)=0x2600
[hs2p] sense_handler: ascq=(0x26,0): 0x2600 'Invalid field in parameter list 
(check field 
pointer).'
[hs2p] sense_handler : 'ILLEGAL REQUEST'-'Used such as when illegal parameter 
exists in data 
or command' 'Invalid field in parameter list (check field pointer).' return:4
[hs2p] *
[hs2p] ERROR: set_window: Invalid argument
[hs2p] PRINTING SWD CMD BLK:
[hs2p]   0: 0x24 36
[hs2p]   1: 0x00 0
[hs2p]   2: 0x00 0
[hs2p]   3: 0x00 0
[hs2p]   4: 0x00 0
[hs2p]   5: 0x00 0
[hs2p]   6: 0x00 0
[hs2p]   7: 0x01 1
[hs2p]   8: 0x48 72
[hs2p]   9: 0x00 0
[hs2p] PRINTING SWD HEADER:
[hs2p]   0: 0x00 0
[hs2p]   1: 0x00 0
[hs2p]   2: 0x00 0
[hs2p]   3: 0x00 0
[hs2p]   4: 0x00 0
[hs2p]   5: 0x00 0
[hs2p]   6: 0x02 2
[hs2p]   7: 0x80 128
[hs2p] PRINTING SWD DATA[0]:
...

[hs2p] SET WINDOW DATA failed: Invalid argument
[hs2p] >> print_window_data
[hs2p] HEADER
[hs2p] 00
[hs2p] 00
[hs2p] 00
[hs2p] 00
[hs2p] 00
[hs2p] 00
[hs2p] Window Descriptor Length=640

[hs2p] Window Identifier = 0
[hs2p] AutoBit = 0
[hs2p] X-Axis Resolution = 300
[hs2p] Y-Axis Resolution = 300
[hs2p] X-Axis Upper Left = 41
[hs2p] Y-Axis Upper Left = 0
[hs2p] Window Width  = 215
[hs2p] Window Length = 279
[hs2p] Brightness = 0
[hs2p] Threshold  = 0
[hs2p] Contrast   = 0
[hs2p] Image Composition   = 0x2
[hs2p] Bits per Pixel = 8
[hs2p] Halftone Code = 0x2
[hs2p] Halftone Id   = 0x1
[hs2p] Byte29   = 0x3 RIF=0 PaddingType=3
[hs2p] Bit Ordering = 7
[hs2p] Compression Type = 0
[hs2p] Compression Arg  = 0x2
[hs2p] Reserved=0
[hs2p] Reserved=0
[hs2p] Reserved=0
[hs2p] Reserved=0
[hs2p] Reserved=0
[hs2p] Reserved=0
[hs2p] Ignored = 0
[hs2p] Ignored = 0
[hs2p] Byte42 = 0x80 MRIF=128 Filtering=0 GammaID=0
[hs2p] Ignored = 0
[hs2p] Ignored = 0
[hs2p] Binary Filtering = 0
[hs2p] Ignored = 0
[hs2p] Ignored = 0
[hs2p] Automatic Separation = 0
[hs2p] Ignored = 0
[hs2p] Automatic Binarization = 0
[hs2p] Ignored = 0
[hs2p] Ignored = 0
[hs2p] Ignored = 0
[hs2p] Ignored = 0
[hs2p] Ignored = 0
[hs2p] Ignored = 0
[hs2p] Ignored = 0
[hs2p] Ignored = 0
[hs2p] Ignored = 0
[hs2p] Ignored = 0
[hs2p] Ignored = 0
[hs2p] Ignored = 0
[hs2p] Ignored = 0
[hs2p] 

[hs2p] SECTION 0
[hs2p] Section Enable Flat (sef bit) = 0
[hs2p] ignored = 0
[hs2p] Upper Left X = 0
[hs2p] Upper Left Y = 0
[hs2p] Width = 0
[hs2p] Length = 0
[hs2p] Binary Filtering = 0
[hs2p] ignored = 0
[hs2p] Threshold = 0
[hs2p] ignored = 0
[hs2p] Image Composition = 0
[hs2p] Halftone Id = 0
[hs2p] Halftone Code = 0
[hs2p] ignored = 0
[hs2p] ignored = 0
[hs2p] ignored = 0
[hs2p] ignored = 0
[hs2p] ignored = 0
[hs2p] ignored = 0
[hs2p] ignored = 0
[hs2p] 

[hs2p] SECTION 1
[hs2p] Section Enable Flat (sef bit) = 0
[hs2p] ignored = 0
[hs2p] Upper Left X = 0-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] Ricoh IS410

2001-11-15 Thread Oliver Schirrmeister
I've found the Ricoh IS410 in the list of sane backends (IBM backend).
Is it compatible with the ibm2456? Can anybody tell me where to find
the oem manual of this scanner?

Thanks

Oliver