<div dir="ltr"><div><div><div><div><div><div><div><div><br><br></div>Hi , <br><br></div>Adding <br>192.168.1.50    mf8230<br></div>to<br></div>/etc/hosts<br></div>was really effective!<br><br><br></div><div>I still have a delay, now around 10 seconds.<br>
</div><div>As seen below, its not the pixma enumeration that takes all this time (only one second), so I'm suspecting it's because all the backends are given a chance to find a device. And given the number of backends this will obviously take some time.<br>
</div><div>But then I tried to do<br>./configure BACKENDS="pixma" --without-snmp --disable-ipv6<br></div><div>and then make<br></div><div>Same result.<br><br></div>To flip things around, I don't mind a full auto-detect taking 10 seconds or 1 minute, if only there was a way to specify the device manually (from command-line, environment-variable etc)<br>
<div><br></div><div>scanimage -d mfnp://mf8230:8610<br></div><div>does not work, <br>- can I specify a network device on the command line like this?<br></div><div>- and will that stop the auto-detection?<br></div><br></div>
any help greatly appreciated!<br></div>/Troels<br><div><div><div><div><br></div><div><div><div><div><div><div><div><br><br>aug 21 20:21:08 -V, --version              print version information<br>aug 21 20:21:08 ----------------  before sane_get_devices() tpt<br>
aug 21 20:21:10 [sanei_debug] Setting debug level of pixma to 11.<br>aug 21 20:21:10 [pixma] pixma is compiled with pthread support.<br>aug 21 20:21:10 [pixma] pixma version 0.17.9<br>aug 21 20:21:10 [sanei_debug] Setting debug level of bjnp to 3.<br>
aug 21 20:21:10 [pixma] before find_scanners <br>aug 21 20:21:10 [pixma] find_scanners() 1111<br>aug 21 20:21:10 [bjnp] sanei_bjnp_find_devices:<br>aug 21 20:21:10 [bjnp] sanei_bjnp_find_devices: No devices specified in configuration file.<br>
aug 21 20:21:10 [bjnp] sanei_bjnp_find_devices: Added all configured scanners, now do auto detection<br>aug 21 20:21:10 [bjnp] prepare_socket: lo is not a valid IPv4 interface, skipping...<br>aug 21 20:21:10 [bjnp] prepare_socket: eth0 is IPv4 capable, sending broadcast, socket = 3<br>
aug 21 20:21:10 [bjnp] sanei_bjnp_find_devices: Select returned, time left 0.499997....<br>aug 21 20:21:10 [bjnp] get_scanner_name: Forward lookup for mf8230 succeeded, using as hostname<br>aug 21 20:21:10 [bjnp] bjnp_allocate_device(mfnp://mf8230:8610) 0<br>
aug 21 20:21:10 [bjnp] get_scanner_name: Forward lookup for mf8230 succeeded, using as hostname<br>aug 21 20:21:10 [bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.1.50  port 8610<br>aug 21 20:21:10 [bjnp] bjnp_allocate_device: Scanner not yet in our list, added it: mf8230:8610<br>
aug 21 20:21:10 [bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.1.50  port 8610<br>aug 21 20:21:10 [bjnp] get_scanner_id: Scanner identity string = MFG:CANON;CMD:MFNP1,MultiPASS 2.1;M<br>aug 21 20:21:10 [bjnp] get_scanner_id: Scanner model = MF8200C Series<br>
aug 21 20:21:10 [pixma] Scanner model found: Name MF8200C(Canon i-SENSYS MF8200C Series) matches MF8<br>aug 21 20:21:10 [bjnp] sanei_bjnp_find_devices: Select returned, time left 0.499998....<br>aug 21 20:21:10 [bjnp] get_scanner_name: Forward lookup for mf8230 succeeded, using as hostname<br>
aug 21 20:21:10 [bjnp] bjnp_allocate_device(mfnp://mf8230:8610) 1<br>aug 21 20:21:10 [bjnp] get_scanner_name: Forward lookup for mf8230 succeeded, using as hostname<br>aug 21 20:21:10 [bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.1.50  port 8610<br>
aug 21 20:21:10 [bjnp] add_scanner: Scanner at mfnp://mf8230:8610 was added before, good!<br>aug 21 20:21:11 [bjnp] sanei_find_devices: scanner discovery finished...<br>aug 21 20:21:11 [pixma] pixma_collect_devices() found Canon i-SENSYS MF8200C Series at mfnp://mf8230<br>
aug 21 20:21:11 [pixma] find_scanners() 2222<br>aug 21 20:21:11 [pixma] pixma_find_scanners() found 1 devices<br>aug 21 20:21:11 [pixma] find_scanners() 3333<br>aug 21 20:21:11 [pixma] after find_scanners <br>aug 21 20:21:20 ----------------  after sane_get_devices()<br>
aug 21 20:21:20 55555 sane_open[pixma] sane_open() 1 <--------------<br>aug 21 20:21:20 [bjnp] sanei_bjnp_find_devices:<br><br><div><div><br><br></div></div></div></div></div></div></div></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2014-08-16 12:50 GMT+02:00 Louis Lagendijk <span dir="ltr"><<a href="mailto:louis@fazant.net" target="_blank">louis@fazant.net</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">
Hi Troels<br>
pixma.conf should have only contain<br>
mfnp://<a href="http://192.168.1.50:8610" target="_blank">192.168.1.50:8610</a><br>
in your case. It tells the backend where to find the scanner. The mfnp<br>
part tells the backend that the device is a laser multi-functional (I<br>
still don't understand why Canon choose to make that a different<br>
protocol as except for the protocol name, identifier an port it is<br>
pretty much the same as the bjnp protocol.<br>
The delays may come from the reverse lookup on 192.168.1.50.<br>
What does<br>
nslookup 192.168.1.50<br>
return? Hoe long does that take? I guess around 5 seconds?<br>
<br>
What is the content of /etc/resolv.conf on your machine? Which<br>
namservers do you use? Do you run your own nameserver?<br>
<br>
kind regards, Louis<br>
<div class=""><div class="h5"><br>
On Sat, <a href="tel:2014-08-16" value="+4520140816">2014-08-16</a> at 12:36 +0200, Rolf Bensch wrote:<br>
> Hi Troels,<br>
><br>
> I just committed the patches to Sanes git repository.<br>
><br>
> Please discuss the network issue with Louis.<br>
><br>
> Many thanks for your help.<br>
><br>
> Cheers,<br>
> Rolf<br>
><br>
><br>
><br>
> Am 14.08.2014 um 22:14 schrieb Troels Thomsen:<br>
> ><br>
> > Excelent!<br>
> > I can now scan several times without resetting the device!<br>
> ><br>
> > One thing still drives me crazy, and its the delays.<br>
> > There is a ~ one minute delay on "scanimage -h"!<br>
> > See below<br>
> ><br>
> > I cant figure out how to cut this down.<br>
> > I tried to ./Configure only with pixma backend, in case it was the sum<br>
> > of all network broadcasts for all kinds of drivers that takes the time.<br>
> > Then I tried adding bjnp://<a href="http://192.168.1.50" target="_blank">192.168.1.50</a> <<a href="http://192.168.1.50" target="_blank">http://192.168.1.50</a>> to<br>
> > /usr/local/etc/sane.d/pixma.conf<br>
> > which only made things worse.<br>
> > There should also be an environment option...<br>
> > Do you have an advice?<br>
> ><br>
> > Regarding scanner, ADF is not tested, will do soon.<br>
> > And debug the buttons, as you described.<br>
> ><br>
> ><br>
> > troels@troels-Inspiron-530 ~/sane/sane-backends $ unbuffer scanimage -h | ts<br>
> > aug 14 22:07:09 Usage: scanimage [OPTION]...<br>
> > aug 14 22:07:09<br>
> > aug 14 22:07:09 Start image acquisition on a scanner device and write<br>
> > image data to<br>
> > aug 14 22:07:09 standard output.<br>
> > aug 14 22:07:09<br>
> > aug 14 22:07:09 Parameters are separated by a blank from<br>
> > single-character options (e.g.<br>
> > aug 14 22:07:09 -d epson) and by a "=" from multi-character options<br>
> > (e.g. --device-name=epson).<br>
> > aug 14 22:07:09 -d, --device-name=DEVICE   use a given scanner device<br>
> > (e.g. hp:/dev/scanner)<br>
> > aug 14 22:07:09     --format=pnm|tiff      file format of output file<br>
> > aug 14 22:07:09 -i, --icc-profile=PROFILE  include this ICC profile into<br>
> > TIFF file<br>
> > aug 14 22:07:09 -L, --list-devices         show available scanner devices<br>
> > aug 14 22:07:09 -f, --formatted-device-list=FORMAT similar to -L, but<br>
> > the FORMAT of the output<br>
> > aug 14 22:07:09                            can be specified: %d (device<br>
> > name), %v (vendor),<br>
> > aug 14 22:07:09                            %m (model), %t (type), %i<br>
> > (index number), and<br>
> > aug 14 22:07:09                            %n (newline)<br>
> > aug 14 22:07:09 -b, --batch[=FORMAT]       working in batch mode, FORMAT<br>
> > is `out%d.pnm' or<br>
> > aug 14 22:07:09                            `out%d.tif' by default<br>
> > depending on --format<br>
> > aug 14 22:07:09     --batch-start=#        page number to start naming<br>
> > files with<br>
> > aug 14 22:07:09     --batch-count=#        how many pages to scan in<br>
> > batch mode<br>
> > aug 14 22:07:09     --batch-increment=#    increase page number in<br>
> > filename by #<br>
> > aug 14 22:07:09     --batch-double         increment page number by two,<br>
> > same as<br>
> > aug 14 22:07:09                            --batch-increment=2<br>
> > aug 14 22:07:09     --batch-print          print image filenames to stdout<br>
> > aug 14 22:07:09     --batch-prompt         ask for pressing a key before<br>
> > scanning a page<br>
> > aug 14 22:07:09     --accept-md5-only      only accept authorization<br>
> > requests using md5<br>
> > aug 14 22:07:09 -p, --progress             print progress messages<br>
> > aug 14 22:07:09 -n, --dont-scan            only set options, don't<br>
> > actually scan<br>
> > aug 14 22:07:09 -T, --test                 test backend thoroughly<br>
> > aug 14 22:07:09 -A, --all-options          list all available backend<br>
> > options<br>
> > aug 14 22:07:09 -h, --help                 display this help message and<br>
> > exit<br>
> > aug 14 22:07:09 -v, --verbose              give even more status messages<br>
> > aug 14 22:07:09 -B, --buffer-size=#        change input buffer size (in<br>
> > kB, default 32)<br>
> > aug 14 22:07:09 -V, --version              print version information<br>
> > aug 14 22:07:11 [sanei_debug] Setting debug level of pixma to 3.<br>
> > aug 14 22:07:11 [pixma] pixma is compiled with pthread support.<br>
> > aug 14 22:07:11 [pixma] pixma version 0.17.9<br>
> > aug 14 22:07:11 [sanei_debug] Setting debug level of bjnp to 2.<br>
> > aug 14 22:07:11 [bjnp] sanei_bjnp_find_devices:<br>
> > aug 14 22:07:11 [bjnp] prepare_socket: eth0 is IPv4 capable, sending<br>
> > broadcast, socket = 3<br>
> > aug 14 22:07:11 [bjnp] prepare_socket: eth0 is IPv6 capable, sending<br>
> > broadcast, socket = 4<br>
> > aug 14 22:07:16 [bjnp] get_scanner_name: Name for 192.168.1.50 not found<br>
> > : Name or service not known<br>
> > aug 14 22:07:21 [bjnp] get_scanner_name: Name for 192.168.1.50 not found<br>
> > : Name or service not known<br>
> > aug 14 22:07:21 [bjnp] bjnp_allocate_device: Scanner not yet in our<br>
> > list, added it: <a href="http://192.168.1.50:8610" target="_blank">192.168.1.50:8610</a> <<a href="http://192.168.1.50:8610" target="_blank">http://192.168.1.50:8610</a>><br>
> > aug 14 22:07:21 [bjnp] get_scanner_id: Scanner identity string =<br>
> > MFG:CANON;CMD:MFNP1,MultiPASS 2.1;MDL:MF8200C Series;CLS:IMG;DES:Canon<br>
> > MF8200C Series; - length = 86<br>
> > aug 14 22:07:21 [bjnp] get_scanner_id: Scanner model = MF8200C Series<br>
> > aug 14 22:07:21 [pixma] Scanner model found: Name MF8200C(Canon i-SENSYS<br>
> > MF8200C Series) matches MF8200C Series<br>
> > aug 14 22:07:26 [bjnp] get_scanner_name: Name for 192.168.1.50 not found<br>
> > : Name or service not known<br>
> > aug 14 22:07:31 [bjnp] get_scanner_name: Name for 192.168.1.50 not found<br>
> > : Name or service not known<br>
> > aug 14 22:07:31 [bjnp] add_scanner: Scanner at mfnp://<a href="http://192.168.1.50:8610" target="_blank">192.168.1.50:8610</a><br>
> > <<a href="http://192.168.1.50:8610" target="_blank">http://192.168.1.50:8610</a>> was added before, good!<br>
> > aug 14 22:07:32 [pixma] pixma_collect_devices() found Canon i-SENSYS<br>
> > MF8200C Series at mfnp://<a href="http://192.168.1.50:8610" target="_blank">192.168.1.50:8610</a> <<a href="http://192.168.1.50:8610" target="_blank">http://192.168.1.50:8610</a>><br>
> > aug 14 22:07:32 [pixma] pixma_find_scanners() found 1 devices<br>
> > aug 14 22:07:40 [bjnp] sanei_bjnp_find_devices:<br>
> > aug 14 22:07:40 [bjnp] prepare_socket: eth0 is IPv4 capable, sending<br>
> > broadcast, socket = 3<br>
> > aug 14 22:07:40 [bjnp] prepare_socket: eth0 is IPv6 capable, sending<br>
> > broadcast, socket = 4<br>
> > aug 14 22:07:45 [bjnp] get_scanner_name: Name for 192.168.1.50 not found<br>
> > : Name or service not known<br>
> > aug 14 22:07:50 [bjnp] get_scanner_name: Name for 192.168.1.50 not found<br>
> > : Name or service not known<br>
> > aug 14 22:07:50 [bjnp] bjnp_allocate_device: Scanner not yet in our<br>
> > list, added it: <a href="http://192.168.1.50:8610" target="_blank">192.168.1.50:8610</a> <<a href="http://192.168.1.50:8610" target="_blank">http://192.168.1.50:8610</a>><br>
> > aug 14 22:07:50 [bjnp] get_scanner_id: Scanner identity string =<br>
> > MFG:CANON;CMD:MFNP1,MultiPASS 2.1;MDL:MF8200C Series;CLS:IMG;DES:Canon<br>
> > MF8200C Series; - length = 86<br>
> > aug 14 22:07:50 [bjnp] get_scanner_id: Scanner model = MF8200C Series<br>
> > aug 14 22:07:50 [pixma] Scanner model found: Name MF8200C(Canon i-SENSYS<br>
> > MF8200C Series) matches MF8200C Series<br>
> > aug 14 22:07:55 [bjnp] get_scanner_name: Name for 192.168.1.50 not found<br>
> > : Name or service not known<br>
> > aug 14 22:08:00 [bjnp] get_scanner_name: Name for 192.168.1.50 not found<br>
> > : Name or service not known<br>
> > aug 14 22:08:00 [bjnp] add_scanner: Scanner at mfnp://<a href="http://192.168.1.50:8610" target="_blank">192.168.1.50:8610</a><br>
> > <<a href="http://192.168.1.50:8610" target="_blank">http://192.168.1.50:8610</a>> was added before, good!<br>
> > aug 14 22:08:00 [pixma] pixma_collect_devices() found Canon i-SENSYS<br>
> > MF8200C Series at mfnp://<a href="http://192.168.1.50:8610" target="_blank">192.168.1.50:8610</a> <<a href="http://192.168.1.50:8610" target="_blank">http://192.168.1.50:8610</a>><br>
> > aug 14 22:08:00 [pixma] pixma_open(): Canon i-SENSYS MF8200C Series<br>
> > aug 14 22:08:00 [bjnp] sanei_bjnp_open(mfnp://<a href="http://192.168.1.50:8610" target="_blank">192.168.1.50:8610</a><br>
> > <<a href="http://192.168.1.50:8610" target="_blank">http://192.168.1.50:8610</a>>, -1221962896):<br>
> > aug 14 22:08:05 [bjnp] get_scanner_name: Name for 192.168.1.50 not found<br>
> > : Name or service not known<br>
> > aug 14 22:08:05 [pixma] *iclass_open***** This is a generation 1<br>
> > scanner.  *****<br>
> > aug 14 22:08:05 [pixma] Trying to clear the interrupt buffer...<br>
> > aug 14 22:08:05 [bjnp] bjnp_set_timeout to 200<br>
> > aug 14 22:08:05 [bjnp] bjnp_read_int(0, bufferptr, 0x10 = 16):<br>
> > aug 14 22:08:05 [pixma]   no packets in buffer<br>
> > aug 14 22:08:05 [bjnp] sanei_bjnp_deactivate (0)<br>
> > aug 14 22:08:05<br>
> > aug 14 22:08:05 Options specific to device `pixma:MF8200C_192.168.1.50':<br>
> > aug 14 22:08:05   Scan mode:<br>
> > aug 14 22:08:05     --resolution auto||75|150|300|600dpi [75]<br>
> > aug 14 22:08:05         Sets the resolution of the scanned image.<br>
> > aug 14 22:08:05     --mode auto|Color|Gray [Color]<br>
> > aug 14 22:08:05         Selects the scan mode (e.g., lineart,<br>
> > monochrome, or color).<br>
> > aug 14 22:08:05     --source Flatbed|Automatic Document Feeder [Flatbed]<br>
> > aug 14 22:08:05         Selects the scan source (such as a<br>
> > document-feeder). Set source before<br>
> > aug 14 22:08:05         mode and resolution. Resets mode and resolution<br>
> > to auto values.<br>
> > aug 14 22:08:05     --button-controlled[=(yes|no)] [no]<br>
> > aug 14 22:08:05         When enabled, scan process will not start<br>
> > immediately. To proceed,<br>
> > aug 14 22:08:05         press "SCAN" button (for MP150) or "COLOR"<br>
> > button (for other models).<br>
> > aug 14 22:08:05         To cancel, press "GRAY" button.<br>
> > aug 14 22:08:05   Gamma:<br>
> > aug 14 22:08:05     --custom-gamma[=(auto|yes|no)] [inactive]<br>
> > aug 14 22:08:05         Determines whether a builtin or a custom<br>
> > gamma-table should be used.<br>
> > aug 14 22:08:05     --gamma-table auto|0..255,... [inactive]<br>
> > aug 14 22:08:05         Gamma-correction table.  In color mode this<br>
> > option equally affects the<br>
> > aug 14 22:08:05         red, green, and blue channels simultaneously<br>
> > (i.e., it is an intensity<br>
> > aug 14 22:08:05         gamma table).<br>
> > aug 14 22:08:05     --gamma auto|0.299988..5 [inactive]<br>
> > aug 14 22:08:05         Changes intensity of midtones<br>
> > aug 14 22:08:05   Geometry:<br>
> > aug 14 22:08:05     -l auto|0..216.747mm [0]<br>
> > aug 14 22:08:05         Top-left x position of scan area.<br>
> > aug 14 22:08:05     -t auto|0..355.6mm [0]<br>
> > aug 14 22:08:05         Top-left y position of scan area.<br>
> > aug 14 22:08:05     -x auto|0..216.747mm [216.747]<br>
> > aug 14 22:08:05         Width of scan-area.<br>
> > aug 14 22:08:05     -y auto|0..355.6mm [355.6]<br>
> > aug 14 22:08:05         Height of scan-area.<br>
> > aug 14 22:08:05   Buttons:<br>
> > aug 14 22:08:05     --button-update<br>
> > aug 14 22:08:05         Update button state<br>
> > aug 14 22:08:05   Extras:<br>
> > aug 14 22:08:05     --threshold auto|0..100% (in steps of 1) [inactive]<br>
> > aug 14 22:08:05         Select minimum-brightness to get a white point<br>
> > aug 14 22:08:05     --threshold-curve auto|0..127 (in steps of 1) [inactive]<br>
> > aug 14 22:08:05         Dynamic threshold curve, from light to dark,<br>
> > normally 50-65<br>
> > aug 14 22:08:05<br>
> > aug 14 22:08:05 Type ``scanimage --help -d DEVICE'' to get list of all<br>
> > options for DEVICE.<br>
> > aug 14 22:08:05<br>
> > aug 14 22:08:06 [bjnp] sanei_bjnp_find_devices:<br>
> > aug 14 22:08:06 [bjnp] prepare_socket: eth0 is IPv4 capable, sending<br>
> > broadcast, socket = 4<br>
> > aug 14 22:08:06 [bjnp] prepare_socket: eth0 is IPv6 capable, sending<br>
> > broadcast, socket = 6<br>
> > aug 14 22:08:11 [bjnp] get_scanner_name: Name for 192.168.1.50 not found<br>
> > : Name or service not known<br>
> > aug 14 22:08:16 [bjnp] get_scanner_name: Name for 192.168.1.50 not found<br>
> > : Name or service not known<br>
> > aug 14 22:08:16 [bjnp] bjnp_allocate_device: Scanner not yet in our<br>
> > list, added it: <a href="http://192.168.1.50:8610" target="_blank">192.168.1.50:8610</a> <<a href="http://192.168.1.50:8610" target="_blank">http://192.168.1.50:8610</a>><br>
> > aug 14 22:08:16 [bjnp] get_scanner_id: Scanner identity string =<br>
> > MFG:CANON;CMD:MFNP1,MultiPASS 2.1;MDL:MF8200C Series;CLS:IMG;DES:Canon<br>
> > MF8200C Series; - length = 86<br>
> > aug 14 22:08:16 [bjnp] get_scanner_id: Scanner model = MF8200C Series<br>
> > aug 14 22:08:16 [pixma] Scanner model found: Name MF8200C(Canon i-SENSYS<br>
> > MF8200C Series) matches MF8200C Series<br>
> > aug 14 22:08:21 [bjnp] get_scanner_name: Name for 192.168.1.50 not found<br>
> > : Name or service not known<br>
> > aug 14 22:08:26 [bjnp] get_scanner_name: Name for 192.168.1.50 not found<br>
> > : Name or service not known<br>
> > aug 14 22:08:26 [bjnp] add_scanner: Scanner at mfnp://<a href="http://192.168.1.50:8610" target="_blank">192.168.1.50:8610</a><br>
> > <<a href="http://192.168.1.50:8610" target="_blank">http://192.168.1.50:8610</a>> was added before, good!<br>
> > aug 14 22:08:26 [pixma] pixma_collect_devices() found Canon i-SENSYS<br>
> > MF8200C Series at mfnp://<a href="http://192.168.1.50:8610" target="_blank">192.168.1.50:8610</a> <<a href="http://192.168.1.50:8610" target="_blank">http://192.168.1.50:8610</a>><br>
> > aug 14 22:08:26 [pixma] pixma_find_scanners() found 1 devices<br>
> > aug 14 22:08:29 List of available devices:<br>
> > aug 14 22:08:29     pixma:MF8200C_192.168.1.50<br>
> > aug 14 22:08:29 [pixma] pixma_close(): Canon i-SENSYS MF8200C Series<br>
> > aug 14 22:08:29 [bjnp] sanei_bjnp_close(0):<br>
> ><br>
> ><br>
> > Aparantly the delay problem has many facets.<br>
> > - if I could figure out how to specify the device, no auto-detect would<br>
> > take place.<br>
> > - Aparantly the autodetection is done multiple times. Could 'scanimage'<br>
> > in theory be refined to only do it once? Well this is out of scope<br>
> > currently!<br>
> > - ...<br>
> ><br>
> ><br>
> ><br>
<br>
<br>
<br>
</div></div></blockquote></div><br></div></div></div></div></div>