<div dir="ltr"><div><div><div><div><div>Hi Rolf,<br><br></div>great.... now i see a reaction at the debug output. Seems that Button1 ist "BLACK" and Button2 ist "COLOR". I found no reaction if scanner is opened or closed. In some cases "FOTO", "PDF" target is set.<br>
<br></div>1. Autom. Scan -> BLACK<br>[pixma] INTR T=1.391 len=32<br>[pixma] 00000000:00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 <br>[pixma] 00000010:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <br>[pixma] <br>
--button-1 <int> [1] [read-only]<br> Button 1<br> --button-2 <int> [0] [read-only]<br> Button 2<br> --original <int> [0] [read-only]<br> Type of original to scan<br> --target <int> [1] [read-only]<br>
Target operation type<br><br></div>2. Autom. Scan -> COLOR<br><br>[pixma] INTR T=1.315 len=32<br>[pixma] 00000000:00 00 00 00 01 01 03 02 01 00 00 00 00 00 00 00 <br>[pixma] 00000010:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <br>
[pixma] <br> --button-1 <int> [0] [read-only]<br> Button 1<br> --button-2 <int> [1] [read-only]<br> Button 2<br> --original <int> [0] [read-only]<br> Type of original to scan<br>
--target <int> [0] [read-only]<br> Target operation type<br> <br><br></div>3. Dokument -> PDF -> BLACK<br>[pixma] INTR T=1.421 len=32<br>[pixma] 00000000:00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 <br>
[pixma] 00000010:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <br>[pixma] <br> --button-1 <int> [1] [read-only]<br> Button 1<br> --button-2 <int> [0] [read-only]<br> Button 2<br> --original <int> [0] [read-only]<br>
Type of original to scan<br> --target <int> [1] [read-only]<br> Target operation type<br><br></div>4. Foto -> TIFF -> BLACK<br>[pixma] INTR T=1.421 len=32<br>[pixma] 00000000:00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 <br>
[pixma] 00000010:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <br>[pixma] <br> --button-1 <int> [1] [read-only]<br> Button 1<br> --button-2 <int> [0] [read-only]<br> Button 2<br> --original <int> [0] [read-only]<br>
Type of original to scan<br> --target <int> [1] [read-only]<br> Target operation type<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/2/6 Rolf Bensch <span dir="ltr"><<a href="mailto:rolf@bensch-online.de" target="_blank">rolf@bensch-online.de</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Matthias,<br>
<br>
I prepared a 2nd patch for pixma_mp150.c. This should fix the timeout<br>
problem and sets "--button-1", "--button-2" and "--target". This patch<br>
is based on the first patch.<br>
<br>
Please test the patched version with enabled debug messages: 'export<br>
SANE_DEBUG_PIXMA=21' and test both buttons ("BLACK" and "COLOR") with<br>
'scanimage -A'.<br>
<br>
Please test *all* buttons, also the ones on the touch screen and if<br>
there is a signal if the cover is opened and closed.<br>
<br>
You can see any response / signal in these lines:<br>
<div class="im"><br>
[pixma] INTR T=1.432 len=32<br>
[pixma] 00000000:00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00<br>
</div> "COLOR" button pressed:^^<br>
<div class="im">[pixma] 00000010:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>
<br>
</div>Cheers,<br>
Rolf<br>
<br>
<br>
<br>
Am 06.02.2013 10:43, schrieb Matthias Thon:<br>
> Hi Rolf,<br>
><br>
<div class="im">> The MG6250 has a small Display. All Buttons are normaly invisible. The<br>
> device only illuminate the buttons, which can be used in the actual<br>
> context.<br>
><br>
> 3 Buttons are under the display. 5 Buttons are for up, down, right,<br>
> left and in the middle OK. Then we have a "home" and a "return" Button.<br>
> And at last two buttons for copy,scan in "BLACK" or "COLOR".<br>
><br>
> For example: I press the right button under the display (Scan). After<br>
> that the device illuminates the home, return, black, color and the left<br>
> and middle buttons under the display.<br>
><br>
> Which button we use for scanbd is equal.<br>
><br>
> If i start scanimage -A, sane sending time and the trying to read 8<br>
> byte. This read failed (Resource temporarily unavailable. After that i<br>
> can press different buttons, but no reaction by scanimage.<br>
><br>
><br>
> After pressing "COLOR" or "BLACK" the device shows "Verarbeitung....<br>
> Bitte warten" and waits for about 1 Minute. Seems that the device wating<br>
> for transfer scan data. But the scan-motor doesn't do anything.<br>
><br>
> regards matthias<br>
><br>
><br>
</div>> 2013/2/6 Rolf Bensch <<a href="mailto:rolf@bensch-online.de">rolf@bensch-online.de</a> <mailto:<a href="mailto:rolf@bensch-online.de">rolf@bensch-online.de</a>>><br>
<div><div class="h5">><br>
> Hi Matthias,<br>
><br>
> Super! Please send me the same logs for all buttons, one by one. Then<br>
> I'll prepare the next patch. By now you can ignore the timeout.<br>
><br>
> Some programs use "--button-1" to scan a page and "--button-2" to end a<br>
> scan session. For my scanner I'm using all buttons for "--button-1"<br>
> except button "PDF End" for "--button-2". And secondary the individual<br>
> button code is in "--target".<br>
><br>
> I like to implement the buttons of your scanner in the same way. Which<br>
> button do you like to connect to "--button-2"?<br>
><br>
> Cheers,<br>
> Rolf<br>
><br>
><br>
> Am 05.02.2013 23:13, schrieb Matthias Thon:<br>
> > Hi Rolf,<br>
> > here the dump with the higher Debug-Levels. I interrupt after pressing<br>
> > the "COLOR" Scan-Button and the second timout.<br>
> ><br>
> > regards Matthias<br>
> ><br>
> > Width of scan-area.<br>
> > -y auto|0..297.011mm [297.011]<br>
> > Height of scan-area.<br>
> > Buttons:<br>
> > --button-update<br>
> > Update button state<br>
> > [sanei_usb] sanei_usb_read_int: trying to read 64 bytes<br>
> > [sanei_usb] sanei_usb_read_int: wanted 64 bytes, got 32 bytes<br>
> > [sanei_usb] 000 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00<br>
> > ................<br>
> > [sanei_usb] 010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>
> > ................<br>
> > [pixma] INTR T=1.432 len=32<br>
> > [pixma] 00000000:00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00<br>
> > [pixma] 00000010:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>
> > [pixma]<br>
> > [pixma] Sending time: '13/02/05 23:10'<br>
> > [sanei_usb] sanei_usb_write_bulk: trying to write 36 bytes<br>
> > [sanei_usb] 000 EB 80 00 00 00 00 00 00 00 00 00 00 00 00 00 14<br>
> > ................<br>
> > [sanei_usb] 010 31 33 2F 30 32 2F 30 35 20 32 33 3A 31 30 00 00<br>
> 13/02/05<br>
> > 23:10..<br>
> > [sanei_usb] 020 00 00 00 57<br>
> > ...W<br>
> > [sanei_usb] sanei_usb_write_bulk: wanted 36 bytes, wrote 36 bytes<br>
> > [pixma] OUT T=1.433 len=36<br>
> > [pixma] 00000000:eb 80 00 00 00 00 00 00 00 00 00 00 00 00 00 14<br>
> > [pixma] 00000010:31 33 2f 30 32 2f 30 35 20 32 33 3a 31 30 00 00<br>
> > [pixma] 00000020:00 00 00 57<br>
> > [pixma]<br>
> > [sanei_usb] sanei_usb_read_bulk: trying to read 8 bytes<br>
> > [sanei_usb] sanei_usb_read_bulk: read failed: Resource temporarily<br>
> > unavailable<br>
> > [pixma] IN T=21.436 len=-9<br>
> > [pixma] ERROR: ETIMEDOUT<br>
> > [pixma]<br>
> > [pixma] No response yet. Timed out in 8 sec.<br>
> > [sanei_usb] sanei_usb_read_bulk: trying to read 8 bytes<br>
> > ^C<br>
> ><br>
> ><br>
> ><br>
> > 2013/2/5 Rolf Bensch <<a href="mailto:rolf@bensch-online.de">rolf@bensch-online.de</a><br>
</div></div>> <mailto:<a href="mailto:rolf@bensch-online.de">rolf@bensch-online.de</a>> <mailto:<a href="mailto:rolf@bensch-online.de">rolf@bensch-online.de</a><br>
<div class="HOEnZb"><div class="h5">> <mailto:<a href="mailto:rolf@bensch-online.de">rolf@bensch-online.de</a>>>><br>
> ><br>
> > Hi Matthias,<br>
> ><br>
> > Sorry for my last email relating to USB and LAN. I mixed the<br>
> emails up<br>
> > in my daily digest. Please set me to cc if you send a response to<br>
> > the list.<br>
> ><br>
> > Anyway, it seems that your scanner answers the USB interrupt<br>
> request and<br>
> > the post process data handling sticks in setting your<br>
> scanner's clock.<br>
> ><br>
> > So I need the debug info with 'export SANE_DEBUG_PIXMA=21' and<br>
> > 'export SANE_DEBUG_SANEI_USB=255' to fix this issue.<br>
> ><br>
> > By now I'm only interested in the lines between "Buttons:" and<br>
> > "Extras:".<br>
> ><br>
> > Cheers,<br>
> > Rolf<br>
> ><br>
> ><br>
> ><br>
> > Am 05.02.2013 18:19, schrieb Matthias Thon:<br>
> > > Hi Rolf,<br>
> > ><br>
> > > now hopefully the right debug information. Now after starting<br>
> > scanimage<br>
> > > -A , it waits for the button information. I try different<br>
> buttons<br>
> > > (black, color) Changed before from JPEG to PDF or TIFF but<br>
> scanimage<br>
> > > waits till timeout. See the output.<br>
> > ><br>
> > > regards Matthias<br>
> > ><br>
> > ><br>
> > ><br>
> ><br>
> root@matze-Satellite-C660:/usr/local/src/sane-backends-git/sane-backends#<br>
> > scanimage<br>
> > > -V<br>
> > > scanimage (sane-backends) 1.0.24git; backend version 1.0.24<br>
> > ><br>
> ><br>
> root@matze-Satellite-C660:/usr/local/src/sane-backends-git/sane-backends#<br>
> > scanimage<br>
> > > -A<br>
> > > [sanei_debug] Setting debug level of pixma to 7.<br>
> > > [pixma] pixma is compiled without pthread support.<br>
> > > [pixma] pixma version 0.17.0<br>
> > > [pixma] pixma_collect_devices() found Canon PIXMA MG6200 at<br>
> > libusb:002:005<br>
> > > [pixma] sanei_bjnp_find_devices:<br>
> > > [pixma] eth0 is IPv4 capable, sending broadcast, socket = 3<br>
> > > [pixma] wlan0 is IPv4 capable, sending broadcast, socket = 4<br>
> > > [pixma] eth0 is IPv6 capable, sending broadcast, socket = 5<br>
> > > [pixma] wlan0 is IPv6 capable, sending broadcast, socket = 6<br>
> > > [pixma] pixma_find_scanners() found 1 devices<br>
> > > [pixma] pixma_collect_devices() found Canon PIXMA MG6200 at<br>
> > libusb:002:005<br>
> > > [pixma] sanei_bjnp_find_devices:<br>
> > > [pixma] eth0 is IPv4 capable, sending broadcast, socket = 3<br>
> > > [pixma] wlan0 is IPv4 capable, sending broadcast, socket = 4<br>
> > > [pixma] eth0 is IPv6 capable, sending broadcast, socket = 5<br>
> > > [pixma] wlan0 is IPv6 capable, sending broadcast, socket = 6<br>
> > > [pixma] pixma_open(): Canon PIXMA MG6200<br>
> > ><br>
> > > All options specific to device `pixma:04A91755_14B4F6':<br>
> > > Scan mode:<br>
> > > --resolution auto||75|150|300|600|1200|2400|4800dpi [75]<br>
> > > Sets the resolution of the scanned image.<br>
> > > --mode auto|Color|Gray|Lineart [Color]<br>
> > > Selects the scan mode (e.g., lineart, monochrome, or<br>
> color).<br>
> > > --source Flatbed [Flatbed]<br>
> > > Selects the scan source (such as a document-feeder). Set<br>
> > source<br>
> > > before<br>
> > > mode and resolution. Resets mode and resolution to auto<br>
> > values.<br>
> > > --button-controlled[=(yes|no)] [no]<br>
> > > When enabled, scan process will not start<br>
> immediately. To<br>
> > proceed,<br>
> > > press "SCAN" button (for MP150) or "COLOR" button<br>
> (for other<br>
> > > models).<br>
> > > To cancel, press "GRAY" button.<br>
> > > Gamma:<br>
> > > --custom-gamma[=(auto|yes|no)] [yes]<br>
> > > Determines whether a builtin or a custom gamma-table<br>
> > should be used.<br>
> > > --gamma-table auto|0..255,...<br>
> > > Gamma-correction table. In color mode this option<br>
> equally<br>
> > > affects the<br>
> > > red, green, and blue channels simultaneously (i.e.,<br>
> it is an<br>
> > > intensity<br>
> > > gamma table).<br>
> > > --gamma auto|0.299988..5 [2.2]<br>
> > > Changes intensity of midtones<br>
> > > Geometry:<br>
> > > -l auto|0..216.069mm [0]<br>
> > > Top-left x position of scan area.<br>
> > > -t auto|0..297.011mm [0]<br>
> > > Top-left y position of scan area.<br>
> > > -x auto|0..216.069mm [216.069]<br>
> > > Width of scan-area.<br>
> > > -y auto|0..297.011mm [297.011]<br>
> > > Height of scan-area.<br>
> > > Buttons:<br>
> > > --button-update<br>
> > > Update button state<br>
> > > [pixma] Sending time: '13/02/05 18:12'<br>
> > > [pixma] No response yet. Timed out in 8 sec.<br>
> > > [pixma] No response yet. Timed out in 7 sec.<br>
> > > [pixma] No response yet. Timed out in 6 sec.<br>
> > > [pixma] No response yet. Timed out in 5 sec.<br>
> > > [pixma] No response yet. Timed out in 4 sec.<br>
> > > [pixma] No response yet. Timed out in 3 sec.<br>
> > > [pixma] No response yet. Timed out in 2 sec.<br>
> > > [pixma] No response yet. Timed out in 1 sec.<br>
> > > [pixma] WARNING: Error in response phase. cmd:eb80<br>
> > > [pixma] If the scanner hangs, reset it and/or unplug the<br>
> USB cable.<br>
> > > --button-1 <int> [0] [read-only]<br>
> > > Button 1<br>
> > > --button-2 <int> [0] [read-only]<br>
> > > Button 2<br>
> > > --original <int> [0] [read-only]<br>
> > > Type of original to scan<br>
> > > --target <int> [0] [read-only]<br>
> > > Target operation type<br>
> > > Extras:<br>
> > > --threshold auto|0..100% (in steps of 1) [inactive]<br>
> > > Select minimum-brightness to get a white point<br>
> > > --threshold-curve auto|0..127 (in steps of 1) [inactive]<br>
> > > Dynamic threshold curve, from light to dark,<br>
> normally 50-65<br>
> > ><br>
> > > [pixma] pixma_close(): Canon PIXMA MG6200<br>
> > ><br>
> ><br>
> root@matze-Satellite-C660:/usr/local/src/sane-backends-git/sane-backends#<br>
> > ><br>
> ><br>
> ><br>
><br>
><br>
</div></div></blockquote></div><br></div>