[sane-devel] Question/Bug for button Scan Pixma
Helmut Schiefer
Helmut at 4schiefer.de
Sat Apr 23 18:27:13 UTC 2016
Hello,
Now I was able to test and unfortunately it doesn't work. For sure the
upnp time out problem is gone, but the button mode doesn't work.
Situation so far:
Command I use: scanimage --button-controlled=yes -b > /tmp/blub
Output with debug option: there is a poll like that.....
[bjnp] bjnp_set_timeout to 1000
[bjnp] bjnp_read_int(0, bufferptr, 0x40 = 64):
[bjnp] bjnp_poll_scanner: Poll details (type 2)
[bjnp] 00000000:42 4a 4e 50 02 32 00 00 00 30 00 00 00 00 00 74
[bjnp] 00000010:00 02 00 00 00 00 00 0d 00 72 00 6f 00 6f 00 74
[bjnp] ......
[bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.100.41
port 8612
[bjnp] bjnp_poll_scanner: Poll details response:
[bjnp] 00000000:42 4a 4e 50 82 32 00 00 00 30 00 00 00 00 00 34
[bjnp] 00000010:00 00 00 00 00 00 00 0d 00 00 00 24 00 00 00 00
[bjnp] ......
[bjnp] bjnp_set_timeout to 1000
[bjnp] bjnp_read_int(0, bufferptr, 0x40 = 64):
[bjnp] bjnp_poll_scanner: Poll details (type 2)
[bjnp] 00000000:42 4a 4e 50 02 32 00 00 00 31 00 00 00 00 00 74
[bjnp] 00000010:00 02 00 00 00 00 00 0d 00 72 00 6f 00 6f 00 74
[bjnp] ......
[bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.100.41
port 8612
[bjnp] bjnp_poll_scanner: Poll details response:
[bjnp] 00000000:42 4a 4e 50 82 32 00 00 00 31 00 00 00 00 00 34
[bjnp] 00000010:00 00 00 00 00 00 00 0d 00 00 00 24 00 00 00 00
[bjnp] ......
In case I hit the color button, the short display at the scanner
shows: “Verarbeitung läuft” (Work in progress), but nothing happened.
The scanner is a pixma mg4250.
Scanning without the button-controlled mode works well.
Best Regards
Helmut
----- Message from Louis Lagendijk <louis at fazant.net> ---------
Date: Fri, 22 Apr 2016 21:11:05 +0200
From: Louis Lagendijk <louis at fazant.net>
Subject: Re: [sane-devel] Question/Bug for button Scan Pixma
To: sane-devel at lists.alioth.debian.org
> On Fri, 2016-04-22 at 20:48 +0200, Louis Lagendijk wrote:
>> On Fri, 2016-04-22 at 10:20 +0200, Helmut Schiefer wrote:
>> >
>> This may be related to the timing changes I made to the pixma network
>> code earlier this week. I works ok on my MB5050 but may be the casue
>> of
>> your problems:
>> please try to change the mimimum timing in
>> backende/pixma_bjnp_private.h on line 83:
>>
>> #define BJNP_BC_RESPONSE_TIMEOUT 500
>>
>> (500 msec) to a larger value, for example
>> #define BJNP_BC_RESPONSE_TIMEOUT 1000
>>
>> to make the timeout 1000 msec = 1 second
>> This may solve your issue.
>>
>> You did not tell us what scanner model you are using, so there may be
>> some other issues lurking in the backend proper (I had to fix the
>> button detection for my MB5050 to make the backend recognize the
>> buttons on that scanner).
>> Please note that to fully automate button controlled scanning you
>> will
>> need scanbd as well. Scanbd is a nice tool that continuously monitors
>> the buttons and starts a script to process and forward the scan
>> result
>> as required.
>>
>> Kind regards, Louis
>>
> Funny, I now managed to reproduce the problem with scanimage accessing
> the pixma backend directly. It worked before using scanbd.
> Increasing the minimum timeout to 1 sec indeed seems to fix it. I
> committed the change into git
>
> BR, Louis
>
> --
> sane-devel mailing list: sane-devel at 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-request at lists.alioth.debian.org
----- End message from Louis Lagendijk <louis at fazant.net> -----
More information about the sane-devel
mailing list