[sane-devel] Re: adding support for additional lm983x based scanners

Philip Underwood furbrain@furbrain.screaming.net
31 Jan 2002 20:22:44 +0000


> 
> Hi there,
> 
> in the meantime, I've tried to find out the major differences
> between the Plustek-code and the National stuff!
> 
> Plustek makes some assuptions that are correctly for their
> devices, but may not apply to those of other manufacturers.
> 
> There are currently some topics identified yet:
> - The Plustek code does not support any CIS sensors (CANON)
> - Plustek specific code has to be identified and disabled by flags or so
> - Plustek uses only the green channel to get gray-scale pictures
> - Lamps connected to Misc I/O pins are not really supported
> 
> Well, I'm currently working on that and I'd like to expand the
> current code by the stuff that National suggests. 
> I can understand, that it might be easier to use the USB-snoopy
> logs, than to roam through the Plustek and/or National code,
> but if we'd like to support a great variety of devices, we should
> work together and create something like National has done
> to support almost all LM983x based devices simply by adding
> a new device entry or by even creating an ini file.
> 
> Plustek List: I think for this discussion, we should go to the
> SANE list...
> 
> Gerhard
I've started work on a similar thing with the Epson1250 / HP2200C code
See the latest stuff in the cvs at http://scanjet2200c.sourceforge.net
(under the epson directory)

