<div dir="ltr"><div><br><span>> If the scanner does not work on a USB port it is quite unlikely to work<br>
> over the network: the bjnp network code just carries the USB exchange<br>
> over IP.<br><br></span></div><div><span>I mostly agree, though Rolf asks specifically for the USB trace, because (as I understood) it differs slightly from the IP traces I had already submitted.<br></span></div><div><span>(fix usb first , then patch it for IP, if need be)<br><br></span></div><div><span>One advice: <br>Be very paranoid on your test methodology. I looked stupid a couple of times (sorry Rolf!), because I was fooled by the USB interface and/or the Canon firmware.<br></span></div><div><span>When testing a new patch, I tried some settings in random (DPI , colour/black-n-white etc) and reported the success/failures.<br></span></div><div><span>BUT the thing is, that the Canon MF8230 firmware can go into bad-mode, when it has received some strange commands, and the following scans might work slightly strange for that reason. I was even fooled by the phenomenon, that scanning a 1 by 1 cm square works, but scanning the whole A4 didn't. (Well ... there WERE some differences between what worked through USB and IP at this point in time. I'm guessing it was something timing-critical, but I never dissected that last patch from Rolf which fixed it)<br></span></div><div><span><br>So I started rebooting the scanner whenever I was in doubt. (disconnect/connect the USB interface plus move Cannon unit from to "printer mode" and back to "scanner mode" was normally enough)<br><br></span></div><div><span><br>So what do we do? / What is status?<br></span></div><div><span><br></span></div><div><span>Since scanning CAN work , one could argue the back-end DOES send all the necessary+correct commands to the printer.<br></span></div><div><span>If timing is the critical parameter (backed by the fact that something as stupid as enabling IP on the printer-side, suddenly makes it work now and then), maybe we should try to insert an ugly time-delay before every USB write? If that changes anything to the better, we can start to hunt down where it is really necessary, and hopefully find a nicer approach afterwards?<br><br></span></div><div><span>Martin, are you comfortable with pulling the code out of the GIT repository, compile , install and experiment with inserting delays?<br></span></div><div><div><span>I think there is something called "SANE interface USB" sanei_usb.c/h. That was maybe a place to start.<br></span></div><div><span></span></div><div><span><br></span></div><span>Louis, what is the odds of success for this approach?</span><br>:-)<br><br></div><div><span></span></div><div><span>/Troels<br></span></div><div><span><br><br></span></div><div><span></span></div><div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-03 20:43 GMT+01:00 Martin <span dir="ltr"><<a href="mailto:martin.gu@intergga.ch" target="_blank">martin.gu@intergga.ch</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Am Samstag, 3. Januar 2015, 11.16:10 schrieb Louis Lagendijk:<br>
<span>> On Fri, <a href="tel:2015-01-02" value="+4520150102" target="_blank">2015-01-02</a> at 22:59 +0100, Martin wrote:<br>
> > Hi Troels<br>
> ><br>
> > > *Is it USB3 (on the computer)?<br>
> ><br>
> > no, it is USB2<br>
> ><br>
> > > *Do you have access to another computer, where you can try it - Does it<br>
> > > work excactly the same strange way ... ?<br>
> ><br>
> > No,I don't have access to another computer. But I have also Windows 7<br>
> > installed. With Windows 7 and the Canon-software it works OK.<br>
> ><br>
> > > *Does unit have ethernet connection / can you try that way?<br>
> ><br>
> > Yes. With the ethernet connection the printer works. Thus the IP-address<br>
> > below is correct.<br>
> > But I cannot access the scanner.<br>
> ><br>
> >     xsane pixma:MG7500_192.168.0.3<br>
> ><br>
> > results in the error message "illegal argument". Same thing with<br>
> ><br>
> >     scanimage --help -d bnjp://<a href="http://192.168.0.3:8612" target="_blank">192.168.0.3:8612</a><br>
><br>
> Hi Martin<br>
> If the scanner does not work on a USB port it is quite unlikely to work<br>
> over the network: the bjnp network code just carries the USB exchange<br>
> over IP.<br>
> Anyhow, you can find the name with scanimage -L (but make sure that port<br>
> 8612 is not blocked by a firewall (see the man-page for sane-pixma in<br>
> the latest sources from GIT. you need to enable port 8612 for both<br>
> incoming and outgoing traffic.<br>
><br>
> Louis<br>
<br>
</span>Hi Louis<br>
<br>
The necessary ports on the firewall are open, yet scanimage -L does not find<br>
the scanner.<br>
<br>
But this lead to another discovery:<br>
I enabled LAN on the MG7550. And although the unit is connected via USB 2<br>
xsane sometimes works?! But with LAN disabled xsane never works without prior<br>
scanimage -T. And once xsane or scanimage -T failed all succeeding calls fail<br>
until the scanner is switched off and on again.<br>
<br>
Log of xsane working:<br>
[sanei_debug] Setting debug level of pixma to 21.<br>
<span>[pixma] pixma is compiled with pthread support.<br>
[pixma] pixma version 0.17.13<br>
[pixma] pixma_collect_devices() found Canon PIXMA MG7500 Series at<br>
</span>libusb:001:007<br>
<span>[pixma] pixma_find_scanners() found 1 devices<br>
[pixma] pixma_collect_devices() found Canon PIXMA MG7500 Series at<br>
</span>libusb:001:007<br>
<span>[pixma] pixma_open(): Canon PIXMA MG7500 Series<br>
[pixma] *mp150_open***** This is a generation 4 scanner.  *****<br>
</span>[pixma] [pixma] Reader task id=139772037314304 (threaded)<br>
<span>Reader task started<br>
[pixma]<br>
[pixma] pixma_scan(): start<br>
</span>[pixma]   line_size=4605 image_size=4895115 channels=3 depth=8<br>
[pixma]   dpi=300x300 offset=(0,0) dimension=1535x1063<br>
[pixma]   gamma_table=0x1f201e0 source=0<br>
<span>[pixma]   threshold=127 threshold_curve=0<br>
[pixma]   ADF page count: 0<br>
</span>[pixma] OUT  T=58.770 len=288<br>
<span>[pixma]  00000000:3c 3f 78 6d 6c 20 76 65  72 73 69 6f 6e 3d 22 31<br>
</span><span>[pixma]  00000010:2e 30 22 20 65 6e 63 6f  64 69 6e 67 3d 22 75 74<br>
</span>...<br>
Log of xsane not working:<br>
<span>pixma] pixma_collect_devices() found Canon PIXMA MG7500 Series at<br>
</span>libusb:001:008<br>
<span>[pixma] pixma_find_scanners() found 1 devices<br>
[pixma] pixma_collect_devices() found Canon PIXMA MG7500 Series at<br>
</span>libusb:001:008<br>
<span>[pixma] pixma_open(): Canon PIXMA MG7500 Series<br>
[pixma] *mp150_open***** This is a generation 4 scanner.  *****<br>
</span>[pixma] INTR T=1.249 len=32<br>
[pixma]  00000000:00 00 00 01 00 00 00 00  00 00 00 00 00 00 00 00<br>
[pixma]  00000010:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00<br>
[pixma]<br>
[pixma] Sending time: '15/01/03 15:32'<br>
[pixma] OUT  T=1.250 len=36<br>
<span>[pixma]  00000000:eb 80 00 00 00 00 00 00  00 00 00 00 00 00 00 14<br>
</span>[pixma]  00000010:31 35 2f 30 31 2f 30 33  20 31 35 3a 33 32 00 00<br>
[pixma]  00000020:00 00 00 53<br>
[pixma]<br>
[pixma] IN   T=21.251 len=-9<br>
[pixma]   ERROR: ETIMEDOUT<br>
[pixma]<br>
...<br>
<span><font color="#888888"><br>
Martin<br>
</font></span><div><div><br>
<br>
--<br>
sane-devel mailing list: <a href="mailto:sane-devel@lists.alioth.debian.org" target="_blank">sane-devel@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel</a><br>
Unsubscribe: Send mail with subject "unsubscribe your_password"<br>
             to <a href="mailto:sane-devel-request@lists.alioth.debian.org" target="_blank">sane-devel-request@lists.alioth.debian.org</a><br>
</div></div></blockquote></div><br></div></div></div>