[sane-devel] backend configuration error.

m. allan noah anoah at pfeiffer.edu
Wed Aug 2 18:42:33 UTC 2006


Crystle: are you writing a sane backend driver? the DBG macro is part of 
the source used to build SANE, every existing backend uses to print 
warning messages, so there are lots of examples...

allan

On Wed, 2 Aug 2006, Immanuel CRC Office wrote:

> Could you explain how to use the DBG macro?
>
> Crystle
>
> m. allan noah wrote:
>> 
>> 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



More information about the sane-devel mailing list