[sane-devel] no scanners found (leo s3 scsi-scanner)

2003-01-17 Thread Henning Meier-Geinitz
Hi,

On Thu, Jan 16, 2003 at 11:01:54PM +0100, axel dammers wrote:
 But sane-find-scanner -v -v shows not a 0 behind the scanner name:

Yes, it does:

 searching for SCSI scanners:
 checking /dev/scanner... open ok
  Inquiry for device:
000: 06 00 02 02 1f 00 00 00 4c 45 4f 00 00 00 00 00LEO.
016: 4c 45 4f 53 63 61 6e 2d 53 33 00 00 00 00 00 00LEOScan-S3..


There are the 00 00 ... after the text. The backend expects spaces (32
= 0x20).

 Have I to do anything in the sourcecode ?

Try it. Remove the spaces as I mentioned.

Bye,
  Henning


[sane-devel] multiple scanners

2003-01-17 Thread Peter Santoro
I just purchased an Epson Perfection 1660 Photo scanner to work with 
Linux (RedHat 7.3 and Slackware 8.1).  I built, installed, and 
configured SANE according to directions.  It works great.  Thanks!

But I do have a couple of questions.

1) I understand that Linux supports 16 usb scanners.  Am I correct in 
assuming that I can put multiple entries in my 
/usr/local/etc/sane.d/epson.conf to operate more than one epson scanner 
at a time?  For example, if I had three epson 1660s, could I do the 
following in my epson.conf:

usb /dev/usb/scanner0
usb /dev/usb/scanner1
usb /dev/usb/scanner2


2) As the scanner module requires vendor and product parameters, it 
doesn't appear that SANE supports more than one scanner vendor/product 
at the same time.  Does SANE support multiple scanner types at the same 
time?  If so, how does one configure this?


Thanks for your help,


Peter




[sane-devel] FreeBSD and a Epson Perfection 1260

2003-01-17 Thread Gerhard Jaeger
Hi,

On Donnerstag, 16. Januar 2003 23:16, Henning Meier-Geinitz wrote:
[SNIPSNAP]
  [sanei_usb] sanei_usb_open: opened usb device
  `libusb:/dev/usb0:/dev/ugen0' (*dn=3D0) [sanei_usb]

-- this is the correct device name for this system, as open works!?

 I'm not sure if that works, but you could try /dev/uscanner0 instead
 of auto.


At least the Plustek backend supports various possibilities to open
or find a supported device...
If the auto-detection is not supported, the tries to read the vendor
and product ID, but if this is not supported and given in the
conf file AND the devicename is correct, the startup-tests should
be passed, so use here:

[usb] 0x04b8 0x011d
device libusb:/dev/usb0:/dev/ugen0

Hope this works for you here
Gerhard



[sane-devel] Coolscan2 IR channel problem

2003-01-17 Thread Henning Meier-Geinitz
Hi,

On Thu, Jan 16, 2003 at 04:17:52PM -0700, tegbert wrote:
 I'm having a problem with my Nikon Coolscan 4000 ED in getting scanimage
 to do its second scan of IR data.  I'm using sane version 1.0.9 and with
 this command line:
 
scanimage -d coolscan2:scsi:/dev/sg1 --infrared=yes --batch-count=2
 
 The scan table doesn't move.  I get two files, with the second file being
 about one-third the size of the first one and containing gray-scale data,
 which is OK.  Unfortunately, the data in both files are just made up of
 vertical lines, presumably because the scan table doesn't move.

Just guessing, does the following work?

scanimage -d coolscan2:scsi:/dev/sg1 image.pnm
scanimage -d coolscan2:scsi:/dev/sg1 --infrared=yes ir.pnm

Bye,
  Henning


[sane-devel] microtek x6usb

2003-01-17 Thread Henning Meier-Geinitz
Hi,

On Thu, Jan 16, 2003 at 06:19:39PM -0800, organ...@hydrophilus.com wrote:
 I am having difficulties getting my scanner to work with sane
 Same results with microtek:... as with microtek2:

The scanner one should be supported by microtek2.

 sane-find-scanner: found SCSI scanner  Scanner 636A4 1.40 at device /dev/sg0
 
 $ xsane microtek2:/dev/sg0
 
 [opens license agreement]
 [fails with: Failed to open device `mustek2:/dev/sg0': Invalid
 argument.

I guess it was microtek2 :-)


Try SANE_DEBUG_MICROTEK=255 scanimage -L to find out what's wrong.

Which operating system + version and which SANE version are you using?

Bye,
  Henning


[sane-devel] multiple scanners

2003-01-17 Thread Henning Meier-Geinitz
Hi,

