Guy Brooker | 1 Sep 2003 11:11
Picon

Re: Mac OS X - xsane and Microtek Scanmaker II

On 29/8/03 6:41 pm, "abel deuring" <a.deuring <at> satzbau-gmbh.de> wrote:
> 
> I hope that Matt (the maintainer of the Microtek backend) will correct
> any errors in my understanding of the Mircoek backend, and that Guy
> Brooker <guy_brooker <at> mac.com> or Mattias Ellert
> <mattias.ellert <at> tsl.uu.se>, who wrote the SCSI support for MacOS X, can
> give better comments.
> 

Hi David,

The SCSI support in 10.0.12 was written by Mattias. I recently added a new
port to sanei_scsi, that uses APIs available in Jaguar (OS X 10.2 and later)
that adds support for FireWire scanners and SCSI devices plugged in to
either SCSI cards or SCSI to FireWire adapters.

The patch is now officially included in the current CVS release of sane,
though if you'd like to give it a try with the minimal fuss, a zip archive
for the patch to 1.0.12 is available at

http://homepage.mac.com/guy_brooker/.cv/guy_brooker/Public/Sane/sane-backend
s-1.0.12-osx.zip-link.zip

(type 'man patch' for instructions on how to apply)

I've no idea if it will make any difference at all, in fact it's probably
more likely to be something in the backend rather than sanei_scsi, but it's
worth a try.

Let us know if this makes any difference.
(Continue reading)

David B Brown | 1 Sep 2003 16:56
Picon

Re: Mac OS X - xsane and Microtek Scanmaker II

Guy,

	I'm no expert on this and since I use fink to install this was a  
little tricky.

	Here's what I did. I edited the fink info file for sane-backends to  
uncomment the patch command, and placed the patch file in the same  
directory as the fink info file. The I ran a fink rebuild command. As  
the build was in progress I was able to see the patch executing, so I'm  
pretty sure it worked ok.  Is there any way to double check ?

	Anyway the good or the bad news depending on how you look at it, is  
that I get the same issue

[microtek] sane_start...
[microtek] sane_get_parameters...
[microtek] sane_get_parameters:  regular 3-pass color
[microtek] sane_get_parameters:  res_code = 19 (13)
[microtek] sane_get_parameters:  dots_per_mm:  2.244094
[microtek] sane_get_parameters:  units_per_mm:  11.811024
[microtek] WIDTHPIX:  before exp: 484
[microtek] sane_get_parameters:  lines: 798  ppl: 484  bpl: 484
[microtek] set_pass_parameters:  three-pass, on 2
[sanei_debug] Setting debug level of sanei_scsi to 255.
[microtek] .wait_ready 0...
[microtek] wait_ready failed (0)
[microtek] wait_ready failed (1)
[microtek] wait_ready failed (2)
[microtek] wait_ready failed (3)
[microtek] wait_ready failed (4)
(Continue reading)

Rene Rebe | 1 Sep 2003 18:57
Picon

Re: Does ADF work on sane avision backend 1.0.11 or 1.0.12 ?

Hi,

On: Fri, 15 Aug 2003 08:29:56 -0400,
    "Angela" <angelac <at> telcel.net.ve> wrote:
> Hello,
> 
> I would like to know if ADF option works on sane avision backend 1.0.12
> or 1.0.11 ?

The ADF options is in the backend for years (IIRC) and worked for many
scanners. Rcently some fixed for sheetfeed scanners went in. The HP
74xx still seem to hang (for unkonwn reasons).

So: It depends which scanner you want to use with the backend.
Btw: Always CC'ing the backend author often results in a huge response
gain since many maintainers have much other stuff to do and can not read
every mailing list out there, thanks!

> Thanks
> Angela 

Sincerely yours,
  René Rebe
    - ROCK Linux stable release maintainer

--  
René Rebe - Europe/Germany/Berlin
  rene <at> rocklinux.org rene.rebe <at> gmx.net
http://www.rocklinux.org http://www.rocklinux.net/people/rene
http://gsmp.tfh-berlin.de/gsmp http://gsmp.tfh-berlin.de/rene
(Continue reading)

Guy Brooker | 1 Sep 2003 17:17
Picon

