[sane-devel] plustek libusb = I/O errors

2005-06-27 Thread Aurelien Jarno
Mathis Ahrens a écrit :
 Hi list,
Hi Mathis !

[snip]

 $ scanimage -T
 scanimage: sane_start: Error during device I/O
 
 Debug output follows at the end of this mail. I seem to have some
 UIO errors and finally usbDev_open() fails.

Could you please run 'SANE_DEBUG=255 USB_DEBUG=255 scanimage -T' and 
send us the debug output?

Bye,
Aurelien

-- 
   .''`.  Aurelien Jarno| GPG: 1024D/F1BCDB73
  : :' :  Debian GNU/Linux developer | Electrical Engineer
  `. `'   aure...@debian.org | aurel...@aurel32.net
`-people.debian.org/~aurel32 | www.aurel32.net



[sane-devel] Back-end for CanoScan 3200F?

2005-06-27 Thread Gerald Murray
Quoting Lauri Pirttiaho lauri.pirtti...@luukku.com:

 Hello,
=20
 A while back there was some discussion about the back-end
 for CanoScan 3200F, a currently unsupported scanner.
 I would like to know if someone is actively working on
 this scanner. Also if anyone has definitive information
 about the on-board controller ASIC, I would be very
 thankful. Especially if someone has soldered open
 the EMI shield of the controller board, I would like
 to hear what is there beneath.

The genesys backend gl841 MAY be the closest to what=20
you are describing here, but some details you mention
show small variance from the gl841.  The backend for the
gl841 probably best described as an early start, or a stalled
project.  The project remains blocked due to access to the=20
registers, and unknown vendor read/write commands.  From my
tests on Canon LiDE 35 that scanner NAKs every attempt I have
tried so far. =20

 What I know so-far is that the suspected chip is some
 of the SQ chips and that there is on-board MCS51
 micro controller (MCU), either built-in to the controller
 ASIC or as a separate chip.
=20
 From analyzing the USB traffic in Windows XP I have
 already deduced the working boot procedure, some scan
 head control commands and partial procedure to make a
 full plate scan.
=20
 The controlling procedure involves three types of=20
 control commands. There are direct writes to/reads from
 the external memory space of the MCU, some high addresses
 of which seem to be memory mapped peripherals.
 These are the single byte vendor write and read requests
 0x0c (read) and 0x04 (write) to wValue 0x00e1 (read)
 and 0x00e0 (write) with the address at wIndex.