On Fri, Jan 17, 2003 at 12:37:06AM -0500, Peter Santoro wrote:
 2) As the scanner module requires vendor and product parameters,

If the vendor and product numbers are already in the scaner module's
source code, the vendor= and product= options are not necessary. In
Linux 2.4.20, the 1660 is already known.

Or use libusb. With libusb the number of scanners is only limited by
USB specifications.

 it doesn't appear that SANE supports more than one scanner
 vendor/product at the same time. 

The kernel scanner driver is not part of SANE.

 Does SANE support multiple scanner types at the same time?

Yes. Basically, the number of scanners is unlimited. I've succeeded in
scanning from 3 USB and 3 SCSI scanners at the same time :-)

However, it depends on the backend if it is able to recognize more
than one scanner at the same time.

 If so, how does one configure this?

Usually, put the usb vendor product lines for your scanners in the
config files. Some backends detect all supported scanners automatically.

Bye,
  Henning


[sane-devel] Coolscan2 IR channel problem

2003-01-17 Thread Major A
  I'm having a problem with my Nikon Coolscan 4000 ED in getting scanimage
  to do its second scan of IR data.  I'm using sane version 1.0.9 and with
  this command line:
  
 scanimage -d coolscan2:scsi:/dev/sg1 --infrared=yes --batch-count=2
  
  The scan table doesn't move.  I get two files, with the second file being
  about one-third the size of the first one and containing gray-scale data,
  which is OK.  Unfortunately, the data in both files are just made up of
  vertical lines, presumably because the scan table doesn't move.
 
 Just guessing, does the following work?
 
 scanimage -d coolscan2:scsi:/dev/sg1 image.pnm
 scanimage -d coolscan2:scsi:/dev/sg1 --infrared=yes ir.pnm

Ah, didn't realize the original email one went to the list...

No, this won't work because the coolscan2 backend stores the IR
information in memory and only dumps it when you scan a second
time. This can only work if both scans are done within the same
instance of the backend running.

