[sane-devel] MF4770N ADF

littlesincanada littlesincanada at yahoo.co.uk
Sat Aug 20 23:22:06 UTC 2016


Hi,
I have been looking into the dodgy ADF issue for the Canon imageCLASS 
MF4770N scanner/printer.
I did some work with Rolf some time ago to get this machine accepted 
into SANE but I rand out of time leaving the adf support incomplete.

I have been looking into this again and I wonder if someone (Rolf?) 
could look into this again with me.

I have a trace output that is a little too large to post bu I can 
privately mail it to someone.

Situation
=========
If I set the scanner to Remote Scan, and load up the ADF, I can use 
scanadf which successfully scans the first page.
The second page loads up but fails to scan. Both the scanner and scanadf 
report that the scan was cancelled.
The adf, as is usual for a lot of adfs, starts to load the second page 
while the first is feeding out.

The command I use is:

SANE_DEBUG_PIXMA=11 scanadf -d pixma:MF4700_192.168.1.51 --resolution 
300 --mode Gray --source "Automatic Document Feeder" > scan.out 2>&1

The top of the trace is the following:

-------------------8<-------------------8<-------------------8<-------------------8<-------------------8<-------
[sanei_debug] Setting debug level of pixma to 11.
[pixma] pixma is compiled with pthread support.
[pixma] pixma version 0.17.32
[pixma] Scanner model found: Name MF4700(Canon i-SENSYS MF4700 Series) 
matches Canon MF4700 Series
[pixma] pixma_collect_devices() found Canon i-SENSYS MF4700 Series at 
mfnp://192.168.1.51:8610
[pixma] pixma_open(): Canon i-SENSYS MF4700 Series
[pixma] *iclass_open***** This is a generation 2 scanner.  *****
[pixma] Trying to clear the interrupt buffer...
[pixma]   no packets in buffer
[pixma] Reader task id=140194522629888 (threaded)
[pixma] Reader task started
[pixma]
[pixma] pixma_scan(): start
[pixma]   line_size=1920 image_size=2016000 channels=3 depth=8
[pixma]   dpi=75x75 offset=(0,0) dimension=640x1050
[pixma]   gamma_table=0x1badc80 source=1
[pixma]   threshold=127 threshold_curve=0
[pixma]   ADF page count: 0
[pixma] raw_width = 640
[pixma] OUT  T=2.594 len=10
[pixma]  00000000:f3 20 00 00 00 00 00 00  0c 00
[pixma]
[pixma] IN   T=2.595 len=14
[pixma]  00000000:06 06 03 10 00 41 03 00  41 00 01 00 00 67
[pixma]
[pixma] Current status: paper=16 cal=1 lamp=0
[pixma] Current status: paper=16 cal=1 lamp=0
[pixma] *iclass_scan***** start scanning *****
[pixma] OUT  T=2.606 len=10
[pixma]  00000000:db 20 00 00 00 00 00 00  00 00
...
-------------------8<-------------------8<-------------------8<-------------------8<-------------------8<-------
Followed by scan blocks.

The bottom, where we have the failure is:
-------------------8<-------------------8<-------------------8<-------------------8<-------------------8<-------
...
[pixma] IN   T=15.300 len=14
[pixma]  00000000:06 06 03 00 00 41 03 00  41 00 01 00 00 77
[pixma]
[pixma] Current status: paper=0 cal=1 lamp=0
[pixma] Current status: paper=0 cal=1 lamp=0
[pixma] OUT  T=15.301 len=10
[pixma]  00000000:f3 20 00 00 00 00 00 00  0c 00
[pixma]
[pixma] IN   T=15.302 len=14
[pixma]  00000000:06 06 03 00 00 41 03 00  41 00 01 00 00 77
[pixma]
[pixma] Current status: paper=0 cal=1 lamp=0
[pixma] Current status: paper=0 cal=1 lamp=0
[pixma] *iclass_finish_scan***** wait for next page from ADF  *****
[pixma] WARNING:image size mismatches
[pixma]     2016000 expected (1050 lines) but 1612800 received (840 lines)
[pixma] pixma_read_image(): completed (underrun detected)
[pixma] Reader task terminated
Scanned document image-0001
[pixma] Reader task started
[pixma] Reader task id=140194522629888 (threaded)
[pixma]
[pixma] pixma_scan(): start
[pixma]   line_size=1920 image_size=2016000 channels=3 depth=8
[pixma]   dpi=75x75 offset=(0,0) dimension=640x1050
[pixma]   gamma_table=0x1badc80 source=1
[pixma]   threshold=127 threshold_curve=0
[pixma]   ADF page count: 1
[pixma] raw_width = 640
[pixma] OUT  T=16.615 len=10
[pixma]  00000000:f3 20 00 00 00 00 00 00  0c 00
[pixma]
[pixma] IN   T=16.617 len=14
[pixma]  00000000:06 06 03 00 00 41 03 00  41 00 01 00 00 77
[pixma]
[pixma] Current status: paper=0 cal=1 lamp=0
[pixma] Current status: paper=0 cal=1 lamp=0
[pixma] *iclass_scan***** scan next sheet from ADF  *****
[pixma] OUT  T=16.618 len=56
[pixma]  00000000:de 20 00 00 00 00 00 00  2e 00 00 00 00 00 10 4b
[pixma]  00000010:10 4b 00 00 00 00 00 00  00 00 00 00 02 80 00 00
[pixma]  00000020:04 1a 08 18 00 00 00 00  00 7f ff 00 00 81 00 00
[pixma]  00000030:00 00 00 00 00 00 00 8b
[pixma]
[pixma] IN   T=16.619 len=2
[pixma]  00000000:15 15
[pixma]
[pixma] OUT  T=16.625 len=10
[pixma]  00000000:ef 20 00 00 00 00 00 00  00 00
[pixma]
[pixma] IN   T=16.626 len=2
[pixma]  00000000:06 06
[pixma]
[pixma] OUT  T=16.627 len=10
[pixma]  00000000:f3 20 00 00 00 00 00 00  0c 00
[pixma]
[pixma] IN   T=16.628 len=14
[pixma]  00000000:06 06 03 00 00 41 03 00  41 00 01 00 00 77
[pixma]
[pixma] Current status: paper=0 cal=1 lamp=0
[pixma] Current status: paper=0 cal=1 lamp=0
[pixma] OUT  T=16.630 len=10
[pixma]  00000000:f3 20 00 00 00 00 00 00  0c 00
[pixma]
[pixma] IN   T=16.631 len=14
[pixma]  00000000:06 06 03 00 00 41 03 00  41 00 01 00 00 77
[pixma]
[pixma] Current status: paper=0 cal=1 lamp=0
[pixma] Current status: paper=0 cal=1 lamp=0
[pixma] *iclass_finish_scan***** wait for next page from ADF  *****
[pixma] pixma_scan() failed ECANCELED
[pixma] Reader task terminated: ECANCELED
[pixma] read_image():reader task closed the pipe:0 bytes received, 
2016000 bytes expected
scanadf: sane_read: Operation was cancelled
Operation was cancelled
Scanned 1 pages
[pixma] pixma_close(): Canon i-SENSYS MF4700 Series
-------------------8<-------------------8<-------------------8<-------------------8<-------------------8<-------

I would appreciate some guidance on how to proceed with this.

Cheers,
Ralph



More information about the sane-devel mailing list