Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 08/04/2009, à 13:55

macaroni7

Driver CanoScan 3200F expérimental

Bonjour,

Je suis comme un certain nombre de personnes en possession d'un scanner Canon, le Canoscan 3200f. Quelques posts trainent sur le forum, mais jamais de réponse, et rien ne marche. Il n'est pas supporté...

Cependant, j'ai fini par trouver un driver expérimental.

Etat de développement du driver cs3200f pour le Canoscan 3200f: http://www.sane-project.org/lists/sane- … #S-CS3200F

Bref, j'ai trouvé le dépot CVS de Sane, qui se trouve ici:  https://alioth.debian.org/scm/?group_id=30186
et j'ai cliqué sur "Télécharger l'archive quotidienne du dépôt CVS"

J'extrais le tar.gz ... et je vois dans "emplacement_du_dossier_extrait/experimental/cs3200f" un joli fichier .txt pour m'expliquer l'installation...

C'est là que tout se complique. Voila ce qui est donné dans le fichier .txt:

************************************************************************
* How to build
************************************************************************

Below some instructions of how to compile this in.
I do not provide this as a patch to SANE release
because of the pre-alpha experimental status.
Still, it can be compiled and run, with varying
success.
------------------------------------------------------
First, take the latest SANE back-ends from CVS, or any
1.0.17 release (I think any should work since cs3200f
does not depend on any recent patches).

I would recommend a directory structure
$SOMEDIR/sane-backends
$SOMEDIR/sandbox
if you have SANE already installed. The sandbox dir will
be used for installing the compiled backend instead of the
actual directories (like /usr/lib/sane etc.)

Then put the cs3200f files into
$SOMEDIR/sane-backends/backend
Put only c and h files. The links will be made automatically
in compilation phase.

In $SOMEDIR/sane-backends do
./configure --prefix=$SOMEDIR/sandbox BACKENDS="test cs3200f"

The test backend is not necessary but will show if your
compilation system works when you build it.

Now, in dir $SOMEDIR/sane-backends/backend you must add
to the Makefile the following lines
(e.g. before the line starting libsane-dc25.la: ...)
libsane-cs3200f.la: ../sanei/sanei_constrain_value.lo
libsane-cs3200f.la: ../sanei/sanei_thread.lo
libsane-cs3200f.la: ../sanei/sanei_usb.lo
libsane-cs3200f.la: ../sanei/sanei_access.lo
libsane-cs3200f.la: ../lib/md5.lo

Now in dir $SOMEDIR/sane-backends
do make and check that it works OK. E.g. in
$SOMEDIR/sane-backends do
make >make.log 2>&1
In make log there may be warnings but compilation
of cs3200f.c should give no warnings or errors. If
it does, drop me a note with log (compressed please :) ).
The make may end in error in makin sane.ps but that
do not worry about, that's just docs.

Then do make install and you should now have the
cs3200f libraries in $SOMEDIR/sandbox/lib/sane.

Now become a root and copy the cs3200f lib files
to /usr/lib/sane or where ever your xsane expects
the libs to be.

Then in /etc/sane.d (or wherever you find the dll.conf
for sane dll lib) add to the dll.conf line
cs3200f
and if you wish, uncomment test backend.

Now run xsane. You should have test backend and
cs3200f:dummy devices available (do not plugin the
scanner, if you plugin the scanner, the real one
instead of dummy you shall get). :)

Now, into directory $SOMEDIR/share/sane/cs3200f put
the firmware file cs3200f_v0054.fw you have
created. Instructions are given below.

Now, if you plug in the scanner and restart the xsane
you should actually be able to boot the sanner and
then moving the top left y cordinate will actually
move the scan head, and pressing the calibrate
now, will calibrate the AFE (that takes some time
if lamp is not warmed up). These are just for
testing the driver and thus do not reflect the
actual final functions of these controls.

Warning: if you hear strange noises from the scanner,
unplug the power adapter immediately. Then reset
the scanner with windows driver and check that it
still works OK. This "should" hot happen but
happened to me several times when figuring out the
command set.

If you suspect problems,
have the following env vars exported:
export SANE_DEBUG_CS3200F=255
export SANE_DEBUG_SANEI_USB=255
export SANE_DEBUG_SANEI_ACCESS=255
and start xsane from a command line like
xsane >xsane.log 2>&1

Send me the log, compressed, or try to figure out
where the problem is.

That should do it. If not, drop me a note.

************************************************************************
* On the firmware
************************************************************************

Now, there is one complication, that must be addressed
early. Like snapscan driver, this will also require
uploading the firmware to the scanner at the beginning.
While cross checking Windows logs (thanks to Mike
Evans) I found out that there are at least two versions
of the firmware out there. Some early CDs shipped with
the scanners contain firmware version 0052. The latest
(and presumably final one, since CanoScan 3200F is a
discontinued product) is version 0054 and that version
can be found in ScanGear version 8.5.1.1 which is available
from Canon www pages (either as 3200F8511WNEN.exe which
is a self extracting LHA package, for US and Japan, I guess,
or s3A0Benx.exe which is a self extracting ZIP file).
In the package there is a self extracting ZIP file
(installer) SetupSG.exe which contains the low level
DLL file CNQL1210.DLL. That file contains, as a binary file
resource, the needed firmware.

If you have CD version 1.03 or 1.04 that should contain
the correct version of the DLL, which is 1.0.3.0. Else
get your copy from the net.

In the first phase I will only support the version 0054
so anybody wanting to use the driver will need that
version of the firmware. To get it you have to get the
mentioned DLL and run the following perl script on it:
=====================================================
#!perl

use Digest::MD5 qw(md5_base64);

