[sane-devel] Epson 2480 and scanner lamp

2006-08-02 Thread Miguel Bazdresch
On 7/31/06, Miguel Bazdresch eorli...@gmail.com wrote:
 On 7/31/06, Oliver Schwartz oliver.schwa...@gmx.de wrote:

  If you put scanimage --help  /dev/null into some hotplug or resmgr
  script it should also initiate a firmware download.

 That's great; I'll give it a shot. Thanks for your help.

This works. After about 15 minutes or so the lamp turns off. Thanks again.

-- 
Miguel Bazdresch


[sane-devel] [patch] epkowa.desc

2006-08-02 Thread Olaf Meeuwissen
Henning Meier-Geinitz henn...@meier-geinitz.de writes:

 Hi,

 On 2006-06-27 12:42, Olaf Meeuwissen wrote:
 I've updated epkowa.desc to mention which plugin is needed for those
 devices that use one and added a URL to the AVASYS Download Site that
 should get users straight to the questionnaire.
 # Questionnaire?  Yuck!
 
 I've also updated some of the comments that referenced the snapscan
 backend as that backend now claims support.
 
 Patch attached, please commit.

 Thanks. Patch committed.

Thanks!  I already started thinking it got lost and I'd better submit
it as a big/patch on Alioth ;-)
-- 
Olaf Meeuwissen  EPSON AVASYS Corporation, SE1
FSF Associate Member #1962   sign up at http://member.fsf.org/
GnuPG key: 6BE37D90/AB6B 0D1F 99E7 1BF5 EB97  976A 16C7 F27D 6BE3 7D90
Penguin's lib!   -- I hack, therefore I am --   LPIC-2


[sane-devel] Help with Canon 2700f

2006-08-02 Thread John Bird
Hi
first let me apologise for posting here but I have searched on the net and 
posted in two Linux user groups all to no avail. I'm running Kubutu 6.06 64 
bit using Kernel 26.15.26 and so installed Deb packets from this 
distribution.
I'm trying (very trying at times) to get GIMP to Scan using a Canon 2700F film 
scanner but neither Gimp nor Kooka see it, They both see the USB flat bed,
 From the Sane document I know that this scanner is supported by sane canon 
backend.This scanner shows in KinfoCenter as Below

Attached devices
Host scsi0 Channel: 00 Id: 02 Lun: 00
 Vendor: CANON   Model IX-27015C  Rev: 1.15 
 Type:  Scanner   ANSI SCSI revision: 02

And my SCSI shows up correctly.
From the documentation in the sane-backends-1.0.16 I found the following which 
seems to applie.

  Add the canon scanner to the /usr/local/etc/sane.d/dll.conf file:
   cut here 
  # enable the next line if you want to allow access through the network:
  #net
  pnm
  #mustek
  #hp
  #qcam
  #umax
  canon
   cut here 
   
   Add a canon.conf file to the /usr/local/etc/sane.d directory:
   cut here 
  scsi CANON 
   cut here 

In the Kubutu distro I use there is no /usr/local/etc/sane.d/dll, but there is 
a /etc/sane.d/dll which I assume is the equivalent in this distro. In this 
directory I have made a file .conf file, cutting and pasting as instructed. 
There was already a canon conf file in the /etc/sane.d consisting of,

#canon conf
/dev/scanner
#/dev/sg0

and so to this I cut and pasted  scsi CANON  and have tried it in all possible 
combinations commenting out lines and removing comments, but cannot get Gimp 
or Koola to see it even as root. The scanner goes through its calibrate cycle 
on boot up. The only components of SANE I have installed are the following

gimp2.0-quiteinsane
libsane
python-imaging-sane
python2.4-imaging-sane

Any help with this would be most wellcome at this point(please save me from 
the evil empire of windoz)
John.


[sane-devel] Setup Packet Question

2006-08-02 Thread m. allan noah
perhaps the usb sniffer just shows the setup packet in the return data? i 
mean, all those values are listed in the going down part:

Request = ff
Value   = 8440
Index   = 

and then later in the coming back part:

SetupPacket  : 21 ff 40 84 00 00 40 00

i dont think the setup packet actually comes back.