Re: Mac OS X - xsane and Microtek Scanmaker II

On 1/9/03 4:56 pm, "David B Brown" <david_b_brown <at> mac.com> wrote:

> Guy,
> 
> I'm no expert on this and since I use fink to install this was a
> little tricky.
> 
> Here's what I did. I edited the fink info file for sane-backends to
> uncomment the patch command, and placed the patch file in the same
> directory as the fink info file. The I ran a fink rebuild command. As
> the build was in progress I was able to see the patch executing, so I'm
> pretty sure it worked ok.  Is there any way to double check ?
> 
> Anyway the good or the bad news depending on how you look at it, is
> that I get the same issue
> 

You could check the source file sanei_scsi.c and see if it contains the
function ExecuteCommandUsingSTUC

E.g 

% grep ExecuteCommandUsingSTUC  sanei_scsi.c

It's probably worked, but to be sure, you don't really need fink to build
it. You can download the source distribution for 10.0.12, apply the patch,
and 

% configure --prefix /sw
% make
(Continue reading)

Angela Corridore | 2 Sep 2003 01:06
Picon

ADF for HP7450c and Black image

Hi,

I'm triying to use ADF switch on OS/2-Warp4 system with HP7450c, the command
I'm using is :
	scanimage -d avision --format=tiff  --resolution=80 --adf=yes 1>a.tif 2>2.L

When I do this, my scanner hang up initializing. I tried it with sane
backend version 1.0.11 and 1.0.12 and I get the same result.
Is there any problem with this ADF swicth or do I miss something ?

Beside that, When I tried to scan with the new backend version (1.0.12)
using the same parameters as the previous version (1.0.11) I get a black
image.  The command I'm using is :

	scanimage -d avision --format=tiff  --resolution=80 1>a.tif 2>2.L

Is there any difference between both versions that causes this result ?

Thanks for your help...
Angela
Rene Rebe | 2 Sep 2003 02:03
Picon

Re: ADF for HP7450c and Black image

Hi,

On: Mon, 1 Sep 2003 19:06:11 -0400,
    "Angela Corridore" <angelac <at> telcel.net.ve> wrote:

> Hi,
> 
> I'm triying to use ADF switch on OS/2-Warp4 system with HP7450c, the command
> I'm using is :
> 	scanimage -d avision --format=tiff  --resolution=80 --adf=yes 1>a.tif 2>2.L
> 
> When I do this, my scanner hang up initializing. I tried it with sane
> backend version 1.0.11 and 1.0.12 and I get the same result.
> Is there any problem with this ADF swicth or do I miss something ?

Nope this is correct. The backend does not work well in ADF mode using
this scanner. I try to meditate about this in the next days. The
problem is that AFAIK the byes we send are just right and work well on
my AV 8000S (A3 + ADF + > 30 pages/minute).

> Beside that, When I tried to scan with the new backend version (1.0.12)
> using the same parameters as the previous version (1.0.11) I get a black
> image.  The command I'm using is :
> 
> 	scanimage -d avision --format=tiff  --resolution=80 1>a.tif 2>2.L
> 
> Is there any difference between both versions that causes this result ?

Oh, interesting! Yes there are differences ...

(Continue reading)

David B Brown | 1 Sep 2003 23:04
Picon

Re: Mac OS X - xsane and Microtek Scanmaker II

Guy,

	I removed the current installation using fink remove

	I downloaded the src from 	ftp://ftp.mostang.com/pub/sane/

	I put it into /sw/src/sane-backends-1.0.12

	I patched it using patch sanei_scsi.c sane-backends-1.0.12-osx.patch

	I checked the patch worked using grep

	I did

		./configure --perfix =sw
		make
		make install

	everything seemed to go ok. But I must have got something wrong, 
because now when I run

sh-2.05a# SANE_DEBUG_SANEI_SCSI=6 scanimage -L

	I get

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).

(Continue reading)

David B Brown | 2 Sep 2003 10:29
Picon

Re: Mac OS X - xsane and Microtek Scanmaker II

Ok,

	so that worked

