[sane-devel] scanbd Canon MG6250

Rolf Bensch rolf at bensch-online.de
Tue Feb 5 12:42:53 UTC 2013


Hi Matthias,

Please test the scanner first on the USB interface. If this is working,
we can go ahead with scanning via LAN (bjnp).

Cheers,
Rolf

Am 05.02.2013 13:17, schrieb Matthias Thon:
> Am Dienstag, den 05.02.2013, 13:13 +0100 schrieb Matthias Thon:
>> Hello Rolf,
>>
>> guess i set the test environment now well. scanimage -V- shows now:
>>
>>
>>
>> If i start scanimage -A i can choose as destination on the MG6250
>> root at matze-buero (my sane-pc). Then i choose JPEG A4 600dpi and press
>> the COLOR Scan-Button. At the display of the MG i see "Please
>> wait.....". After that i start scanimage -A again. Here the terminal
>> output:
>>
>>
>> root at matze-buero:/usr/lib/x86_64-linux-gnu# scanimage -A
>> [sanei_debug] Setting debug level of pixma to 7.
>> [pixma] pixma is compiled without pthread support.
>> [pixma] pixma version 0.17.0
>> [pixma] sanei_bjnp_find_devices:
>> [pixma] eth0 is IPv4 capable, sending broadcast, socket = 3
>> [pixma] eth0 is IPv6 capable, sending broadcast, socket = 4
>> [pixma] Forward lookup for D0E69C000000.fritz.box succeeded, using as
>> hostname
>> [pixma] Forward lookup for D0E69C000000.fritz.box succeeded, using as
>> hostname
>> [pixma] Scanner not yet in our list, added it:
>> D0E69C000000.fritz.box:8612
>> [pixma] Scanner identity string = MFG:Canon;CMD:MultiPass
>> 2.1,IVEC;MDL:MG6200 series;CLS:IMAGE;DES:Canon MG6200
>> series;SOJ:BJNP2,BJNPe; - lenght = 101
>> [pixma] Scanner model = MG6200 series
>> [pixma] Forward lookup for D0E69C000000.fritz.box succeeded, using as
>> hostname
>> [pixma] Forward lookup for D0E69C000000.fritz.box succeeded, using as
>> hostname
>> [pixma] Scanner at bjnp://D0E69C000000.fritz.box:8612 was added before,
>> good!
>> [pixma] pixma_collect_devices() found Canon PIXMA MG6200 at
>> bjnp://D0E69C000000.fritz.box:8612
>> [pixma] pixma_find_scanners() found 1 devices
>> [pixma] sanei_bjnp_find_devices:
>> [pixma] eth0 is IPv4 capable, sending broadcast, socket = 3
>> [pixma] eth0 is IPv6 capable, sending broadcast, socket = 4
>> [pixma] Forward lookup for D0E69C000000.fritz.box succeeded, using as
>> hostname
>> [pixma] Forward lookup for D0E69C000000.fritz.box succeeded, using as
>> hostname
>> [pixma] Scanner not yet in our list, added it:
>> D0E69C000000.fritz.box:8612
>> [pixma] Scanner identity string = MFG:Canon;CMD:MultiPass
>> 2.1,IVEC;MDL:MG6200 series;CLS:IMAGE;DES:Canon MG6200
>> series;SOJ:BJNP2,BJNPe; - lenght = 101
>> [pixma] Scanner model = MG6200 series
>> [pixma] Forward lookup for D0E69C000000.fritz.box succeeded, using as
>> hostname
>> [pixma] Forward lookup for D0E69C000000.fritz.box succeeded, using as
>> hostname
>> [pixma] Scanner at bjnp://D0E69C000000.fritz.box:8612 was added before,
>> good!
>> [pixma] pixma_collect_devices() found Canon PIXMA MG6200 at
>> bjnp://D0E69C000000.fritz.box:8612
>> [pixma] pixma_open(): Canon PIXMA MG6200
>> [pixma] sanei_bjnp_open(bjnp://D0E69C000000.fritz.box:8612, 0):
>> [pixma] Forward lookup for D0E69C000000.fritz.box succeeded, using as
>> hostname
>> [pixma] sanei_bjnp_activate (0)
>> [pixma] sanei_bjnp_deactivate (0)
>>
>> All options specific to device `pixma:MG6200_D0E69C000000':
>>   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
>> [pixma] bjnp_set_timeout to 300
>> [pixma] bjnp_read_int(0, bufferptr, 0x40 = 64):
>>     --button-1 <int> [0] [read-only]
>>         Button 1
>>     --button-2 <int> [0] [read-only]
>>         Button 2
>>     --original <int> [0] [read-only]
>>         Type of original to scan
>>     --target <int> [0] [read-only]
>>         Target operation type
>>   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
>>
>> [pixma] pixma_close(): Canon PIXMA MG6200
>> [pixma] sanei_bjnp_close(0):
>> [pixma] sanei_bjnp_deactivate (0)
>> root at matze-buero:/usr/lib/x86_64-linux-gnu# 
>>
>> As you intent, now i can see some [pixma] debug messages in the
>> "Buttons" section. But the values are still "0". 
>>
>> As i start scanimage --button-controlled=yes i can see that a
>> button-state is received. Here the terminal output of that test_
>>
>>
>> root at matze-buero:/usr/lib/x86_64-linux-gnu# scanimage
>> --button-controlled=yes > test.png
>> [sanei_debug] Setting debug level of pixma to 7.
>> [pixma] pixma is compiled without pthread support.
>> [pixma] pixma version 0.17.0
>> [pixma] sanei_bjnp_find_devices:
>> [pixma] eth0 is IPv4 capable, sending broadcast, socket = 3
>> [pixma] eth0 is IPv6 capable, sending broadcast, socket = 4
>> [pixma] Forward lookup for D0E69C000000.fritz.box succeeded, using as
>> hostname
>> [pixma] Forward lookup for D0E69C000000.fritz.box succeeded, using as
>> hostname
>> [pixma] Scanner not yet in our list, added it:
>> D0E69C000000.fritz.box:8612
>> [pixma] Scanner identity string = MFG:Canon;CMD:MultiPass
>> 2.1,IVEC;MDL:MG6200 series;CLS:IMAGE;DES:Canon MG6200
>> series;SOJ:BJNP2,BJNPe; - lenght = 101
>> [pixma] Scanner model = MG6200 series
>> [pixma] Forward lookup for D0E69C000000.fritz.box succeeded, using as
>> hostname
>> [pixma] Forward lookup for D0E69C000000.fritz.box succeeded, using as
>> hostname
>> [pixma] Scanner at bjnp://D0E69C000000.fritz.box:8612 was added before,
>> good!
>> [pixma] pixma_collect_devices() found Canon PIXMA MG6200 at
>> bjnp://D0E69C000000.fritz.box:8612
>> [pixma] pixma_find_scanners() found 1 devices
>> [pixma] sanei_bjnp_find_devices:
>> [pixma] eth0 is IPv4 capable, sending broadcast, socket = 3
>> [pixma] eth0 is IPv6 capable, sending broadcast, socket = 4
>> [pixma] Forward lookup for D0E69C000000.fritz.box succeeded, using as
>> hostname
>> [pixma] Forward lookup for D0E69C000000.fritz.box succeeded, using as
>> hostname
>> [pixma] Scanner not yet in our list, added it:
>> D0E69C000000.fritz.box:8612
>> [pixma] Scanner identity string = MFG:Canon;CMD:MultiPass
>> 2.1,IVEC;MDL:MG6200 series;CLS:IMAGE;DES:Canon MG6200
>> series;SOJ:BJNP2,BJNPe; - lenght = 101
>> [pixma] Scanner model = MG6200 series
>> [pixma] Forward lookup for D0E69C000000.fritz.box succeeded, using as
>> hostname
>> [pixma] Forward lookup for D0E69C000000.fritz.box succeeded, using as
>> hostname
>> [pixma] Scanner at bjnp://D0E69C000000.fritz.box:8612 was added before,
>> good!
>> [pixma] pixma_collect_devices() found Canon PIXMA MG6200 at
>> bjnp://D0E69C000000.fritz.box:8612
>> [pixma] pixma_open(): Canon PIXMA MG6200
>> [pixma] sanei_bjnp_open(bjnp://D0E69C000000.fritz.box:8612, 0):
>> [pixma] Forward lookup for D0E69C000000.fritz.box succeeded, using as
>> hostname
>> [pixma] sanei_bjnp_activate (0)
>> [pixma] sanei_bjnp_deactivate (0)
>> [pixma] Reader task id=1784 (forked)
>> [pixma] Reader task started
>> [pixma] sanei_bjnp_activate (0)
>> [pixma] ==== Button-controlled scan mode is enabled.
>> [pixma] ==== To proceed, press 'SCAN' or 'COLOR' button. To cancel,
>> press 'GRAY' button.
>> [pixma] bjnp_set_timeout to 100
>> [pixma] bjnp_read_int(0, bufferptr, 0x40 = 64):
>> [pixma] bjnp_set_timeout to 1000
>> [pixma] bjnp_read_int(0, bufferptr, 0x40 = 64):
>> [pixma] bjnp_set_timeout to 1000
>> [pixma] bjnp_read_int(0, bufferptr, 0x40 = 64):
>> [pixma] bjnp_set_timeout to 1000
>> [pixma] bjnp_read_int(0, bufferptr, 0x40 = 64):
>> [pixma] bjnp_set_timeout to 1000
>> [pixma] bjnp_read_int(0, bufferptr, 0x40 = 64):
>> [pixma] received button status!
>> [pixma] sanei_bjnp_deactivate (0)
>> [pixma] sanei_bjnp_activate (0)
>> [pixma] bjnp_set_timeout to 1000
>> [pixma] bjnp_read_int(0, bufferptr, 0x40 = 64):
>> [pixma] bjnp_set_timeout to 1000
>> [pixma] bjnp_read_int(0, bufferptr, 0x40 = 64):
>> [pixma] Restarting polling dialog!
>> [pixma] bjnp_set_timeout to 1000
>> [pixma] bjnp_read_int(0, bufferptr, 0x40 = 64):
>> [pixma] bjnp_set_timeout to 1000
>> [pixma] bjnp_read_int(0, bufferptr, 0x40 = 64):
>> [pixma] bjnp_set_timeout to 1000
>> [pixma] bjnp_read_int(0, bufferptr, 0x40 = 64):
>> [pixma] bjnp_set_timeout to 1000
>> [pixma] bjnp_read_int(0, bufferptr, 0x40 = 64):
>> [pixma] bjnp_set_timeout to 1000
>> [pixma] bjnp_read_int(0, bufferptr, 0x40 = 64):
>> [pixma] bjnp_set_timeout to 1000
>> [pixma] bjnp_read_int(0, bufferptr, 0x40 = 64):
>> [pixma] bjnp_set_timeout to 1000
>> [pixma] bjnp_read_int(0, bufferptr, 0x40 = 64):
>> [pixma] bjnp_set_timeout to 1000
>> [pixma] bjnp_read_int(0, bufferptr, 0x40 = 64):
>> ^Cscanimage: received signal 2
>> [pixma] scanimage: trying to stop scanner
>> sanei_bjnp_deactivate (0)
>> [pixma] Reader task terminated: ECANCELED
>> scanimage: sane_read: Operation was cancelled
>> [pixma] pixma_close(): Canon PIXMA MG6200
>> [pixma] sanei_bjnp_close(0):
>> [pixma] sanei_bjnp_deactivate (0)
>> root at matze-buero:/usr/lib/x86_64-linux-gnu# 
>>
>> regards matthias
>>
>>
>>
>> Am Dienstag, den 05.02.2013, 07:34 +0100 schrieb Rolf Bensch:
>>> Hi Matthias,
>>>
>>> You still are using the old Sane backend 1.0.23.
>>>
>>> Please setup the symbolic links as described in README.linux and check
>>> the version again:
>>> $ scanimage -V
>>> scanimage (sane-backends) 1.0.24git; backend version 1.0.24
>>>                                                      ^^^^^^
>>> Cheers,
>>> Rolf
>>>
>>>
>>> Am 05.02.2013 06:25, schrieb Matthias Thon:
>>>> 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
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>
>>>>>
>>>>
>>
> 
> 
> 



More information about the sane-devel mailing list