Thanks Torfinn and Olaf, I added an entry in my hosts file and it did run a lot faster (use to take 30 - 45 seconds, now done in just a few seconds), but still the last debug line doesn't add the scanner. here is the debug output after adding a hosts entry:
root@UbuntuLaptop:/etc# scanimage -L [sanei_debug] Setting debug level of pixma to 11. [pixma] pixma is compiled with pthread support. [pixma] pixma version 0.17.34 [sanei_debug] Setting debug level of bjnp to 3. [bjnp] sanei_bjnp_find_devices, pixma backend version: 0.17.34 [bjnp] sanei_bjnp_find_devices: No devices specified in configuration file. [bjnp] sanei_bjnp_find_devices: Added all configured scanners, now do auto detection... [bjnp] prepare_socket: lo is not a valid IPv4 interface, skipping... [bjnp] prepare_socket: wlan0 is IPv4 capable, sending broadcast, socket = 11 [bjnp] prepare_socket: lo is not a valid IPv6 interface, skipping... [bjnp] prepare_socket: wlan0 is IPv6 capable, sending broadcast, socket = 12 [bjnp] sanei_bjnp_find_devices: Select returned, time left 0.499984.... [bjnp] get_scanner_name: Forward lookup for mf230.local succeeded, using as hostname [bjnp] bjnp_allocate_device(mfnp://mf230.local:8610/timeout=1000) 0 [bjnp] get_scanner_name: Forward lookup for mf230.local succeeded, using as hostname [bjnp] setup_udp_socket: Setting up a UDP socket, dest: 172.16.184.25 port 8610 [bjnp] bjnp_allocate_device: Scanner not yet in our list, added it: mf230.local:8610 [bjnp] setup_udp_socket: Setting up a UDP socket, dest: 172.16.184.25 port 8610 [bjnp] get_scanner_id: Scanner identity string = MFG:CANON;CMD:MFNP1,MultiPASS 2.1;MDL:Canon MF230 Series;CLS:IMG;DES:Canon MF230 Series; - length = 88 [bjnp] get_scanner_id: Scanner model = Canon MF230 Series [bjnp] add_scanner: New scanner added: mfnp://mf230.local:8610/timeout=1000, serial mf230.local, mac addres: 84ba3b91910e. [bjnp] sanei_bjnp_find_devices: Select returned, time left 0.499995.... [bjnp] get_scanner_name: Forward lookup for mf230.local succeeded, using as hostname [bjnp] bjnp_allocate_device(mfnp://mf230.local:8610/timeout=1000) 1 [bjnp] get_scanner_name: Forward lookup for mf230.local succeeded, using as hostname [bjnp] setup_udp_socket: Setting up a UDP socket, dest: 172.16.184.25 port 8610 [bjnp] add_scanner: Scanner at mfnp://mf230.local:8610/timeout=1000 was added before, good! [bjnp] sanei_find_devices: scanner discovery finished... [pixma] pixma_find_scanners() found 0 devices 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@UbuntuLaptop:/etc# I've also tried this on my desktop, ubuntu 16.04 amd64 (just to see if it was something with my laptop) and the exact same debug messages. I've also tried this as a regular user and as root, same debug messages. just don't know why pixma_find_scanners() finds 0 devices when bjnp finds it and adds it. Thanks again, Pete On 02/14/2017 07:42 AM, Olaf Meeuwissen wrote: > Hi Torfinn, > > Torfinn Ingolfsen writes: > >> The "Temporary failure in name resolution" messages in your debug >> output seems to indicate that the pixma backend also wants / needs a >> (DNS) name for your scanner's IP address. >> You could try to add it to your local DNS server if you have one, or >> to the hosts file on the machine you run SANE on, to see if it helps. > Just for the record, if the host name resolution fails the IP address is > used as is. Quoting from backend/pixma_bjnp.c (starting at line 833): > > /* do reverse name lookup, if hostname can not be found return ip-address > */ > > if( (error = getnameinfo( &(scanner_sa -> addr) , sa_size( scanner_sa), > host, BJNP_HOST_MAX , NULL, 0, NI_NAMEREQD) ) != 0 ) > { > PDBG (bjnp_dbg(LOG_INFO, "get_scanner_name: Name for %s not found : > %s\n", > ip_address, gai_strerror(error) ) ); > strcpy(host, ip_address); > return level; > } > > Adding it to your local DNS server isn't expected to help. > > Hope this helps, -- sane-devel mailing list: sane-devel@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-requ...@lists.alioth.debian.org