what makes you say that the values are unchangeable, do you get an error?

allan

On Wed, 22 Mar 2006, Felix Rubio Dalmau wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: RIPEMD160
>
> Hi!
> here is the part of the code I want to use to change the settings,
> but they are still unchangeable. Is there anything wrong?
>
>    valor2=Xo;
>
> estat=sane_control_option(gestor,22,SANE_ACTION_SET_VALUE,&valor2,valor);
>    printf("%s: ",sane_strstatus(estat));
>    valor2=Yo;
>
> estat=sane_control_option(gestor,23,SANE_ACTION_SET_VALUE,&valor2,valor);
>    printf("%s: ",sane_strstatus(estat));
>    valor2=Xo+WIDTH;
>
> estat=sane_control_option(gestor,24,SANE_ACTION_SET_VALUE,&valor2,valor);
>    printf("%s: ",sane_strstatus(estat));
>    valor2=Yo+HEIGHT;
>
> estat=sane_control_option(gestor,25,SANE_ACTION_SET_VALUE,&valor2,valor);
>    printf("%s\n",sane_strstatus(estat));
>
> What should I write to make the changes permanent? I need to change
> the dimensions of what is scanned, but I don't know how to do it.
>
> Message: 4
> Date: Tue, 21 Mar 2006 10:33:41 -0500 (EST)
> From: "m. allan noah" <[email protected]>
> Subject: Re: [sane-devel] Help with a frontend, plis
> To: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> are you calling sane_get_parameters() after you have changed the options?
>
> allan
>
> - --
> Josep Felix Rubio Dalmau
> GnuPG Public Key:
> http://keyserver.veridis.com:11371/export?id=-9021467632073768555
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFEIdB2gs1O/IWPAZURAy0ZAKCNTXKrqRj6TRpFvb9TlWa39vVC6wCeJvvj
> a4rTK0Hb7a/KuTHuhKLheWk=
> =VLR3
> -----END PGP SIGNATURE-----
>
>
>
> ______________________________________________
> LLama Gratis a cualquier PC del Mundo.
> Llamadas a fijos y m?viles desde 1 c?ntimo por minuto.
> http://es.voice.yahoo.com
>
>
>

-- 
"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
From [email protected]  Thu Mar 23 03:57:43 2006
From: [email protected] (Philip Rhoades)
Date: Thu Mar 23 04:15:03 2006
Subject: [sane-devel] Avision AV820C Plus flatbed scanner - ADF
In-Reply-To: <[email protected]>
References: <[email protected]>
        <[email protected]>
Message-ID: <[email protected]>

Allan, Ren,

I can't get the ADF to work with this scanner - when I use:

scanimage --device-name=avision:/dev/sg0 --format=tiff --mode="Line Art"
--resolution=200 --source=Normal --batch

it works OK for the flatbed but if I change source to "ADF" or
"Transparency" I get an error message:

scanimage: setting of option --source failed (Invalid argument)

It seems that the software is autodetecting the flatbed and not adding
the extra source mode "ADF"?:

  if (dev->hw->feature_type & AV_FILMSCANNER) {
    dev->scanner_type = AV_FILM;
    dev->sane.type = "film scanner";
  }
  else if ( BIT(result[62],6) || BIT(result[62],4) ) {
    dev->scanner_type = AV_SHEETFEED;
    dev->sane.type =  "sheetfed scanner";
  }
  else {
    dev->scanner_type = AV_FLATBED;
    dev->sane.type = "flatbed scanner";
  }


How can I force the scanner to use the ADF?

I did try the scanadf program but that scanned from the flatbed as well.

Thanks,

Phil.


On Wed, 2005-09-07 at 09:25 -0400, m. allan noah wrote:
> phil- i think you need to look around a bit more. sane support for 
> machines with ADF exists for many models. not sure about the Avision 
> 820, but i have used the fujitsu sp15c with the avision backend, and 
> its adf works. look at the options the backend provides using 
> the command 'scanimage --help'. look for something about 'source'.
> 
> try using the command 'scanadf' instead of scanimage.
> 
> allan
> 
> On Wed, 7 Sep 2005, Philip Rhoades wrote:
> 
> > People,
> >
> > I have looked at the SANE stuff and it is quite nice but it seems not to
> > have support for multiple page scans from sheets in a hopper (as opposed
> > to a single sheet in a flat bed etc).
> >
> > I don't know how difficult it would be to add hopper support (we have
> > Avision 820C scanners - Fujitsu rebadged?) but we would be prepared to
> > pay for enhancements if they were possible.
> >
> > Thanks,
> >
> > Phil.
> >
> 
-- 
Philip Rhoades

Pricom Pty Limited  (ACN 003 252 275  ABN 91 003 252 275)
GPO Box 3411
Sydney NSW      2001
Australia
Mobile:  +61:0411-185-652
Fax:  +61:2:8923-5363
E-mail:  [email protected]


Reply via email to