$start_address = 0x3a8c0;
$end_address = 0x44304;
$length = $end_address - $start_address;
$refmd5 = "/wyuQDxka5rgidwmcDedZA";

open FIN, "<CNQL1210.DLL";
binmode FIN;

sysseek FIN, 0x3a8c0, 0;

$res = sysread FIN, $fw, $length;

close FIN;

$md5 = md5_base64( $fw );
if ( $md5 ne $refmd5 ) {
    print "Did not find CanoScan 3200F firmware v0054\n";
    die;
}

open FOUT, ">cs3200f_v0054.fw";
binmode FOUT;

syswrite FOUT, $fw, $length;

close FOUT;
=====================================================

The resulting file cs3200f_v0054.fw will be needed
in order to the driver to work properly.

Désolé pour la longueur... sad

Voila tout ce que j'ai fait:
- j'ai copié les .h et .c dans "le dossier"/sane-backends/backend/
- j'ai tapé dans la console:

cd "le dossier"/sane-backend/
./configure --prefix="le dossier"/sandbox BACKENDS="test cs3200f"

- aucune erreur en sortie, juste un avertissement:

*** WARNING: SANE is already installed (version 1.1.0). The old
*** installation is at /usr/local while SANE will now be installed
*** at "le dossier"/sandbox. It is recommended to uninstall the old SANE version
*** before installing the new one to avoid problems.

- je modifies le makefile... c'est là que je ne sais pas si j'ai fait d'erreur:
(voila un morceau du makefile pour montrer où j'ai modifié, merci de me dire si c'est le bon endroit)

...
libsane-dc240.la: $(libsane_dc240_la_OBJECTS) $(libsane_dc240_la_DEPENDENCIES) 
	$(libsane_dc240_la_LINK)  $(libsane_dc240_la_OBJECTS) $(libsane_dc240_la_LIBADD) $(LIBS)
libsane-cs3200f.la: ../sanei/sanei_constrain_value.lo
libsane-cs3200f.la: ../sanei/sanei_thread.lo
libsane-cs3200f.la: ../sanei/sanei_usb.lo
libsane-cs3200f.la: ../sanei/sanei_access.lo
libsane-cs3200f.la: ../lib/md5.lo
libsane-dc25.la: $(libsane_dc25_la_OBJECTS) $(libsane_dc25_la_DEPENDENCIES) 
	$(libsane_dc25_la_LINK)  $(libsane_dc25_la_OBJECTS) $(libsane_dc25_la_LIBADD) $(LIBS)
...

bon on reconnait les 5 lignes supplémentaires au milieu... j'espère jste que c'est le bon endroit hmm

- je fais make, pas d'erreur, puis sudo make install
- je vais dans "le dossier"/sandbox/lib/sane , mais là ô surprise... je ne vois pas de librairies spécifiques à mon scanner, en gros je n'ai pas de fichier avec cs3200f dedans... (c'est peut-être moi qui me trompe...)

J'ai dans le dossier les fichiers: libsane-dll.la  libsane-dll.so.1 libsane-test.la  libsane-test.so.1
libsane-dll.so  libsane-dll.so.1.1.0  libsane-test.so  libsane-test.so.1.1.0

Bref un problème sérieux sur les bras, merci d'avance pour votre aide, merci d'avoir lu tout ça, et en espérant pouvoir proposer une méthode d'installation, même précaire, à ceux qui possèdent ce scanner! ^^

(have fun...:D)

Dernière modification par macaroni7 (Le 09/04/2009, à 14:43)

Hors ligne

#2 Le 10/04/2009, à 11:17

macaroni7

Re : Driver CanoScan 3200F expérimental

up sad

Hors ligne

#3 Le 10/04/2009, à 23:14

gilloutre

Re : Driver CanoScan 3200F expérimental

et ben je confirme pour la partie manipulation, j'ai suivi la procédure à la lettre et je n'ai pas non plus obtenu de fichiers concernant la CS3200f...

#4 Le 23/07/2011, à 19:41

firedog07

Re : Driver CanoScan 3200F expérimental

Bonjour,
je remet au gout du jours un vieux sujet, parce que j'ai moi même ce scanner 3200f et que la solution ne semble pas évidente.

Si oui, merci de me donner la procédure pour un pauvre débutant sur UBUNTU.
Si non, je vais remplacer la bête, et donc quelle marque fourni des scanners et imprimante avec des drivers Linux valables ?

D'avance merci pour l'une ou l'autre réponse wink

Hors ligne

#5 Le 25/07/2011, à 11:03

firedog07

Re : Driver CanoScan 3200F expérimental

up

pas de marque qui sort des scanner ou imprimantes avec des divers Linux dès la sortie du produits sad

Hors ligne

#6 Le 17/08/2011, à 14:38

pdalet

Re : Driver CanoScan 3200F expérimental

Bonjour,


1- je suis à la recherche des sources du scanner canoscan3200f de canon (sane). Ils n'existent plus sur le site sane depuis le passage de cvs à git.
    Quelqu'un aurait-il ces sources ?

philippe.dalet@ac-toulouse.fr

Philippe DALET

Hors ligne

#7 Le 28/07/2015, à 16:10

zerbinette

Re : Driver CanoScan 3200F expérimental

Bonjour,
je fais remonter le post.  Il est vieux, mais toujours d'actualité, en ce qui me concerne.

je viens de quitter un vieux windows big_smile sous lequel mon scan CanoScan 3200f fonctionnait bien.
Y a-t-il eu des nouveautés depuis 2011 en ce qui concerne des pilotes pour cet appareil ?
Honnêtement, j'ai cherché, mais étant plus que novice (limite analphabète) sous linux distribution Ubuntu, je ne comprends rien. tout ce que je lit me semble codé. hmm
Merci de votre aide.

Hors ligne