Jeffrey Ratcliffe | 18 May 2013 23:18
Picon

scanimage and option titles

GUIs often either use the SANE API directly, or control a scanner by
wrapping scanimage.

Generally, there is no advantage in using scanimage, as it is slower,
but in certain situations, for instance remote access, it is not
possible to use the SANE API directly. Also, debugging a backend
problem is much easier with scanimage.

The major visual difference for the user in these two interface
methods, is that, apart from groups, scanimage does not expose the
option titles. As the option names are not translated, a GUI therefore
cannot use the sane-backend translations and has to use its own.

This could all be avoided if scanimage were to expose the option
titles. The translations from sane-backends could be used, and the two
interface methods would look the same.

I therefore propose an additional option for scanimage that exposes
the option title in the --help output.

Is a patch for scanimage along these lines likely to be accepted?

Regards,

Jeff

--

-- 
sane-devel mailing list: sane-devel <at> lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
(Continue reading)

dfriberg23 | 18 May 2013 04:38
Picon

iX500 multiple pages

I got my iX500 to work with the latest git snapshot of sane-backend. 
However, when I load 3 papers into the scanner, and run this:

SANE_DEBUG_FUJITSU=15 scanimage -d fujitsu --format=tiff --resolution=300 >
foo.tif 2> log.txt

The first 2 pages get sucked through, and about a fourth of the third page,
but only the first page is written to foo.tif.  Is there a way to control
the number of pages it brings through, or do we not know how to do that yet?

--
View this message in context: http://sane.10972.n7.nabble.com/iX500-multiple-pages-tp17570.html
Sent from the SANE - Dev mailing list archive at Nabble.com.

--

-- 
sane-devel mailing list: sane-devel <at> lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
             to sane-devel-request <at> lists.alioth.debian.org

Tim | 16 May 2013 22:25
Favicon

canon MX892 scan test OK

Canon MX892 (US model), works

tested:
150/300/600 dpi scans of an IT8 camera target using xsane front end over 
802.11g, auto discovery

not tested:
USB / Ethernet

backend:
git clone as of today (16 May), no changes.

related software:
xsane 0.998
cnijfilter-mx890series-3.70-1.x86_64 from canon-asia
cnijfilter-common-3.70-1.x86_64 from canon-asia
cups-bjnp-1.2.1-x86_64-1_SBo from slackbuilds.org
2.6.37.6c (tim <at> hp_lap) (gcc version 4.5.2 (GCC) ) #8 SMP
Slackware 13.37, x86_64

environment:
PIXMA_EXPERIMENT=1
SANE_DEBUG_PIXMA=11

scanimage -L:
> [sanei_debug] Setting debug level of pixma to 11.
> [pixma] pixma is compiled without pthread support.
> [pixma] pixma version 0.17.2
> [pixma] Scanner model found: Name MX890(Canon PIXMA MX890 Series) matches MX890 series
> [pixma] pixma_collect_devices() found Canon PIXMA MX890 Series at bjnp://canon:8612
(Continue reading)

Tiago Zaniquelli | 16 May 2013 22:08
Picon

start

Hello,

I am begining with the development the scanner driver.

I have seen these files and directories:

/etc/sane.d/dll.conf /usr/lib/sane/
How does Sane work ? 

Exist a flowchar of working?
I haven´t found in the documentation.
Best Regards,
Tiago Zaniquelli
--

-- 
sane-devel mailing list: sane-devel <at> lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
             to sane-devel-request <at> lists.alioth.debian.org
Stef | 16 May 2013 21:29
Picon
Favicon

Re: Canon Lide 110 driver hangs under kernel 3.2

On 15/05/2013 22:23, Adolf Szabo wrote:
Hi,

I used this link, now I have 1.0.24 backend installed, and it got worse: original problem remained, but now I got this:

aszabo <at> mepc:/tmp$ scanimage --format=tiff --mode=Color --resolution 300 > a.tiff
scanimage: unrecognized option '--format=tiff'

aszabo <at> mepc:/tmp$ scanimage -V
scanimage (sane-backends) 1.0.22; backend version 1.0.24

I would start from the fact that this scanner did work well for a year or so (even with this old backend), then all of a sudden it started misbehaving. Question is what caused it?

Thx, Dolfy

    Hello,

    I think the version you use was compiled without tiff support. Don't use the --format option, then you'll have a pnm file that you will be able to transform to tiff (with ppm2tiff for instance). Check you can scan several pages, to see if SANE update fixes your problem.
    Telling what went wrong is hard. It could be from kernel, changing form libusb to libusb-1.0 to backend itself. Most probably a libusb change is the cause, making the backend exhibit a bug.

Regards,
    Stef

On Wed, May 15, 2013 at 10:03 PM, Stef <stef.dev <at> free.fr> wrote:
On 15/05/2013 21:51, Adolf Szabo wrote:
Hi Stef,

It is not so easy to install a newer version as Ubuntu 12.04 comes with 1.0.22 and there are tons of dependencies too. Can you please identify what went wrong with the current version? Earlier scanning went smoothly, then after a regular software update it stopped working well. I believe it was because of a kernel upgrade, but cannot tell for sure.

