[sane-devel] MP600R doesn't work

Frode V. Fjeld frodevf at gmail.com
Tue Aug 28 22:58:50 UTC 2012


I have been able to get my Pixma MP600R to work with xsane over the wlan
at various times before, but after upgrading to the latest ubuntu
recently I can't get it to work anymore.

I've pulled the latest git sources for sane-backend and built and
installed it:

$ scanimage -V
scanimage (sane-backends) 1.0.24git; backend version 1.0.24


The scanner is usually detected fine (although usually at the second
attempt):

$ scanimage -L
device `pixma:MP600R_printer' is a CANON Canon PIXMA MP600R multi-function peripheral


However any actual scanning always fails, apparently the scanner reports
0 bytes available at some point, and then there's no progress from there
on. Any clues?

$ SANE_DEBUG_PIXMA=12 scanimage -T
[sanei_debug] Setting debug level of pixma to 12.
[pixma] pixma is compiled without pthread support.
[pixma] pixma version 0.17.0
[pixma] sanei_bjnp_find_devices:
[pixma] No devices specified in configuration file.
[pixma] Added all configured scanners, now do auto detection...
[pixma] lo is not a valid IPv4 interface, skipping...
[pixma] wlan0 is IPv4 capable, sending broadcast, socket = 3
[pixma] lo is not a valid IPv6 interface, skipping...
[pixma] wlan0 is IPv6 capable, sending broadcast, socket = 4
[pixma] Select returned, time left 0.430671....
[pixma] Discover response:
[pixma]  00000000:42 4a 4e 50 82 01 00 00  00 00 00 00 00 00 00 10 
[pixma]  00000010:00 01 08 00 06 04 00 00  85 84 48 64 c0 a8 01 26 
[pixma] Forward lookup for printer succeeded, using as hostname
[pixma] bjnp_allocate_device(bjnp://printer:8612) 0
[pixma] setup_udp_socket: Setting up the UDP socket, dest: 192.168.1.38
port 8612
[pixma] Discover response:
[pixma]  00000000:42 4a 4e 50 82 01 00 00  00 00 00 00 00 00 00 10 
[pixma]  00000010:00 01 08 00 06 04 00 00  85 84 48 64 c0 a8 01 26 
[pixma] Scanner not yet in our list, added it: printer:8612
[pixma] Get scanner identity
[pixma]  00000000:42 4a 4e 50 02 30 00 00  00 01 00 00 00 00 00 00 
[pixma] setup_udp_socket: Setting up the UDP socket, dest: 192.168.1.38
port 8612
[pixma] scanner identity:
[pixma]  00000000:42 4a 4e 50 82 30 00 00  00 01 00 00 00 00 00 44 
[pixma]  00000010:00 44 4d 46 47 3a 43 41  4e 4f 4e 3b 43 4d 44 3a 
[pixma] ......
[pixma] Scanner identity string = MFG:CANON;CMD:MultiPASS
2.1;MDL:MP600R;CLS:IMAGE;DES:CANON MP600R; - lenght = 66
[pixma] Scanner model = CANON MP600R
[pixma] Select returned, time left 0.499996....
[pixma] Discover response:
[pixma]  00000000:42 4a 4e 50 82 01 00 00  00 00 00 00 00 00 00 10 
[pixma]  00000010:00 01 08 00 06 04 00 00  85 84 48 64 c0 a8 01 26 

[.....]

[pixma] scanner discovery finished...
[pixma] pixma_collect_devices() found Canon PIXMA MP600R at
bjnp://printer:8612
[pixma] pixma_open(): Canon PIXMA MP600R
[pixma] sanei_bjnp_open(bjnp://printer:8612, 0):
[pixma] bjnp_allocate_device(bjnp://printer:8612) 1
[pixma] setup_udp_socket: Setting up the UDP socket, dest: 192.168.1.38
port 8612
[pixma] Discover response:
[pixma]  00000000:42 4a 4e 50 82 01 00 00  00 00 00 00 00 00 00 10 
[pixma]  00000010:00 01 08 00 06 04 00 00  85 84 48 64 c0 a8 01 26 
[pixma] sanei_bjnp_activate (0)
[pixma] Job details
[pixma]  00000000:42 4a 4e 50 02 10 00 00  00 02 00 00 00 00 01 88 
[pixma]  00000010:00 00 00 00 00 00 00 00  00 4b 00 61 00 72 00 6f 
[pixma] ......
[pixma] setup_udp_socket: Setting up the UDP socket, dest: 192.168.1.38
port 8612
[pixma] Job details response:
[pixma]  00000000:42 4a 4e 50 82 10 00 00  00 02 00 01 00 00 00 04 
[pixma]  00000010:0c 29 8e 50 
[pixma] bjnp_set_timeout to 20000
[pixma] bjnp_write_bulk(0, bufferptr, 0x10 = 16)
[pixma] bjnp_write: sending 0x10 = 16 bytes
[pixma]  00000000:42 4a 4e 50 02 21 00 00  00 03 00 01 00 00 00 10 
[pixma]  00000010:f3 20 00 00 00 00 00 00  00 00 00 00 00 00 00 10 
[pixma] bjnp_recv_header: receiving response header
[pixma] TCP response header(scanner data = 4 bytes):
[pixma]  00000000:42 4a 4e 50 82 21 00 00  00 03 00 01 00 00 00 04 
[pixma] bjnp_recv_data: receiving response data
[pixma] bjnp_recv_data: read response payload (4 bytes max)
[pixma] Received TCP response payload (4 bytes):
[pixma]  00000000:00 00 00 10 
[pixma] OUT  T=2.473 len=16
[pixma]  00000000:f3 20 00 00 00 00 00 00  00 00 00 00 00 00 00 10 
[pixma] 
[pixma] bjnp_set_timeout to 20000
[pixma] bjnp_read_bulk(0, bufferptr, 0x18 = 24)
[pixma] bjnp_read_bulk: 0x0 = 0 bytes available at start, Short block =
0 blocksize = 0x400 = 1024
[pixma] So far received 0x0 bytes = 0, need 0x18 = 24
[pixma] No (more) scanner data available, requesting more
[pixma] bjnp_send_read_req sending command
[pixma]  00000000:42 4a 4e 50 02 20 00 00  00 04 00 01 00 00 00 00 
[pixma] bjnp_recv_header: receiving response header
[pixma] TCP response header(scanner data = 0 bytes):
[pixma]  00000000:42 4a 4e 50 82 20 83 00  00 04 00 01 00 00 00 00 
[pixma] Scanner reports 0x0 = 0 bytes available
[pixma] reading 0x0 = 0 (of max 0x18 = 24) bytes more
[pixma] bjnp_recv_data: receiving response data
[pixma] bjnp_recv_data: read response payload (24 bytes max)
[pixma] bjnp_recv_data: could not read response payload (select timed
out): Success!
[pixma] IN   T=6.485 len=-9
[pixma]   ERROR: ETIMEDOUT
[pixma] 
[pixma] No response yet. Timed out in 8 sec.
[pixma] bjnp_set_timeout to 20000
[pixma] bjnp_read_bulk(0, bufferptr, 0x18 = 24)
[pixma] Scanner has no more data available, return immediately!
[pixma] IN   T=6.485 len=-14
[pixma]   ERROR: EEOF
[pixma] 
[pixma] WARNING: Error in response phase. cmd:f320
[pixma]   If the scanner hangs, reset it and/or unplug the USB cable.
[pixma] bjnp_set_timeout to 200
[pixma] bjnp_read_int(0, bufferptr, 0x10 = 16):
[pixma] Poll details (type 0)
[pixma]  00000000:42 4a 4e 50 02 32 00 00  00 05 00 00 00 00 00 50 
[pixma]  00000010:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
[pixma] ......
[pixma] setup_udp_socket: Setting up the UDP socket, dest: 192.168.1.38
port 8612
[pixma] Poll details response:
[pixma]  00000000:42 4a 4e 50 82 32 00 00  00 05 00 00 00 00 00 24 
[pixma]  00000010:00 00 00 00 00 00 00 00  00 00 00 14 00 00 00 00 
[pixma]  00000020:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
[pixma]  00000030:00 00 00 00 
[pixma] Poll details (type 1)
[pixma]  00000000:42 4a 4e 50 02 32 00 00  00 06 00 00 00 00 00 50 
[pixma]  00000010:00 01 00 00 00 00 00 00  00 66 00 72 00 6f 00 64 
[pixma] ......
[pixma] setup_udp_socket: Setting up the UDP socket, dest: 192.168.1.38
port 8612
[pixma] Poll details response:
[pixma]  00000000:42 4a 4e 50 82 32 00 00  00 06 00 00 00 00 00 24 
[pixma]  00000010:00 00 00 00 00 00 00 01  00 00 00 14 00 00 00 00 
[pixma]  00000020:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
[pixma]  00000030:00 00 00 00 
[pixma] Poll details (type 2)
[pixma]  00000000:42 4a 4e 50 02 32 00 00  00 07 00 00 00 00 00 74 
[pixma]  00000010:00 02 00 00 00 00 00 01  00 66 00 72 00 6f 00 64 


...and so on.


Thanks,
-- 
Frode V. Fjeld




More information about the sane-devel mailing list