> 
> 
> --__--__--
> 
> Message: 2
> Date: Wed, 30 Jan 2002 20:10:11 -0500
> From: Bob Young <polaris9@mochamail.com>
> To: sane-devel@mostang.com
> Subject: [sane-devel] viceo backend
> 
> This may be the wrong place to ask for help - but it's the only place I
> could find, so I hope to be tolerated...
> 
> I'm trying to use a Visioneer 6100 USB scanner, with the viceo backend
> developed by Steven Ellis (see -
> http://website.lineone.net/~dvnix/scanner/frame.html)
> 
> I have done everything described in the instructions - applied the patches
> to kernel 2.4.17 and compiled it - applied the patches to the sane 1.0.5
> sources, and the viceo module has been installed - and added the support
> files provided.
> 
> My scanner works under windoze, my USB interface is working, and
> recognizes the scanner, the scanner kernel module is loaded, but scanimage
> does not detect it - in fact it just hangs and I have to kill it.
> 
> I get the following in /var/log/messages - 
> 
>  kernel: usb_control/bulk_msg: timeout
>  kernel: scanner.c: write_scanner: NAK received.
> 
> - and that's all.
> 
> I have no other experience with any scanner under Linux, so I don't know
> what to try next.  Can anyone help, please?
> 
> Bob Young
> 
> --__--__--
> 
> Message: 3
> Subject: Re: [sane-devel] xscanimage - advanced Options.
> From: Martin Klaffenboeck <martin.klaffenboeck@gmx.at>
> To: sane-devel@mostang.com
> Date: Thu, 24 Jan 2002 17:41:59 +0100
> 
> 
> Erik Inge Bolsų <knan@mo.himolde.no> writes:
> 
> > On Thu, 24 Jan 2002, Martin Klaffenboeck wrote:
> >>I'm new here and scanning under Unix is new for me.
> >
> > Welcome! :)
> >
> >>I like xscanimage more than xsane, where xsane makes a core dump when I
> >>make a preview scan for transparent media.  But I like also the look
> >>>>from xscanimage more.
> >
> > I'm sure Oliver would be grateful if you posted more details about this,
> > like Sane version, Xsane version, etc., so that he can track down the bug
> > and exterminate it... he reads sane-devel too, you know :)
> >
> > Newest version is 0.84, all of two days old - perhaps you could try that
> > one?
> 
> Oh, I tried 0.84 with gimp and without gimp.  (But compiled for gimp.)
> Sane is 1.0.6 backend and frontend 1.0.6
> 
> I just started xsane as a normal user.  The /dev/uscanner0  (where my
> epson perfection 1650 is connected) has rw for all users.  Then I click
> on color (on binary - there are no problems) and then I choose
> transparency unit.  So now I click on Aquire Preview.  Then it works
> (not as fast as it works if I would take xscanimage, but it works) and
> when it is finished (the Picture in the preview is shown) xsane exits
> and on the xkonsole I started it I can read 
> 
> zsh:  segmentation fault (core dumped)  xsane.
> 
> 
> Thats all I know...
> 
> 
> But I'm writeing here for xscanimage.  Is there a way to do that?
> 
> Martin
> 
> -- 
> Virtuelle Jugendarbeit auf http://create.kleinerdrache.org
>    Martin on ICQ: 72997139
> 
> --__--__--
> 
> Message: 4
> From: Martin Klaffenboeck <martin.klaffenboeck@gmx.at>
> Subject: Re: [sane-devel] xscanimage - advanced Options.
> To: sane-devel@mostang.com
> Date: Thu, 24 Jan 2002 17:41:59 +0100
> 
> 
> Erik Inge Bolsų <knan@mo.himolde.no> writes:
> 
> > On Thu, 24 Jan 2002, Martin Klaffenboeck wrote:
> >>I'm new here and scanning under Unix is new for me.
> >
> > Welcome! :)
> >
> >>I like xscanimage more than xsane, where xsane makes a core dump when I
> >>make a preview scan for transparent media.  But I like also the look
> >>>>from xscanimage more.
> >
> > I'm sure Oliver would be grateful if you posted more details about this,
> > like Sane version, Xsane version, etc., so that he can track down the bug
> > and exterminate it... he reads sane-devel too, you know :)
> >
> > Newest version is 0.84, all of two days old - perhaps you could try that
> > one?
> 
> Oh, I tried 0.84 with gimp and without gimp.  (But compiled for gimp.)
> Sane is 1.0.6 backend and frontend 1.0.6
> 
> I just started xsane as a normal user.  The /dev/uscanner0  (where my
> epson perfection 1650 is connected) has rw for all users.  Then I click
> on color (on binary - there are no problems) and then I choose
> transparency unit.  So now I click on Aquire Preview.  Then it works
> (not as fast as it works if I would take xscanimage, but it works) and
> when it is finished (the Picture in the preview is shown) xsane exits
> and on the xkonsole I started it I can read 
> 
> zsh:  segmentation fault (core dumped)  xsane.
> 
> 
> Thats all I know...
> 
> 
> But I'm writeing here for xscanimage.  Is there a way to do that?
> 
> Martin
> 
> -- 
> Virtuelle Jugendarbeit auf http://create.kleinerdrache.org
>    Martin on ICQ: 72997139
> 
> --__--__--
> 
> Message: 5
> From: Martin Klaffenboeck <martin.klaffenboeck@gmx.at>
> Subject: Re: [sane-devel] xscanimage - advanced Options.
> To: sane-devel@mostang.com
> Date: Thu, 24 Jan 2002 17:51:48 +0100
> 
> 
> mh  <crapsite@gmx.net> writes:
> 
> > I don't know, whether this is what you are looking for, but maybe you want to 
> > try the attached patch. It places the advanced options to the right side of 
> > the standard options (and to the left of the gamma widget, if available).
> > The dialogs width should stay smaller than 1024 pixel.
> > (patch sane-frontends/src/gtkglue.c gtkglue.diff)
> 
> Oh, thank you.  Thats great.  It's not what I was looking for, but it
> works as well, it's better than it was before.
> 
> There is now much space on the left side (bottom), which is not used by
> xscanimage.  So I think it would be better to open a new window for the
> advanced options.  A also don't need the advanced options as often as
> the other functions.  So if there is a new window it can disappear
> behind other windows.  So if the focus goes on the xscanimage, the
> advanced options also get this focus.
> 
> But thank you.  Its better than it was before...
> 
> Martin
> 
> -- 
> Virtuelle Jugendarbeit auf http://create.kleinerdrache.org
>    Martin on ICQ: 72997139
> 
> --__--__--
> 
> Message: 6
> From: Morten Sickel <Morten.Sickel@nrpa.no>
> To: "Sane-Devel (E-post)" <sane-devel@mostang.com>
> Date: Thu, 31 Jan 2002 09:18:06 +0100
> Subject: [sane-devel] Problem compiling 1.0.7 on HPUX 10.20
> 
> Hi.
> 
> I tried to compile the sane 1.0.7 backends on an HP 712 running HP-UX 10.02
> using gcc 2.95.2 and gnu make. configure runs fine, and then compile ends
> with:
> 
> In file included from isfdtype.c:1:
> ../include/sane/config.h:418: warning: function declaration isn't a
> prototype
> ../include/sane/config.h:423: warning: function declaration isn't a
> prototype
> isfdtype.c:9: warning: no previous prototype for `isfdtype'
> isfdtype.c: In function `isfdtype':
> isfdtype.c:10: storage size of `st' isn't known
> isfdtype.c:12: warning: implicit declaration of function `fstat'
> isfdtype.c:10: warning: unused variable `st'
> isfdtype.c:8: warning: unused parameter `fdtype'
> gmake[1]: *** [isfdtype.o] Error 1
> gmake[1]: Leaving directory
> `/home/mortens/download/sane-backends-1.0.7-beta2/lib'
> gmake: *** [all-recursive] Error 1
> [mortens sane-backends-1.0.7-beta2/]$ gcc --version
> 2.95.2
> [mortens sane-backends-1.0.7-beta2/]$ uname -a
> HP-UX cesium B.10.20 A 9000/712 2010654422 two-user license
> 
> I have also tried with HP make, with the same results, although a slightly
> different wording of some of the messages.
> 
> I got 1.0.6 up and running without any problems...
> 
> 
> regards
> -- 
> Morten Sickel
> Norwegian Radiation Protection Authority
> 
> 
> --__--__--
> 
> Message: 7
> Date: Thu, 31 Jan 2002 16:19:57 +0100
> From: Oliver Rauch <oliver.rauch@rauch-domain.de>
> To: Martin Klaffenboeck <martin.klaffenboeck@gmx.at>
> CC: sane-devel@mostang.com
> Subject: Re: [sane-devel] xscanimage - advanced Options.
> 
> Martin Klaffenboeck wrote:
> 
> > I just started xsane as a normal user.  The /dev/uscanner0  (where my
> > epson perfection 1650 is connected) has rw for all users.  Then I click
> > on color (on binary - there are no problems) and then I choose
> > transparency unit.  So now I click on Aquire Preview.  Then it works
> > (not as fast as it works if I would take xscanimage, but it works) and
> > when it is finished (the Picture in the preview is shown) xsane exits
> > and on the xkonsole I started it I can read
> > 
> > zsh:  segmentation fault (core dumped)  xsane.
> 
> Please do:
> export XSANE_DEBUG=128
> xsane 2>debug.txt
> 
> and repeat what you described above.
> 
> If you also have gdb installed please do
> gdb xsane
> r <enter>
> and after the crash
> bt <enter>
> and send the output and debug.txt to me.
> 
> Did you compile xsane yourself. Did you install it correct?
> When you start xsane is the scan icon displayed in the preview window?
> 
> Bye
> Oliver
> 
> 
> -- 
> Homepage:	http://www.rauch-domain.de
> sane-umax:	http://www.rauch-domain.de/sane-umax
> xsane:		http://www.xsane.org
> E-Mail:		mailto:Oliver.Rauch@rauch-domain.de
> 
> --__--__--
> 
> Message: 8
> From: christoph knauer <christoph.knauer@web.de>
> Reply-To: christoph.knauer@web.de
> To: sane-devel@mostang.com
> Date: Thu, 31 Jan 2002 18:17:57 +0100
> Subject: [sane-devel] sane 1.0.6, xsane 0.84 und SuSE 7.3
> 
> Hello People,
> 
> I've installed a scanner on my linux-server; there runs sane 1.01 on it.
> 
> On my client I'm also workin with Win2K and xsane-win 0.84 and SuSE-Linux 7.3 
> with kernel 2.4.16 and xsane 0.84.
> 
> On win2k, scanning works fine, but since I made an update from SuSE 7.1 to 
> 7.3, xsane dosn't find any scanner on my net. The net.conf ist the same as 
> before.
> 
> Has somebody an idea, where my problem could be?
> 
> So long, Christoph
> 
> --__--__--
> 
> Message: 9
> Date: Thu, 31 Jan 2002 19:43:17 +0100
> From: Henning Meier-Geinitz <henning@meier-geinitz.de>
> To: "Sane-Devel (E-post)" <sane-devel@mostang.com>
> Subject: Re: [sane-devel] Problem compiling 1.0.7 on HPUX 10.20
> 
> Hi,
> 
> On Thu, Jan 31, 2002 at 09:18:06AM +0100, Morten Sickel wrote:
> > I tried to compile the sane 1.0.7 backends on an HP 712 running HP-UX 10.02
> 
> Its sane-backends-1.0.7-beta2?
> 
> Thanks for your report. We don't get that many from HPUX users :-)
> 
> > using gcc 2.95.2 and gnu make. configure runs fine, and then compile ends
> > with:
> > 
> > In file included from isfdtype.c:1:
> > ../include/sane/config.h:418: warning: function declaration isn't a
> > prototype
> > ../include/sane/config.h:423: warning: function declaration isn't a
> > prototype
> > isfdtype.c:9: warning: no previous prototype for `isfdtype'
> > isfdtype.c: In function `isfdtype':
> > isfdtype.c:10: storage size of `st' isn't known
> 
> Looks like sys/stat.h doesn't define struct stat. Strange.
> 
> > HP-UX cesium B.10.20 A 9000/712 2010654422 two-user license
>                                              ^^^^^^^^^^^^^^^^
> 
> It explodes with more than 2 simultaneous users? :-)
> 
> > I have also tried with HP make, with the same results, although a slightly
> > different wording of some of the messages.
> 
> I don't think this is related to make.
> 
> > I got 1.0.6 up and running without any problems...
> 
> isfdtype.c hasn't been changed since then. Configure.in has been
> changed but I don't see any change that can affect isfdtype.c.
> 
> Please try to run "./configure --disable-warnings" and try "make" again.
> I think someone posted a similar problem which went away without the
> warnings.
> 
> If this doesn't work, could you have a look at sys/stat.h and try to
> find out why there is no struct stat? I don't have access to hpux, so
> I can't check for myself.
> 
> If it works: please also report if you can use shared libraries, if
> your SCSI scanner works, and if you can compile sane-frontends (for
> our statistics at http://www.mostang.com/sane/sane-support.html which
> is very outdated for HPUX).
> 
> Bye,
>   Henning
> 
> --__--__--
> 
> Message: 10
> Date: Thu, 31 Jan 2002 19:47:40 +0100
> From: Henning Meier-Geinitz <henning@meier-geinitz.de>
> To: sane-devel@mostang.com
> Subject: Re: [sane-devel] sane 1.0.6, xsane 0.84 und SuSE 7.3
> 
> Hi,
> 
> On Thu, Jan 31, 2002 at 06:17:57PM +0100, christoph knauer wrote:
> > I've installed a scanner on my linux-server; there runs sane 1.01 on it.
> 
> Uh, this is really old :-)
> 
> > On my client I'm also workin with Win2K and xsane-win 0.84 and SuSE-Linux 7.3 
> > with kernel 2.4.16 and xsane 0.84.
> 
> Which version of sane-backends is on the client now?
> 
> > On win2k, scanning works fine, but since I made an update from SuSE 7.1 to 
> > 7.3, xsane dosn't find any scanner on my net. The net.conf ist the same as 
> > before.
> 
> Does "scanimage -L" find the scanner? Is "net" in dll.conf? What's the
> output of "SANE_DEBUG_NET=255 scanimage -L"? Are there any messages in
> syslog of the server concerning saned?
> 
> Bye,
>   Henning
> 
> --__--__--
> 
> Message: 11
> To: "Sane-Devel (E-post)" <sane-devel@mostang.com>
> From: Michael Piotrowski <mxp@dynalabs.de>
> Date: Thu, 31 Jan 2002 20:38:25 +0100
> Subject: [sane-devel] Re: Problem compiling 1.0.7 on HPUX 10.20
> 
> Henning Meier-Geinitz <henning@meier-geinitz.de> writes:
> 
> > On Thu, Jan 31, 2002 at 09:18:06AM +0100, Morten Sickel wrote:
> > > I tried to compile the sane 1.0.7 backends on an HP 712 running
> > > HP-UX 10.02
> 
> [...]
> 
> >> HP-UX cesium B.10.20 A 9000/712 2010654422 two-user license
> >                                              ^^^^^^^^^^^^^^^^
> >
> > It explodes with more than 2 simultaneous users? :-)
> 
> I see the smiley, but nevertheless: It doesn't explode, but it won't
> allow more than two users to log in; however, all network logins count
> as one user, so it's not really a restriction.  New HP-UX releases
> don't use this licensing scheme anymore.
> 
> [...]
> 
> I'm currently on the road, but I'll be back on Saturday, and I'll also
> look into it--since I wrote the README.hpux, I'll update it if a
> different build procedure should be necessary.
> 
> > If it works: please also report if you can use shared libraries, if
> > your SCSI scanner works, and if you can compile sane-frontends (for
> > our statistics at http://www.mostang.com/sane/sane-support.html which
> > is very outdated for HPUX).
> 
> Well, I posted a comprehensive (except for sane-frontends) summary for
> SANE 1.0.5 on HP-UX 10.20 and 11.00, with cc and gcc in October,
> explicitly for addition to the "Supported Platforms" list--it seems it
> never made it there :-(
> 
> -- 
> Michael Piotrowski, M.A.                                  <mxp@dynalabs.de>
> 
> 
> --__--__--
> 
> _______________________________________________
> Sane-devel mailing list
> Sane-devel@www.mostang.com
> http://www.mostang.com/mailman/listinfo/sane-devel
> 
> 
> End of Sane-devel Digest