[sane-devel] LiDE 90

Pierre Willenbrock pierre at pirsoft.dnsalias.org
Thu Apr 17 14:14:49 UTC 2008


Guillaume Gastebois schrieb:
> Hello,
> 
> Me again !
> 
> I'm trying to find what are GPIO14,13,12 and 11 for.
> 
> I find GPIO11=home switch and must be 0.
> I thought I found GPIO14 was half CCD but by adding :
> /* gpio part. here: for canon lide 90 */
> if (dev->model->gpo_type == GPO_CANONLIDE90)
> {
> r = sanei_genesys_get_address (reg, 0x6c);
> if (half_ccd)
> r->value |= 0x20;
> else
> r->value &= ~0x20;
> }
> 
> in genesys_gl841.c line ~2053 I had image compressed x2 in the left and
> second right part black with 0x6c=12 and not with 0x6c=1a. Strange.
> 
> I decided to comment out these lines yet for tests.
> 
> In genesys_841.c I see conditions with GPO_CANONLIDE35 for gl841_feed
> function (lines ~4309 and ~4913). I added GPO_CANONLIDE90 too. What is
> this function for ? Is it usefull to add lide 90 ?
> 
> tests I made were :
> 0x1a=00 and 0x6c=02 : bad calibration vertical lines
> 0x1a=00 and 0x6c=0a : bad calibration vertical lines (motor sometimes
> locks at the end with noise).
> 0x1a=00 and 0x6c=12 : image like before (small calibration problems)
> 0x1a=00 and 0x6c=1a : image like before (small calibration problems)
> 0x1a=00 and 0x6c=22 : bad calibration vertical lines
> 0x1a=00 and 0x6c=2a : bad calibration vertical lines
> 0x1a=00 and 0x6c=32 : very good quality image but take only the half
> left part of the page
> 0x1a=00 and 0x6c=3a : very good quality image but take only the half
> left part of the page
> 
> 0x1a=24 and 0x6c=02 or 0a or 12 or 1a or 22 or 2a or 32 or 3a : always
> black image!

try 0x1a=0x24 with
   dev->reg[reg_0x77].value = 0x00;
   dev->reg[reg_0x78].value = 0x00;
   dev->reg[reg_0x79].value = 0x3f;
   dev->reg[reg_0x7a].value = 0x00;
   dev->reg[reg_0x7b].value = 0x00;
   dev->reg[reg_0x7c].value = 0x3f;

if this does not work, try adding more bits/removing bits from ck3map or 
ck4map(for example 0:0f:ff, or 0:00:0f) or inverting one of the maps.
(My scanner uses clock1 and clock2, clock2 is just clock1 inverted, so 
there is only one map. Using 0:00:3f on ck1map works for me, but so does 
00:0f:ff and 00:00:0f.) I guess the default is a 50% duty cycle for the 
clocks. The number of master clocks the clock1/clock2/clock3/clock4 is 
set high then depends on the actual number of master clocks per pixel.

> All the results can be found on :
> http://ggastebois.free.fr/lide90_snoop/test_00 (for tests with 0x1a=00)
> http://ggastebois.free.fr/lide90_snoop/test_24 (for tests with 0x1a=24)
> 
> The number in the tar name is the value off 0x6c. I think looking at
> 0x6c=32 or 3a is very interesting.
> 
> Why sane always produces black images with same 0x1a value as windows
> driver ????
> 
> Regards
> Guillaume
> 
> ps. : Pierre can you send me a sample entropy processed offset image to
> see what I must obtain. Thank you.




More information about the sane-devel mailing list