[sane-devel] Canon PIXMA MX870

2011-01-22 Thread Louis Lagendijk
On Sun, 2011-01-16 at 02:04 -0800, Kenton Varda wrote: I leave your first question for Nicolas to answer. I don't understand the backend well enough to dig into this part. sorry for the late reply, I have been out of the country for a few days and busy with work... Unfortunately, there is

[sane-devel] Canon PIXMA MX870

2011-01-22 Thread Kenton Varda
Hi Louis, Sorry, but after fighting with this scanner for all of last weekend and realizing just how pitiful Canon's Linux support is, I returned it and bought an HP instead. The HP works perfectly with Sane. I do have quite a few debug logs recorded and it looks like the unknown1 value in the

[sane-devel] Canon PIXMA MX870

2011-01-16 Thread Kenton Varda
OK, I did some playing around, trying things, reading logs, and looking at the code. I think I'm seeing a few different problems. First, if I place more than one page in the ADF and then try to scan only a single page (scanimage without --batch), then sane will leave the scanner hanging after

[sane-devel] Canon PIXMA MX870

2011-01-15 Thread Kenton Varda
Hi Nicolas and sane-devel, Back in July there was a thread on the Canon PIXMA MX870 that ended here: http://lists.alioth.debian.org/pipermail/sane-devel/2010-July/027197.html Using the latest sources from git, I find myself stuck at basically the same place as Matthais. When using the scanner

[sane-devel] Canon PIXMA MX870

2010-07-22 Thread Nicolas Martin
Le jeudi 22 juillet 2010 ? 00:05 +0200, Matthias Pannek a ?crit : On Wed, 21 Jul 2010 20:23:16 +0200 Nicolas Martin nicolas0martin at gmail.com wrote: Yes, there was an error in the limiting to 600 dpi formula, hopefully, should be fixed in the new file attached. Works fine now. Ok

[sane-devel] Canon PIXMA MX870

2010-07-22 Thread Matthias Pannek
On Thu, 22 Jul 2010 07:45:52 +0200 Nicolas Martin nicolas0martin at gmail.com wrote: Yeah, i can try it with via USB. Any special parameter needed for that? Nothing special, test it the same way as you did with network connexion. USB might require you to set some perms or udev rule

[sane-devel] Canon PIXMA MX870

2010-07-22 Thread Nicolas Martin
Note sure either what it means, but after some googling, it looks linked to some versions of kernel Did you try to modprobe -r the modules usblp and usb_storage ? Nicolas 2010/7/22 Nicolas Martin nicolas0martin at gmail.com Not sure either wha 2010/7/22 Matthias Pannek matthias at pannek.de

[sane-devel] Canon PIXMA MX870

2010-07-22 Thread Matthias Pannek
On Thu, 22 Jul 2010 17:20:30 +0200 Nicolas Martin nicolas0martin at gmail.com wrote: Note sure either what it means, but after some googling, it looks linked to some versions of kernel Did you try to modprobe -r the modules usblp and usb_storage ? Thanks, compiled a new kernel with

[sane-devel] Canon PIXMA MX870

2010-07-21 Thread Matthias Pannek
On Tue, 20 Jul 2010 22:47:57 +0200 Nicolas Martin nicolas0martin at gmail.com wrote: Ok, I try to imitate best the net traffic seen in Windows that you sent in the file traffic.txt on 18/7. But I made a mistake with the xml messages, so here is another try. The changes are to see if the

[sane-devel] Canon PIXMA MX870

2010-07-21 Thread Nicolas Martin
Le mercredi 21 juillet 2010 ? 00:03 +0200, Matthias Pannek a ?crit : 600 DPI scan works perfectly, but 1200 and 2400 crashes with Floating point exception. 601 DPI seems to work too. Logs are cash.log and strace.log Yes, there was an error in the limiting to 600 dpi formula, hopefully,

[sane-devel] Canon PIXMA MX870

2010-07-20 Thread Matthias Pannek
On Sun, 18 Jul 2010 21:34:59 +0200 Nicolas Martin nicolas0martin at gmail.com wrote: Slightly modified again file pixma_mp150.c (new attached) to add: First my scanner is working again. Thanks to Louis for the help/tipp, i unplugged the printer to short and there was something bugged. After a

[sane-devel] Canon PIXMA MX870

2010-07-20 Thread Matthias Pannek
On Tue, 20 Jul 2010 02:12:20 +0200 Matthias Pannek matthias at pannek.de wrote: Flatbed scan is still working, but ADF not. Here a log: http://files.pannek.de/sane/adf.log Tried it again with the last pixma_mp150.c and it's working again, so it should be a problem with the new version.

[sane-devel] Canon PIXMA MX870

2010-07-20 Thread Nicolas Martin
Ok, I try to imitate best the net traffic seen in Windows that you sent in the file traffic.txt on 18/7. But I made a mistake with the xml messages, so here is another try. The changes are to see if the scanner recovers from adf empty (again, seen from the Pixma dialog exchanged in the net logs)

[sane-devel] Canon PIXMA MX870

2010-07-19 Thread Matthias Pannek
On Sun, 18 Jul 2010 21:34:59 +0200 Nicolas Martin nicolas0martin at gmail.com wrote: Slightly modified again file pixma_mp150.c (new attached) to add: - maximum 600 dpi for generation 4 scanners in ADF/ADF duplex mode - try to fix ADF empty scanner hanging. Not sure this will fix it, but

[sane-devel] Canon PIXMA MX870

2010-07-19 Thread Nicolas Martin
Le dimanche 18 juillet 2010 ? 23:25 +0200, Matthias Pannek a ?crit : On Sun, 18 Jul 2010 21:34:59 +0200 Nicolas Martin nicolas0martin at gmail.com wrote: Slightly modified again file pixma_mp150.c (new attached) to add: - maximum 600 dpi for generation 4 scanners in ADF/ADF duplex mode

