[sane-devel] Re: sane-devel digest, Vol 1 #103 - 13 msgs

Martin Pisz pisz@primus.ca
Sun, 07 Dec 2003 16:46:52 -0700


Thanks you very much.

It should be noted that the Microtek E3 SCSI scanner with adaptec 2906
SCSI card requires the kernel to be recompiled without multiple LUN
support to work properly.
On Sat, 2003-12-06 at 10:25, sane-devel-request@lists.alioth.debian.org
wrote:
> Send sane-devel mailing list submissions to
> 	sane-devel@lists.alioth.debian.org
>=20
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.alioth.debian.org/mailman/listinfo/sane-devel
> or, via email, send a message with subject or body 'help' to
> 	sane-devel-request@lists.alioth.debian.org
>=20
> You can reach the person managing the list at
> 	sane-devel-admin@lists.alioth.debian.org
>=20
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of sane-devel digest..."
>=20
>=20
> ______________________________________________________________________
> Today's Topics:
>=20
>    1. Epson perfection 1250 transparency adapter (Wai-Ming Ho)
>    2. Re: Snapscan on Mac OS X 10.3 (Henning Meier-Geinitz)
>    3. Re: Problems with old MUSTEK MFZ-06000CZ (Henning Meier-Geinitz)
>    4. MacOS X SCSI support updated in CVS (Henning Meier-Geinitz)
>    5. Re: You guys need information about HP Scanjet 3970? (Henning Meier=
-Geinitz)
>    6. Re: Problem with Xsane 0.91 and Mustek ScanExpress A3 USB (Henning =
Meier-Geinitz)
>    7. Re: [SANE2 proposal] Error handling (Henning Meier-Geinitz)
>    8. Microtek E3 scanner problem? (Martin Pisz)
>    9. Re: You guys need information about HP Scanjet 3970? (Oliver Putz)
>   10. Re: Microtek E3 scanner problem? (Henning Meier-Geinitz)
>   11. Re: Snapscan on Mac OS X 10.3 (=3D?ISO-8859-1?Q?R=3DE9mi_Zara?=3D)
>   12. Re: Visioneer Onetouch 4400 USB (Visioneer/Primax
>        Primascan Colorado 2600u, Memorex 6142u) (m. allan noah)
>=20
> ______________________________________________________________________
> From: Wai-Ming Ho <melanoleuca@free.fr>
> To: sane-devel@lists.alioth.debian.org
> Subject: [sane-devel] Epson perfection 1250 transparency adapter
> Date: Sat, 06 Dec 2003 09:08:58 +0100
>=20
> Hi,
>=20
> Has anyone tried to force the transparency adapter to turn on during a no=
rmal=20
> scan ? I m thinking of scanning medium format negatives.
>=20
> While I m at it, would it also be possible to turn off the light of the=20
> scanning CCD ?
>=20
> The config files do not deal with these custom tweaks.
>=20
> regards,
> Wai-Ming
>=20
>=20
>=20
> ______________________________________________________________________
> From: Henning Meier-Geinitz <henning@meier-geinitz.de>
> To: sane-devel@lists.alioth.debian.org
> Subject: Re: [sane-devel] Snapscan on Mac OS X 10.3
> Date: Sat, 06 Dec 2003 12:19:23 +0100
>=20
> Hi,
>=20
> On Sun, Nov 30, 2003 at 01:46:37PM +0100, R=C3=A9mi Zara wrote:
> > >Environment variable: SANE_DEBUG_SANEI_SOMETHING, e.g.
> > >SANE_DEBUG_SANEI_USB=3D255 or SANE_DEBUG_SANEI_SCSI=3D255.
> >=20
> > This is very interresting !
> > With SANE_DEBUG_SANEI_USB=3D255, scanimage -L finds my snapscan e40 !
> > Set it back to 0, and it does not find it anymore.
> > Set it back to 255, and here it is !
> > Either something's wrong with debugging, either there is maybe some=20
> > timing problems ?
>=20
> Usually that's a timinig issue. Maybe a problem in libusb?
>=20
> Bye,
>   Henning
>=20
>=20
> ______________________________________________________________________
> From: Henning Meier-Geinitz <henning@meier-geinitz.de>
> To: sane-devel@lists.alioth.debian.org <sane-devel@lists.alioth.debian.or=
g>
> Subject: Re: [sane-devel] Problems with old MUSTEK MFZ-06000CZ
> Date: Sat, 06 Dec 2003 12:34:07 +0100
>=20
> Hi,
>=20
> On Tue, Dec 02, 2003 at 03:02:36PM +0100, Pekka K. Kurki wrote:
> > found SCSI scanner "MUSTEK MFC-06000CZ 1.02" at /dev/scanner
> > found SCSI scanner "MUSTEK MFC-06000CZ 1.02" at /dev/sg0
> > found SCSI scanner "MUSTEK MFC-06000CZ 1.02" at /dev/sga
>=20
> Both "sane-find-scanner" and "scanimage -L" have been run as the same
> user? Check permissions of /dev/sg0.
>=20
> > Now I don't know where to search any more. Unfortunately sane doesn't
> > produce any log/error files. Any ideas?
>=20
> Try "SANE_DEBUG_MUSTEK=3D255 scanimage -L". If that doesn't produce any
> output, the mustek backend is not loaded at all. If that happens, you
> can check by setting "SANE_DEBUG_DLL=3D255" why that happens.
>=20
> Bye,
>   Henning
>=20
>=20
> ______________________________________________________________________
> From: Henning Meier-Geinitz <henning@meier-geinitz.de>
> To: SANE Mailing List <sane-devel@lists.alioth.debian.org>
> Subject: [sane-devel] MacOS X SCSI support updated in CVS
> Date: Sat, 06 Dec 2003 14:39:30 +0100
>=20
> Hi,
>=20
> I've just appliead a patch for the SCSI support on MacOS X from
> Mattias Ellert to CVS. All MacOS X users please test if it compiles on
> your version of MacOS X and if it works.
>=20
> Either use CVS to get the latest code or wait one day and use one of
> the snapshots.
>=20
> I'll attach Mattias' mail to me as he can explain what he did much
> better :-)
>=20
> Bye,
>   Henning
>=20
>=20
> Mattias Ellert <mattias.ellert@tsl.uu.se>: =20
> | I have now completed my efforts to get the autotools to configure the=20
> | Mac OS X scsi stuff.
> |=20
> | There are patches to two files. The first is in configure.in to make a=20
> | check for two different header files instead of one, so that the two=20
> | different APIs can be checked.
> |=20
> | The second one is sanei_scsi.c. Most changes are to remove the=20
> | OSX_ONLY_10_x_API symbols and replace them with the two new symbols=20
> | declared by autotools.
> |=20
> | With Mac OS X 10.3 there is a new feature in the linker that allows to=20
> | cross-compile for older versions of Mac OS X, provided you have the=20
> | correct SDKs installed. Some of the changes in the patch was made in=20
> | order to make the code compile with gcc 2.95.2, which is necessary for=20
> | doing a cross compilation for Mac OS X 10.1. With the patch the=20
> | compilation works, but since I don't have a computer running Mac OS X=20
> | 10.1 I haven't been able to verify that it runs. But at least it=20
> | compiles now.
> |=20
> | The kIOMasterPortDefault is not defined on Mac OS X 10.1 so I replaced=20
> | it with calls to IOMasterPort that works.
> |=20
> | I have also fixed bug #300317, by calling CFRelease on the created=20
> | CFStrings.
> |=20
> | This took a bit longer than I expected. The reason for this was mainly=20
> | the new cross compilation feature that required that I compiled=20
> | maciconv, gettext, libusb and sane-backends 3 times (for 10.1.5, 10.2.7=
=20
> | and 10.3.0) in order to test the three available cross compilation=20
> | SDKs.
> |=20
> | With the patches all three versions compile. The Mac OS X 10.3 version=20
> | runs. I can not test the other ones, since they were obtained using=20
> | cross compilation, and I don't have any computer running those versions=
=20
> | of Mac OS X to install on.
> =20
>  =20
>=20
>=20
> ______________________________________________________________________
> From: Henning Meier-Geinitz <henning@meier-geinitz.de>
> To: SaneDevel <sane-devel@lists.alioth.debian.org>
> Subject: Re: [sane-devel] You guys need information about HP Scanjet 3970=
?
> Date: Sat, 06 Dec 2003 16:13:57 +0100
>=20
> Hi,
>=20
> On Tue, Dec 02, 2003 at 10:36:21PM +0100, Ripper2004@web.de wrote:
> > Hi, I bought a new Scanjet a few days ago, but did not check the
> > Linux compatibility. Now I know that it is not supported yet. On the
> > SANE Homepage I saw that there is already some Information about the
> > scanner. And before I spam the Mailing List with dozens of lines from
> > sane-find-scanner -v -v or cat /proc/bus/usb/devices I wanted to ask
> > if there is some requirement for this kind of information, or if it
> > would be redundant.
>=20
> As we already have the devices output it's not really necessary.
> Additional information may be useful hwoever. E.g. if the maunal
> and/or Windows drivers that came with the scanner mention other
> scanners (e.g. the 3500 sereies). Or, if you don't fear to open thed
> evice, what's printed on the chips.
>=20
> Bye,
>   Henning
>=20
>=20
> ______________________________________________________________________
> From: Henning Meier-Geinitz <henning@meier-geinitz.de>
> To: sane-devel@lists.alioth.debian.org
> Subject: Re: [sane-devel] Problem with Xsane 0.91 and Mustek ScanExpress =
A3 USB
> Date: Sat, 06 Dec 2003 16:24:33 +0100
>=20
> Hi,
>=20
> On Sun, Nov 30, 2003 at 09:54:21PM +0100, Fabien3D wrote:
> > After several tests - and kicks at the back of my scanner - it finally =
works !=20
> > The problem came from a checked option by default : I don't know its or=
iginal=20
> > translation, but it could be "Fast calibration". Both "Fast" and "High=20
> > Quality" Calibration were checked at the same time. Unchecking "Fast=20
> > calibration" allowed my scanner to work properly !
>=20
> The following options are available:
>=20
> * "Coarse calibration": If you disable this one, you must set offset
>   and gain manually for each color.
> * "Coarse calibration for first scan only": That's just to make
>   scanning a bit faster =20
> * "Quality calibration": That's the white calibration done for every
>   pixel of the CCD/CIS sensor. =20
>=20
> Which one was it? Telling me the French name is also ok :-) =20
>=20
> Are the colors ok now? I.e. is red scanned as ed and there are no
> small horizontal stripes?
>=20
> Which version of sane are you using (scanimage --version)? The version
> of xsane is not that important.
>=20
> Bye,
>   Henning
>=20
>=20
> ______________________________________________________________________
> From: Henning Meier-Geinitz <henning@meier-geinitz.de>
> To: sane-devel@lists.alioth.debian.org
> Subject: Re: [sane-devel] [SANE2 proposal] Error handling
> Date: Sat, 06 Dec 2003 16:57:38 +0100
>=20
> Hi,
>=20
> On Fri, Nov 28, 2003 at 06:12:19PM +0100, Julien BLACHE wrote:
> > Here's a proposal for SANE2 regarding error handling.
>=20
> This answer is not only for Julien, but concerns the whole thread.
>=20
> Please everyone reread the discussions on the error handling for sane2
> in the list archives. Most of this has already been discussed and it's
> not that easy unfortunately. I'll comment on some of the proposals only:
>=20
> > As of now, error
> > handling is somewhat imprecise and often not meaningful, and we're
> > spending everyone's time debugging problems that could be solved
> > quickly if only the user was given the appropriate status/error
> > message.
>=20
> I also propose to add more appropriate/detailed fixed error messages
> now. We don't even have "File not found". While this is easy, it's not
> that useful (which file hasn't been found?).
>=20
> > Proposal 1:
> > -----------
> >=20
> > Define SANE_Status as a struct :
> >=20
> > typedef struct {
> >   int code;
> >   char *msg;
> > } SANE_Status;
> >=20
> > SANE_Status.code is *always* a standard SANE status code.
> >=20
> > If SANE_Status.msg is NULL, then the standard SANE status message is
> > printed, end of the story.
> >=20
> > Otherwise, the custom SANE_Status.msg is printed, and the caller must
> > free SANE_Status.msg.
>=20
> First i thought that way may be troublesome with net/saned. But it may
> be possible as the struct can be transmitted as any other SANE
> structure. The net backend gets the string from saned and allocates
> memory on the client. saned frees the memory on the server immediately
> after copying the string over the net. The real backend frees the
> string taht was allocated by the net backend.
>=20
> Open questions: translation. Who translates such error messages? The
> backend or the frontend?
>=20
> I don't see any other problems with that proposal currently. i don't
> like the "backend frees" approach but that's probably the only one
> that works.
>=20
> > Proposal 2 (preferred) :
> > ------------------------
> >=20
> > Slightly redefine SANE_Status, as a 32bit integer where the 2 MSB are
> > a backend-specific error code and the 2 LSB are a standard SANE status
> > code.
> >
> > The 2 LSB will always correspond to a SANE status.
>=20
> That's ok.
>=20
> > If the 2 MSB are non-zero, they are passed to a sane_backend_status()
> > routine inside the backend that returns a proper status message that
> > is then echoed to the user. (depending on what we want to achieve,
> > we'd require the caller to free the message after use, think
> > sprintf(), etc...)
>=20
> That opens a can of worms. Which error message is printed? Remeber
> that more than one device can be open at the same time. In case of
> threads we are in trouble now. We also can't supply the SANE_Handle
> because otherwise we couldn't print errors before sane_open.
>=20
> If we used that proposal, we would have to disallow threaded
> frontends. Or to be more exact: disallow running more that one sane
> api function at the same time.
>=20
> The SANE option containing the error message has the same problem: It
> only works once sane_open succeeds and if the error doesn't occur in
> sane_control_option.
>=20
> I think returning the string at the exact time when the sane api
> function returns is the only way.
>=20
> And while defining structs keep in mind that the SANE standard only
> defines what a SANE_Word is. There is no "short" SANE_Type and it's
> also not defined that four SANE_Bytes are as long as one SANE_Word.
> SANE_Word may be 64 or even 128 bits.
>=20
> Bye,
>   Henning
>=20
>=20
> ______________________________________________________________________
> From: Martin Pisz <pisz@primus.ca>
> To: sane-devel@lists.alioth.debian.org
> Subject: [sane-devel] Microtek E3 scanner problem?
> Date: Sat, 06 Dec 2003 09:48:24 -0700
>=20
> Hi
>        I'm just a xsane user not a developer. I have a Microtek E3 SCSI
> Scanner hooked up to s Adaptec 2906 SCSI card. Mandrake 9.2 detects the
> scanner under xsane or Scannerdrake 20 times.  The only difference is
> sg0-sg9 at the last line, whatever that means.  Anyway, the light on the
> scanner blinks like 20 times when it's being detected.  It used to blink
> only once before on
> Mandrake 9.0 during detection, when it was detected fine by the old
> version.  When I try to preview or scan it starts scanning, but dies and
> crashes half way through scanning.  Any ideas of how to solve the
> problem?  Xsane worked awesome under Mandrake 8.1, worked fine under
> Mandrake 9.0 {Except it would no longer scan legal size-detection
> problem}.  Unfortunately,Seems to not work at all under Mandrake 9.2.
> My system:
> AMD Duron 600
> Gigabyte zx7-1 VIA KT133 motherboard
> 3Com 5610 Hardware 56K modem
> SB Live value (OEM)
> Adaptec 2906 SCSI card
> Ps2 logitek wheelmouse and keyboard,
> USB Microsoft ForceFeedbak 2 Joystick
> A90 Viewsonic monitor
> A couple of serial connector for ti-83 calculator and sharp el6010
> organizer
>=20
> Thanks
> Martin
>=20
>=20
>=20
> ______________________________________________________________________
> From: Oliver Putz <Ripper2004@web.de>
> To: sane-devel@lists.alioth.debian.org
> Subject: Re: [sane-devel] You guys need information about HP Scanjet 3970=
?
> Date: Sat, 06 Dec 2003 17:58:13 +0100
>=20
> Henning Meier-Geinitz wrote:
>=20
> > E.g. if the maunal
> > and/or Windows drivers that came with the scanner mention other
> > scanners (e.g. the 3500 sereies).
>=20
> Well, the manual mentions some other scanners. There seems to be one manu=
al for the following models:
>=20
> HP Scanjet 2400
> HP Scanjet 3670
> HP Scanjet 3690
> HP Scanjet 3970
>=20
> There are in fact several differences between the models which are named =
in the manual, (e.g. a button for creating a cd on the HP Scanjet 3970, or =
a special buit in Scanner for dias and negatives (all exept the HP Scanjet =
2400) but nevertheless, I think that this is the one Manual given to every =
owner of one of the above mentioned scanners.
>=20
> HTH
>=20
> Oliver
> _________________________________________________________________________=
_____
> WEB.DE FreeMail wird 5 Jahre jung! Feiern Sie mit uns und
> nutzen Sie die neuen Funktionen http://f.web.de/features/?mc=3D021130
>=20
>=20
>=20
> ______________________________________________________________________
> From: Henning Meier-Geinitz <henning@meier-geinitz.de>
> To: sane-devel@lists.alioth.debian.org
> Subject: Re: [sane-devel] Microtek E3 scanner problem?
> Date: Sat, 06 Dec 2003 18:17:33 +0100
>=20
> Hi,
>=20
> On Sat, Dec 06, 2003 at 09:48:24AM -0700, Martin Pisz wrote:
> >        I'm just a xsane user not a developer. I have a Microtek E3 SCSI
> > Scanner hooked up to s Adaptec 2906 SCSI card. Mandrake 9.2 detects the
> > scanner under xsane or Scannerdrake 20 times.  The only difference is
> > sg0-sg9 at the last line, whatever that means.=20
>=20
> /dev/sg0 (1, 2 and so on) are the device files to access SCSI generic
> devices like scanners. Usually you use only one per device.
>=20
> Maybe Mandrake turned on "use multiple LUNs" in the Linux kernel? That
> may be necessary for some SCSI devices but makes trouble for others
> like this scanner. i don't know if you can turn off that function at
> run-time but you should at least find some hints on google.
>=20
> Bye,
>   Henning
>=20
>=20
> ______________________________________________________________________
> From: R=C3=A9mi Zara <remi_zara@mac.com>
> To: Henning Meier-Geinitz <henning@meier-geinitz.de>
> Cc: sane-devel@lists.alioth.debian.org
> Subject: Re: [sane-devel] Snapscan on Mac OS X 10.3
> Date: Sat, 06 Dec 2003 18:20:44 +0100
>=20
>=20
> Le 6 d=C3=A9c. 03, =C3=A0 12:19, Henning Meier-Geinitz a =C3=A9crit :
>=20
> > Hi,
> >
> > On Sun, Nov 30, 2003 at 01:46:37PM +0100, R=C3=A9mi Zara wrote:
> >>> Environment variable: SANE_DEBUG_SANEI_SOMETHING, e.g.
> >>> SANE_DEBUG_SANEI_USB=3D255 or SANE_DEBUG_SANEI_SCSI=3D255.
> >>
> >> This is very interresting !
> >> With SANE_DEBUG_SANEI_USB=3D255, scanimage -L finds my snapscan e40 !
> >> Set it back to 0, and it does not find it anymore.
> >> Set it back to 255, and here it is !
> >> Either something's wrong with debugging, either there is maybe some
> >> timing problems ?
> >
> > Usually that's a timinig issue. Maybe a problem in libusb?
> >
>=20
> Hi,
>=20
> The problem might indeed be in libusb, since I found that the debug=20
> level necessary to make it find my scanner is anything >=3D 5, which=20
> activates debugging in libusb:
>=20
> in sanei_usb_init (void)
>=20
> #ifdef DBG_LEVEL
>    if (DBG_LEVEL > 4)
>      usb_set_debug (255);
> #endif /* DBG_LEVEL */
>=20
> Regards,
>=20
> R=C3=A9mi Zara
> --
> R=C3=A9mi Zara
> http://www.remi-zara.net/
>=20
> ______________________________________________________________________
> From: m. allan noah <anoah@pfeiffer.edu>
> To: Keith Watson <kpwatson@ukfsn.org>
> Cc: Sane Developers <sane-devel@lists.alioth.debian.org>
> Subject: Re: [sane-devel] Visioneer Onetouch 4400 USB (Visioneer/Primax P=
rimascan Colorado 2600u, Memorex 6142u)
> Date: Sat, 06 Dec 2003 12:24:05 -0500
>=20
> keith, i dont like snoopypro, i prefer either the original (non-pro) or=20
> even better, SniffUSB.exe v1.8 from=20
> http://benoit.papillault.free.fr/usbsnoop/index.php
>=20
> the latter is easier to install, and i like the debug log it makes better=
.
>=20
> you can cat the output from it into the attached perl script, which clean=
s=20
> things up some, though it does not deal with control packets fully...
>=20
> i usually work on adf scanners, which have alot of sensors and buttons,=20
> usually, so i test them by doing one thing at a time with a pause between=
=20
> each, ie: start sniffer, open lid, wait 15 seconds, close lid, wait, push=
=20
> paper sensor, wait, button1, wait, button2, etc. then i add paper to the=20
> scanner, and press the buttons again, etc.
>=20
> then you stare at the output for awhile, and try to find patterns.
>=20
> allan
> =20
> On Sat, 6 Dec 2003, Keith Watson wrote:
>=20
> > Ok, so I've grabbed a copy of SnoopyPro and installed it on Windows2000=
.  I've
> > opened the TWAIN interface got the scanner to scan an image.  SnoopyPro=
 has
> > captured a load of things called URBs (what's a URB daddy?).
> >=20
> > Presumably I really should approach this methodically and perform a ser=
ies of
> > smaller captures with each one addressing a specific operation. Is ther=
e any
> > material anywhere which covers this?  Failing that is anyone able to me=
ntor me
> > through this? e.g. suggest what operations I need to capture and in wha=
t order?
> >=20
> > If someone could tell me what to do, I could then post the output somew=
here so
> > that others more knowledgeable and able than me can look at them and pe=
rhaps
> > deduce what's going on.
> >=20
> > Keith
> >=20
> >=20