[sane-devel] Canon TR4529 (PIXMA TR4500 Series)

Jean-Marc Spaggiari jean-marc at spaggiari.org
Fri Feb 21 19:59:57 GMT 2020


Scanimage complains about sane_start: Invalid Argument.

(base) jmspaggi at precision5530:~/backends$ sudo ./frontend/scanimage -d
'escl:http://192.168.23.130:80'  -T
Output format is not set, using pnm as a default.
Capability : [image/jpeg]
Capability : [image/jpeg]
Capability : [image/jpeg]
Capability : [image/jpeg]
scanimage: rounded value of br-x from 0 to 0
scanimage: rounded value of br-y from 0 to 0
scanimage: sane_start: Invalid argument

I tried also by giving the --format and --output-file parameters without
any success :-/

Le ven. 21 févr. 2020 à 14:41, Thierry HUCAHRD <thierry at ordissimo.com> a
écrit :

> Le 2020-02-21 20:39, Thierry HUCAHRD a écrit :
> Hi
> The pixma backends for the Scanner TR-4500 series work only in USB for
> network use, you have to use the escl backend.
> Use the command below to force the use of the escl driver.
> # sudo ./frontend/scanimage -d 'escl:http://192.168.23.130:80'  -T
>
> >
> > Le 2020-02-21 20:26, Jean-Marc Spaggiari a écrit :
> >> So.
> >>
> >> I have cloned the backend repo:
> >> git clone https://gitlab.com/sane-project/backends.git
> >>
> >> Applied the patch (Changed 1200 to 600 and added the last param).
> >>
> >> And now I'm trying to follow the instructions there:
> >> https://help.ubuntu.com/community/CompileSaneFromSource
> >>
> >> running ./autogen.sh failes right from the beginning :( I prints
> >> thousands of lines "patch: **** Can't create file ./ltmain.sh.orig :
> >> Too many open files" I increased my limit to 10k files, but I'm
> >> getting the exact same error. I tried to checkout the 1.0.29 but got
> >> the same error.
> >>
> >> after investigations it seems coming from the lack of autopoint.
> >> apt-get install solved it.
> >>
> >> I tried to run configure with this command:
> >> ./configure --prefix=/usr --libdir=/usr/lib/ --sysconfdir=/etc
> >> --localstatedir=/var  --enable-avahi
> >>
> >> But it failed:
> >> ./configure: line 14868: syntax error near unexpected token `noext,'
> >> ./configure: line 14868: `AX_CXX_COMPILE_STDCXX_11(noext, optional)'
> >>
> >> Running without any parameters gives the same result.
> >>
> >> some more investigations, seems that I was missing the
> >> autoconf-archive package. After installing it with apt-get, I was able
> >> to pass the configure.
> >> make also passed.
> >>
> >> So. I now have the master version build and make install worked too.
> >>
> >> I can see the scanner:
> >> sane-find-scanner => found USB scanner (vendor=0x04a9 [Canon],
> >> product=0x1854 [TR4500 series]) at libusb:001:005
> >>
> >> sudo scanimage -L:
> >>
> >> device `escl:https://192.168.23.104:443' is a ESCL EPSON XP-7100
> >> Series flatbed scanner
> >> device `escl:http://192.168.23.104:443' is a ESCL EPSON XP-7100 Series
> >> flatbed scanner
> >> device `escl:https://192.168.23.130:443' is a ESCL Canon TR4500 series
> >> flatbed scanner
> >> device `escl:http://192.168.23.130:80' is a ESCL Canon TR4500 series
> >> flatbed scanner
> >>
> >> At that point I un-plugged the Epson scanner from the USB port.
> >>
> >> Testing the scanners gives me this (And I was able to hear the Canon
> >> scanner moving):
> >> Output format is not set, using pnm as a default.
> >> scanimage: scanning image of size 637x877 pixels at 24 bits/pixel
> >> scanimage: acquiring RGB frame, 8 bits/sample
> >> scanimage: reading one scanline, 1911 bytes... PASS
> >> scanimage: reading one byte... PASS
> >> scanimage: stepped read, 2 bytes... PASS
> >> scanimage: stepped read, 4 bytes... PASS
> >> scanimage: stepped read, 8 bytes... PASS
> >> scanimage: stepped read, 16 bytes... PASS
> >> scanimage: stepped read, 32 bytes... PASS
> >> scanimage: stepped read, 64 bytes... PASS
> >> scanimage: stepped read, 128 bytes... PASS
> >> scanimage: stepped read, 256 bytes... PASS
> >> scanimage: stepped read, 512 bytes... PASS
> >> scanimage: stepped read, 1024 bytes... PASS
> >> scanimage: stepped read, 2048 bytes... PASS
> >> scanimage: stepped read, 2047 bytes... PASS
> >> scanimage: stepped read, 1023 bytes... PASS
> >> scanimage: stepped read, 511 bytes... PASS
> >> scanimage: stepped read, 255 bytes... PASS
> >> scanimage: stepped read, 127 bytes... PASS
> >> scanimage: stepped read, 63 bytes... PASS
> >> scanimage: stepped read, 31 bytes... PASS
> >> scanimage: stepped read, 15 bytes... PASS
> >> scanimage: stepped read, 7 bytes... PASS
> >> scanimage: stepped read, 3 bytes... PASS
> >>
> >> (The Espon scanner gives a 4096 bytes option)
> >>
> >> Using gscanpdf I can see the 2 scanners but only over the network.
> >> xscanimage also shows the 2 scanners but only over the network.
> >> xscanimage complains about the failure of loading the atk-bridge
> >> module. The usage of the preview button makes the application crash on
> >> "get_image_scale: p->surface_type == SANE_TYPE_INT. I'm not able to
> >> select 1200DPI on this application, but the 600 dpi option works. I'm
> >> not able to select the input of the scan.
> >>
> >> scanimage --all-options doesn't show 1200DPI but only 600DPI. I'm also
> >> not able to select the source for the paper.
> >>
> >> The version tells me this:
> >> scanimage (sane-backends) 1.0.29-189-g50f02fc3-dirty; backend version
> >> 1.0.27. I will have expected to see 1.0.29 instead of 1.0.27. so I
> >> have the feeling that I'm not pointing in the right place :-/
> >>
> >> Running ./frontend/scanimage --all-options gives the same resolution
> >> options, however it shows the option for the source (Automatic
> >> Document Feeder). And version shows 1.0.29.
> >>
> >> Scanning with frontend/scanimage and default option does not work so
> >> far. I keeps saying "Error during device I/O" what ever option I give.
> >> Scanning the the default scanimage works well, but of course it
> >> doesn't take the "source" parameter.
> >>
> >> (base) jmspaggi at precision5530:~/backends$ sudo ./frontend/scanimage -L
> >> device `pixma:04A91854_13B71E' is a CANON Canon PIXMA TR4500 Series
> >> multi-function peripheral
> >>
> >> (base) jmspaggi at precision5530:~/backends$ sudo ./frontend/scanimage -T
> >> Output format is not set, using pnm as a default.
> >> scanimage: scanning image of size 638x877 pixels at 24 bits/pixel
> >> scanimage: acquiring RGB frame, 8 bits/sample
> >> scanimage: reading one scanline, 1914 bytes... FAIL Error: Error
> >> during device I/O
> >>
> >> So. I don't know what to try next.
> >>
> >> Thanks,
> >>
> >> JMS
> >>
> >> Le ven. 14 févr. 2020 à 14:38, Jean-Marc Spaggiari
> >> <jean-marc at spaggiari.org> a écrit :
> >>
> >>> Sorry for the delay. Starting back on that. will keep you posted
> >>> shortly.
> >>>
> >>> JMS
> >>>
> >>> Le sam. 26 oct. 2019 à 08:38, Rolf Bensch <rolf at bensch-online.de> a
> >>> écrit :
> >>>
> >>>> Hi JMS,
> >>>>
> >>>> Please report if both, (1) 1200dpi scans and (2) scanning from
> >>>> document
> >>>> feeder are working. You scanner still is marked as "untested"
> >>>>
> >>> (http://www.sane-project.org/lists/sane-backends-cvs.html#S-PIXMA).
> >>>>
> >>>> I wouldn't use Ubuntu's deb packages for Debian. You need libjpeg
> >>>> if you
> >>>> e.g. want to save images as jpeg from scanimage. Please install
> >>>> from
> >>>> sources as described in INSTALL.linux
> >>>> (http://www.sane-project.org/docs.html).
> >>>>
> >>>> Many thanks for your help.
> >>>>
> >>>> Cheers,
> >>>> Rolf
> >>>>
> >>>> Am 25.10.19 um 14:27 schrieb Jean-Marc Spaggiari:
> >>>>> Hi Rolf,
> >>>>>
> >>>>> I tried to install the packages on Debian, but they have a
> >>>> dependency
> >>>>> on libjpeg8, which is not available on Debian. And libjpeg8 has
> >>>> a
> >>>>> dependency on libjpeg-turbo8. Not available on Debian neither.
> >>>>>
> >>>>> I installed on Ubuntu packages from Bionic version and ran
> >>>> gscanpdf and
> >>>>> so far everything seems to be working! Happy.
> >>>>>
> >>>>> Thanks for your guidance! Looking forward to get Debian
> >>>> upgrading the
> >>>>> libsane package to a more recent version!
> >>>>>
> >>>>> JMS
> >>>>>
> >>>>> Le mer. 25 sept. 2019 à 15:41, Rolf Bensch
> >>>> <rolf at bensch-online.de
> >>>>> <mailto:rolf at bensch-online.de>> a écrit :
> >>>>>
> >>>>> Hi JMS,
> >>>>>
> >>>>> Sorry, I was confused with the numbers. SANE 1.0.28 is the
> >>>> recent
> >>>>> version you need.
> >>>>>
> >>>>> Hope this helps.
> >>>>>
> >>>>> Cheers,
> >>>>> Rolf
> >>>>>
> >>>>>
> >>>>> Am 13.09.19 um 01:11 schrieb Jean-Marc Spaggiari:
> >>>>>> Hi Rolf,
> >>>>>>
> >>>>>> I'm running straight Debian and it seems that availble
> >>>> version is
> >>>>>> 1.0.27. The Ubuntu link you sent shows 1.0.28. I searched
> >>>> on Debian
> >>>>>> Packaged and they don't seems to have something more
> >>>> recent :-/
> >>>>>>
> >>>>>> Any idea where I can find it? Else I will just build from
> >>>> the sources.
> >>>>>>
> >>>>>> Thanks,
> >>>>>>
> >>>>>> JMS
> >>>>>>
> >>>>>> Le jeu. 12 sept. 2019 à 16:26, Rolf Bensch
> >>>> <rolf at bensch-online.de
> >>>>> <mailto:rolf at bensch-online.de>
> >>>>>> <mailto:rolf at bensch-online.de
> >>>> <mailto:rolf at bensch-online.de>>> a
> >>>>> écrit :
> >>>>>>
> >>>>>> Hi JMS,
> >>>>>>
> >>>>>> What SANE version is installen on your system? You
> >>>> need
> >>>>> version 1.0.29.
> >>>>>>
> >>>>>> If you're using Ubuntu or an Ubuntu clone, you can use
> >>>> my ppa to
> >>>>>> update SANE:
> >>>>>>
> >>>> https://launchpad.net/~rolfbensch/+archive/ubuntu/sane-git .
> >>>>>>
> >>>>>> If you have another Linux OS, please install SANE as
> >>>> described in
> >>>>>> INSTALL.linux (http://www.sane-project.org/docs.html).
> >>>>>>
> >>>>>> Please try to scan all dpi resolutions and after this
> >>>> the document
> >>>>>> feeder.
> >>>>>>
> >>>>>> Hope this helps.
> >>>>>>
> >>>>>> Cheers,
> >>>>>> Rolf
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> Am 27.08.19 um 15:29 schrieb Jean-Marc Spaggiari:
> >>>>>>> Hi,
> >>>>>>>
> >>>>>>> I'm trying to get a Canon TR4529 work with Sane
> >>>> without any
> >>>>>>> success. The support page said testers are needed.
> >>>> Here am I ;)
> >>>>>>>
> >>>>>>> http://www.sane-project.org/sane-mfgs.html#Z-CANON
> >>>>>>>
> >>>>>>> Scanner works well with scangearmp2.
> >>>>>>> sane-find-scanner can find it: found USB scanner
> >>>> (vendor=0x04a9
> >>>>>>> [Canon], product=0x1854 [TR4500 series]) at
> >>>> libusb:001:006
> >>>>>>>
> >>>>>>> But scanimage doesn't return anything:
> >>>>>>> $ ./frontend/scanimage -L
> >>>>>>>
> >>>>>>> No scanners were identified. If you were expecting
> >>>> something
> >>>>>>> different,
> >>>>>>> check that the scanner is plugged in, turned on and
> >>>> detected
> >>>>> by the
> >>>>>>> sane-find-scanner tool (if appropriate). Please read
> >>>> the
> >>>>> documentation
> >>>>>>> which came with this software (README, FAQ,
> >>>> manpages).
> >>>>>>>
> >>>>>>> I have downloaded the last snapshot and built from
> >>>> there.
> >>>>>>> 1008  27/08/2019 09:06:12 ./configure
> >>>>>>> 1009  27/08/2019 09:06:37 make
> >>>>>>> 1013  27/08/2019 09:11:15 ./tools/sane-find-scanner
> >>>>>>> 1016  27/08/2019 09:11:37 ./frontend/scanimage -L
> >>>>>>>
> >>>>>>> From documentation it says:
> >>>>>>> The  device  name  for  USB devices is in the form
> >>>>> pixma:xxxxyyyy_zzzzz
> >>>>>>> where x, y and z are vendor ID, product ID and
> >>>> serial
> >>>>> number  respec‐
> >>>>>>> tively.
> >>>>>>>
> >>>>>>> So I tried:
> >>>>>>> scanimage --device-name="pixma:04A91854_22811"
> >>>>>>>
> >>>>>>> But I don't know what is the serial number. I took
> >>>> the one from
> >>>>>>> the printer, but doesn't work.
> >>>>>>>
> >>>>>>> Can someone please provide some guidance on how I can
> >>>> make
> >>>>> process
> >>>>>>> and how to help with the testing?
> >>>>>>>
> >>>>>>> Thanks,
> >>>>>>>
> >>>>>>> JMS
> >>>>>>>
> >>>>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20200221/9d3c2358/attachment-0001.html>


More information about the sane-devel mailing list