The problem here must be something weird because I've done scans like
that and it worked (although it's on an older scanner).

  Andras

===
Major Andras
e-mail: and...@users.sourceforge.net
www:http://andras.webhop.org/
===


[sane-devel] FreeBSD and a Epson Perfection 1260

2003-01-17 Thread Michael Lestinsky
Hi Henning,

Am 16.01.'03 schrieb Henning Meier-Geinitz:
 On Thu, Jan 16, 2003 at 05:15:33PM +0100, Michael Lestinsky wrote:
  [sanei_usb] sanei_usb_get_vendor_product: device 0: vendorID: 0x04b8, 
  productID: 0x011d
  [sanei_usb] sanei_usb_write_bulk: wanted 5 bytes, wrote 5 bytes
  [sanei_usb] sanei_usb_write_bulk: wanted 5 bytes, wrote 5 bytes
  [sanei_usb] sanei_usb_write_bulk: wanted 4 bytes, wrote 4 bytes
  USB error: error reading from bulk endpoint /dev/ugen0.2: Operation timed 
  out
  [sanei_usb] sanei_usb_read_bulk: read failed: Operation timed out
 
 Check sanei_usb.c, sanei_usb_close and comment out the call to
 usb_clear_halt and usb_resetep. Replug the scanner.

Ok. But the timeout problem remains.

 I'm not sure if that works, but you could try /dev/uscanner0 instead
 of auto.

It really worked.

michael@zaphod:~ sudo scanimage -L 21 | less
device `plustek:/dev/uscanner0' is a Epson Perfection 1260/Photo USB flatbed 
scanner

I'm doing my first scans now. All images are to dark and have a very low
contrast. Tuning the Brightnes-, Contrast- and Gamma-Parameters in Xsane
doesn't really help very much. I've merged my changes in plustek.conf back
into the one from the distfile, just to make sure it doesn't depend on
this, but that didn't help very much.

Anyone here with satisfying results from this scanner?

Bye
Michael

-- 
I could be bounded in a nutshell and count myself a king of infinite
space...
-- Shakespeare: Hamlet, Act 2 Scene 2


[sane-devel] Re: Sane on Ultra Sparc

2003-01-17 Thread Henning Meier-Geinitz
Hi,

On Sat, Jan 11, 2003 at 08:19:24PM +0100, abel deuring wrote:
 Whoever maintains the code should decide about the best way to do this 
 (Abel?),
 I would appreciate to send a patch to SuSE and so on to allow them to make
 things work in their distribution.
 
 Hrrmmm. I am not very familiar with autoconf. Henning, could you do 
 that? Thomas already suggested to check, what uname prints ('sparc' vs. 
 'sparc64').

Ok, I've added a check in configure.in:

dnl disable Linux SCSI generic version 3 to avoid 32/64 bit problems
if test uname = sparc64 ; then
  AC_DEFINE(DISABLE_LINUX_SG_IO, 1, [Should we disable SCSI generic v3?])
fi

And in sanei_scsi.c:

#ifdef DISABLE_LINUX_SG_IO
#undef SG_IO
#endif /* DISABLE_LINUX_SG_IO */

The changes are in CVS now.

Please, everyone who has a sparc64 test it. Snapshots are at:
http://www.meier-geinitz.de/sane/snapshots/

(the dayly snapshot may not be updated, use the one from the Older
snapshots).

Bye,
  Henning


[sane-devel] no scanners found (leo s3 scsi-scanner)

2003-01-17 Thread Frank Zago
Hi,

I've added an entry in the backend for this variant. You might as well wait for 
sane 1.10.
But if you're in a hurry, remove the spaces and recompile sane.
eg change
   {6, LEO , LEOScan-S3  ,
to
   {6, LEO, LEOScan-S3,

Regards,
   Frank.

Henning Meier-Geinitz wrote:
 Hi,
 
 On Thu, Jan 16, 2003 at 11:01:54PM +0100, axel dammers wrote:
 
But sane-find-scanner -v -v shows not a 0 behind the scanner name:
 
 
 Yes, it does:
 
 
searching for SCSI scanners:
checking /dev/scanner... open ok
 Inquiry for device:
   000: 06 00 02 02 1f 00 00 00 4c 45 4f 00 00 00 00 00LEO.
   016: 4c 45 4f 53 63 61 6e 2d 53 33 00 00 00 00 00 00LEOScan-S3..
 
 
 
 There are the 00 00 ... after the text. The backend expects spaces (32
 = 0x20).
 
 
Have I to do anything in the sourcecode ?
 
 
 Try it. Remove the spaces as I mentioned.
 
 Bye,
   Henning
 ___
 Sane-devel mailing list
 sane-de...@www.mostang.com
 http://www.mostang.com/mailman/listinfo/sane-devel
 




[sane-devel] multiple scanners

2003-01-17 Thread Karl Heinz Kremer
--wac7ysb48OaltWcw
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Jan 17, 2003 at 11:27:12AM +0100, Henning Meier-Geinitz wrote:
  If so, how does one configure this?
=20
 Usually, put the usb vendor product lines for your scanners in the
 config files. Some backends detect all supported scanners automatically.

The EPSON backend should recognize all connected scanners automatically.
However, I've not tested this in quite a while.=20

Karl Heinz

--=20
Karl Heinz Kremer  k...@khk.net
PGP Key at http://www.khk.net/download/khk.asc
EPSON Sane Backend: http://www.khk.net

--wac7ysb48OaltWcw
Content-Type: application/pgp-signature
Content-Disposition: inline

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+KH8oxejv3RfKrhsRAkUrAJ0RZEpdn9LayZ8uy8n9jUKDkdf0WgCeNUt6
RjLCB3brM75G/CHeebS2FsI=
=b2T5
-END PGP SIGNATURE-

--wac7ysb48OaltWcw--


[sane-devel] Coolscan2 IR channel problem

2003-01-17 Thread tegbert
On Fri, 17 Jan 2003, Major A wrote:

   I'm having a problem with my Nikon Coolscan 4000 ED in getting scanimage
   to do its second scan of IR data.  I'm using sane version 1.0.9 and with
   this command line:
   
  scanimage -d coolscan2:scsi:/dev/sg1 --infrared=yes --batch-count=2
   
   The scan table doesn't move.  I get two files, with the second file being
   about one-third the size of the first one and containing gray-scale data,
   which is OK.  Unfortunately, the data in both files are just made up of
   vertical lines, presumably because the scan table doesn't move.
  
  Just guessing, does the following work?
  
  scanimage -d coolscan2:scsi:/dev/sg1 image.pnm
  scanimage -d coolscan2:scsi:/dev/sg1 --infrared=yes ir.pnm
 
 Ah, didn't realize the original email one went to the list...
 
 No, this won't work because the coolscan2 backend stores the IR
 information in memory and only dumps it when you scan a second
 time. This can only work if both scans are done within the same
 instance of the backend running.
 
 The problem here must be something weird because I've done scans like
 that and it worked (although it's on an older scanner).
 
   Andras

Sorry I can't provide additional information at this time because I'm out 
of town and away from my computer/scanner until next Tuesday.  Then I'd 
like to continue this thread and find out what's wrong.

Tim Egbert



[sane-devel] no scanners found (leo s3 scsi-scanner)

2003-01-17 Thread Frank Zago
axel dammers wrote:
 Hi,
 
 thanks for your tip.
 
 I compiled it without the spaces in leo.c and the scanner runs !!!
 
 Very much thanks for your good help.  :-))
 
 Bye,
 Axel
 
 

Thanks for the report.

Frank.



[sane-devel] Where can I find ppscsi driver?

2003-01-17 Thread Hidagus Pa
Hi Peter,
The kernel version doesn't match, so I was not able to
use your objects in my RedHat system. Then I used the
ppscsi patch provided in Tom's message and it did
compiled successfully. However when I did 'insmod
epst' I got init_module: no such device error. And
doing 'scanimage -d hp:/dev/sg0 --mode Color  hpscan'
gives me scanimage: open of device hp:/dev/sg0
failed: Invalid argument. Have you seen this kind of
error before?
Thanks for your help,

Hida
--- Peter Kirchgessner pe...@kirchgessner.net wrote:
 Hi Hida,
 
 you can try it, but I don't know if it works.
 Enclosed you will find the 
   objects. At my systems they are located at 
 /lib/modules/2.4.18-4GB/kernel/drivers/scsi. I have
 a Suse Linux 8.0. 
 You meed ned to use insmod -f to load the modules.
 
 Sincerely
 
 Peter
 
 Hidagus Pa schrieb:
  Hi Peter,
  I checked all the RedHat kernel related RPMs and
  didn't see any of them contains either ppscsi.o or
  epst.o. Do you know which RPM contains them? I
 also
  wonder if I can copy your ppscsi.o and epst.o to
 my
  system. They might just work? What do you think?
  Thanks,
  
  Hida 
  --- Peter Kirchgessner pe...@kirchgessner.net
 wrote:
  
 Hi,
 
 it seems to be more easy. I have a 2.4.18-kernel
 too. And this one 
 already includes the ppscsi-driver suite. So you
 may
 just need to follow 
 the instructions on
 http://www.torque.net/parport/ppscsi.html (as
 root):
 
  insmod scsi_mod
  insmod sg
  insmod parport
  insmod parport_pc
  insmod ppscsi
  insmod epst
 
  scanimage -d hp:/dev/sg0 --mode Color 
 hpscan
 
 Maybe some of the modules are not available
 (scsi_mod) or already loaded 
 (parport). Just see what happens.
 
 Sincerely
 
 Peter
 
 Hidagus Pa schrieb:
 
 Thanks Peter. Forgive my primitive knowledge of
 
 Linux,
 
 does that mean I have to apply the patch to
 source
 code and build a custom linux image? How hard is
 
 it to
 
 do so?
 Thank you.
 
 Hida
 --- Peter Kirchgessner pe...@kirchgessner.net
 
 wrote:
 
 Hi,
 
 you can start at
 
 http://www.torque.net/parport/ppscsi.html
 
 --Peter
 
 Hidagus Pa schrieb:
 
 
 Hi everyone,
 I just started to use scanner with Linux. I
 have
 
 a
 
 HP
 
 
 ScanJet 5100C connected to my RedHat 8.0 PC.
 When
 
 I
 
 
 started xsane it gives error of no device
 
 available.
 
 
 The man page of sane-hp states that I need a
 
 ppscsi
 
 
 driver. Where can I find such driver? The OS I
 
 use
 
 is 2.4.18.
 Thanks in advance,
 
 Hida
 
 

__
 
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign
 up
 
 now.
 
 
 http://mailplus.yahoo.com
 ___
 Sane-devel mailing list
 sane-de...@www.mostang.com
 

http://www.mostang.com/mailman/listinfo/sane-devel
 
 
 -- 
 Peter Kirchgessner
 http://www.kirchgessner.net
 mailto:pe...@kirchgessner.net
 
 
 
 

__
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up
 
 now.
 
 http://mailplus.yahoo.com
 
 
 
 -- 
 Peter Kirchgessner
 http://www.kirchgessner.net
 mailto:pe...@kirchgessner.net
 
 
 ___
 Sane-devel mailing list
 sane-de...@www.mostang.com
 http://www.mostang.com/mailman/listinfo/sane-devel
  
  
  
  __
  Do you Yahoo!?
  Yahoo! Mail Plus - Powerful. Affordable. Sign up
 now.
  http://mailplus.yahoo.com
  
 
 
 -- 
 Peter Kirchgessner
 http://www.kirchgessner.net
 mailto:pe...@kirchgessner.net
 

 ATTACHMENT part 2 application/x-tar name=pp.tar



__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com