[sane-devel] Fujitsu USB patches

Henning Meier-Geinitz henning at meier-geinitz.de
Sat Feb 15 19:31:20 GMT 2003


Hi,

On Thu, Feb 13, 2003 at 03:40:44PM -0800, Ron Cemer wrote:
> Here are updated patches that get the Fujitsu fi-4220C scanner working, 
> and add USB support for Fujitsu scanners.
> 
> It now supports libusb or regular usb scanner devices, as described in 
> the sane-usb man page.
> 
> It uses SCSI commands over USB, using a non-standard implementation of 
> the USB mass storage protocol.
> 
> Thanks to Henning for various suggestions to get it in line with the 
> SANE standards! :-)
> 
> I'm sending this to both the sane-devel mailing list and the current 
> Fujitsu backend maintaner, in hopes that the changes will be implemented 
> as quickly as possible.

If you don't get a response from the maintainer (say in 3 weeks),
please contact us again. Just in case he isn't active any longer.

> --- ./backend/fujitsu.c.orig	2002-09-16 05:19:52.000000000 -0700
> +++ ./backend/fujitsu.c	2003-02-13 15:03:17.000000000 -0800

[...]

> @@ -4352,18 +4609,26 @@
>     * follows without a header of its own. 
>     */
>  
> +
> +    scsiblk *setwinB;

gcc complains:

fujitsu.c: In function setWindowParam':
fujitsu.c:4613: parse error before *'
fujitsu.c:4615: setwinB' undeclared (first use in this function)

setwinB doesn't seem to be defined anywhere.

> +++ ./doc/descriptions/fujitsu.desc	2003-02-13 15:04:51.000000000 -0800
> @@ -37,6 +37,8 @@
>  :interface "SCSI"
>  :model "M4097"
>  :interface "SCSI"
> +:model "fi-4220C"
> +:interface "SCSI USB"
>  :model "fi-4340C"
> -:interface "SCSI"
> +:interface "SCSI USB"

That's ok if you (or someone else) have tested these models with both
USB and SCSI and they work.

If you think other models may also work but you can't test (because
you don't have a scanner), you can use entries like that:

:model "whatever"
:interface "SCSI"
:status :untested
:comment "Looks similar to foo, please test"

> --- ./doc/sane-fujitsu.man.orig	2003-02-13 15:13:15.000000000 -0800
> +++ ./doc/sane-fujitsu.man	2002-11-29 12:15:30.000000000 -0800
> @@ -4,13 +4,13 @@
>  .IX sane-m3096g
>  
>  .SH NAME
> -sane-fujitsu \- SANE backend for Fujitsu flatbed and ADF scanners
> +sane-fujitsu \- SANE backend for Fujitsu flatbed scanners

That patch is reversed (the other way round)!

Bye,
  Henning



More information about the sane-devel mailing list