can you try looking for a firmware file on your windows box that looks 
like these data blocks?

allan

On Tue, 1 Aug 2006, Tabor Kelly wrote:

 I feel like I understand almost all of what is happening in this log:
 http://tabor.taborandtashell.net/sane-fs2720u/turned_on.LOG

 However, I don't understand any of the Setup Packets with the bmRequestType 
 of 0x21. They all appear as the URB is coming back! But 0x21 is a 
 host-to-device transfer of type class with the recipient being the interface. 
 Is there something about the URBs going down and coming back that I don't 
 understand?

 Thank You,

 Tabor Kelly



-- 
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] Setup Packet Question

2006-08-02 Thread Tabor Kelly
m. allan noah wrote:
 perhaps the usb sniffer just shows the setup packet in the return data? 
 i mean, all those values are listed in the going down part:
 
 Request = ff
 Value   = 8440
 Index   = 

DOH! I am glad you picked that up.

I would love to look for that firmware, but I don't know what tool(s) to 
use to do that. I assume some soft of binary diffing tool. If anybody 
knows of a good free Win2000 binary diffing tool, let me know. Otherwise 
I will try googling it.

Betrik Sikken was nice enough to extract what is being uploaded by hand 
(I assume from URB 1-53) and send it to me. I am attaching it.

Thank You,

Tabor Kelly


-- next part --
A non-text attachment was scrubbed...
Name: fs2720u.bin
Type: application/macbinary
Size: 3392 bytes
Desc: not available
Url : 
http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20060801/b2d9bfa3/fs2720u.bin
From jjben...@chicagoguitar.com  Wed Aug  2 02:18:50 2006
From: jjben...@chicagoguitar.com (Jeremiah Benham)
Date: Wed Aug  2 02:09:55 2006
Subject: [sane-devel] hp scanjet 6200c flakeyness
Message-ID: 20060802021850.gc26...@thor.chicagoguitar.com

I just recieved a hand-me-down hp scanjet 6200c. The problem I am having
is that I can scan about 10 images or so and then the scanner needs to
be unpluged from usb and pluged back in. The scanner just stops working
after about 10 scans or so. I reset the power on the
scanner also when doing this. The errors I get from xsane are these:

