[sane-devel] Fujitsu USB scanner support working!

Karl Heinz Kremer khk@khk.net
Sat, 15 Feb 2003 13:26:30 -0500


--jRHKVT23PllUwdXP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

The fix for the EPSON backend is in CVS.=20

On Sat, Feb 15, 2003 at 12:20:18AM +0100, Till Kamppeter wrote:
> Can you post a patch which fixes both the "fujitsu" and the "epson" backe=
nd?
>=20
>    Till
>=20
> Ron Cemer wrote:
> >It's definitely a bug.  And you're right, it's still not working in the=
=20
> >epson module, even when you change the sscanf from %d to %i, so there's=
=20
> >probably another bug somewhere.
> >
> >However, when I copied the same code into fujitsu.c, changed the sscanf=
=20
> >from %d to %i, and on success (sscanf returns 2) I call=20
> >sanei_usb_attach_matching_devices(...) [instead of=20
> >sanei_config_attach_matching_devices], I can now configure my fujitsu=20
> >scanner using "usb 0x04c5 0x1042", and scanimage recognizes the scanner=
=20
> >and I am able to scan just fine.  My guess is that either=20
> >sanei_config_attach_matching_devices has a bug, or possibly more likely,=
=20
> >it's more appropriate to call sanei_usb_attach_matching_devices, since=
=20
> >we know for sure that we're trying to attach a USB device.
> >
> >Till Kamppeter wrote:
> >
> >>Henning Meier-Geinitz wrote:
> >>
> >>>
> >>>I think it's ok. The epson backend checks for "usb vendor product" and
> >>>calls sanei_usb_attach_matching_devices if it find such a line.
> >>>Otherwise it checks for "usb" and calls attach for the device name. If
> >>>it's not "usb", it calls sanei_config_attach_matching_devices(line,
> >>>attach_one);
> >>>
> >>>
> >>
> >>Are you sure that the "epson" backend understands something other than=
=20
> >>fixed devices? I have tried
> >>
> >>usb 0x04b8 0x0112
> >>
> >>for my Epson Perfection 2450 and the "epson" backend did not find it.=
=20
> >>The only way to get this scanner working is to use a fixed address as
> >>
> >>usb /dev/usb/scanner1
> >>
> >>   Till
> >>
> >>
> >>_______________________________________________
> >>Sane-devel mailing list
> >>Sane-devel@www.mostang.com
> >>http://www.mostang.com/mailman/listinfo/sane-devel
> >>
> >
> >
> >_______________________________________________
> >Sane-devel mailing list
> >Sane-devel@www.mostang.com
> >http://www.mostang.com/mailman/listinfo/sane-devel
> >
> >
>=20
> _______________________________________________
> Sane-devel mailing list
> Sane-devel@www.mostang.com
> http://www.mostang.com/mailman/listinfo/sane-devel

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

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

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

iD8DBQE+ToZWxejv3RfKrhsRAqhWAJwJXbp8N3BU8+4h6g19Y/LCsM12+QCgphQb
a67AgW3D7qoGTuOqRjw7+9Y=
=FZJa
-----END PGP SIGNATURE-----

--jRHKVT23PllUwdXP--