[sane-devel] Front Configuration.

Rupesh Tarpara rupesh.tarpara at patni.com
Thu Jul 27 12:01:30 UTC 2006


I would like to know, how front-end gets the list of all available backends
on the system?

does it look directly into dll.conf file or communicates with sane daemon to
get the list of available backends?


Rupesh



------------------------------

Message: 5
Date: Wed, 26 Jul 2006 07:50:04 -0400 (EDT)
From: "m. allan noah" <anoah at pfeiffer.edu>
Subject: Re: [sane-devel] backend configuration error.
To: sane-devel at lists.alioth.debian.org
Message-ID: <Pine.LNX.4.61.0607260745200.31333 at limos.pfeiffer.edu>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed


try using the DBG macro in your backend to print some messages from within
sane_init() and sane_get_devices().

then call:

SANE_DEBUG_BACKENDNAME=255 scanimage -L

Replace BACKENDNAME with name of your backend in all caps.

if you dont see your messages, then the dll backend may not be loading
your backend. try using `strace scanimage -L` to be sure.

allan

On Wed, 26 Jul 2006, Rupesh Tarpara wrote:

> Hi,
>
> I have hand held image scanner which is a USB-ACM device and uses standard
> ACM driver (serial communication protocol over USB interface). The device
> file created by driver is /dev/input/ttyACM0 (virtual serial device).
>
> Following is the build procedure I have followed.
>
> I have downloaded "sane-backends 1.0.18" source and made the following
> changes to incorporate my device:
> 1. I have created a new backend source file for this device.
> 2. I have modified "sane-backends-1.0.18/configure.in" and
> "sane-backends-1.0.18/backend/Makefile.in" files to include my backend.
> 3. executed autoconf, ./configure, make and make install
> 4. all libraries were installed at "/usr/local/lib/sane"
>
> I modified the "/usr/local/etc/sane.d/dll.conf" file to include my backend
> name.
>
> I am using Xsane as frontend. When I run Xsane, it gives error message as
> "no devices available"
>
> -----------------------------------------------------------------------
> My queries,
>
> 1) are there any backend configuration steps which I might have skipped?
> 2) What is the procedure frontend follows when it is executed?
> 3) How does the communication happens (or initiates) between
Frontend<---->
> backend <------> device?
> 4) What are the steps to be followed for new backend installation?
>
> -------------------------------------
>
> Additional information about OS and sane version I am using.
>
> I am using RedHat AS3 OS, following is the output of uname -a
> [root at mypc root]# uname -a
> Linux mypc.home.com 2.4.21-40.EL #1 Thu Feb 2 22:32:00 EST 2006 i686 i686
> i386 GNU/Linux
>
> [root at mypc root]# scanimage --version
> scanimage (sane-backends) 1.0.18; backend version 1.0.18
>
> Regards,
>
> Rupesh
>
>
>
>
>
> http://www.patni.com
> World-Wide Partnerships. World-Class Solutions.
> _____________________________________________________________________
>
> This e-mail message may contain proprietary, confidential or legally
> privileged information for the sole use of the person or entity to
> whom this message was originally addressed. Any review, e-transmission
> dissemination or other use of or taking of any action in reliance upon
> this information by persons or entities other than the intended
> recipient is prohibited. If you have received this e-mail in error
> kindly delete  this e-mail from your records. If it appears that this
> mail has been forwarded to you without proper authority, please notify
> us immediately at netadmin at patni.com and delete this mail.
> _____________________________________________________________________
>

--
"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



------------------------------

_______________________________________________
sane-devel mailing list
sane-devel at lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-devel


End of sane-devel Digest, Vol 13, Issue 32
******************************************



http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_____________________________________________________________________

This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to
whom this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete  this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at netadmin at patni.com and delete this mail. 
_____________________________________________________________________


More information about the sane-devel mailing list