Hi! I have a Canon pixma MP160 which is not supported by sane. MP150 and MP170 are supported.
I have no idea how the MP160 interface works, but I guess it is quite similar to MP150 and MP170, so I modified the driver for MP150 and MP170 from SANE-backends-1.0.18. So, I added the line: DEVICE ("Canon PIXMA MP160", 0x1714, 1200, 0), to the file pixma_mp150.c. This line is almost the same as the lines for MP150 and MP170, but I changed the name and vendor id. I found the vendor id from sane-find-scanner utility. After that I compiled it for ubuntu 6.06. The default SANE-backend version for ubuntu 6.06 is 1.0.17 but the compiling process did not complain. With those modifications xsane finds my scanner, but when I try to scan xsane tells me that there was an error and aborts the scan. The following lines contains the output from the pixma driver with highest debugging enabled. [sanei_debug] Setting debug level of pixma to 10. [pixma] pixma version 0.11.3 [pixma] pixma_open(): Canon PIXMA MP160 [pixma] Reader task started [pixma] [pixma] pixma_scan(): start [pixma] line_size=1920 image_size=1683840 channels=3 depth=8 [pixma] dpi=75x75 offset=(0,0) dimension=638x877 [pixma] gamma_table=0x8262270 source=0 [pixma] Reader task id=6387 (forked) [pixma] Setting non-blocking mode [pixma] OUT T=52.746 len=16 [pixma] 00000000:db 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [pixma] [pixma] IN T=52.753 len=8 [pixma] 00000000:06 06 00 00 00 00 00 00 [pixma] [pixma] OUT T=52.797 len=28 [pixma] 00000000:dd 20 00 00 00 00 00 00 00 00 00 00 00 00 00 0c [pixma] 00000010:01 01 00 00 00 00 00 00 00 00 00 fe [pixma] [pixma] IN T=52.831 len=8 [pixma] 00000000:15 15 00 00 00 00 00 00 [pixma] [pixma] OUT T=52.832 len=16 [pixma] 00000000:ef 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [pixma] [pixma] IN T=52.833 len=8 [pixma] 00000000:06 06 00 00 00 00 00 00 [pixma] [pixma] pixma_scan() failed:Operationen avbruten [pixma] Reader task terminated: Operationen avbruten [pixma] read_image():reader task closed the pipe:0 bytes received, 1683840 bytes expected [pixma] pixma_close(): Canon PIXMA MP160 Can anyone help me with this driver? Best Regards Marcus