Thx


    Hello,

    1.0.22 is old. Many fixes for the genesys backend were part of 1.0.23 release. They are outlined in Changelog-1.0.23 (in SANE's source tree). And they are quite numerous.
    You may consider compile it by yourself if you are afraid of the dependencies. But I would be surprised that they are that much dependencies, and in this mailing list Rolf Bensch announced last month a PPA tracking current source code:

https://launchpad.net/~rolfbensch/+archive/sane-git

I'm sure you can find something to install that doesn't pull in that many changes.

Regards,
    Stef


--

-- 
sane-devel mailing list: sane-devel <at> lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
             to sane-devel-request <at> lists.alioth.debian.org
Stef | 16 May 2013 21:21
Picon
Favicon

Re: Looking to get my Mustek A3 1200S flatbed Scanner with GL128 chip working with XSANE

On 16/05/2013 16:27, Aaron Silver wrote:
Thank you for responding so quickly! 

My main desktop is a Windows 7 machine, so usbsniff, and SnoopyPro and such haven't worked for me. I did get USBLyzer working, and I can make the log files from that available. 

Since the file is 13M I figured I'd make it available for you to download:

https://docs.google.com/file/d/0BzGkOUvLpLAEUndRc3RJT0NWNmM/edit?usp=sharing

I had the scanner unplugged from the USB port, I started the log, I plugged in the scanner, then initiated a full color preview, and then stopped the log.

Any more questions please feel free to ask, and thank you very much for any help you can provide!

Aaron Silver


    Hello,

    I have downloaded the file. I don't know what I can extract from it, since it is a format my dev scripts don't handle. It'll take me quite some time to figure out something.

Regards,
    Stef

On Wed, May 15, 2013 at 3:38 PM, Stef <stef.dev <at> free.fr> wrote:
On 15/05/2013 00:54, Aaron Silver wrote:
I've got a Mustek A3 1200S flatbed scanner that I'd like to use with XSANE. The sane-find-scanner reported the USB ID as 0x055f and the Device ID as 0x0502. It thought the scanner had a GL848+ chip, but when I opened the case I see a chip with GL128 stamped on it.

I had USBlyzer listen while I did a couple of scans (one full A3 size, and one of the lower half of the page), but I don't know what the next step is or how to take it. If someone can walk me through it I'd be happy to do as much of the work as I can, but I'm also willing (and some would say very able) to play dumb monkey and feed someone knowledgeable the information they ask for.

Thanks in advance,

Aaron Silver





    Hello,

    I can't find the datasheet for this chip, so I can't really tell how different it is from already supported genesys chip. But even with the datasheet, it is not convenient to develop without a test scanner. A few seconds test can turn in a few hours (even days) long, because of getting code changes applied remotely, then executed and getting debug information back. Programming for these scanner involve quite a lot of trial and error, even if you have the datasheet.

    However, you can still post an usb snoop log of a color preview scan, just to get some idea on how this scanner work.

Regards,
    Stef




--

-- 
sane-devel mailing list: sane-devel <at> lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
             to sane-devel-request <at> lists.alioth.debian.org
Alex | 16 May 2013 20:18
Picon
Gravatar

HP OfficeJet 6700 ADF Problems

I apologize if this is the wrong place to ask, but I have run into a
couple of problems scanning from my HP OfficeJet 6700's ADF. The flatbed
scanner works perfectly and as expected, though. I'm running x86_64
Gentoo using sane-backends 1.0.23 and hplip 3.13.4 built with scanner
support.

I'm not really entirely sure what's going on with it, but when I use
scanimage like this:

scanimage -d 'hpaio:/usb/Officejet_6700?serial=[SERIAL]' --format=tiff
-p -v--source ADF --mode Color --resolution 300 -x 215.9 -y 279 -b
--batch-start=1 --batch-count=4

it feeds the documents and scans them each to out1.tif, out2.tif,
out3.tif, out4.tif just as expected. The progress percentage, however,
stops at some percentage before it moves on to the next page or
finishes. This percentage varies, and depends a bit on the -y argument.
If I leave it at the default (which I think is A4 sized), it'll stop at
about 75% for each page. If I have it at 279, for US letter sized, it'll
stop around 90%.

The files open fine in EOG (Eye of GNOME), but everything below the end
of the physical page is the transparent checkerboard. Additionally,
tiffinfo complains about a '"Bogus StripByteCounts" field'.

These would be fine if it worked in everything else, but if I run it
through graphicsmagick to convert it, like "gm convert out1.tif
out1.png", it complains "gm convert: Read error at scanline 3247; got 0
bytes, expected 7602. (TIFFFillStrip)." and doesn't create out1.png. If
I run it through imagemagick like "convert out1.tif out1.png", it complains:

convert: Bogus "StripByteCounts" field, ignoring and calculating from
imagelength. `TIFFReadDirectory'  <at>  warning/tiff.c/TIFFWarnings/820.
convert: Read error at scanline 3248; got 0 bytes, expected 7602.
`TIFFFillStrip'  <at>  error/tiff.c/TIFFErrors/560.

though it replaces the transparent part with black, or sometimes white
with a few black vertical lines through it.

If I try to run the same thing, with the -y decreased well below page
length, like at 100, the scanner audibly stops scanning half way through
the page and finishes sending the page through the ADF, though scanimage
says it "read more data than announced by backend". The .tif's made like
this open fine, with no transparent sections, and no errors or warnings
from imagemagick or graphicsmagick.

If I run it with SANE_DEBUG_HPAIO=50, the sane_hpaio_read() bytes_read=0
status=5, though it seems to do this with the small and regular -y values.

If I use --format=pnm, then in EOG below the page is black, gm convert
complains "gm convert: Unexpected end-of-file (out1.pnm).", and convert
complains:

convert: unable to read image data `out1.pnm'  <at> 
error/pnm.c/ReadPNMImage/899.
convert: no images defined `out1.png'  <at> 
error/convert.c/ConvertImageCommand/3044.

and doesn't create out1.png.

So, what I'm thinking is that the Officejet 6700 stops scanning a page
going through the ADF when it reaches the end of the page, and stops
sending any image data at that point. I'm guessing that scanimage
doesn't just fill any remaining space it expects because of -y with
white or black or anything and just writes out the file as it is, with
the expected remainder of the file missing, as far as other programs are
concerned.

Additionally, though less important, and likely due to how the scanner
actually works, if I use --batch-count and set it to less than the
number of pages in the ADF, the ADF will continue and feed all pages
through the scanner, though it is easy to see that due to their speed
and the sounds, it doesn't actually scan them.

Anyway, does anyone know of anyway to fix this problem, because I have
to scan a few thousand pages over the next few weeks into several pdfs,
and I'd like to write a bash script to sort-of automate a lot of it.

Thanks,
Alex

--

-- 
sane-devel mailing list: sane-devel <at> lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
             to sane-devel-request <at> lists.alioth.debian.org
Amit Ramon | 16 May 2013 10:25
Picon

resolution problem with HP 4400c

Hello,

I've got a HP scanjet 4400c, and I'm trying to scan with xsane and
xscanimage on Debian.

When I scan at 75 DPI all is fine, with either color or
grayscale. However, whenever I try to scan at a higher resolution I
get an image which is all solid color, some shade of gray.

Any ideas?

Thanks,

Amit

-- 

--

-- 
sane-devel mailing list: sane-devel <at> lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
             to sane-devel-request <at> lists.alioth.debian.org

Stef | 15 May 2013 21:29
Picon
Favicon

Re: Canon Lide 110 driver hangs under kernel 3.2

On 15/05/2013 21:25, Adolf Szabo wrote:
> Hi Stef,
>
> Please find attached a script log. I use scanimage, have no xsane 
> installed at all: same scan issued twice. First is OK, second fails.
>
> Thx, Dolfy
>
>
     Thanks,

     from the log file I see you are running SANE 1.0.22. Try with the 
latest release 1.0.23, which contains improvements for the genesys 
backend. I think there are also PPA tracking current development tree, 
it should also worth trying.

Regards,
     Stef

--

-- 
sane-devel mailing list: sane-devel <at> lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
             to sane-devel-request <at> lists.alioth.debian.org

Adolf Szabo | 15 May 2013 17:56
Picon

Canon Lide 110 driver hangs under kernel 3.2

Hi All,

So far I used Canon Lide 110 fine, but after a kernel update it started not working. Symptoms are: scanning first page works, scanning second page does not work. Unplugging then re-plugging and it is working again. So in effect I need to disconnect and reconnect after every page.

Before first page lsusb says:
Bus 003 Device 002: ID 04a9:1909 Canon, Inc. CanoScan LiDE 110

scanimage -L says:
device `genesys:libusb:003:002' is a Canon LiDE 110 flatbed scanner

after first page neither are showing my scanner.

kernel version:
3.2.0-41-generic #66-Ubuntu SMP Thu Apr 25 03:27:11 UTC 2013

Please advise,
Thx, Dolfy

--

-- 
sane-devel mailing list: sane-devel <at> lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
             to sane-devel-request <at> lists.alioth.debian.org
Aaron Silver | 15 May 2013 00:54
Picon

Looking to get my Mustek A3 1200S flatbed Scanner with GL128 chip working with XSANE

I've got a Mustek A3 1200S flatbed scanner that I'd like to use with XSANE. The sane-find-scanner reported the USB ID as 0x055f and the Device ID as 0x0502. It thought the scanner had a GL848+ chip, but when I opened the case I see a chip with GL128 stamped on it.

I had USBlyzer listen while I did a couple of scans (one full A3 size, and one of the lower half of the page), but I don't know what the next step is or how to take it. If someone can walk me through it I'd be happy to do as much of the work as I can, but I'm also willing (and some would say very able) to play dumb monkey and feed someone knowledgeable the information they ask for.

Thanks in advance,

Aaron Silver



--

-- 
sane-devel mailing list: sane-devel <at> lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
             to sane-devel-request <at> lists.alioth.debian.org

Gmane