G4:src/sane-backends-1.0.12/backend] dave% scanimage -L
[sanei_debug] Setting debug level of sanei_scsi to 6.
[sanei_scsi] sanei_scsi_open: device name /dev/scanner is not valid
[sanei_debug] Setting debug level of sanei_scsi to 6.
[sanei_scsi] sanei_scsi_open: device name /dev/scanner is not valid
[sanei_debug] Setting debug level of sanei_scsi to 6.
[sanei_scsi] sanei_scsi_open: device name /dev/scanner is not valid
[sanei_debug] Setting debug level of sanei_scsi to 6.
[sanei_scsi] sanei_scsi_open: device name /dev/scanner is not valid
[sanei_debug] Setting debug level of sanei_scsi to 6.
[sanei_scsi] sanei_scsi_open: device name /dev/scanner is not valid
[sanei_debug] Setting debug level of sanei_scsi to 6.
[sanei_scsi] sanei_scsi_open: device name /dev/scanner is not valid
[sanei_debug] Setting debug level of sanei_scsi to 6.
[sanei_scsi] sanei_scsi_open: device name /dev/scanner is not valid
[sanei_debug] Setting debug level of sanei_scsi to 6.
[sanei_scsi] sanei_scsi_open: device name /dev/scanner is not valid
[sanei_debug] Setting debug level of sanei_scsi to 6.
[sanei_scsi] sanei_scsi_open: device name /dev/scanner is not valid
[sanei_debug] Setting debug level of sanei_scsi to 6.
[sanei_scsi] sanei_scsi_open: device name /dev/scanner is not valid
[sanei_debug] Setting debug level of sanei_scsi to 6.
[sanei_scsi] sanei_scsi_open: device name /dev/scanner is not valid
[sanei_debug] Setting debug level of sanei_scsi to 6.
[sanei_scsi] sanei_scsi_open: device name /dev/scanner is not valid
[sanei_debug] Setting debug level of sanei_scsi to 6.
(Continue reading)

Guy Brooker | 2 Sep 2003 09:44
Picon

Re: Mac OS X - xsane and Microtek Scanmaker II

On 1/9/03 11:04 pm, "David B Brown" <david_b_brown <at> mac.com> wrote:

> Guy,
> 
> I removed the current installation using fink remove
> 
> I downloaded the src from     ftp://ftp.mostang.com/pub/sane/
> 
> I put it into /sw/src/sane-backends-1.0.12
> 
> I patched it using patch sanei_scsi.c sane-backends-1.0.12-osx.patch
> 
> I checked the patch worked using grep
> 
> I did
> 
> ./configure --perfix =sw
> make
> make install
> 
> everything seemed to go ok. But I must have got something wrong,
> because now when I run
> 
> sh-2.05a# SANE_DEBUG_SANEI_SCSI=6 scanimage -L
> 
> I get
> 
> No scanners were identified. If you were expecting something different,
> check that the scanner is plugged in, turned on and detected by the
> sane-find-scanner tool (if appropriate). Please read the documentation
(Continue reading)

Guy Brooker | 2 Sep 2003 10:48
Picon

Re: Mac OS X - xsane and Microtek Scanmaker II

On 2/9/03 10:29 am, "David B Brown" <david_b_brown <at> mac.com> wrote:

> Ok,
> 
> so that worked
> 
> 
> G4:src/sane-backends-1.0.12/backend] dave% scanimage -L
> [sanei_debug] Setting debug level of sanei_scsi to 6.
> [sanei_scsi] sanei_scsi_open: device name /dev/scanner is not valid

That is odd, /dev/scanner doesn't exist on OS X, I'm not sure why scanimage
is repeatedly trying this. I don't see that effect with my EPSON scanner.

Mattias, Abel, any idea why /dev/scanner is being accessed ?

> device `microtek:u1t1l7' is a Microtek ScanMaker II/IIXE flatbed scanner

This shows that when your scanner is recognised, it is found by Mattias's
SCSI driver and not mine. This means that either my implementation is not
finding your device in the OS X io registry, or that the patch didn't get
applied.

Could you send your microtek.conf (I guess that is the backend you use,
rather than microtek2) and the file ioreg.txt created by

% ioreg -l >ioreg.txt

When you run this, make sure your scanner is plugged in and switched on.

(Continue reading)


Gmane