Am Montag, den 04.02.2013, 18:53 +0100 schrieb Matthias Thon: > Hi Rolf, > thanks for the patch. I have build the new backend (see version.txt). > Still testing withe the other stuff from Version 1.0.23. There are no > changes after the patch (tested with net and USB-Connection). Attached > the output- and the error-output file. > > regards matthias > > Am Montag, den 04.02.2013, 12:37 +0100 schrieb Rolf Bensch: > > Hi Matthias, > > > > I prepared a first patch for your button problem. This should fix > > receiving USB interrupts. > > > > Please fetch latest Sane 1.0.24 from git: 'git clone > > git://git.debian.org/sane/sane-backends.git'. git creates a new folder > > "sane-backends". Please read "sane-backends/README.linux" how to install > > Sane. > > > > To accelerate build time you can configure Sane to compile Pixma backend > > only with: 'BACKENDS="pixma" ./configure'. > > > > Then you need to save the attached file to 'sane-backends/backend/' and > > patch "pixma_mp150.c" with: 'patch pixma_mp150.c pixma_mp150.c.diff1'. > > > > After this cd back to 'sane-backends' and install the patch with: 'make > > && sudo make install'. > > > > Now you should get "[pixma]" messages while proceeding the test I > > described in my last email. > > > > If 'scanimage -A' still doesn't get data neither for --button-1, > > --button-2, --original nor for --target, then please send me the > > "[pixma]" messages for all buttons. > > > > Cheers, > > Rolf > > > > > > Am 03.02.2013 23:33, schrieb Matthias Thon: > > > Hello Rolf, > > > > > > with both (LAN/USB) connections, i get no such messages "{pixma]" in the > > > "Buttons:" section. I've tried different buttons (PDF, JPEG...BLACK, > > > COLOR). > > > > > > Attached output and error output after pressing "COLOR SCAN" Button. > > > > > > regards Matthias > > > > > > Am Sonntag, den 03.02.2013, 20:49 +0100 schrieb Rolf Bensch: > > >> Hi Matthias, > > >> > > >> Please (1) activate debug messages with 'export SANE_DEBUG_PIXMA=11', > > >> (2) push one of your scanners's buttons and > > >> (3) read the button status with 'scanimage -A'. > > >> > > >> You should receive something similar like this: > > >> > > >> ... > > >> Buttons: > > >> --button-update > > >> Update button state > > >> [pixma] INTR T=1.580 len=32 > > >> [pixma] 00000000:00 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > > >> [pixma] 00000010:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > > >> [pixma] > > >> --button-1 <int> [1] [read-only] > > >> Button 1 > > >> --button-2 <int> [0] [read-only] > > >> Button 2 > > >> --original <int> [0] [read-only] > > >> Type of original to scan > > >> --target <int> [1] [read-only] > > >> Target operation type > > >> ... > > >> > > >> If you get lines with [pixma], please repeat this test ((2) & (3)) with > > >> all buttons and provide the output from all buttons. Please write the > > >> name of the button to the corresponding debug output. > > >> > > >> If you don't get lines with [pixma], Sane doesn't receive the USB > > >> interrupt from your scanner and I need to prepare a patch. > > >> > > >> Cheers, > > >> Rolf > > >> > > >> > > >> > > >> > > >> Am 03.02.2013 13:09, schrieb Matthias Thon: > > >>> Hello Rolf, > > >>> > > >>> ihave checked your informations. The MG6250 doesn't have a target > > >>> option. Only the two buttons.I have tryed many cases on the MG but the > > >>> value of the buttons stay's at value "0". Normaly i have conncted the > > >>> printer over wlan or ethernet. If i try to push "scan" and then "color" > > >>> i get an error on the printer, because he doesn't recocnice the scanning > > >>> PC. He shows me only "local USB". > > >>> > > >>> I have connected the printer with a USB_cable. Then i can push the > > >>> "color" or "grey" button and the printe waits for the scanning process. > > >>> But scanimage -A shows no changes. The only change is in the resolution > > >>> option. This option adds 4800 dpi. > > >>> > > >>> scanimage --button-controlled doesn't start the scan after pressing > > >>> "color" or "grey" button. > > >>> > > >>> Scanning from outside (xsane) works well. > > >>> > > >>> regards Matthias > > >>> > > >>> Am Samstag, den 02.02.2013, 18:09 +0100 schrieb Rolf Bensch: > > >>>> Hi Matthias, > > >>>> > > >>>> To discover the communication between Sane and scanbd try 'scanimage > > >>>> -A'. Press a button and start 'scanimage -A' again. Repeat this until > > >>>> you'll have the codes for all buttons. > > >>>> > > >>>> For my CS9000F I get data for --button-1, --button-2 *and* --target. > > >>>> > > >>>> Please have a look to my posting here: > > >>>> http://lists.alioth.debian.org/pipermail/sane-devel/2013-January/030828.html. > > >>>> > > >>>> If you don't get any codes for your buttons please contact me again. > > >>>> Then we have to patch the backend for your scanner. > > >>>> > > >>>> Cheers, > > >>>> Rolf > > >>>> > > >>>> > > >>>> > > >>>> Am 01.02.2013 16:59, schrieb Matthias Thon: > > >>>>> Hello, > > >>>>> i've tried to use scanbd with my MG6200 Series device. He finds > > >>>>> "button-1" and "button-2" option. But the value is still "0". > > >>>>> > > >>>>> I have try "Scan" -> "Black&White" or "Scan" -> "Color". > > >>>>> > > >>>>> Is there a way to see more detailed the communication between scanbd > > >>>>> and > > >>>>> the device? (more then with debug level 7) > > >>>>> > > >>>>> regards > > >>>>> > > >>>>> > > >>>>> > > >>> > > >>> > > >>> > > > >
-------------- next part -------------- [sanei_debug] Setting debug level of dll to 255. [dll] sane_init: SANE dll backend version 1.0.13 from sane-backends 1.0.23 [dll] sane_init/read_dlld: attempting to open directory `/usr/local/etc/scanbd/dll.d' [dll] sane_init/read_dlld: using config directory `/usr/local/etc/scanbd/dll.d' [dll] sane_init/read_dlld: considering /usr/local/etc/scanbd/dll.d/hplip [dll] sane_init/read_config: reading dll.d/hplip [dll] add_backend: adding backend `hpaio' [dll] sane_init/read_dlld: done. [dll] sane_init/read_config: reading dll.conf [dll] add_backend: adding backend `pixma' [dll] sane_get_devices [dll] load: searching backend `pixma' in `/usr/lib/x86_64-linux-gnu/sane:/usr/lib/sane' [dll] load: trying to load `/usr/lib/x86_64-linux-gnu/sane/libsane-pixma.so.1' [dll] load: dlopen()ing `/usr/lib/x86_64-linux-gnu/sane/libsane-pixma.so.1' [dll] init: initializing backend `pixma' [sanei_debug] Setting debug level of pixma to 11. [pixma] pixma is compiled with pthread support. [pixma] pixma version 0.17.0 [dll] init: backend `pixma' is version 1.0.17 [pixma] pixma_collect_devices() found Canon PIXMA MG6200 at libusb:002:014 [pixma] sanei_bjnp_find_devices: [pixma] Added all configured scanners, now do auto detection... [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is not a valid IPv4 interface, skipping... [pixma] wlan0 is not a valid IPv4 interface, skipping... [pixma] vboxnet0 is not a valid IPv4 interface, skipping... [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is IPv4 capable, sending broadcast.. [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is not a valid IPv4 interface, skipping... [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is not a valid IPv4 interface, skipping... [pixma] wlan0 is not a valid IPv4 interface, skipping... [pixma] vboxnet0 is not a valid IPv4 interface, skipping... [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is IPv4 capable, sending broadcast.. [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is not a valid IPv4 interface, skipping... [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is not a valid IPv4 interface, skipping... [pixma] wlan0 is not a valid IPv4 interface, skipping... [pixma] vboxnet0 is not a valid IPv4 interface, skipping... [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is IPv4 capable, sending broadcast.. [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is not a valid IPv4 interface, skipping... [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is not a valid IPv4 interface, skipping... [pixma] wlan0 is not a valid IPv4 interface, skipping... [pixma] vboxnet0 is not a valid IPv4 interface, skipping... [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is IPv4 capable, sending broadcast.. [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is not a valid IPv4 interface, skipping... [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is not a valid IPv4 interface, skipping... [pixma] wlan0 is not a valid IPv4 interface, skipping... [pixma] vboxnet0 is not a valid IPv4 interface, skipping... [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is IPv4 capable, sending broadcast.. [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is not a valid IPv4 interface, skipping... [pixma] scanner discovery finished... [pixma] pixma_find_scanners() found 1 devices [dll] load: searching backend `hpaio' in `/usr/lib/x86_64-linux-gnu/sane:/usr/lib/sane' [dll] load: trying to load `/usr/lib/x86_64-linux-gnu/sane/libsane-hpaio.so.1' [dll] load: couldn't open `/usr/lib/x86_64-linux-gnu/sane/libsane-hpaio.so.1' (No such file or directory) [dll] load: trying to load `/usr/lib/sane/libsane-hpaio.so.1' [dll] load: dlopen()ing `/usr/lib/sane/libsane-hpaio.so.1' [dll] init: initializing backend `hpaio' [dll] init: backend `hpaio' is version 1.0.0 [dll] sane_get_devices: found 1 devices [dll] sane_open: trying to open `pixma:04A91755_14B4F6' [pixma] pixma_collect_devices() found Canon PIXMA MG6200 at libusb:002:014 [pixma] sanei_bjnp_find_devices: [pixma] Added all configured scanners, now do auto detection... [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is not a valid IPv4 interface, skipping... [pixma] wlan0 is not a valid IPv4 interface, skipping... [pixma] vboxnet0 is not a valid IPv4 interface, skipping... [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is IPv4 capable, sending broadcast.. [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is not a valid IPv4 interface, skipping... [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is not a valid IPv4 interface, skipping... [pixma] wlan0 is not a valid IPv4 interface, skipping... [pixma] vboxnet0 is not a valid IPv4 interface, skipping... [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is IPv4 capable, sending broadcast.. [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is not a valid IPv4 interface, skipping... [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is not a valid IPv4 interface, skipping... [pixma] wlan0 is not a valid IPv4 interface, skipping... [pixma] vboxnet0 is not a valid IPv4 interface, skipping... [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is IPv4 capable, sending broadcast.. [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is not a valid IPv4 interface, skipping... [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is not a valid IPv4 interface, skipping... [pixma] wlan0 is not a valid IPv4 interface, skipping... [pixma] vboxnet0 is not a valid IPv4 interface, skipping... [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is IPv4 capable, sending broadcast.. [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is not a valid IPv4 interface, skipping... [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is not a valid IPv4 interface, skipping... [pixma] wlan0 is not a valid IPv4 interface, skipping... [pixma] vboxnet0 is not a valid IPv4 interface, skipping... [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is IPv4 capable, sending broadcast.. [pixma] lo is not a valid IPv4 interface, skipping... [pixma] eth0 is not a valid IPv4 interface, skipping... [pixma] scanner discovery finished... [pixma] pixma_open(): Canon PIXMA MG6200 [dll] sane_open: open successful [dll] sane_get_option_descriptor(handle=0x1c03300,option=0) [dll] sane_control_option(handle=0x1c03300,option=0,action=0,value=0x7fff90ecd3a8,info=(nil)) [dll] sane_get_option_descriptor(handle=0x1c03300,option=0) [dll] sane_control_option(handle=0x1c03300,option=0,action=0,value=0x7fff90ecd2e8,info=(nil)) [dll] sane_get_option_descriptor(handle=0x1c03300,option=1) [dll] sane_get_option_descriptor(handle=0x1c03300,option=2) [dll] sane_get_option_descriptor(handle=0x1c03300,option=3) [dll] sane_get_option_descriptor(handle=0x1c03300,option=4) [dll] sane_get_option_descriptor(handle=0x1c03300,option=5) [dll] sane_get_option_descriptor(handle=0x1c03300,option=6) [dll] sane_get_option_descriptor(handle=0x1c03300,option=7) [dll] sane_get_option_descriptor(handle=0x1c03300,option=8) [dll] sane_get_option_descriptor(handle=0x1c03300,option=9) [dll] sane_get_option_descriptor(handle=0x1c03300,option=10) [dll] sane_get_option_descriptor(handle=0x1c03300,option=11) [dll] sane_get_option_descriptor(handle=0x1c03300,option=12) [dll] sane_get_option_descriptor(handle=0x1c03300,option=13) [dll] sane_get_option_descriptor(handle=0x1c03300,option=14) [dll] sane_get_option_descriptor(handle=0x1c03300,option=15) [dll] sane_get_option_descriptor(handle=0x1c03300,option=16) [dll] sane_get_option_descriptor(handle=0x1c03300,option=17) [dll] sane_get_option_descriptor(handle=0x1c03300,option=18) [dll] sane_get_option_descriptor(handle=0x1c03300,option=19) [dll] sane_get_option_descriptor(handle=0x1c03300,option=20) [dll] sane_get_option_descriptor(handle=0x1c03300,option=21) [dll] sane_control_option(handle=0x1c03300,option=13,action=0,value=0x60b6c0,info=(nil)) [dll] sane_control_option(handle=0x1c03300,option=11,action=0,value=0x7fff90ecd2ec,info=(nil)) [dll] sane_control_option(handle=0x1c03300,option=14,action=0,value=0x60b6c4,info=(nil)) [dll] sane_control_option(handle=0x1c03300,option=12,action=0,value=0x7fff90ecd2ec,info=(nil)) [dll] sane_control_option(handle=0x1c03300,option=11,action=0,value=0x7fff90ecd3b0,info=(nil)) [dll] sane_get_option_descriptor(handle=0x1c03300,option=13) [dll] sane_control_option(handle=0x1c03300,option=13,action=1,value=0x7fff90ecd3b4,info=0x7fff90ecd2ec) [dll] sane_control_option(handle=0x1c03300,option=12,action=0,value=0x7fff90ecd3b0,info=(nil)) [dll] sane_get_option_descriptor(handle=0x1c03300,option=14) [dll] sane_control_option(handle=0x1c03300,option=14,action=1,value=0x7fff90ecd3b4,info=0x7fff90ecd2ec) [dll] sane_get_option_descriptor(handle=0x1c03300,option=1) [dll] sane_get_option_descriptor(handle=0x1c03300,option=2) [dll] sane_control_option(handle=0x1c03300,option=2,action=0,value=0x7fff90ecd270,info=(nil)) [dll] sane_get_option_descriptor(handle=0x1c03300,option=3) [dll] sane_control_option(handle=0x1c03300,option=3,action=0,value=0x7fff90ecd260,info=(nil)) [dll] sane_get_option_descriptor(handle=0x1c03300,option=4) [dll] sane_control_option(handle=0x1c03300,option=4,action=0,value=0x7fff90ecd260,info=(nil)) [dll] sane_get_option_descriptor(handle=0x1c03300,option=5) [dll] sane_control_option(handle=0x1c03300,option=5,action=0,value=0x7fff90ecd270,info=(nil)) [dll] sane_get_option_descriptor(handle=0x1c03300,option=6) [dll] sane_get_option_descriptor(handle=0x1c03300,option=7) [dll] sane_control_option(handle=0x1c03300,option=7,action=0,value=0x7fff90ecd270,info=(nil)) [dll] sane_get_option_descriptor(handle=0x1c03300,option=8) [dll] sane_get_option_descriptor(handle=0x1c03300,option=9) [dll] sane_control_option(handle=0x1c03300,option=9,action=0,value=0x7fff90ecd270,info=(nil)) [dll] sane_get_option_descriptor(handle=0x1c03300,option=10) [dll] sane_control_option(handle=0x1c03300,option=11,action=0,value=0x7fff90ecd270,info=(nil)) [dll] sane_control_option(handle=0x1c03300,option=12,action=0,value=0x7fff90ecd270,info=(nil)) [dll] sane_control_option(handle=0x1c03300,option=13,action=0,value=0x7fff90ecd270,info=(nil)) [dll] sane_control_option(handle=0x1c03300,option=14,action=0,value=0x7fff90ecd270,info=(nil)) [dll] sane_get_option_descriptor(handle=0x1c03300,option=15) [dll] sane_get_option_descriptor(handle=0x1c03300,option=16) [dll] sane_get_option_descriptor(handle=0x1c03300,option=17) [dll] sane_control_option(handle=0x1c03300,option=17,action=0,value=0x7fff90ecd270,info=(nil)) [dll] sane_get_option_descriptor(handle=0x1c03300,option=18) [dll] sane_control_option(handle=0x1c03300,option=18,action=0,value=0x7fff90ecd270,info=(nil)) [dll] sane_get_option_descriptor(handle=0x1c03300,option=19) [dll] sane_get_option_descriptor(handle=0x1c03300,option=20) [dll] sane_get_option_descriptor(handle=0x1c03300,option=21) [dll] sane_close(handle=0x1c03300) [pixma] pixma_close(): Canon PIXMA MG6200 [dll] sane_exit: exiting [dll] sane_exit: calling backend `pixma's exit function [dll] sane_exit: calling backend `hpaio's exit function [dll] sane_exit: finished -------------- next part -------------- All options specific to device `pixma:04A91755_14B4F6': Scan mode: --resolution auto||75|150|300|600|1200|2400|4800dpi [75] Sets the resolution of the scanned image. --mode auto|Color|Gray|Lineart [Color] Selects the scan mode (e.g., lineart, monochrome, or color). --source Flatbed [Flatbed] Selects the scan source (such as a document-feeder). Set source before mode and resolution. Resets mode and resolution to auto values. --button-controlled[=(yes|no)] [no] When enabled, scan process will not start immediately. To proceed, press "SCAN" button (for MP150) or "COLOR" button (for other models). To cancel, press "GRAY" button. Gamma: --custom-gamma[=(auto|yes|no)] [yes] Determines whether a builtin or a custom gamma-table should be used. --gamma-table auto|0..255,... Gamma-correction table. In color mode this option equally affects the red, green, and blue channels simultaneously (i.e., it is an intensity gamma table). --gamma auto|0.299988..5 [2.2] Changes intensity of midtones Geometry: -l auto|0..216.069mm [0] Top-left x position of scan area. -t auto|0..297.011mm [0] Top-left y position of scan area. -x auto|0..216.069mm [216.069] Width of scan-area. -y auto|0..297.011mm [297.011] Height of scan-area. Buttons: --button-update Update button state --button-1 <int> [0] Button 1 --button-2 <int> [0] Button 2 Extras: --threshold auto|0..100% (in steps of 1) [inactive] Select minimum-brightness to get a white point --threshold-curve auto|0..127 (in steps of 1) [inactive] Dynamic threshold curve, from light to dark, normally 50-65 -------------- next part -------------- SHELL=/bin/bash TERM=xterm OLDPWD=/usr/local/src/sane-backends-git/sane-backends/backend USER=root LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36: SUDO_USER=matze SUDO_UID=1000 SANE_CONF_DIR=/usr/local/etc/scanbd USERNAME=root MAIL=/var/mail/root PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PWD=/usr/local/src/sane-backends-git/sane-backends LANG=de_DE.UTF-8 SANE_DEBUG_DLL=255 SHLVL=1 SUDO_COMMAND=/bin/bash HOME=/home/matze LOGNAME=root SANE_DEBUG_PIXMA=11 LESSOPEN=| /usr/bin/lesspipe %s SUDO_GID=1000 DISPLAY=:0 SANE_CONFIG_DIR=/usr/local/etc/scanbd LESSCLOSE=/usr/bin/lesspipe %s %s XAUTHORITY=/home/matze/.Xauthority COLORTERM=gnome-terminal _=/usr/bin/printenv -------------- next part -------------- scanimage (sane-backends) 1.0.24git; backend version 1.0.23