[sane-devel] Canon PIXMA MX870

2010-07-19 Thread Matthias Pannek
On Mon, 19 Jul 2010 20:23:36 +0200 But the fail occurs before it reaches any of yesterday's modifications! Oh, sorry :( Did you try to set back the last pixma_mp150.c file I sent on 16 July ? Yeah, tried it. Same problem. I can't access the scanner right now and don't know why :( Printer

[sane-devel] Canon PIXMA MX870

2010-07-18 Thread Matthias Pannek
On Sat, 17 Jul 2010 21:17:44 +0200 Nicolas Martin nicolas0martin at gmail.com wrote: Problem is, I don't see yet a solution to exit from this pitfall, need to think it over. Ok. ADF: Working until 600 DPI, i tried it with 1200 DPI and i just got a Error during read: Error during device

[sane-devel] Canon PIXMA MX870

2010-07-18 Thread Nicolas Martin
Le dimanche 18 juillet 2010 ? 00:04 +0200, Matthias Pannek a ?crit : On Sat, 17 Jul 2010 21:17:44 +0200 Nicolas Martin nicolas0martin at gmail.com wrote: Problem is, I don't see yet a solution to exit from this pitfall, need to think it over. Ok. ADF: Working until 600 DPI, i

[sane-devel] Canon PIXMA MX870

2010-07-18 Thread Matthias Pannek
On Sun, 18 Jul 2010 15:44:50 +0200 Nicolas Martin nicolas0martin at gmail.com wrote: I've just added some lines to force max scan when using ADF to 600 dpi, even if higher resolution is selected in the frontend. To be tested. Good :-) Strange, this Wireshark log show the Pixma protocol

[sane-devel] Canon PIXMA MX870

2010-07-18 Thread Nicolas Martin
Slightly modified again file pixma_mp150.c (new attached) to add: - maximum 600 dpi for generation 4 scanners in ADF/ADF duplex mode - try to fix ADF empty scanner hanging. Not sure this will fix it, but worth a try. Could you send back the scanimage.log you get now when ADF is empty. Nicolas

[sane-devel] Canon PIXMA MX870

2010-07-17 Thread Matthias Pannek
On Fri, 16 Jul 2010 21:51:08 +0200 Nicolas Martin nicolas0martin at gmail.com wrote: Ok, so ready for a test ? Sure :-) Then, replace the file sane-backends/backend/pixma_mp150.c with the one I've attached. I've just added a declaration for the MX870 in there. Done. Then give a try. Be

[sane-devel] Canon PIXMA MX870

2010-07-17 Thread Nicolas Martin
Le vendredi 16 juillet 2010 ? 23:46 +0200, Matthias Pannek a ?crit : On Fri, 16 Jul 2010 21:51:08 +0200 Nicolas Martin nicolas0martin at gmail.com wrote: Ok, so ready for a test ? Sure :-) Then, replace the file sane-backends/backend/pixma_mp150.c with the one I've attached. I've

[sane-devel] Canon PIXMA MX870

2010-07-17 Thread Louis Lagendijk
my apologies for getting ibn late: I just got back from a holiday On Sat, 2010-07-17 at 09:46 +0200, Nicolas Martin wrote: http://files.pannek.de/sane/scanimage.zip This look satisfactory at first glance, the Pixma dialog is confirmed to be a generation 4 format here. pannek at

[sane-devel] Canon PIXMA MX870

2010-07-17 Thread Matthias Pannek
On Sat, 17 Jul 2010 12:12:36 +0200 Louis Lagendijk louis at lagendijk.xs4all.nl wrote: This looks like a case where the scanner messed up internally. What happens when you take it of the power for 30 seconds or so and reconnect? I tried anything on the hardware (restart, ..), but it was my

[sane-devel] Canon PIXMA MX870

2010-07-17 Thread Nicolas Martin
Sounds good then ;-) Matthias, before I commit the changes and update the docs, did you try the ADF and ADF duplex features, and do they work fine ? (remember to set 2 pages to scan per sheet of paper in ADF when in duplex mode) Louis, nice to read from you, hope you spent good holidays, and

[sane-devel] Canon PIXMA MX870

2010-07-17 Thread Matthias Pannek
On Sat, 17 Jul 2010 14:44:00 +0200 Nicolas Martin nicolas0martin at gmail.com wrote: Matthias, before I commit the changes and update the docs, did you try the ADF and ADF duplex features, and do they work fine ? (remember to set 2 pages to scan per sheet of paper in ADF when in duplex mode)

[sane-devel] Canon PIXMA MX870

2010-07-17 Thread Nicolas Martin
Le samedi 17 juillet 2010 ? 17:36 +0200, Matthias Pannek a ?crit : On Sat, 17 Jul 2010 14:44:00 +0200 Nicolas Martin nicolas0martin at gmail.com wrote: Matthias, before I commit the changes and update the docs, did you try the ADF and ADF duplex features, and do they work fine ? (remember

[sane-devel] Canon PIXMA MX870

2010-07-16 Thread Matthias Pannek
Hello, i'm a owner of a PIXMA MX870 and it would be really nice to have Sane support for this scanner :-( The MX870 should be a slightly modified MX860 (who is supported right now). I'm not sure about the bjnp-Protocol, because there is no TCP port 8612 open on this device. But the devices uses

[sane-devel] Canon PIXMA MX870

2010-07-16 Thread Nicolas Martin
Ok, so ready for a test ? Let's assume MX870 is a somehow a MX860, and uses the generation 4 Pixma protocol. First, download the latest Sane git version. You should get a sane-backends folder. Then, replace the file sane-backends/backend/pixma_mp150.c with the one I've attached. I've just added