[sane-devel] Sending confirmation about the pixma backend

2019-10-04 Thread Rogério Brito
Dear people,

I just (yesterday night) bought myself a Canon PIXMA E4210 that I want to
use *purely* with Free Software.

In my limited hours with it, I found that the scanning wasn't working with
the programs in Debian testing nor sid but that I could make it work with an
USB cable if I installed sane-backends 1.0.28 (I actually grabbed a package
uploaded to mentors.debian.org).

Since I read the code and it mentioned that it needed testers, here is a
report.  With the newer version of sane-backends, I can scan from the
flatbed, as expected, and it works as well as I could expect (minus the
fragility of this piece of hardware---disappointed with that, but that's not
software-related, of course).

Unfortunately, I can't scan from the ADF (which was one of the main reasons
for me to choose this printer instead of others--with money being a 2nd
factor, of course).

This is what I have in my dmesg logs:

- - - - - - - - - - - - - - - - - - - - - -
[ 8812.136212] amdgpu: [powerplay] VBIOS did not find boot engine clock value 
in dependency table. Using Memory DPM level 0!
[ 9138.020109] usb 1-1: new high-speed USB device number 7 using xhci_hcd
[ 9138.170011] usb 1-1: New USB device found, idVendor=04a9, idProduct=1855, 
bcdDevice= 1.02
[ 9138.170020] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 9138.170024] usb 1-1: Product: E4200 series
[ 9138.170028] usb 1-1: Manufacturer: Canon
[ 9138.170032] usb 1-1: SerialNumber: 103CD1
[ 9138.282978] usblp 1-1:1.1: usblp1: USB Bidirectional printer dev 7 if 1 alt 
0 proto 2 vid 0x04A9 pid 0x1855
[ 9138.284546] usblp 1-1:1.2: usblp2: USB Bidirectional printer dev 7 if 2 alt 
0 proto 2 vid 0x04A9 pid 0x1855
[ 9138.284573] usbcore: registered new interface driver usblp
- - - - - - - - - - - - - - - - - - - - - -

With scanimage, this is what I get:

