Stef,

I tried a few scans with the latest code. It seems to find the start 
position much better. It even works when I have Top-left x and y set to 
something other than 0, which was broken for me before.

However, the colours are way off for my scanner. All the colour scans I 
do are saturated to blue (white becomes blue). This becomes worse as I 
increase the resolution. Also, there is a lot of back tracking at 300dpi 
for a full page scan. I don't think the acceleration curves have been 
set correctly for this resolution and image size. Actually, it's 
probably just width and resolution to determine the acceleration curves.

If you need me to do any testing, or send you any logfiles let me know.
Fred.

St?phane VOLTZ wrote:
> Le Dimanche 28 Mai 2006 20:20, Fred Odendaal a ?crit :
>   
>> Stef,
>>
>> You are correct about the dot. I've attached 2 files:
>> find_start_lexmark1.pnm - This was with SANE_DEBUG_SANEI_USB=255
>> find_start_lexmark2.pnm - This was with SANE_DEBUG_SANEI_USB unset.
>>
>> As you can see the picture gets better with usb logging turned off. I
>> think the real problem function is
>> sanei_lexmark_x1100_search_home_bwd(). It should have stopped the scan
>> head and positioned it inside the dot. The white space at the top of
>> each file is the distance past the dot that the scan head moved in the
>> reverse direction. In this function after the scan is stopped from
>> moving in the backward direction it is moved forward half the distance
>> of the dot plus the maximum no. of lines the buffer will hold. This is
>> done by the call to sanei_lexmark_x1100_move_fwd(). When I comment this
>> line out the picture gets even better. In other words, this function
>> isn't moving forward, but continuing backwards making our position even
>> worse!
>>
>> The sanei_lexmark_x1100_find_start_line() function is working as it
>> should. It simply scans what should be enough lines to scan past the dot
>> into white space and return the number of white lines past the dot.
>> Since the distance to the scanning area from the dot is known we simply
>> subtract how far past the dot we've moved from this number to see how
>> far we still have to go.
>>
>> regards,
>> Fred O.
>>     
>
>       Hello,
>
>       you wre right, the trouble was with  
> sanei_lexmark_x1100_search_home_bwd()
> which was scanning too far. To correct it, I made it read only one line of
> data (2500 bytes) at a time. So when it finds the dot and then stop, it is
> right on it. So we don't need to move forward a little. Now origin finding is
> slower but much more reliable.
>       This change uncovered a bug in the way I modified rewind. So I had to 
> change
> it. It now goes back by the bottom right y coordinate plus a fixed amount
> which is the distance between start of visible area and the "origin dot".
>       I tweaked a little the calibration values. Picture are now close to the
> quality of my other scanner.
>
>       I think that the current version is in good shape.
>
> Regards,
>       Stef
>
> -------------------------------------------------------
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20060608/e807bae5/attachment.html
From pra...@gmail.com  Fri Jun  9 11:47:39 2006
From: pra...@gmail.com (Praveen Kallakuri)
Date: Fri Jun  9 11:48:00 2006
Subject: [sane-devel] configuring devicename so it can be used in gimp
In-Reply-To: <dccc169e0606062158x2dcbc5b2x5a765827d8c5e...@mail.gmail.com>
References: <dccc169e0606062158x2dcbc5b2x5a765827d8c5e...@mail.gmail.com>
Message-ID: <dccc169e0606090447j2c5a2b2es487d905da4f8...@mail.gmail.com>

Hello,

I am relatively new to sane and after digging around for a few hours now, I
still cannot find the solution to what seems to be a simple problem.

I can get xsane to start up and connect to my scanner using the following
command:

xsane hpaio:/net/Officejet_6300_series?ip=192.168.15.102
>

But without the devicename, i get the "no devices avaliable" error. I can
live with this if I used xsane standalone, but I want to use it from gimp.

>From the xsane man page:

When xsane is started from the gimp then it is not possible  to  add  a
> devicename explicitly. You have to make the devices known to the system by
> configuring sane-dll, sane-net and saned.
>

Problem is that I don't know what else to do in terms of sane-dll
configuration except that I have ensured that there is an
/etc/sane.d/dll.d/hplip and that file has the "hpaio" backend in it (I am
running ubuntu dapper). I also tried specifying the backend directly in
dll.conf and also adding  "hpaio:/net/Officejet_6300_series?ip=
192.168.15.102" but to no avail.

sane-net and and saned don't seem to be relevant to my situation since it
seems to enable controlling "devices attached to a remote host". saned seems
to do the opposite and that seems irrelevant too.

Any help?

-- 

                                                       k.p.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20060609/ddbe9d48/attachment-0001.htm
From an...@pfeiffer.edu  Fri Jun  9 12:30:57 2006
From: an...@pfeiffer.edu (m. allan noah)
Date: Fri Jun  9 12:31:32 2006
Subject: [sane-devel] configuring devicename so it can be used in gimp
In-Reply-To: <dccc169e0606090447j2c5a2b2es487d905da4f8...@mail.gmail.com>
References: <dccc169e0606062158x2dcbc5b2x5a765827d8c5e...@mail.gmail.com>
        <dccc169e0606090447j2c5a2b2es487d905da4f8...@mail.gmail.com>
Message-ID: <pine.lnx.4.61.0606090824200.24...@limos.pfeiffer.edu>


this would seem to be the sort of thing that would be set in the 
backends conf (if it has one), rather than in dll.conf. perhaps you can 
check with the developers of that backend?

please dont double post.

allan

On Fri, 9 Jun 2006, Praveen Kallakuri wrote:

> Hello,
>
> I am relatively new to sane and after digging around for a few hours now, I
> still cannot find the solution to what seems to be a simple problem.
>
> I can get xsane to start up and connect to my scanner using the following
> command:
>
> xsane hpaio:/net/Officejet_6300_series?ip=192.168.15.102
>> 
>
> But without the devicename, i get the "no devices avaliable" error. I can
> live with this if I used xsane standalone, but I want to use it from gimp.
>
>>> From the xsane man page:
>
> When xsane is started from the gimp then it is not possible  to  add  a
>> devicename explicitly. You have to make the devices known to the system by
>> configuring sane-dll, sane-net and saned.
>> 
>
> Problem is that I don't know what else to do in terms of sane-dll
> configuration except that I have ensured that there is an
> /etc/sane.d/dll.d/hplip and that file has the "hpaio" backend in it (I am
> running ubuntu dapper). I also tried specifying the backend directly in
> dll.conf and also adding  "hpaio:/net/Officejet_6300_series?ip=
> 192.168.15.102" but to no avail.
>
> sane-net and and saned don't seem to be relevant to my situation since it
> seems to enable controlling "devices attached to a remote host". saned seems
> to do the opposite and that seems irrelevant too.
>
> Any help?
>
>

-- 
"so don't tell us it can't be done, putting down what you don't know.
money isn't our god, integrity will free our souls" - Max Cavalera

Reply via email to