Error during read: Error during device I/O
Failed to open `(null)': Bad address
Failed to start scanner: End of file reached

I am using sane-backends 1.0.18-r2
xsane 0.991
libusb 0.1.12
kernel 2.6.16-gentoo-r9
cpu amd64 (x86_64)
distro Gentoo
usb bus uhci_hcd

The command line tool scanimage gives me all the same issues that xsane
does. 

Let me know what I should do to debug this issue. I know c but have not
dived into the code yet. Any debugging docs for sane backends. Is this a
libusb issue? I guess I need to know where to point the finger.

Jeremiah



[sane-devel] Assistance please!

2006-08-02 Thread Johannes Meixner

Hello,

On Aug 1 16:31 marcela castro wrote (shortened):
 scanner Benq Saw 4300U to work with this system Suse 10.1
 ... require the firmware upload. driver snapscan (package sane)
 ... Could you please let me know from where can I download this
 firmware upload and the driver snapscan?

When you use YaST (our default setup tool), it will install
the right software packages for your scanner (in this case
the package sane is sufficient because it includes the
snapscan driver).

When you select your model from the model list in YaST,
a Firmware upload required popup message appears which reads:
-
A firmware file contains software that must be uploaded to the
scanner's memory. Without firmware, the scanner cannot work.

Because firmware is licensed by the scanner manufacturer,
we cannot distribute it.
Usually the firmware file is stored somewhere on the
manufacturer's CD.
Alternatively, it may be possible to download it from the
manufacturer's Web site.
Ask the manufacturer how to get the firmware file for your
particular scanner.
Find additional useful information on the SANE Web site at
http://www.sane-project.org/.

After you get the firmware file, you must configure the driver
manually.
The man page of the driver describes how to configure it for
firmware upload.
The following command shows the man page for your driver:

  man sane-snapscan
-

The sane-snapscan man page reads:
-
...
For scanners that need a firmware upload before scanning
add a line starting with firmware followed by the fully
qualified path to your firmware file, e.g.

  firmware /usr/share/sane/snapscan/firmware.bin

For further details read http://snapscan.sourceforge.net.
-

On http://snapscan.sourceforge.net you find a table
with firmware file names.


Kind Regards
Johannes Meixner
-- 
SUSE LINUX Products GmbH, Maxfeldstrasse 5  Mail: jsm...@suse.de
90409 Nuernberg, GermanyWWW: http://www.suse.de/


[sane-devel] Setup Packet Question

2006-08-02 Thread m. allan noah
try to look around in the scanner's install directory for a file of the 
same length as the one bertrik made, and use a hex editor to see if the 
first few lines are the same. after that you can worry about a binary 
diff.

if you copy the windows install dir to you linux box, you will find it 
easier...

allan

On Tue, 1 Aug 2006, Tabor Kelly wrote:

 m. allan noah wrote:
 perhaps the usb sniffer just shows the setup packet in the return data? i 
 mean, all those values are listed in the going down part:
 
 Request = ff
 Value   = 8440
 Index   = 

 DOH! I am glad you picked that up.

 I would love to look for that firmware, but I don't know what tool(s) to use 
 to do that. I assume some soft of binary diffing tool. If anybody knows of a 
 good free Win2000 binary diffing tool, let me know. Otherwise I will try 
 googling it.

 Betrik Sikken was nice enough to extract what is being uploaded by hand (I 
 assume from URB 1-53) and send it to me. I am attaching it.

 Thank You,

 Tabor Kelly



-- 
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] Help with Canon 2700f

2006-08-02 Thread m. allan noah
quit testing with sane an kooka. until you get it to show up in 
sane-find-scanner and scanimage -L, there is no point.

allan

On Wed, 2 Aug 2006, John Bird wrote:

 Hi
 first let me apologise for posting here but I have searched on the net and
 posted in two Linux user groups all to no avail. I'm running Kubutu 6.06 64
 bit using Kernel 26.15.26 and so installed Deb packets from this
 distribution.
 I'm trying (very trying at times) to get GIMP to Scan using a Canon 2700F film
 scanner but neither Gimp nor Kooka see it, They both see the USB flat bed,
 From the Sane document I know that this scanner is supported by sane canon
 backend.This scanner shows in KinfoCenter as Below

 Attached devices
 Host scsi0 Channel: 00 Id: 02 Lun: 00
 Vendor: CANON   Model IX-27015C  Rev: 1.15
 Type:  Scanner   ANSI SCSI revision: 02

 And my SCSI shows up correctly.
 From the documentation in the sane-backends-1.0.16 I found the following which
 seems to applie.

  Add the canon scanner to the /usr/local/etc/sane.d/dll.conf file:
   cut here 
  # enable the next line if you want to allow access through the network:
  #net
  pnm
  #mustek
  #hp
  #qcam
  #umax
  canon
   cut here 

   Add a canon.conf file to the /usr/local/etc/sane.d directory:
   cut here 
  scsi CANON
   cut here 

 In the Kubutu distro I use there is no /usr/local/etc/sane.d/dll, but there is
 a /etc/sane.d/dll which I assume is the equivalent in this distro. In this
 directory I have made a file .conf file, cutting and pasting as instructed.
 There was already a canon conf file in the /etc/sane.d consisting of,

 #canon conf
 /dev/scanner
 #/dev/sg0

 and so to this I cut and pasted  scsi CANON  and have tried it in all possible
 combinations commenting out lines and removing comments, but cannot get Gimp
 or Koola to see it even as root. The scanner goes through its calibrate cycle
 on boot up. The only components of SANE I have installed are the following

 gimp2.0-quiteinsane
 libsane
 python-imaging-sane
 python2.4-imaging-sane

 Any help with this would be most wellcome at this point(please save me from
 the evil empire of windoz)
 John.

 --
 sane-devel mailing list: sane-devel@lists.alioth.debian.org
 http://lists.alioth.debian.org/mailman/listinfo/sane-devel
 Unsubscribe: Send mail with subject unsubscribe your_password
 to sane-devel-requ...@lists.alioth.debian.org


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


On HP 2400c and recommendations of good scanners for Linux (was: Re: [sane-devel] gl646 doc update)

2006-08-02 Thread Rogério Brito
Hi, Parag, St?phane and other developers.

On Jul 27 2006, Parag N() wrote:
   Any work for me? I want to complete HP2400 backend as early as
 possible. I have hardware but the only problem i am facing is warmup
 time exceed and head moves further scan area. Still not understood how
 can i solve after taking so many logs and observing slope and gamma
 values.

I see that you have been working on the HP 2400c driver. This is
essentially the only scanner that I can get at a reasonable price at the
places that I know and, unfortunately, it doesn't seem to be supported
under Linux.

I would like to know if there is any possibility of having it working in
the near future.

If this is not the case, I would welcome any recommendation of scanners
that are fully supported under Linux (with only Free Software), so that
I try to see if I can find it (preferrably from an Free/Open
Source-friendly company that I can support).


Thanks, Rog?rio Brito.

-- 
Rog?rio Brito : rbr...@ime.usp.br : http://www.ime.usp.br/~rbrito
Homepage of the algorithms package : http://algorithms.berlios.de
Homepage on freshmeat:  http://freshmeat.net/projects/algorithms/


[sane-devel] Compile problem ,please help!

2006-08-02 Thread zf
Skipped content of type multipart/alternativeFrom anoah at pfeiffer.edu  Wed 
Aug  2 17:09:44 2006
From: an...@pfeiffer.edu (m. allan noah)
Date: Wed Aug  2 17:09:51 2006
Subject: [sane-devel] Compile problem ,please help!
In-Reply-To: 001201c6b61e$25c59e20$4300a...@vp.com
References: 001201c6b61e$25c59e20$4300a...@vp.com
Message-ID: pine.lnx.4.61.0608021306070.16...@limos.pfeiffer.edu

On Wed, 2 Aug 2006, zf wrote:

Hi , all.
I am a new programmer in linux. I wrote one sane-backend named khf.c . 
 When I finished this code, I use gcc compiled sane-backends/frontend/test.c 
 and khf.c into one executable file.Then I run it , and it works~ my code can 
 control the scanner. After that , I compile khf.c into one shared object 
 named libsane-khf.so.1 and do this by using this command: gcc -shared -fpic 
 khf.c -o libsane-khf.so.1
After that I do two things:
  1. copy libsane-khf.so.1 into /usr/lib/sane
  2. Add one line in /etc/sane.d/dll.conf : khf

However ,when I run xsane,it can't find any scanner. And I found my so 
 isn't been called, since the sane_init is not called when xsane starts. This 
 problem troubled me for a long time. Please help me!

did you also make a symlink:

ln -sf libsane-khf.so.1 libsane-khf.so

# out all lines from dll.conf except yours, and then try:

`strace scanimage -L` and see if your backend gets opened

what scanners does this backend support, fujitsu i assume?

allan noah
SANE fujitsu backend maintainer :)

-- 
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] Compile problem ,please help!

2006-08-02 Thread Gerard Klaver
On Wed, 2006-08-02 at 18:26 +0800, zf wrote:
 Hi , all.
 I am a new programmer in linux. I wrote one sane-backend named
 khf.c . When I finished this code, I use gcc compiled
 sane-backends/frontend/test.c and khf.c into one executable file.Then
 I run it , and it works~ my code can control the scanner. After that ,
 I compile khf.c into one shared object named libsane-khf.so.1 and do
 this by using this command: gcc -shared -fpic khf.c -o
 libsane-khf.so.1
 After that I do two things:
   1. copy libsane-khf.so.1 into /usr/lib/sane
   2. Add one line in /etc/sane.d/dll.conf : khf
  
 However ,when I run xsane,it can't find any scanner. And I found
 my so isn't been called, since the sane_init is not called when xsane
 starts. This problem troubled me for a long time. Please help me!
 -- 
 s

Did you add also a khf.desc file (needed for your udev or hotplug
setup)?
-- 

m.vr.gr.
Gerard Klaver



[sane-devel] backend configuration error.

2006-08-02 Thread Immanuel CRC Office
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@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@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 netad...@patni.com and delete this mail.
 _

 

-- 
Crystle Numan
Administrative Secretary, Immanuel CRC
61 Mohawk Rd. W. Hamilton ON   L9C 1V9
905-385-0662
off...@immanuelministries.ca
http://immanuelministries.ca


[sane-devel] backend configuration error.

2006-08-02 Thread m. allan noah
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@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@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 netad...@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] backend configuration error.

2006-08-02 Thread Immanuel CRC Office
No... I'm just trying to get my Plustek scanner to work, and it doesn't 
show up in scanimage -L, that just shows the HP printer that is 
connected through the scanner to my parallel port.

Crystle

m. allan noah wrote:
 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@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@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 netad...@patni.com and delete this mail.
 _




 

-- 
Crystle Numan
Administrative Secretary, Immanuel CRC
61 Mohawk Rd. W. Hamilton ON   L9C 1V9
905-385-0662
off...@immanuelministries.ca
http://immanuelministries.ca


[sane-devel] backend configuration error.

2006-08-02 Thread m. allan noah
ok, i remember some of this from before. try this-

ditch the printer temporarily, and reboot the machine. go into the bios 
settings, and try each of the ecp/epp/bidirectional etc, port options, one 
at a time. after changing one option, boot the machine into linux and run

SANE_DEBUG_PLUSTEK_PP=255 scanimage -L

from the command line.

check:

man plustek_pp

for more info.

allan

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

 No... I'm just trying to get my Plustek scanner to work, and it doesn't show 
 up in scanimage -L, that just shows the HP printer that is connected through 
 the scanner to my parallel port.

 Crystle

 m. allan noah wrote:
 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@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@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 netad...@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] backend configuration error.

2006-08-02 Thread m. allan noah
On Wed, 2 Aug 2006, Immanuel CRC Office wrote:

 I removed the printer. Now it says it does not find anything. This is what I 
 get from the below command:

 [plustek_pp] attach (parport0, 0x7f9e58c0, (nil))
 [plustek_pp] Device configuration:
 [plustek_pp] device name   : parport0
 [plustek_pp] direct I/O: yes
 [plustek_pp] warmup: -1s
 [plustek_pp] lampOff   : -1
 [plustek_pp] lampOffOnEnd  : yes
 [plustek_pp] model override: 0
 [plustek_pp] -
 [plustek_pp] drvopen()
 [plustek_pp] open: PtDrvInit failed: 11
 [plustek_pp] open failed: -1
 [plustek_pp] sane_get_devices (0x7f9e79c0, 0)

 for ecp, ecp+epp, epp and spp settings in the bios.

 Crystle

1. what does your plustek_pp.conf look like?
2. you are doing this as root?
3. what is the io port and irq set to in the bios?

allan


 m. allan noah wrote:
 ok, i remember some of this from before. try this-
 
 ditch the printer temporarily, and reboot the machine. go into the bios 
 settings, and try each of the ecp/epp/bidirectional etc, port options, one 
 at a time. after changing one option, boot the machine into linux and run
 
 SANE_DEBUG_PLUSTEK_PP=255 scanimage -L
 
 from the command line.
 
 check:
 
 man plustek_pp
 
 for more info.
 
 allan
 
 On Wed, 2 Aug 2006, Immanuel CRC Office wrote:
 
 No... I'm just trying to get my Plustek scanner to work, and it doesn't 
 show up in scanimage -L, that just shows the HP printer that is connected 
 through the scanner to my parallel port.
 
 Crystle
 
 m. allan noah wrote:
 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@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@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 netad...@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 

[sane-devel] Setup Packet Question

2006-08-02 Thread Tabor Kelly
m. allan noah wrote:
 try to look around in the scanner's install directory for a file of the 
 same length as the one bertrik made, and use a hex editor to see if the 
 first few lines are the same. after that you can worry about a binary diff.

When this failed to get me anywhere I used Search and Replace for 
Windows (http://www.funduc.com/search_replace.htm) to search for the 
first 16 bytes in Betrik's file. The only place where that 16 bytes 
occurs is in Betrick's file itself, and some old SnoopyPro logs I had 
(so Betrick didn't mess up making the file).

Oh well, I will cease to worry about this for the moment. I do not think 
it will be an issue.

-Tabor