On Fri, 2016-04-22 at 10:20 +0200, Helmut Schiefer wrote:
> Dear List,
> 
> I install the sane solution on my Ubuntu 12.04. I want to set up a  
> easy way to scan documents and sent by mail to my inbox. First of
> all  
> I had to setup saned and scanimage with the button control mode.  
> Unfortunately, the button mode doesn't work in my environment and I  
> have no glue, what can solve the problem.
> 
> What I did so far:
> Scanner is found over the network and simple scan with scanimage is  
> possible and worked well. In case I do a scanimage -A I got some
> error  
> messages:
> 
>    Buttons:
>      --button-update
>          Update button state
> [bjnp] bjnp_set_timeout to 300, but using minimum value 500
> [bjnp] bjnp_read_int(0, bufferptr, 0x40 = 64):
> [bjnp] bjnp_poll_scanner: Poll details (type 0)
> [bjnp]  00000000:42 4a 4e 50 02 32 00 00  00 02 00 00 00 00 00 50
> [bjnp]  00000010:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
> [bjnp] ......
> [bjnp] setup_udp_socket: Setting up a UDP socket, dest:
> 192.168.100.41  
>   port 8612
> [bjnp] udp_command: ERROR - select failed: timed out
> [bjnp] udp_command: ERROR - select failed: timed out
> [bjnp] udp_command: ERROR - select failed: timed out
> [bjnp] udp_command: ERROR - no data received (timeout = 500)
> [bjnp] bjnp_poll_scanner: Poll details (type 1)
> [bjnp]  00000000:42 4a 4e 50 02 32 00 00  00 03 00 00 00 00 00 50
> [bjnp]  00000010:00 01 00 00 00 00 00 00  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] udp_command: ERROR - select failed: timed out
> [bjnp] udp_command: ERROR - select failed: timed out
> [bjnp] udp_command: ERROR - select failed: timed out
> [bjnp] udp_command: ERROR - no data received (timeout = 500)
> [bjnp] bjnp_poll_scanner: Poll details (type 2)
> [bjnp]  00000000:42 4a 4e 50 02 32 00 00  00 04 00 00 00 00 00 74
> [bjnp]  00000010:00 02 00 00 00 00 00 00  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] udp_command: ERROR - select failed: timed out
> [bjnp] udp_command: ERROR - select failed: timed out
> [bjnp] udp_command: ERROR - select failed: timed out
> [bjnp] udp_command: ERROR - no data received (timeout = 500)
>      --button-1 <int> [0] [read-only]
> 
> In general, port 8612 is open and scanner communication works with
> 8612.
> 
> Any ideas?

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

-- 
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

Reply via email to