- - - - - - - - - - - - - - - - - - - - - -
$ scanimage -L
device `pixma:04A91855_103CD1' is a CANON Canon PIXMA E4200 Series 
multi-function peripheral
- - - - - - - - - - - - - - - - - - - - - -

Making sure that there is a paper in the flatbed:

- - - - - - - - - - - - - - - - - - - - - -
$ time scanimage --device=pixma:04A91855_103CD1 --progress --mode=Lineart 
--resolution=600 --format=png --gamma=1 > out.png
Progress: 100.0%
real0m21.907s
user0m1.375s
sys 0m0.323s
$ file out.png
out.png: PNG image data, 5104 x 7016, 1-bit grayscale, non-interlaced
- - - - - - - - - - - - - - - - - - - - - -

Now, making sure that there are sheets of paper on the ADF:

- - - - - - - - - - - - - - - - - - - - - -
$ scanadf -d pixma:04A91855_103CD1 --mode Lineart --gamma 1 --output-file 
foo%02d.pnm
Scanned document foo01.pnm
scanadf: sane_read: Error during device I/O
Error during device I/O
Scanned 1 pages
- - - - - - - - - - - - - - - - - - - - - -

What was scanned is the page from the flatbed, not from the ADF.

If, OTOH, I specify something like:

- - - - - - - - - - - - - - - - - - - - - -
$ scanadf -d pixma:04A91855_103CD1 --mode Lineart --gamma 1 --source "Automatic 
Document Feeder" --output-file foo%02d.pbm
scanadf: sane_read: Document feeder out of documents
Scanned 0 pages
- - - - - - - - - - - - - - - - - - - - - -

The printer doesn't do anything, nothing moves etc.  The ADF works if I tell
it to scan from my Android device (but, then, the Canon app doesn't allow me
to specify resolution, nor if I want B/W images etc.---yes, it's that
limited).

So, in essence, there is partial success with the pixma backend and this
device. If there is anything that I can answer before I return this device
(unfortunately, I'm not really sure that I can return it, but I will try
it), then, please let me know and I will test whatever is desired.

In the case of it being possible to return this device and get something
else in its place, which manufacturer/model would be preferred to have
*full* functionality with Free Software only? Any recommendations?



Thanks,

Rogério Brito.


-- 
Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFC
http://cynic.cc/blog/ : github.com/rbrito : profiles.google.com/rbrito
DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br



Re: [sane-devel] the pre-c++ genesys.c file has deficiencies

2019-10-04 Thread Povilas Kanapickas
Hi,

On 6/13/19 9:25 PM, r. a. schmied wrote:
> olaf, povilas other interested saners
> 
> i have yet to update to the c++ genesys stuff but working
> with sane-backends-master-e13b80fa i have again found that
> there are still uninitialized elements of the Genesys_Scanner * s object.
> 
> don't know if this is applicable to the c++ update, but it
> really should be applied to the pre-c++ repo.

I've applied the patch in PR !200.

Thank you!

Povilas




Re: [sane-devel] Pulstek OpticBook 3800 - problems with openning device on 1.0.23+

2019-10-04 Thread Povilas Kanapickas
Hi,

On 9/29/19 6:24 AM, Olaf Meeuwissen wrote:
> Hi,
> 
> <...>
> 
> @povilas Any idea why this device is not in genesys.desc?

Maybe the scanner just does not work fully and thus was never included
into the scanner list as a supported one. We can add it as unsupported
though.

Regards,
Povilas




Re: [sane-devel] Canon ImageClass MF644Cdw

2019-10-04 Thread Rolf Bensch
Hi,

It seems that the network model differs between sources and network
scanner discovery. I just fixed it. It will be available from my ppa
tomorrow.

Hope this helps.

Cheers,
Rolf


Am 04.10.19 um 18:53 schrieb David McMahon:
> 
> 
> On Fri, Oct 4, 2019 at 3:51 AM Rolf Bensch  > wrote:
> 
> Hi Kip,
> 
> Am 14.09.19 um 03:40 schrieb Kip Shaffer:
> > Scanning Results!  I updated to today's
> version: 1.0.28+git20190913-bionic0
> >
> > Using Simple Scan I was able to scan at 75, 150, 300, 600, 1200, and
> > 2400 dpi in both Text and Photo modes.  Perfect!
> 
> I just updated the doc files.
> 
> >
> > When scanning from the document feeder, it scans front and back, one
> > sheet or many, but after the job is done there is a pause, and then it
> > says "Error communicating with scanner".
> 
> Can you scan again after closing the message and/or does your
> scanner hang?
> 
> The pause comes from adf-wait parameter. Please read the man page for
> details.
> 
> >
> > Also, this has all been through USB.  I tried to connect with the
> > network and scanimage -L cannot find it.  I added the address to
> > pixma.conf (neither line helped):
> > bjnp://MF640_192.168.1.97
> > bjnp://192.168.1.97  
> 
> Please read 'man sane-pixma' to get some help for this issue. If this
> won't help, please provide a log file with SANE_DEBUG_BJNP.
> 
> 
> Here's mine:
> 
> $ SANE_DEBUG_BJNP=5 scanimage -L 2>&1
> [sanei_debug] Setting debug level of bjnp to 5.
> [bjnp] sanei_bjnp_find_devices, pixma backend version: 0.23.3
> [bjnp] sanei_bjnp_find_devices: Adding scanner from pixma.conf:
> bjnp://192.168.86.39 
> [bjnp] bjnp_allocate_device(bjnp://192.168.86.39:8612/timeout=1
> ) 0
> [bjnp] get_scanner_name: Forward lookup for canoncbcab3.lan succeeded,
> using as hostname
> [bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.86.39
>  port 8612
> [bjnp] udp_command: ERROR - recv failed: Connection refused[bjnp]
> udp_command: ERROR - recv failed: Connection refused[bjnp] udp_command:
> ERROR - recv failed: Connection refused[bjnp] udp_command: ERROR - no
> data received (timeout = 1)
> [bjnp] bjnp_init_device_structure: Cannot read mac address, skipping
> this scanner
> [bjnp] bjnp_allocate_device: Scanner not yet in our list, added it:
> 192.168.86.39:8612 
> [bjnp] get_scanner_id: Get scanner identity
> [bjnp]  :42 4a 4e 50 02 30 00 00  00 01 00 00 00 00 00 00
> [bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.86.39
>  port 8612
> [bjnp] udp_command: ERROR - recv failed: Connection refused[bjnp]
> udp_command: ERROR - recv failed: Connection refused[bjnp] udp_command:
> ERROR - recv failed: Connection refused[bjnp] udp_command: ERROR - no
> data received (timeout = 1)
> [bjnp] get_scanner_id: ERROR - Failed to retrieve scanner identity:
> [bjnp] add_scanner: ERROR - Cannot read scanner make & model:
> bjnp://192.168.86.39:8612/timeout=1
> 
> [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: eth0 is IPv4 capable, sending broadcast, socket = 9
> [bjnp] prepare_socket: docker0 is IPv4 capable, sending broadcast,
> socket = 10
> [bjnp] prepare_socket: lo is not a valid IPv6 interface, skipping...
> [bjnp] prepare_socket: eth0 is IPv6 capable, sending broadcast, socket = 11
> [bjnp] sanei_bjnp_find_devices: Select returned, time left 0.499988
> [bjnp] sanei_find_devices: Discover response:
> [bjnp]  :4d 46 4e 50 82 01 00 00  00 00 00 00 00 00 00 10
> [bjnp]  0010:00 01 80 00 06 04 10 98  c3 da 2c f7 c0 a8 56 27
> [bjnp] get_scanner_name: Forward lookup for canoncbcab3.lan succeeded,
> using as hostname
> [bjnp] bjnp_allocate_device(mfnp://canoncbcab3.lan:8610/timeout=1) 1
> [bjnp] get_scanner_name: Forward lookup for canoncbcab3.lan succeeded,
> using as hostname
> [bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.86.39
>  port 8610
> [bjnp] bjnp_get_scanner_mac_address: Discover response:
> [bjnp]  :4d 46 4e 50 82 01 00 00  00 00 00 00 00 00 00 10
> [bjnp]  0010:00 01 80 00 06 04 10 98  c3 da 2c f7 c0 a8 56 27
> [bjnp] bjnp_allocate_device: Scanner not yet in our list, added it:
> canoncbcab3.lan:8610
> [bjnp] get_scanner_id: Get scanner identity
> [bjnp]  :4d 46 4e 50 02 30 00 00  00 01 00 00 00 00 00 00
> [bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.86.39
>  port 8610
> [bjnp] get_scanner_id: scanner identity:
> [bjnp]  :4d 46 4e 50 82 30 00 00  00 01 00 00 00 00 00 5a
> [bjnp]  0010:4d 46 47 3a 43 41 4e 4f  4e 3b 43 4d 44 3a 4d 46
> [bjnp]  0020:4e 50 31 2c 4d 75 6c 

Re: [sane-devel] Canon ImageClass MF644Cdw

2019-10-04 Thread David McMahon
On Fri, Oct 4, 2019 at 3:51 AM Rolf Bensch  wrote:

> Hi Kip,
>
> Am 14.09.19 um 03:40 schrieb Kip Shaffer:
> > Scanning Results!  I updated to today's
> version: 1.0.28+git20190913-bionic0
> >
> > Using Simple Scan I was able to scan at 75, 150, 300, 600, 1200, and
> > 2400 dpi in both Text and Photo modes.  Perfect!
>
> I just updated the doc files.
>
> >
> > When scanning from the document feeder, it scans front and back, one
> > sheet or many, but after the job is done there is a pause, and then it
> > says "Error communicating with scanner".
>
> Can you scan again after closing the message and/or does your scanner hang?
>
> The pause comes from adf-wait parameter. Please read the man page for
> details.
>
> >
> > Also, this has all been through USB.  I tried to connect with the
> > network and scanimage -L cannot find it.  I added the address to
> > pixma.conf (neither line helped):
> > bjnp://MF640_192.168.1.97
> > bjnp://192.168.1.97 
>
> Please read 'man sane-pixma' to get some help for this issue. If this
> won't help, please provide a log file with SANE_DEBUG_BJNP.
>

Here's mine:

$ SANE_DEBUG_BJNP=5 scanimage -L 2>&1
[sanei_debug] Setting debug level of bjnp to 5.
[bjnp] sanei_bjnp_find_devices, pixma backend version: 0.23.3
[bjnp] sanei_bjnp_find_devices: Adding scanner from pixma.conf: bjnp://
192.168.86.39
[bjnp] bjnp_allocate_device(bjnp://192.168.86.39:8612/timeout=1) 0
[bjnp] get_scanner_name: Forward lookup for canoncbcab3.lan succeeded,
using as hostname
[bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.86.39  port
8612
[bjnp] udp_command: ERROR - recv failed: Connection refused[bjnp]
udp_command: ERROR - recv failed: Connection refused[bjnp] udp_command:
ERROR - recv failed: Connection refused[bjnp] udp_command: ERROR - no data
received (timeout = 1)
[bjnp] bjnp_init_device_structure: Cannot read mac address, skipping this
scanner
[bjnp] bjnp_allocate_device: Scanner not yet in our list, added it:
192.168.86.39:8612
[bjnp] get_scanner_id: Get scanner identity
[bjnp]  :42 4a 4e 50 02 30 00 00  00 01 00 00 00 00 00 00
[bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.86.39  port
8612
[bjnp] udp_command: ERROR - recv failed: Connection refused[bjnp]
udp_command: ERROR - recv failed: Connection refused[bjnp] udp_command:
ERROR - recv failed: Connection refused[bjnp] udp_command: ERROR - no data
received (timeout = 1)
[bjnp] get_scanner_id: ERROR - Failed to retrieve scanner identity:
[bjnp] add_scanner: ERROR - Cannot read scanner make & model: bjnp://
192.168.86.39:8612/timeout=1
[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: eth0 is IPv4 capable, sending broadcast, socket = 9
[bjnp] prepare_socket: docker0 is IPv4 capable, sending broadcast, socket =
10
[bjnp] prepare_socket: lo is not a valid IPv6 interface, skipping...
[bjnp] prepare_socket: eth0 is IPv6 capable, sending broadcast, socket = 11
[bjnp] sanei_bjnp_find_devices: Select returned, time left 0.499988
[bjnp] sanei_find_devices: Discover response:
[bjnp]  :4d 46 4e 50 82 01 00 00  00 00 00 00 00 00 00 10
[bjnp]  0010:00 01 80 00 06 04 10 98  c3 da 2c f7 c0 a8 56 27
[bjnp] get_scanner_name: Forward lookup for canoncbcab3.lan succeeded,
using as hostname
[bjnp] bjnp_allocate_device(mfnp://canoncbcab3.lan:8610/timeout=1) 1
[bjnp] get_scanner_name: Forward lookup for canoncbcab3.lan succeeded,
using as hostname
[bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.86.39  port
8610
[bjnp] bjnp_get_scanner_mac_address: Discover response:
[bjnp]  :4d 46 4e 50 82 01 00 00  00 00 00 00 00 00 00 10
[bjnp]  0010:00 01 80 00 06 04 10 98  c3 da 2c f7 c0 a8 56 27
[bjnp] bjnp_allocate_device: Scanner not yet in our list, added it:
canoncbcab3.lan:8610
[bjnp] get_scanner_id: Get scanner identity
[bjnp]  :4d 46 4e 50 02 30 00 00  00 01 00 00 00 00 00 00
[bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.86.39  port
8610
[bjnp] get_scanner_id: scanner identity:
[bjnp]  :4d 46 4e 50 82 30 00 00  00 01 00 00 00 00 00 5a
[bjnp]  0010:4d 46 47 3a 43 41 4e 4f  4e 3b 43 4d 44 3a 4d 46
[bjnp]  0020:4e 50 31 2c 4d 75 6c 74  69 50 41 53 53 20 32 2e
[bjnp]  0030:31 3b 4d 44 4c 3a 4d 46  36 34 32 43 2f 36 34 33
[bjnp]  0040:43 2f 36 34 34 43 3b 43  4c 53 3a 49 4d 47 3b 44
[bjnp]  0050:45 53 3a 43 61 6e 6f 6e  20 4d 46 36 34 32 43 2f
[bjnp]  0060:36 34 33 43 2f 36 34 34  43 3b
[bjnp] get_scanner_id: Scanner identity string =
MFG:CANON;CMD:MFNP1,MultiPASS 2.1;MDL:MF642C/643C/644C;CLS:IMG;DES:Canon
MF642C/643C/644C; - length = 90
[bjnp] get_scanner_id: Scanner model = MF642C/643C/644C
[bjnp] add_scanner: New scanner added:
mfnp://canoncbcab3.lan:8610/timeout=1, serial canoncbcab3.lan, mac
address: 1098c3da2cf7.
[bjnp] sanei_find_devices: Discover response:

Re: [sane-devel] sane-pixma Canon MF269dw

2019-10-04 Thread Rolf Bensch
Hi Vilnius,

The behavior of xsane sounds strange. Please check what's going on with:
$ SANE_DEBUG_PIXMA=11 SANE_DEBUG_BJNP=5 xsane

Alternatively you can try a test scan with:
$ SANE_DEBUG_PIXMA=11 SANE_DEBUG_BJNP=5 scanimage >test.pnm

If you want to scan from ADF, for a first approach you should use
gscan2pdf (ADF implementation in xsane and scanimage is very tricky to use):
$ SANE_DEBUG_PIXMA=11 SANE_DEBUG_BJNP=5 gscan2pdf

If you have further problems, please send me compressed log files.

If ADF still isn't working, please also create an USB snoop file from a
Windows machine as reference. You can use wireshark with usbpcap
(https://wiki.wireshark.org/CaptureSetup/USB).

Hope this helps.

Cheers,
Rolf


Am 02.10.19 um 09:58 schrieb Vilnius Ramanauskas:
> Hi,
> 
> tested new version it gives feeder/duplex option now. 
> 
> Though colleague was playing around on linux and I did not know that
> actually stable 1.2.8 from your repo does not scan correctly. Attaching
> example of PDF output.
> 
> Although there's some issues with package or compatibility with xsane.
> When starting xsane there's searching for devices screen for couple of
> seconds. Then searching screen disappears and there's silence for
> ~15sec, after which we're getting unresponsive Xsane window. Xsane
> becomes responsive in another ~15sec. When trying to change any option
> on Xsane it takes few seconds each time on each option change for Xsane
> to become responsive again.
> 
> We're trying connected through Ethernet on local network.
> 
> Here's packages from my test PC on older ubuntu. Similar PDF result on
> new Ubuntu, with todays nightly build.
> 
> ii  libkf5sane-data                            17.12.3-0ubuntu1        
>                     all          scanner library (data files)
> ii  libkf5sane5                                17.12.3-0ubuntu1        
>                     amd64        scanner library (runtime)
> ii  libsane:amd64                              1.0.28-bionic0          
>                     amd64        API library for scanners
> ii  libsane-common                             1.0.28-bionic0          
>                     all          API library for scanners --
> documentation and support files
> ii  libsane-hpaio:amd64                        3.17.10+repack0-5        
>                    amd64        HP SANE backend for multi-function
> peripherals
> ii  libsane1:amd64                             1.0.28-bionic0          
>                     amd64        API library for scanners [transitional
> package]
> ii  sane                                       1.0.14-12build1          
>                    amd64        scanner graphical frontends
> ii  sane-utils                                 1.0.28-bionic0          
>                     amd64        API library for scanners -- utilities
> ii  xsane                                      0.999-5ubuntu2          
>                     amd64        featureful graphical frontend for SANE
> (Scanner Access Now Easy)
> ii  xsane-common                               0.999-5ubuntu2          
>                     all          xsane architecture independent files
> 
> BR,
> 
> Vilnius 
> 
> 
> On Wed, 2 Oct 2019 at 00:01, Rolf Bensch  > wrote:
> 
> Hi Vilnius,
> 
> Many thanks for your feedback.
> 
> However, ADF support was missing in the device definition. I just fixed
> this and you can test ADF support with the next version from my PPA
> tomorrow.
> 
> Please also test Ethernet / WiFi support.
> 
> Hope this helps.
> 
> Cheers,
> Rolf
> 
> 
> Am 23.09.19 um 13:03 schrieb Vilnius Ramanauskas:
> > Hi,
> >
> > we have Canon MF269dw with a duplex ADF. Found out that 1.0.27
> (still on
> > ubuntu official repos) does not support that printer, but 1.0.28 (from
> > your repo) support that printer. Thank you for binaries!
> > Though scanning now is only working with Flatbed, not with ADF or
> duplex
> > ADF. We could help you test if you'll give us some info on how to
> setup
> > testing env. and help you make sane even better :)
> >
> > I have many years of sysadmin, some development background, I think I
> > could properly test and document tests.
> >
> > Thank you!
> >
> > BR,
> > Vilnius Ramanauskas
> >
> 



Re: [sane-devel] Canon MG3050

2019-10-04 Thread Rolf Bensch
Hello,

I just updated the doc files.

@Louis: Maybe it's possible to fix not working WiFi?

Many thanks for your help.

Cheers,
Rolf


Am 16.09.19 um 19:43 schrieb kamp0...@arcor.de:
> Hello,
>
> to be clear, if this means wifi is not possible with this model, it
> could be noted as not working on the supported devices list.
>
> I can scan over USB ...
>
> http://www.sane-project.org/sane-mfgs.html
>
> Is bjnp at the TS50xx missing too? Wifi is listet as not working.
>
>
> Regards,
>
> Kamp
>
>
> On 08.08.19 20:58, kamp0...@arcor.de wrote:
>> Thanks, the command is stuck or takes a lot of time. This is the current
>> output:
>>
>> + enp0s25 IPv6 Canon MG3000 series  
>> _privet._tcp local
>> + enp0s25 IPv4 Canon MG3000 series  
>> _privet._tcp local
>> + enp0s25 IPv6 Canon MG3000 series   PDL
>> Printer  local
>> + enp0s25 IPv4 Canon MG3000 series   PDL
>> Printer  local
>> + enp0s25 IPv6 Canon MG3000 series   UNIX
>> Printer local
>> + enp0s25 IPv4 Canon MG3000 series   UNIX
>> Printer local
>> + enp0s25 IPv6 Canon MG3000 series  
>> _canon-chmp._tcp local
>> + enp0s25 IPv4 Canon MG3000 series  
>> _canon-chmp._tcp local
>> + enp0s25 IPv6 Canon MG3000 series   Secure
>> Internet Printer local
>> + enp0s25 IPv4 Canon MG3000 series   Secure
>> Internet Printer local
>> + enp0s25 IPv6 Canon MG3000 series   Internet
>> Printer local
>> + enp0s25 IPv4 Canon MG3000 series   Internet
>> Printer local
>> + enp0s25 IPv6 Canon MG3000 series  
>> _scanner._tcp    local
>> + enp0s25 IPv4 Canon MG3000 series  
>> _scanner._tcp    local
>> + enp0s25 IPv6 Canon MG3000 series   Web
>> Site local
>> + enp0s25 IPv4 Canon MG3000 series   Web
>> Site local
>>
>> It seems that bjnp is missing? :(
>>
>> The MG3050 is one of the older models I thought it would be more
>> compatible.
>>
>> Maybe I can switch to a TS5050 some day.
>>
>>
>> Regards,
>>
>> Kamp
>>
>> On 08.08.19 16:08, Louis Lagendijk wrote:
>>> hi 
>>> Can you get me the output of:le
>>> avahi-browse -a
>>> My Maxify MB5050 gives:
>>>
>>> + vlan159 IPv4 Canon MB5000 series-4 Web
>>> Site local
>>> + vlan159 IPv4 Canon MB5000 series-4 _canon-
>>> bjnp1._tcplocal
>>> + vlan159 IPv4 Canon MB5000 series-
>>> 4 _scanner._tcplocal
>>> + vlan159 IPv4 Canon MB5000 series-4 UNIX
>>> Printer local
>>> + vlan159 IPv4 Canon MB5000 series-
>>> 4 _privet._tcp local
>>> + vlan159 IPv6 Canon MB5000 series-4 Web
>>> Site local
>>> + vlan159 IPv6 Canon MB5000 series-4 _canon-
>>> bjnp1._tcplocal
>>> + vlan159 IPv6 Canon MB5000 series-
>>> 4 _scanner._tcplocal
>>> + vlan159 IPv6 Canon MB5000 series-4 UNIX
>>> Printer local
>>> + vlan159 IPv6 Canon MB5000 series-
>>> 4 _privet._tcp local
>>>
>>> I would not be surprised if your device does not have a  _canon-
>>> bjnp1._tcp entry. Canon seems to be dropping bjnp support lately
>>> That would explain the failures you see.
>>>
>>> BR, Louis
>>> On Thu, 2019-08-08 at 12:00 +0200, kamp0...@arcor.de wrote:
 Hello Louis,
 scanner and client are in the same home network, there is no firewall
 inside the local network. It is a fritzbox router from avm.
 I removed the last numbers from the IP manually. Sorry, if this leads
 to
 confusion.

 Printing over wifi is working without any problems.

 I can scan over another device with a separate sane scan server
 (sane-utils) in my local network. But a direct link over wifi with
 this
 device seems impossible:

 /etc/sane.d/pixma.conf contains one line ... auto detection could not
 find this device

 # Canon MG3050
 bjnp://192.168.178.70


 bjnp.log

 Output format is not set, using pnm as a default.
 [sanei_debug] Setting debug level of bjnp to 11.
 [bjnp] sanei_bjnp_find_devices, pixma backend version: 0.23.0
 [bjnp] sanei_bjnp_find_devices: Adding scanner from pixma.conf:
 bjnp://192.168.178.70
 [bjnp] bjnp_allocate_device(bjnp://192.168.178.70:8612/timeout=1)
 0
 [bjnp] get_scanner_name: Name for 192.168.178.70 not found : Name or
 service not known
 [bjnp] setup_udp_socket: Setting up a UDP socket, dest:
 192.168.178.70 
 port 8612
 [bjnp] udp_command: ERROR 

Re: [sane-devel] Canon ImageClass MF644Cdw

2019-10-04 Thread Rolf Bensch
Hi Kip,

Am 14.09.19 um 03:40 schrieb Kip Shaffer:
> Scanning Results!  I updated to today's version: 1.0.28+git20190913-bionic0
> 
> Using Simple Scan I was able to scan at 75, 150, 300, 600, 1200, and
> 2400 dpi in both Text and Photo modes.  Perfect!

I just updated the doc files.

> 
> When scanning from the document feeder, it scans front and back, one
> sheet or many, but after the job is done there is a pause, and then it
> says "Error communicating with scanner". 

Can you scan again after closing the message and/or does your scanner hang?

The pause comes from adf-wait parameter. Please read the man page for
details.

> 
> Also, this has all been through USB.  I tried to connect with the
> network and scanimage -L cannot find it.  I added the address to
> pixma.conf (neither line helped):
> bjnp://MF640_192.168.1.97
> bjnp://192.168.1.97 

Please read 'man sane-pixma' to get some help for this issue. If this
won't help, please provide a log file with SANE_DEBUG_BJNP.

> 
> TL:DR - the sane-pixma backend is functional for the Canon ImageClass
> MF644Cdw when connected via USB, with only a slight hiccup after
> scanning from the sheet feeder.  I was not able to scan over the network.

Many thanks for your report.

Hope this helps.

Cheers,
Rolf



Re: [sane-devel] Canon TS8000 series PIXMA

2019-10-04 Thread Rolf Bensch
Hi Martin,

You're using an ancient version of SANE. Please update SANE and test again.

In the log you should see at least pixma version 0.23.3.

Hope this helps.

Cheers,
Rolf


Am 01.09.19 um 16:45 schrieb Martin Gubser:
> Hi Rolf
> 
> Here the requested logfiles:
> 
> [sanei_debug] Setting debug level of pixma to 11.
> [pixma] pixma is compiled with pthread support.
> [pixma] pixma version 0.17.37
> [pixma] pixma_collect_devices() found Canon PIXMA TS8000 Series at
> libusb:001:006
> [pixma] pixma_find_scanners() found 1 devices
> [pixma] pixma_collect_devices() found Canon PIXMA TS8000 Series at
> libusb:001:006
> [pixma] pixma_open(): Canon PIXMA TS8000 Series
> [pixma] pixma_connect() failed EBUSY
> [pixma] pixma_open() failed EBUSY
> [pixma] pixma_close(): Canon PIXMA TS8000 Series
> 
> [sanei_debug] Setting debug level of pixma to 11.
> [pixma] pixma is compiled with pthread support.
> [pixma] pixma version 0.17.37
> [pixma] pixma_collect_devices() found Canon PIXMA TS8000 Series at
> libusb:001:007
> [pixma] pixma_find_scanners() found 1 devices
> [pixma] pixma_collect_devices() found Canon PIXMA TS8000 Series at
> libusb:001:007
> [pixma] pixma_open(): Canon PIXMA TS8000 Series
> [pixma] *mp150_open* This is a generation 4 scanner.  *
> [pixma] INTR T=6.979 len=32
> [pixma]  :00 00 00 01 00 00 00 00  00 00 00 00 00 00 00 00
> [pixma]  0010:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
> [pixma]
> [pixma] WARNING:send_time() disabled!
> [pixma] INTR T=7.235 len=32
> [pixma]  :00 00 00 01 00 00 00 00  00 00 00 00 00 00 00 00
> [pixma]  0010:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
> [pixma]
> [pixma] WARNING:send_time() disabled!
> [pixma] pixma_close(): Canon PIXMA TS8000 Series
> 
> Many thanks for your help
> Martin
> 
> Am 26.08.19 um 21:38 schrieb Rolf Bensch:
>> Hi Martin,
>>
>> Please create 2 logfiles from a terminal, one with failed start and
>> another with your workaround:
>>
>> $ SANE_DEBUG_PIXMA=11 xsane &> xsane.log
>>
>> Many thanks for your help.
>>
>> Cheers,
>> Rolf
>>
>>
>> Am 29.07.19 um 23:32 schrieb Martin Gubser:
>>> Hi Rolf
>>>
>>> On Linux Mint 19 Cinnamon, Version 3.8.9 my TS8050 does not initialize 
>>> properly.
>>>
>>> When I start XSANE from within Gimp the error message "device busy" is 
>>> displayed.
>>>
>>> Starting XSANE from the menu results in the error message "Fehler beim 
>>> Öffnen des Gerätes "pixma:04A91800_12F863": Ungültiges Argument.
>>>
>>> I have found the following work-around:
>>> - switch off the TS8050
>>> - perform "scanimage -T" in a command window. Result: "no Sane devices 
>>> found"
>>> - switch on the TS8050
>>> - perform "scanimage -T" again. Sometimes the steps from "switch off the 
>>> TS8050" to here have to be repeated.
>>> - Start XSANE again from the menu.
>>> - Now I can also start XSANE from within Gimp.
>>>
>>> I have quite a fast computer and a race condition or other timing problem 
>>> could well be the cause.
>>>
>>> Best regards,
>>> Martin 
>>>
>>>
>>> Am 29.07.19 um 22:37 schrieb Rolf Bensch:
>>>
 Hi Timothy,

 Many thanks for your report. I just updated the doc files.

 One last question: Have you also tried scanner access via WiFi? I
 suppose it's not working like other PIXMA TS scanners.

 Cheers,
 Rolf


 Am 22.07.19 um 21:32 schrieb Timothy D. Upton:
> Hi Rolf,
> I just got a chance to thoroughly test the operation of my Canon TS8220
> printer/scanner running under SANE.  I tried scanning using all possible
> resolutions and options, everything appears to work perfectly.
> Thanks for supporting the Linux community,
> Tim.
>
>
> On Sun, Jun 2, 2019 at 5:18 AM Rolf Bensch  > wrote:
>
> Hi,
>
> I would follow the install instructions from INSTALL.linux which comes
> with the sources or from here: http://www.sane-project.org/docs.html
>
> @Tim: Is high resolution scan (1200 dpi) and are all other options
> working? I would like to update scanners status page here:
> http://www.sane-project.org/lists/sane-backends-cvs.html#S-PIXMA
>
> Many thanks for your help.
>
> Cheers,
> Rolf
>
>
> Am 29.05.19 um 04:30 schrieb Timothy D. Upton:
> > Hi all,
> >
> > I have a Canon TS8220 printer/scanner.  It seems to work perfectly
> > (with e.g., Simple Scan) using the latest development release of
> > SANE.  The stable release did NOT work.
> >
> > I followed the install instructions described here:
> >
> 
> https://askubuntu.com/questions/641261/how-can-i-link-my-canon-mg5650-scanner-to-ubuntu
> >
> > Or simply:
> > sudo add-apt-repository