Providing details on what went down the usb bus would=20
certainly help.  The log from a scan may provide some clues
to what is currently unknown.  It would also be helpful is
someone with a Canon LiDE 35 could post a log so that more
information would become available to that project.

 Then there are command with varying values and
 indices of varying length (some of which have easy
 to find uses (like write to value 0x0071 index 0 which=20
 homes the scan head, read form value 0x0040 index 0
 which returns some status information like whether
 the scan head is moving and if it is at home position,

My read of the gl841 registers show that the home position
sensor would be in register 0x0041

 values 0x0023 and 0x0024 index 0 which move the

Here the gl841 seems to show register 0x0022 and 0x0023
for this, probably.

 scan head forward and backward by given length etc.)
 Some are not so easy to deduce.
 Third type of command is upload of several blocks
 of data to the external memory space of the MCU
 (at address 0xdd00) which seem to contain various
 masking, ramping etc. data details of which is
 unknown to me but which directly affects e.g. whether
 the scan comes out as all black or something visible
 and also seems to affect the motor operation.

The logs that would show data being written to the address
of a MPU are of interest, as the gl841 still has some=20
unknown problems that stall that backend.
=20
 If anyone can deduce from the description above more
 about the on-board controller, I would like to hear.
=20
 I am in process of preparing a more detailed collection
 of my findings, but if there is already a project to
 make the back-end for this scanner, I would like
 to submit the findings to that common pool.


I hope you will keep this list informed of your effort.
The genesys gl646 portion of the genesys backend has been mentioned
as ready, but the other gl841 is positively not ready to be included
in the sane CVS.  I think the gl646 could use more testing.  The project
can be accessed in the sane CVS, co experimental.

=20
 With best regards,
=20
 Lauri Pirttiaho
 Oulu
 Finland
=20

Thanks for your news.  Good luck with your efforts.

Gerald=20
--=20





[sane-devel] Back-end for CanoScan 3200F?

2005-06-27 Thread Werner Macho
hi!

 The genesys backend gl841 MAY be the closest to what 
 you are describing here, but some details you mention
 show small variance from the gl841.  The backend for the
 gl841 probably best described as an early start, or a stalled
 project.  The project remains blocked due to access to the 
 registers, and unknown vendor read/write commands.  From my
 tests on Canon LiDE 35 that scanner NAKs every attempt I have
 tried so far.  

 Providing details on what went down the usb bus would 
 certainly help.  The log from a scan may provide some clues
 to what is currently unknown.  It would also be helpful is
 someone with a Canon LiDE 35 could post a log so that more
 information would become available to that project.

i'm a proud owner of a LiDE35, if you tell me what kind of scan you
need i'll do it and post the logfile.
shall there be any test-picture scanned or is equal which picture is
been scanned?
also which dpi should i scan?

i hope that someone is able to write a backend cause i'm not a C
programmer but i would certainly do anything else to push this project
forward.

regards

werner




[sane-devel] plustek_pp scanner + sarge

2005-06-27 Thread Gerhard Jaeger
Hi,

On Thursday 23 June 2005 07:18, mic...@yahoo.com wrote:
 I'm having trouble getting a Plustek 4831P scanner to work with sarge.
 There's an Epson printer daisy-chained off the scanner which works with
 CUPS. Both worked with Redhat 7.3.
 
 Any help would be appreciated - I've run out of ideas.
 
 conf files, debugs, etc:
 
 mick@dell933 $ dmesg|grep parport
 parport: PnPBIOS parport detected.
 parport0: PC-style at 0x378 (0x778), irq 7, using FIFO 
 [PCSPP,TRISTATE,COMPAT,EPP,ECP]

-- ECP could be a problem, but let's see.

 parport0: Printer, EPSON Stylus COLOR 460
 lp0: using parport0 (interrupt-driven).

-- daisy-chaining might also be a problem...

But assuming, that this all worked for you in with RH7.3 it should be
okay.

 --
 mick@dell933 $ 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).
 -
 root@dell933: scanimage -L
 device `plustek_pp:parport0' is a Plustek 600P/6000P parallel port flatbed 
 scanner

Okay - so there is your problem! The access rights need to be tweaked for the 
parallel
port device.
Check 
ls -l /dev/parport*

you should have something like:
crw-rw-rw-1 root root  99,   0 2003-10-02 22:46 /dev/parport0

[SNIPSNAP]

Hope this helps
Gerhard




[sane-devel] Back-end for CanoScan 3200F?

2005-06-27 Thread gmur...@cloudnet.com
Quoting Werner Macho ma...@mond.at:
=20
  Providing details on what went down the usb bus would=20
  certainly help.  The log from a scan may provide some clues
  to what is currently unknown.  It would also be helpful is
  someone with a Canon LiDE 35 could post a log so that more
  information would become available to that project.
=20
 i'm a proud owner of a LiDE35, if you tell me what kind of scan you
 need i'll do it and post the logfile.
 shall there be any test-picture scanned or is equal which picture is
 been scanned?
 also which dpi should i scan?
=20
I am not an expert in this area, as I have not used usbsnoopy.  That=20
is one of the programs that intercept data between the host and the=20
device.  It is in the sane CVS, co experimental.=20
Two scans of the same image would be more helpful.  What I am looking
for is to identify the vendor commands that set register values. =20
I have not been able to identify a vendor write or vendor read command ye=
t.
A greyscale 8-bit depth and a color at 16 bits would be excellent.
Any image should do to get further progress on this backend.
The smallest scan image would be best, as only 1 square centimeter is=20
needed for what I am seeking.

The gl841 chip has two bulk endpoints, and I will be looking for log=20
information that would tell me whether any commands were sent down the
bulk out pipe.
I will try to get the snoopy program working here so that I can
find out how to use that tool.
=20
Thanks for your encouraging response.

Gerald
 regards
=20
 werner


--=20





[sane-devel] Genesys gl841

2005-06-27 Thread Pierre
Hi

I am owner of a Canon LiDE 35. I created a program which is able to scan
a whole page at 600dpi, 8bit color using libusb. It does calibration of
led-timings and shading. I tried to use the minimal set of registers.
The order of gpio settings on initialization is important, the scanner
locks up/resets if done wrong.

Here is the program:
http://www.pirsoft-dsl-dropzone.de/canon-lide35.tbz2
(Partly) based on this log:
http://www.pirsoft-dsl-dropzone.de/usbsnoop.log.bz2

Hope it helps
Pierre Willenbrock



[sane-devel] Genesys gl841

2005-06-27 Thread Jens Luedicke
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi!

Your tool works fine with my Canon LiDE 50!

Thanks s much for your work!

Jens

Pierre wrote:
 Hi
 
 I am owner of a Canon LiDE 35. I created a program which is able to scan
 a whole page at 600dpi, 8bit color using libusb. It does calibration of
 led-timings and shading. I tried to use the minimal set of registers.
 The order of gpio settings on initialization is important, the scanner
 locks up/resets if done wrong.
 
 Here is the program:
 http://www.pirsoft-dsl-dropzone.de/canon-lide35.tbz2
 (Partly) based on this log:
 http://www.pirsoft-dsl-dropzone.de/usbsnoop.log.bz2
 
 Hope it helps
 Pierre Willenbrock
 


- --
Jens Luedicke
web: http://perldude.de

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCv9ERiCvkc4H0gTERAvrdAKC/Zt00c3MOvoT6n8t5Qt+HecRZ9ACfRNki
+Pp2dYk8saLmwbbzimMuLmk=
=Wkrt
-END PGP SIGNATURE-



[sane-devel] Packard-Bell Diamond 1200 Plus problem

2005-06-27 Thread Jukka-Pekka Kervinen
Hi,

I downloaded and compiled GT68xx 1.0-70 and now 
everything works perfectly (1.1.15 SANE 
backend contains GT68xx v. 1.0-66 ?...) ! Still using 
stable 1.1.15, not latest development version.
 

Thanks very much !


Best,

Jukka



Message: 6
Date: Fri, 24 Jun 2005 17:30:46 +0200
From: Henning Meier-Geinitz henn...@meier-geinitz.de
To: sane-devel@lists.alioth.debian.org
Subject: Re: [sane-devel] Packard-Bell Diamond 1200 Plus problem

Hi,

On Thu, Jun 23, 2005 at 08:20:17PM -0700, Jukka-Pekka Kervinen wrote:
 I have same problem with Packard-Bell Diamond 1200 Plus, scanning
 whole page with lower resolutions (50 in Color,50-75 with Gray),
 but only half-page (X-axis) with higher resolutions. My backend
 is 1.0.15, here is the output of sane-find-scanner:


 found USB scanner (vendor=0x055f, product=0x021b [USB Scanner],
chip=GT-6816) at libusb:001:009

Ok, this is the new version of that scanner. Have you also tried
the
latest development version of SANE?

Bye,
  Henning





[sane-devel] Genesys gl841

2005-06-27 Thread Werner Macho
hi!
 Your tool works fine with my Canon LiDE 50!
 
 Thanks s much for your work!

i can only agree - works find .. i guess that should be a start point
for further gl841 improvements ;)

thx a lot for that fine work .. 

currently i'm trying to scan some test images as requested and will post
them later this day!

regards

werner




[sane-devel] Genesys gl841

2005-06-27 Thread Jens Luedicke
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi!

I made some scans with your tool and uploaded the results to Flickr:

http://flickr.com/photos/perldude/21875262/
http://flickr.com/photos/perldude/21876018/
http://flickr.com/photos/perldude/21876019/


Pierre wrote:
 Hi
 
 I am owner of a Canon LiDE 35. I created a program which is able to scan
 a whole page at 600dpi, 8bit color using libusb. It does calibration of
 led-timings and shading. I tried to use the minimal set of registers.
 The order of gpio settings on initialization is important, the scanner
 locks up/resets if done wrong.
 
 Here is the program:
 http://www.pirsoft-dsl-dropzone.de/canon-lide35.tbz2
 (Partly) based on this log:
 http://www.pirsoft-dsl-dropzone.de/usbsnoop.log.bz2
 
 Hope it helps
 Pierre Willenbrock
 


- --
Jens Luedicke
web: http://perldude.de

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCv+OViCvkc4H0gTERAg5aAJ4xhcwk19gzCN2SIzk0YqAe5FHkbgCdEYB+
a+xQll6Hhv6uxSNcdOCZpA0=
=C8m2
-END PGP SIGNATURE-



[sane-devel] Back-end for CanoScan 3200F?

2005-06-27 Thread Werner Macho
hi!
 Two scans of the same image would be more helpful.  What I am looking
 for is to identify the vendor commands that set register values.  
 I have not been able to identify a vendor write or vendor read command yet.
 A greyscale 8-bit depth and a color at 16 bits would be excellent.

i hope that i did everything right and snooped a scan of the same little
image in grey and color mode ..
i guess the reinitialisation of the scanner is also at the begining of
every logfile .. i'm quite impressed that the logfiles are so huge once
decompressed .. (14MB) pfff the image is about 1cm2 so there should be
nothing special about.

the snoopfiles (including the small image) are downloadable at 

http://iki.boku.ac.at/download/lide35

if i can do anything else just mail .. i'd really like to see this
scanner working with linux (and i think there are several ppl else out
there) ;)

regards

werner




[sane-devel] Batch Scanning.

2005-06-27 Thread m. allan noah
 The problem is, the backend gives an Invalid Option? message that
 prevents
 it from scanning when turning that feature on.

 I can send more verbose output if anyone is interested.

 Tyler.

 sorry tyler, i have not had a chance to even look at length detection. i


 have not a clue just what the scanner does when that is set.

 very little chance of it being simple :)



 what size are the finished documents after you scan? all of them 23
 inches
 long?

 allan

 Precisely :-)

 I'm assuming that SANE just does a loop until it reaches the scan area's
 boundary then starts the next sheet? (Or is that a function of scanadf?)

 Anyway, it'd be interesting to get this somehow shoehorned into
 sane-fujitsu.

actually, it is entirely the scanners fault, i quote from the beautifully 
translated interface manual for the 4097

If the length that is not within the physical length is specified, the 
data is padded with dummy data white for the number of bytest exceeding 
the physical length before it is transferred.

so you asked for 23 inches, you get 23.

from looking at the manual and the code (briefly), i think the backend 
gives the options for length detection, but does not actually implement 
the code needed to use it. can you give more debugging error info, so i 
can see how far it gets?

allan


 Tyler.


-- 
so don't tell us it can't be done, putting down what you don't know.
money isn't our god, integrity will free our souls - Max Cavalera



[sane-devel] Batch Scanning.

2005-06-27 Thread thardi...@bayfed.com
 

-Original Message-
From: m. allan noah
To: sane-devel@lists.alioth.debian.org
Sent: 6/27/05 6:46 AM
Subject: RE: [sane-devel] Batch Scanning.

 The problem is, the backend gives an Invalid Option? message that
 prevents
 it from scanning when turning that feature on.

 I can send more verbose output if anyone is interested.

 Tyler.

 sorry tyler, i have not had a chance to even look at length
detection. i


 have not a clue just what the scanner does when that is set.

 very little chance of it being simple :)



 what size are the finished documents after you scan? all of them 23
 inches
 long?

 allan

 Precisely :-)

 I'm assuming that SANE just does a loop until it reaches the scan
area's
 boundary then starts the next sheet? (Or is that a function of
scanadf?)

 Anyway, it'd be interesting to get this somehow shoehorned into
 sane-fujitsu.

actually, it is entirely the scanners fault, i quote from the
beautifully 
translated interface manual for the 4097

If the length that is not within the physical length is specified, the 
data is padded with dummy data white for the number of bytest exceeding 
the physical length before it is transferred.

so you asked for 23 inches, you get 23.

from looking at the manual and the code (briefly), i think the backend 
gives the options for length detection, but does not actually implement 
the code needed to use it. can you give more debugging error info, so i 
can see how far it gets?

allan


 Tyler.


I'm on vacation this week, and the scanner is at work. I'll supply debugging
output next week.

Thanks!

Tyler.



[sane-devel] scanimage: where's the _image_?

2005-06-27 Thread David Morse
I'm trying to write a script to scan from the scanner and print the
result to the printer.

scanimage looks like the command line way to scan an image.=20
Invoking it causes the scanner to scan, and it looks like this:

  % scanimage -d epson:/dev/usbscanner0=20
  P4
  # SANE data follows
  632 879

I can't see any file produced by this.  I've futzed around with the
manpage, and found reference to a '--filename' argument, but its not
supported in the device-specific options of my scanner.

So how do I get my hands on the image created by the scanning!

(xsane works fine, btw)



[sane-devel] scanimage: where's the _image_?

2005-06-27 Thread m. allan noah
uhm, this is unix.

scanimage --options  file.pnm

allan

On Mon, 27 Jun 2005, David Morse wrote:

 I'm trying to write a script to scan from the scanner and print the
 result to the printer.

 scanimage looks like the command line way to scan an image.
 Invoking it causes the scanner to scan, and it looks like this:

  % scanimage -d epson:/dev/usbscanner0
  P4
  # SANE data follows
  632 879

 I can't see any file produced by this.  I've futzed around with the
 manpage, and found reference to a '--filename' argument, but its not
 supported in the device-specific options of my scanner.

 So how do I get my hands on the image created by the scanning!

 (xsane works fine, btw)

 --
 sane-devel mailing list: sane-devel@lists.alioth.debian.org
 http://lists.alioth.debian.org/mailman/listinfo/sane-devel
 Unsubscribe: Send mail with subject unsubscribe your_password
 to sane-devel-requ...@lists.alioth.debian.org


-- 
so don't tell us it can't be done, putting down what you don't know.
money isn't our god, integrity will free our souls - Max Cavalera



[sane-devel] scanimage: where's the _image_?

2005-06-27 Thread Johannes Berg
--=-MxtQOQjlnYl8szCKY9r7
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Mon, 2005-06-27 at 11:38 -0400, David Morse wrote:

 scanimage looks like the command line way to scan an image.=20
 Invoking it causes the scanner to scan, and it looks like this:
=20
   % scanimage -d epson:/dev/usbscanner0=20
   P4
   # SANE data follows
   632 879
=20
 I can't see any file produced by this.  I've futzed around with the
 manpage, and found reference to a '--filename' argument, but its not
 supported in the device-specific options of my scanner.
=20
 So how do I get my hands on the image created by the scanning!

I think stdout is the image. Just pipe it into a file.

johannes

--=-MxtQOQjlnYl8szCKY9r7
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-BEGIN PGP SIGNATURE-
Comment: Johannes Berg (SIP Solutions)

iQIVAwUAQsAnH6Vg1VMiehFYAQLOJQ//YKL3XO90j19JNtzuvkH+zzdcJVXZz0lv
09LAWXt7SRecXGweTRX6VcIQrBG1Yv3qZc9yj0O5CkmCFov0Q7D7s6yM+Fony69N
4x8TQNNwkDLg3UDNPklDrvlnRAAyifJKUBAGcVDcjuY0NSQ9ZzdA6QISdVCKYZLW
eOz9sZYwcGw6bLdw+wrf46xxFljpw9hX/0f8Z9ji4XsCMbW6uDg7o5ybZkOvPLgZ
E455sayTNFF8FY91BmdyQfL7C7EVTZeGPRDDz0oGUuQnQlHE3zGJqOyGeJ5Ur6Lc
Npk+fKzGmsU6c45ehWo14k7CSpyVThhuJBkRc/ED/XcPXhVTQRD/C6QIimxXO2L5
DheT5y5zSnjHt22DCMwoSNMgj0WFlUR3aAK2IWEzqKpyA0BRsK29eyaSWk3t1AiA
SGo+nCntLMZCjvNniQjIli6M2DsvB+0wVV/hmRG10m/IS9g5BVMgj60XNa3E2vAa
oAtf0oxOZuS4TaBaTUgYRkZBHT4nMPp+OsRjq+e90AWJtX+qSHgOiHgookjWsZPb
a0uN4AsYfg6+4u/hcjc7yTgRXZhDopFkkBjq9lGVG8PyoD720plXkXfpPIGbJCFR
gdtCZjwp4dIbZ3L10CM/ctiVh8rN6tC9mjHLZu7Xa7vOgKcUAFbOF3iex0SzEukM
PtXVk6LSGsI=
=f1lu
-END PGP SIGNATURE-

--=-MxtQOQjlnYl8szCKY9r7--




[sane-devel] network scanning

2005-06-27 Thread yt
Hi,

I would like to setup a multi-function device (printer/scanner) to
work off of the network.  I'm looking at an Epson Stylus CX5400
because of some reviews and it appears to be well supported in linux
(both the scanner and the printer).  However, I am well open to
suggestions.  For inkjet, I'm looking at the  $250 range, but I am
also interested in color lasers under $500 if one could be found.

I have a building with about 15 computers networked, and I'd like to
share both the printing and scanning capabilities.

1.  While most of the computers are (debian) linux 2.4.xx based,
interlopers occasionally bring in their windows based laptops.  I'm
not too concerned if they can't scan, but it would be a nice thing
if they had that option.

2. I'd like to avoid having to have a computer physically connected to
the printer/scanner if at all possible.

So, I'm looking for suggestions on how to accomplish this.  Does
anyone have experience doing this?  Is there perhaps a printer/scanner
out there that has built-in networking capabilities and is supported
by linux? Is there a scanner server (like a network/usb print server)
device that would allow me to do this?

Thanks in advance for any help that can be given.

-John


--=20
YourTech, LLC - http://yourtech.us/
(this account is used for mailing lists)



[sane-devel] network scanning

2005-06-27 Thread Jon Chambers
Hi John,

I have a Dell 1600n network printer/fax/copier/scanner running with
Debian.

Network printing is fine with a generic postscript driver.  The printer is
a monochrome laser.  There are also colour ones in the series but I've
never used one.

When I bought it I didn't find any Linux network scanning support but I
have written a perl script which works as a driver for JPEG (200dpi
colour) and TIFF (monochrome) network scanning.  See
http://www.jon.demon.co.uk/dell1600n-net-scan.

The current status of the driver is basic but working.

I don't know how well the USB interface works under Linux as I don't have
any computers that are new enough to support it

regards,
Jon

== Jon Chambers =
 http://www.jon.demon.co.uk, 020 8575 7097, 07969 956575
=


On Mon, 27 Jun 2005, John (yt) Hogenmiller wrote:

 Hi,

 I would like to setup a multi-function device (printer/scanner) to
 work off of the network.  I'm looking at an Epson Stylus CX5400
 because of some reviews and it appears to be well supported in linux
 (both the scanner and the printer).  However, I am well open to
 suggestions.  For inkjet, I'm looking at the  $250 range, but I am
 also interested in color lasers under $500 if one could be found.

 I have a building with about 15 computers networked, and I'd like to
 share both the printing and scanning capabilities.