<html><head>

<link media="all" type="text/css" href="/netmail/static/deg/css/wysiwyg-3933289048.css" rel="stylesheet">
</head><body>
Does this give me any help with the Canoscan 4200F ?<br>Thanks!<br><div style="font-size: 12px; font-family: arial;"><div style="font-size: 12px; font-family: arial;"><div style="font-family: arial; font-size: 12px;"><div style="font-family: arial; font-size: 12px;"><div style="font-family: arial; font-size: 12px;"><br></div></div></div></div></div><br><br>Oct 28, 2010 10:38:38 AM, kitno455@gmail.com wrote:<br><blockquote style="border-left: 3px solid rgb(102, 153, 204);">On Thu, Oct 28, 2010 at 1:27 PM, Denis Prost <denis.prost@wanadoo.fr> wrote:<br>&gt; &nbsp;Yes Allan, with just that line, it works !<br>&gt;<br>&gt; Denis<br><br>Well, I think that is the best solution then. (though the backend<br>should still be fixed)<br><br>allan<br><br>&gt;<br>&gt; Le 28/10/2010 16:57, m. allan noah a écrit :<br>&gt;&gt;<br>&gt;&gt; Several comments:<br>&gt;&gt;<br>&gt;&gt; 1. the backend should be changed to look at multiple rows of its config<br>&gt;&gt; file.<br>&gt;&gt;<br>&gt;&gt; 2. The canon backend code does this:<br>&gt;&gt;<br>&gt;&gt; &nbsp;if (ibuf[0] != 6<br>&gt;&gt; &nbsp; &nbsp; &nbsp; || strncmp ((char *) (ibuf + 8), "CANON", 5) != 0<br>&gt;&gt; &nbsp; &nbsp; &nbsp; || strncmp ((char *) (ibuf + 16), "IX-", 3) != 0)<br>&gt;&gt; &nbsp; &nbsp; {<br>&gt;&gt; DBG (1, "attach: device doesn't look like a Canon scanner\n");<br>&gt;&gt; .....<br>&gt;&gt;<br>&gt;&gt; So the apple machine must respond as a canon too.<br>&gt;&gt;<br>&gt;&gt; 3. The sanei_scsi code appears to use strncmp with the length of the<br>&gt;&gt; string from the config, so this should work:<br>&gt;&gt;<br>&gt;&gt; scsi CANON IX<br>&gt;&gt;<br>&gt;&gt; Denis- can you put only that line in your config file, and verify that<br>&gt;&gt; the scanner still appears?<br>&gt;&gt;<br>&gt;&gt; allan<br>&gt;&gt;<br>&gt;&gt; On Thu, Oct 28, 2010 at 10:35 AM, Johannes Meixner<jsmeix@suse.de> &nbsp;wrote:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Hello,<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; On Oct 28 09:52 m. allan noah wrote:<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; I would need to check the code, but I think the canon backend mostly<br>&gt;&gt;&gt;&gt; supports machines who's model name starts with 'IX' so the best<br>&gt;&gt;&gt;&gt; solution might be:<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; scsi CANON IX*<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; or some such?<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; I do not have a scanner which is supported by the "canon" backend<br>&gt;&gt;&gt; so that all what I write here is only based upon what I read<br>&gt;&gt;&gt; somewhere.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; According to what I read in "man sane-scsi"<br>&gt;&gt;&gt; ---------------------------------------------------------------<br>&gt;&gt;&gt; &nbsp; &nbsp;scsi VENDOR MODEL TYPE BUS CHANNEL ID LUN<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; ... a field's value can be replaced with an asterisk<br>&gt;&gt;&gt; symbol (``*''). &nbsp;An asterisk has the effect that any<br>&gt;&gt;&gt; value is allowed for that particular field.<br>&gt;&gt;&gt; ---------------------------------------------------------------<br>&gt;&gt;&gt; so that it seems it is not possible to replace only a part<br>&gt;&gt;&gt; of a particular field with an asterisk.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; According to<br>&gt;&gt;&gt; http://www.sane-project.org/sane-backends.html#S-CANON<br>&gt;&gt;&gt; the "canon" backend supports at least one non-CANON scanner,<br>&gt;&gt;&gt; the "Apple Color OneScanner 600/27".<br>&gt;&gt;&gt; I have no idea how this device shows up at the SCSI<br>&gt;&gt;&gt; but I assume Apple made sure that "their device" shows up<br>&gt;&gt;&gt; at the SCSI under a manufacturer name like "APPLE".<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; According to my tests in<br>&gt;&gt;&gt; http://lists.alioth.debian.org/pipermail/sane-devel/2006-May/016922.html<br>&gt;&gt;&gt; it seems it is not possible to have something like<br>&gt;&gt;&gt; -------------------------------------------------------------------<br>&gt;&gt;&gt; #canon.conf<br>&gt;&gt;&gt; scsi CANON<br>&gt;&gt;&gt; scsi APPLE<br>&gt;&gt;&gt; -------------------------------------------------------------------<br>&gt;&gt;&gt; because it seems only the last entry "scsi APPLE" is used then.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; According to my tests in<br>&gt;&gt;&gt; http://lists.alioth.debian.org/pipermail/sane-devel/2006-May/016922.html<br>&gt;&gt;&gt; it seems not to cause problems if devices are probed<br>&gt;&gt;&gt; which are no scanners so that in the end our patch results<br>&gt;&gt;&gt; an unrestricted plain "scsi" by default in /etc/sane.d/canon.conf<br>&gt;&gt;&gt; -------------------------------------------------------------------<br>&gt;&gt;&gt; # canon.conf<br>&gt;&gt;&gt; #<br>&gt;&gt;&gt; # Activate exactly one of the following choices:<br>&gt;&gt;&gt; #<br>&gt;&gt;&gt; # Probe on all /dev/sg* devices:<br>&gt;&gt;&gt; scsi<br>&gt;&gt;&gt; #<br>&gt;&gt;&gt; # Probe for "CANON" on all /dev/sg* devices:<br>&gt;&gt;&gt; #scsi CANON<br>&gt;&gt;&gt; #<br>&gt;&gt;&gt; # Probe only on one fixed device:<br>&gt;&gt;&gt; #/dev/sg0<br>&gt;&gt;&gt; -------------------------------------------------------------------<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; We have this since July 2006 and at least I noticed no bug reports<br>&gt;&gt;&gt; or user complaints because of this - but I have no idea how many<br>&gt;&gt;&gt; users use scanners which are supported by the "canon" backend.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; By default we have all backends in /etc/sane.d/dll.conf disabled<br>&gt;&gt;&gt; (to avoid that a SANE frontend lets various backends start up<br>&gt;&gt;&gt; and do needless probing for devices which do not exist)<br>&gt;&gt;&gt; so that the "canon" backend only runs for those users which<br>&gt;&gt;&gt; actually use a matching scanner.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Kind Regards<br>&gt;&gt;&gt; Johannes Meixner<br>&gt;&gt;&gt; --<br>&gt;&gt;&gt; SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany<br>&gt;&gt;&gt; AG Nuernberg, HRB 16746, GF: Markus Rex<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; --<br>&gt;&gt;&gt; sane-devel mailing list: sane-devel@lists.alioth.debian.org<br>&gt;&gt;&gt; http://lists.alioth.debian.org/mailman/listinfo/sane-devel<br>&gt;&gt;&gt; Unsubscribe: Send mail with subject "unsubscribe your_password"<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;to sane-devel-request@lists.alioth.debian.org<br>&gt;&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;<br>&gt;<br>&gt;<br><br><br><br>-- <br>"The truth is an offense, but not a sin"<br><br>--<br>sane-devel mailing list: sane-devel@lists.alioth.debian.org<br>http://lists.alioth.debian.org/mailman/listinfo/sane-devel<br>Unsubscribe: Send mail with subject "unsubscribe your_password"<br>             to sane-devel-request@lists.alioth.debian.org<br></jsmeix@suse.de></denis.prost@wanadoo.fr></blockquote></body></html>