[sane-devel] cannon p208 raspberian

Stan stan at analytica.biz
Sun Nov 22 13:58:48 UTC 2015


I'm trying to make my scanner to work on raspberian.
Have got installed sane packages from repository.
Successfully using scanimage with other umax scanner.

for P208 scanimage -L reports no scanners detected.

when I run sane-find-scanner it reports something

could not fetch string descriptor: Pipe error
could not fetch string descriptor: Pipe error
found USB scanner (vendor=0x0bda [Realtek], product=0x8179 [802.11n 
NIC]) at libusb:001:005
*** Error in `sane-find-scanner': free(): invalid next size (fast): 
0x562f0d78 ***

but it doesn't seem right for me since lsusb reports cannon scanner on 
different usb port

pi at raspberrypi ~ $ sudo lsusb
Bus 001 Device 006: ID 1083:164e Canon Electronics, Inc.
Bus 001 Device 005: ID 0bda:8179 Realtek Semiconductor Corp.
Bus 001 Device 004: ID 1bcf:05cf Sunplus Innovation Technology Inc. 
Micro keyboard & mouse receiver
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. 
SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I have also found that product id is slightly different for my device to 
the one in cannon config, for my device it reports "e" at the end 
instead of "c"

here is how it is identified in dmesg

[   67.163695] usb 1-1.5: new high-speed USB device number 6 using dwc_otg
[   67.311829] usb 1-1.5: New USB device found, idVendor=1083, 
[   67.311859] usb 1-1.5: New USB device strings: Mfr=1, Product=2, 
[   67.311876] usb 1-1.5: Product: CANON   P-208
[   67.311892] usb 1-1.5: Manufacturer: CANON
[   67.311908] usb 1-1.5: SerialNumber: GD401513

so I added line with my product id to  /etc/sane.d/canon_dr.conf
# P-208
usb 0x1083 0x164c
usb 0x1083 0x164e

not sure for what this exatly is but I have also created

# Canon P208
ATTRS{idVendor}=="1083", ATTRS{idProduct}=="164e", 

# Canon P208
ATTRS{idVendor}=="1083", ATTRS{idProduct}=="164c", 

Not sure what else to check.

Thanks for help


More information about the sane-devel mailing list