[sane-devel] Fwd: Testing a Canon imageFormula P-150M

Ben J btpprograms at gmail.com
Sun Aug 21 07:45:27 UTC 2016


---------- Forwarded message ----------
From: Ben J <btpprograms at gmail.com>
Date: Mon, Aug 15, 2016 at 1:40 AM
Subject: Re: [sane-devel] Testing a Canon imageFormula P-150M
To: "m. allan noah" <kitno455 at gmail.com>


Yeah you're correct, I only saw the scanner show up after adding it to
canon_dr.config and running as root (adding the udev rule hasn't worked for
permissions yet, but that's a different issue). I'm not sure if the P-150
and P-150M actually have different IDs; my scanner registers as a P-150 in
lsusb but P-150M is clearly printed on the scanner. I attached the log and
pasted the lsusb output for the scanner below. Thank you for the response,
let me know if you want any other information about the scanner. Also,
should I be responding to you directly or sending this to the mailing list
as well?

Bus 003 Device 004: ID 1083:162c Canon Electronics, Inc. P-150 Scanner

On Sun, Aug 14, 2016 at 9:32 AM, m. allan noah <kitno455 at gmail.com> wrote:

> The canon machines with the autostart switch have two different usb
> ids. I know neither of those for the P-150 or P-150M, so neither of
> them would be in the config file. This makes me wonder if something is
> wrong with your chronology- I don't think scanimage -L could have
> found the scanner before you changed to config file. If you can get
> back to that state, where the scanner was trying to work, we can do
> some debugging:
>
> SANE_DEBUG_CANON_DR=35 scanimage > foo.pnm 2>p150.log
>
> then send me p150.log directly. You may need to compress it.
>
> allan
>
> On Sat, Aug 13, 2016 at 3:20 PM, Ben J <btpprograms at gmail.com> wrote:
> > Hi, I've got a P-150M and am trying to get it running at the moment. The
> > scanner was detected by scanimage -L as a P-150. I'm running Arch Linux
> 64
> > bit with no frontend for SANE.
> >
> > When I tried to trigger a scan, SANE was able to detect that the document
> > feeder was empty and that the cover was closed. Once I resolved both of
> > these issue, I just got an error stating "scanimage: sane_start: Invalid
> > argument." This occurs while running "scanimage -d canon_dr: >
> test.tiff" as
> > root.
> >
> > So far I've tried to fix this by adding my scanner to
> > /etc/sane.d/canon_dr.conf (usb 0x1083 0x162c). I've also tried switching
> the
> > Auto Start switch to on. This caused the error "scanimage: open of device
> > canon_dr: failed: Invalid argument" instead.
> >
> > If anyone has any ideas let me know. I'm comfortable with config files
> and
> > small code changes, but I doubt I could write a full backend for this
> > scanner on my own.
> >
> >
> > --
> > sane-devel mailing list: sane-devel at lists.alioth.debian.org
> > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
> > Unsubscribe: Send mail with subject "unsubscribe your_password"
> >              to sane-devel-request at lists.alioth.debian.org
>
>
>
> --
> "well, I stand up next to a mountain- and I chop it down with the edge
> of my hand"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20160821/489329cb/attachment-0001.html>
-------------- next part --------------
[sanei_debug] Setting debug level of canon_dr to 35.
[canon_dr] sane_init: start
[canon_dr] sane_init: canon_dr backend 1.0.51, from sane-backends 1.0.25
[canon_dr] sane_init: finish
[canon_dr] sane_get_devices: start
[canon_dr] sane_get_devices: reading config file canon_dr.conf
[canon_dr] sane_get_devices: looking for 'scsi CANON CR'
[canon_dr] sane_get_devices: looking for 'scsi CANON DR'
[canon_dr] sane_get_devices: setting "duplex-offset" to 840
[canon_dr] sane_get_devices: setting "vendor-name" to CANON
[canon_dr] sane_get_devices: setting "model-name" to DR-2080C
[canon_dr] sane_get_devices: setting "version-name" to XXXX
[canon_dr] sane_get_devices: setting "padded-read" to 1
[canon_dr] sane_get_devices: looking for 'usb 0x04a9 0x1601'
[canon_dr] sane_get_devices: looking for 'usb 0x04a9 0x1602'
[canon_dr] sane_get_devices: looking for 'usb 0x04a9 0x1603'
[canon_dr] sane_get_devices: looking for 'usb 0x04a9 0x1604'
[canon_dr] sane_get_devices: looking for 'usb 0x04a9 0x1606'
[canon_dr] sane_get_devices: looking for 'usb 0x04a9 0x1607'
[canon_dr] sane_get_devices: setting "duplex-offset" to 432
[canon_dr] sane_get_devices: looking for 'usb 0x04a9 0x1608'
[canon_dr] sane_get_devices: looking for 'usb 0x04a9 0x1609'
[canon_dr] sane_get_devices: setting "duplex-offset" to 840
[canon_dr] sane_get_devices: setting "vendor-name" to CANON
[canon_dr] sane_get_devices: setting "model-name" to DR-2050C
[canon_dr] sane_get_devices: setting "version-name" to XXXX
[canon_dr] sane_get_devices: setting "padded-read" to 1
[canon_dr] sane_get_devices: looking for 'usb 0x04a9 0x160a'
[canon_dr] sane_get_devices: looking for 'usb 0x04a9 0x160b'
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x160c'
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x160f'
[canon_dr] sane_get_devices: looking for 'usb 0x04a9 0x2222'
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x1614'
[canon_dr] sane_get_devices: setting "duplex-offset" to 400
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x1617'
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x1618'
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x161a'
[canon_dr] sane_get_devices: setting "duplex-offset" to 400
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x161b'
[canon_dr] sane_get_devices: setting "duplex-offset" to 400
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x161d'
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x1620'
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x1622'
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x1623'
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x1624'
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x1626'
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x162b'
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x1638'
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x1639'
[canon_dr] sane_get_devices: setting "extra-status" to 1
[canon_dr] sane_get_devices: setting "duplex-offset" to 400
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x163e'
[canon_dr] sane_get_devices: setting "extra-status" to 1
[canon_dr] sane_get_devices: setting "duplex-offset" to 400
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x163f'
[canon_dr] sane_get_devices: setting "duplex-offset" to 400
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x1640'
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x1641'
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x1646'
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x1648'
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x164a'
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x164b'
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x164c'
[canon_dr] sane_get_devices: config option "buffer-size" (8000000) is > 2097152, scanning problems may result
[canon_dr] sane_get_devices: setting "buffer-size" to 8000000
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x164f'
[canon_dr] sane_get_devices: config option "buffer-size" (8000000) is > 2097152, scanning problems may result
[canon_dr] sane_get_devices: setting "buffer-size" to 8000000
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x1650'
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x1651'
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x1652'
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x1654'
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x1657'
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x1658'
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x1659'
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x165b'
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x165d'
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x165f'
[canon_dr] sane_get_devices: looking for 'usb 0x1083 0x162c'
[canon_dr] attach_one: start
[canon_dr] attach_one: looking for 'libusb:003:004'
[canon_dr] connect_fd: start
[canon_dr] connect_fd: opening USB device (libusb:003:004)
[canon_dr] wait_scanner: start
[canon_dr] do_usb_cmd: start 1471238128 939314
[canon_dr] cmd: writing 24 bytes, timeout 500
[canon_dr] cmd: >>
[canon_dr] 000: 00 00 00 14 00 01 90 00 00 00 00 00 00 00 00 00 ................
[canon_dr] 010: 00 00 00 00 00 00 00 00                         ........        
[canon_dr] cmd: wrote 24 bytes, retVal 0
[canon_dr] stat: reading 4 bytes, timeout 500
[canon_dr] stat: read 0 bytes, retval 9
[canon_dr] stat: <<
[canon_dr] stat: clearing error 'Error during device I/O'
[canon_dr] do_usb_clear: start
[canon_dr] do_usb_clear: clear halt
[canon_dr] do_usb_clear: finish with io error
[canon_dr] stat: bad RS status, 9
[canon_dr] WARNING: Brain-dead scanner. Hitting with stick
[canon_dr] do_usb_cmd: start 1471238129 242340
[canon_dr] cmd: writing 24 bytes, timeout 500
[canon_dr] cmd: >>
[canon_dr] 000: 00 00 00 14 00 01 90 00 00 00 00 00 00 00 00 00 ................
[canon_dr] 010: 00 00 00 00 00 00 00 00                         ........        
[canon_dr] cmd: wrote 24 bytes, retVal 0
[canon_dr] stat: reading 4 bytes, timeout 500
[canon_dr] stat: read 4 bytes, retval 0
[canon_dr] stat: <<
[canon_dr] 000: 00 00 00 00                                     ....            
[canon_dr] do_usb_cmd: finish 1471238129 242895
[canon_dr] wait_scanner: finish
[canon_dr] connect_fd: finish
[canon_dr] init_inquire: start
[canon_dr] do_usb_cmd: start 1471238129 242942
[canon_dr] cmd: writing 24 bytes, timeout 30000
[canon_dr] cmd: >>
[canon_dr] 000: 00 00 00 14 00 01 90 00 00 00 00 00 12 00 00 00 ................
[canon_dr] 010: 30 00 00 00 00 00 00 00                         0.......        
[canon_dr] cmd: wrote 24 bytes, retVal 0
[canon_dr] in: reading 48 bytes, timeout 30000
[canon_dr] in: read 48 bytes, retval 0
[canon_dr] in: <<
[canon_dr] 000: 06 00 02 02 3b 00 00 10 43 41 4e 4f 4e 20 20 20 ....;...CANON   
[canon_dr] 010: 50 2d 31 35 30 20 20 20 20 20 20 20 20 20 20 20 P-150           
[canon_dr] 020: 32 2e 30 30 00 00 00 00 32 30 31 30 30 31 31 35 2.00....20100115
[canon_dr] stat: reading 4 bytes, timeout 30000
[canon_dr] stat: read 4 bytes, retval 0
[canon_dr] stat: <<
[canon_dr] 000: 00 00 00 00                                     ....            
[canon_dr] do_usb_cmd: finish 1471238129 243952
[canon_dr] init_inquire: Found CANON scanner P-150 version 2.00 at libusb:003:004
[canon_dr] init_inquire: finish
[canon_dr] init_vpd: start
[canon_dr] do_usb_cmd: start 1471238129 244004
[canon_dr] cmd: writing 24 bytes, timeout 30000
[canon_dr] cmd: >>
[canon_dr] 000: 00 00 00 14 00 01 90 00 00 00 00 00 12 01 f0 00 ................
[canon_dr] 010: 1e 00 00 00 00 00 00 00                         ........        
[canon_dr] cmd: wrote 24 bytes, retVal 0
[canon_dr] in: reading 30 bytes, timeout 30000
[canon_dr] in: read 30 bytes, retval 0
[canon_dr] in: <<
[canon_dr] 000: 06 f0 02 00 2b 02 58 02 58 00 02 58 02 58 00 64 ....+.X.X..X.X.d
[canon_dr] 010: 00 64 29 d4 00 00 13 f0 00 00 20 d0 18 00       .d)....... ...  
[canon_dr] stat: reading 4 bytes, timeout 30000
[canon_dr] stat: read 4 bytes, retval 0
[canon_dr] stat: <<
[canon_dr] 000: 00 00 00 00                                     ....            
[canon_dr] do_usb_cmd: finish 1471238129 245043
[canon_dr] init_vpd: length=2b
[canon_dr] standard options
[canon_dr]   basic x res: 600 dpi
[canon_dr]   basic y res: 600 dpi
[canon_dr]   step x res: 0 dpi
[canon_dr]   step y res: 0 dpi
[canon_dr]   max x res: 600 dpi
[canon_dr]   max y res: 600 dpi
[canon_dr]   min x res: 100 dpi
[canon_dr]   min y res: 100 dpi
[canon_dr]   60 dpi: 0
[canon_dr]   75 dpi: 0
[canon_dr]   100 dpi: 1
[canon_dr]   120 dpi: 0
[canon_dr]   150 dpi: 1
[canon_dr]   160 dpi: 0
[canon_dr]   180 dpi: 0
[canon_dr]   200 dpi: 1
[canon_dr]   240 dpi: 1
[canon_dr]   300 dpi: 1
[canon_dr]   320 dpi: 0
[canon_dr]   400 dpi: 1
[canon_dr]   480 dpi: 0
[canon_dr]   600 dpi: 1
[canon_dr]   800 dpi: 0
[canon_dr]   1200 dpi: 0
[canon_dr]   max width: 10208 (8.51 in)
[canon_dr]   max length: 16800 (14.00 in)
[canon_dr]   AWD: 0
[canon_dr]   CE Emphasis: 0
[canon_dr]   C Emphasis: 0
[canon_dr]   High quality: 1
[canon_dr]   grayscale: 1
[canon_dr]   halftone: 0
[canon_dr]   monochrome: 0
[canon_dr]   overflow: 0
[canon_dr] init_vpd: finish
[canon_dr] init_model: start
[canon_dr] init_model: finish
[canon_dr] init_panel: start
[canon_dr] read_panel: start 0
[canon_dr] read_panel: running
[canon_dr] do_usb_cmd: start 1471238129 245579
[canon_dr] cmd: writing 24 bytes, timeout 30000
[canon_dr] cmd: >>
[canon_dr] 000: 00 00 00 14 00 01 90 00 00 00 00 00 28 00 84 00 ............(...
[canon_dr] 010: 00 00 00 00 08 00 00 00                         ........        
[canon_dr] cmd: wrote 24 bytes, retVal 0
[canon_dr] in: reading 8 bytes, timeout 30000
[canon_dr] in: read 8 bytes, retval 0
[canon_dr] in: <<
[canon_dr] 000: 00 00 00 01 00 00 00 00                         ........        
[canon_dr] stat: reading 4 bytes, timeout 30000
[canon_dr] stat: read 4 bytes, retval 0
[canon_dr] stat: <<
[canon_dr] 000: 00 00 00 00                                     ....            
[canon_dr] do_usb_cmd: finish 1471238129 246533
[canon_dr] read_panel: finish 0
[canon_dr] send_panel: start
[canon_dr] do_usb_cmd: start 1471238129 246570
[canon_dr] cmd: writing 24 bytes, timeout 30000
[canon_dr] cmd: >>
[canon_dr] 000: 00 00 00 14 00 01 90 00 00 00 00 00 2a 00 84 00 ............*...
[canon_dr] 010: 00 00 00 00 08 00 00 00                         ........        
[canon_dr] cmd: wrote 24 bytes, retVal 0
[canon_dr] out: writing 20 bytes, timeout 30000
[canon_dr] out: >>
[canon_dr] 000: 00 00 00 10 00 02 b0 00 00 00 00 00 00 00 01 00 ................
[canon_dr] 010: 00 00 00 00                                     ....            
[canon_dr] out: wrote 20 bytes, retVal 0
[canon_dr] stat: reading 4 bytes, timeout 30000
[canon_dr] stat: read 4 bytes, retval 0
[canon_dr] stat: <<
[canon_dr] 000: 00 00 00 00                                     ....            
[canon_dr] do_usb_cmd: finish 1471238129 247687
[canon_dr] send_panel: finish 0
[canon_dr] init_panel: finish
[canon_dr] init_user: start
[canon_dr] init_user: finish
[canon_dr] init_options: start
[canon_dr] init_options: finish
[canon_dr] disconnect_fd: start
[canon_dr] disconnecting usb device
[canon_dr] disconnect_fd: finish
[canon_dr] attach_one: finish
[canon_dr] sane_get_devices: found scanner libusb:003:004
[canon_dr] sane_get_devices: found 1 scanner(s)
[canon_dr] sane_get_devices: finish
scanimage: sane_start: Invalid argument
[canon_dr] sane_exit: start
[canon_dr] disconnect_fd: start
[canon_dr] disconnect_fd: finish
[canon_dr] sane_exit: finish


More information about the sane-devel mailing list