Section: SANE Scanner Access Now Easy (5)
Updated: 24 Sep 2013
The sane-pixma library implements a SANE (Scanner Access Now Easy) backend that provides access to Canon PIXMA / i-SENSYS / imageCLASS / imageRUNNER multi-function devices (All-in-one printers) and the Canon CanoScan Flatbed/TPU scanners. The backend implements both USB interface and network interface using Canon's BJNP protocol. The network interface supports scanners over IPv4 as well as IPv6.
Currently, the following models work with this backend:
:PIXMA MG2100, MG3100, MG4200, MG5100, MG5200, MG5300
PIXMA MG6100, MG6200, MG6300, MG8200
PIXMA MP140, MP150, MP160, MP170, MP180, MP190
PIXMA MP210, MP220, MP230, MP240, MP250, MP260, MP270, MP280
PIXMA MP360, MP370, MP390
PIXMA MP450, MP460, MP470, MP480, MP490
PIXMA MP500, MP510, MP520, MP530, MP540, MP550, MP560
PIXMA MP600, MP600R, MP610, MP620, MP630, MP640
PIXMA MP700, MP710, MP730, PIXMA MP750 (no grayscale)
PIXMA MP800, MP800R, MP810, MP830
PIXMA MP960, MP970, MP980, MP990
PIXMA MX300, MX310, MX330, MX340, MX350, MX360, MX370
PIXMA MX420, MX700, MX7600
PIXMA MX850, MX860, MX870, MX882, MX885, MX890
imageCLASS MF3110, MF3240, MF4010, MF4018
imageCLASS MF4120, MF4122, MF4140, MF4150
imageCLASS MF4270, MF4350d, MF4370dn, MF4380dn
imageCLASS MF4410, MF4430, MF4660, MF4690, MF4770n
imageCLASS MF5730, MF5770, MF6550, D420, D480
i-SENSYS MF3010, MF4320d, MF4330d, MF4550d
CanoScan 8800F, 9000F, 9000F Mark II:
The following models are not well tested and/or the scanner sometimes hangs and must be switched off and on.
:PIXMA MP760, MP770, MP780, MP790
The following models may use the same Pixma protocol as those listed above, but have not yet been reported to work (or not). They are declared in the backend so that they get recognized and activated. Feedback in the sane-devel mailing list welcome.
:PIXMA E500, E510, E600, E610
PIXMA MG2200, MG2400, MG2500, MG3200, MG4100, MG5400, MG5500
PIXMA MG6400, MG6500, MG7100, MG8100
PIXMA MP375R, MP493, MP495, MP740
PIXMA MX320, MX390, MX410, MX430, MX450, MX510, MX520
PIXMA MX710, MX720, MX920
imageCLASS MF4570dw, MF5630, MF5650, MF5750, MF8030, MF8170c
i-SENSYS MF5880dn, MF6680dn:
:* resolutions of 75, 150, 300, 600, 1200, 2400, 4800, and 9600 DPI (some maybe buggy),
The device name for USB devices is in the form pixma:xxxxyyyy_zzzzz where x, y and z are vendor ID, product ID and serial number respectively. Example: pixma:04A91709_123456 is a MP150.
Device names for BJNP devices is in the form pixma:aaaa_bbbbb where aaaa is the scanners model and bbbb is the hostname or ip-adress.
This backend, based on cloning original Canon drivers protocols, is in a production stage. Designed has been carried out without any applicable manufacturer documentation, probably never available. However, we have tested it as well as we could, but it may not work in all situations. You will find an up-to-date status at the project homepage. (See below). Users feedback is essential to help improve features and performances.
Besides "well-known" options (e.g. resolution, mode etc.) pixma backend also provides the following #.B experimental options for button handling, i.e. the options might change in the future.
The button status can be polled i.e. with 'scanimage -A'.
Button scan is disabled on MAC OS X due to darwin libusb not handling timeouts in usb interrupt reads.
The pixma backend supports network scanners using the so called Canon BJNP protocol. Both IPv4 and IPv6 are supported.
Configuration is normally not required. The pixma backend will auto-detect your scanner if it is within the same subnet as your computer if your OS does support this.
The sane pixma backend communicates with port 8612 on the scanner. So you will have to allow outgoing traffic TO port 8612 on the common subnet for scanning.
Scanner detection is slightly more complicated. The pixma backend sends a broadcast on all direct connected subnets it can find (provided your OS allows for enumeration of all netowrk interfaces). The broadcast is sent FROM port 8612 TO port 8612 on the broadcast address of each interface. The outgoing packets will be allowed by the rule described above.
Responses from the scanner are sent back to the computer TO port 8612. Connection tracking however does not see a match as the response does not come from the broadcast address but from the scanners own address. For automatic detection of your scanner, you will therefore have to allow incoming packets TO port 8612 on your computer.
So in short: open the firewall for all traffic from your computer to port 8612 AND to port 8612 to your computer.
:0 print nothing (default)
1 print error and warning messages (recommended)
2 print informational messages
3 print debug-level messages
11 dump USB traffic
21 full dump USB traffic
:0 print nothing (default)
1 Print error and warning messages (recommended)
2 Print high level function tracing information
3 Print more detailed protocol tracing information
4 Print protocol headers
5 Print full protocol contents:
In case of trouble with a recent Pixma model, try the latest code for the pixma backend, available in the Sane git repository at:
You can also post into the Sane-devel mailing list for support.
Wittawat Yamwong, Nicolas Martin, Dennis Lou, Louis Lagendijk, Rolf Bensch
We would like to thank all testers and helpers. Without them we could not be able to write subdrivers for models we don't have. See also the project homepage.
Tutoriais de Tecnologia Web