Re: [sane-devel] ask for adding support of Canon's i-SENSYS MF620 series

2018-01-05 Thread Markus Heiser
Hi Rolf,

  thanks for all your efforts! 

The network (bjnp) thing I posted to the ML:

  http://lists.alioth.debian.org/pipermail/sane-devel/2018-January/035876.html

Can you give me some hints/tips about or did you know one how can?

-- Markus --


> Am 04.01.2018 um 19:55 schrieb Rolf Bensch :
> 
> Hi Markus,
> 
> I just changed the doc files
> (http://www.sane-project.org/lists/sane-backends-cvs.html#S-PIXMA).
> 
> Many thanks for your help.
> 
> Cheers,
> Rolf
> 
> 
> Am 04.01.2018 um 14:03 schrieb Markus Heiser:
>> Hi Rolf,
>> 
>>> Am 03.01.2018 um 20:09 schrieb Rolf Bensch :
>>> 
>>> Hi Markus,
>>> 
>>> I just added your scanner to SANE sources.
>> 
>> great :) .. thanks a lot!
>> 
>> What I have tested while connected via USB:
>> 
>>  $ sudo sane-find-scanner 
>>  ...
>>  found USB scanner (vendor=0x0bda [Generic], product=0x0129 [USB2.0-CRW]) at 
>> libusb:003:002
>>  found USB scanner (vendor=0x04a9 [Canon,Inc.], product=0x27b4 [MF620C 
>> Series]) at libusb:003:003  ...
>>  ...
>>  $ sudo scanimage -vL
>>  device `pixma:04A927B4_f48139e3ba8e' is a CANON Canon i-SENSYS MF620 Series 
>> multi-function peripheral
>> 
>>> I set max. page width to 216mm.
>>> 
>>> Please check scans with max. page width and the document feeder.
>> 
>> $ sudo scanimage -l 216 --source "Automatic Document Feeder" > test.pnm
>> scanimage: rounded value of tl-x from 216 to 215.731
>> 
>> .. is this what you asking for?
>> 
>> From my POV: scan works like a charm / Thanks again.
>> 
>> -- Markus --
>> 
>> 


-- 
sane-devel mailing list: sane-devel@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-requ...@lists.alioth.debian.org


Re: [sane-devel] ask for adding support of Canon's i-SENSYS MF620 series

2018-01-04 Thread Rolf Bensch
Hi Markus,

I just changed the doc files
(http://www.sane-project.org/lists/sane-backends-cvs.html#S-PIXMA).

Many thanks for your help.

Cheers,
Rolf


Am 04.01.2018 um 14:03 schrieb Markus Heiser:
> Hi Rolf,
> 
>> Am 03.01.2018 um 20:09 schrieb Rolf Bensch :
>>
>> Hi Markus,
>>
>> I just added your scanner to SANE sources.
> 
> great :) .. thanks a lot!
> 
> What I have tested while connected via USB:
> 
>   $ sudo sane-find-scanner 
>   ...
>   found USB scanner (vendor=0x0bda [Generic], product=0x0129 [USB2.0-CRW]) at 
> libusb:003:002
>   found USB scanner (vendor=0x04a9 [Canon,Inc.], product=0x27b4 [MF620C 
> Series]) at libusb:003:003  ...
>   ...
>   $ sudo scanimage -vL
>   device `pixma:04A927B4_f48139e3ba8e' is a CANON Canon i-SENSYS MF620 Series 
> multi-function peripheral
> 
>> I set max. page width to 216mm.
>>
>> Please check scans with max. page width and the document feeder.
> 
> $ sudo scanimage -l 216 --source "Automatic Document Feeder" > test.pnm
> scanimage: rounded value of tl-x from 216 to 215.731
> 
> .. is this what you asking for?
> 
> From my POV: scan works like a charm / Thanks again.
> 
> -- Markus --
> 
> 

-- 
sane-devel mailing list: sane-devel@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-requ...@lists.alioth.debian.org


Re: [sane-devel] ask for adding support of Canon's i-SENSYS MF620 series

2018-01-04 Thread Markus Heiser
Hi Rolf,

> Am 03.01.2018 um 20:09 schrieb Rolf Bensch :
> 
> Hi Markus,
> 
> I just added your scanner to SANE sources.

great :) .. thanks a lot!

What I have tested while connected via USB:

  $ sudo sane-find-scanner 
  ...
  found USB scanner (vendor=0x0bda [Generic], product=0x0129 [USB2.0-CRW]) at 
libusb:003:002
  found USB scanner (vendor=0x04a9 [Canon,Inc.], product=0x27b4 [MF620C 
Series]) at libusb:003:003  ...
  ...
  $ sudo scanimage -vL
  device `pixma:04A927B4_f48139e3ba8e' is a CANON Canon i-SENSYS MF620 Series 
multi-function peripheral

> I set max. page width to 216mm.
> 
> Please check scans with max. page width and the document feeder.

$ sudo scanimage -l 216 --source "Automatic Document Feeder" > test.pnm
scanimage: rounded value of tl-x from 216 to 215.731

.. is this what you asking for?

>From my POV: scan works like a charm / Thanks again.

-- Markus --


-- 
sane-devel mailing list: sane-devel@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-requ...@lists.alioth.debian.org


Re: [sane-devel] ask for adding support of Canon's i-SENSYS MF620 series

2018-01-03 Thread Rolf Bensch
Hi Markus,

I just added your scanner to SANE sources. I set max. page width to 216mm.

Please check scans with max. page width and the document feeder.

Please ask the mailing list again for your bjnp problem.

Many thanks reporting this scanner.

Cheers,
Rolf


Am 02.01.2018 um 19:24 schrieb Markus Heiser:
>> Am 02.01.2018 um 12:52 schrieb Markus Heiser :
>>
>> Hi SANE developers,
>>
>> I'am trying to scan from a Canon MF623Cn which is a AIO device
>> from Canon's i-SENSYS MF620 series. It can be connected by USB
>> or LAN.
>>
>> First I tried USB // MF620 series is not yet listed in:
>>
>> - http://www.sane-project.org/lists/sane-backends-cvs.html nor in
>> - 
>> https://anonscm.debian.org/git/sane/sane-backends.git/tree/doc/descriptions/pixma.desc
>>
>> I'am a bit confused by the naming 'i-SENSYS' and 'PIXMA' from
>> SANE's POV. What is the difference (or is there a difference)
>> between i-SENSYS and PIXMA? Especially, can we use the bjnp
>> protocol (bjnp://myscanner.my.domain:8612) for Canon's i-SENSYS
>> devices when connected via IP?
>>
>> Back to USB, I test the device on Ubuntu's 16.04 LTS // sane-find-scanner
>> from sane-backends 1.0.25git gives me::
>>
>> found USB scanner (vendor=0x04a9 [Canon,Inc.], product=0x27b4 [MF620C 
>> Series]) at libusb:003:003
>>
>> For the full output see below.
>>
>> Now I ask you SANE developer's for adding support of Canon's i-SENSYS
>> MF620 series. If you needed testers, I can test USB & LAN scenarios
>> with my MF623Cn.
>>
>> Thanks!
>>
>> Sidenote, I looked at commit 879565 [1]:
>>
>>  "new scanners Canon i-SENSYS MF230 and MF240 Series
>>
>> is this all we need, adding a define MF620_PID (with 0x27b4)
>> to backend/pixma_imageclass.c?
> I applied the following naive patch:
>
> --
> modified   backend/pixma_imageclass.c
> @@ -105,6 +105,7 @@
>  #define MF210_PID  0x27a9
>  #define MF230_PID  0x27d1
>  #define MF240_PID  0x27d2
> +#define MF620_PID  0x27b4
>  
>  
>  enum iclass_state_t
> @@ -944,5 +945,6 @@ const pixma_config_t pixma_iclass_devices[] = {
>DEV ("Canon i-SENSYS MF230 Series", "MF230", MF230_PID, 600, 0, 637, 1050, 
> PIXMA_CAP_ADF), /* max. w = 216mm */
>DEV ("Canon i-SENSYS MF240 Series", "MF240", MF240_PID, 600, 300, 634, 
> 1050, PIXMA_CAP_ADF),   /* max. w = 215mm, */
>   
> /* TODO: fix black stripes for 216mm @ 600dpi 
> */
> +  DEV ("Canon i-SENSYS MF620 Series", "MF620", MF620_PID, 600, 0, 634, 1050, 
> PIXMA_CAP_ADF),
>DEV (NULL, NULL, 0, 0, 0, 0, 0, 0)
>  };
> ---
>
> Here are the results:
>
>   $ sudo scanimage -v -L
>   device `pixma:04A927B4_f48139e3ba8e' is a CANON Canon i-SENSYS MF620 Series 
> multi-function peripheral
>
>   $ sudo ./tstbackend 
>   tstbackend, Copyright (C) 2002 Frank Zago
>   tstbackend comes with ABSOLUTELY NO WARRANTY
>   This is free software, and you are welcome to redistribute it
>   under certain conditions. See COPYING file for details
>
>   This is tstbackend build 19
>
> TEST: init/exit
>   ERROR   : no SANE devices found
>   warnings: 0  error: 1  checks: 83
>
> But scanning via USB seems to work fine, I tested:
>
>   $ sudo scanimage -v > test.pnm
>   scanimage: scanning image of size 637x877 pixels at 24 bits/pixel
>   scanimage: acquiring RGB frame
>   scanimage: min/max graylevel value = 255/0
>   scanimage: sane_read: Operation was cancelled
>
> I also tried LAN, by adding device's IP (bjnp://192.168.1.119) to 
>
>   /usr/local/etc/sane.d/pixma.conf
>
> But this results in:
>
>   $ sudo scanimage -v -L
>   [bjnp] udp_command: ERROR - no data received (timeout = 1000)
>   [bjnp] bjnp_init_device_structure: Cannot read mac address, skipping this 
> scanner
>   [bjnp] udp_command: ERROR - no data received (timeout = 1000)
>   [bjnp] add_scanner: ERROR - Cannot read scanner make & model: 
> bjnp://192.168.1.119:8612/timeout=1000
>
> I am grateful for any help / Thanks
>
> --Markus--
>
>
>
>
>> [1] 
>> https://anonscm.debian.org/git/sane/sane-backends.git/commit/?id=879565cefcac61e371581d09696ef6d738c2a720
>>
>> -- Markus --
>>
>>
>>
>>
>> This is sane-find-scanner from sane-backends 1.0.25git
>>
>> # sane-find-scanner will now attempt to detect your scanner. If the
>> # result is different from what you expected, first make sure your
>> # scanner is powered up and properly connected to your computer.
>>
>> searching for SCSI scanners:
>> ...
>> searching for USB scanners:
>> checking /dev/usb/scanner... failed to open (Invalid argument)
>> checking /dev/usb/scanner0... failed to open (Invalid argument)
>> checking /dev/usb/scanner1... failed to open (Invalid argument)
>> ...
>> checking /dev/usb/scanner15... failed to open (Invalid argument)
>> checking /dev/usbscanner... failed to open (Invalid argument)
>> checking /dev/usbscanner0... failed to open (Invalid argument)
>> checking 

Re: [sane-devel] ask for adding support of Canon's i-SENSYS MF620 series

2018-01-02 Thread Markus Heiser

> Am 02.01.2018 um 12:52 schrieb Markus Heiser :
> 
> Hi SANE developers,
> 
> I'am trying to scan from a Canon MF623Cn which is a AIO device
> from Canon's i-SENSYS MF620 series. It can be connected by USB
> or LAN.
> 
> First I tried USB // MF620 series is not yet listed in:
> 
> - http://www.sane-project.org/lists/sane-backends-cvs.html nor in
> - 
> https://anonscm.debian.org/git/sane/sane-backends.git/tree/doc/descriptions/pixma.desc
> 
> I'am a bit confused by the naming 'i-SENSYS' and 'PIXMA' from
> SANE's POV. What is the difference (or is there a difference)
> between i-SENSYS and PIXMA? Especially, can we use the bjnp
> protocol (bjnp://myscanner.my.domain:8612) for Canon's i-SENSYS
> devices when connected via IP?
> 
> Back to USB, I test the device on Ubuntu's 16.04 LTS // sane-find-scanner
> from sane-backends 1.0.25git gives me::
> 
> found USB scanner (vendor=0x04a9 [Canon,Inc.], product=0x27b4 [MF620C 
> Series]) at libusb:003:003
> 
> For the full output see below.
> 
> Now I ask you SANE developer's for adding support of Canon's i-SENSYS
> MF620 series. If you needed testers, I can test USB & LAN scenarios
> with my MF623Cn.
> 
> Thanks!
> 
> Sidenote, I looked at commit 879565 [1]:
> 
>  "new scanners Canon i-SENSYS MF230 and MF240 Series
> 
> is this all we need, adding a define MF620_PID (with 0x27b4)
> to backend/pixma_imageclass.c?

I applied the following naive patch:

--
modified   backend/pixma_imageclass.c
@@ -105,6 +105,7 @@
 #define MF210_PID  0x27a9
 #define MF230_PID  0x27d1
 #define MF240_PID  0x27d2
+#define MF620_PID  0x27b4
 
 
 enum iclass_state_t
@@ -944,5 +945,6 @@ const pixma_config_t pixma_iclass_devices[] = {
   DEV ("Canon i-SENSYS MF230 Series", "MF230", MF230_PID, 600, 0, 637, 1050, 
PIXMA_CAP_ADF), /* max. w = 216mm */
   DEV ("Canon i-SENSYS MF240 Series", "MF240", MF240_PID, 600, 300, 634, 1050, 
PIXMA_CAP_ADF),   /* max. w = 215mm, */

  /* TODO: fix black stripes for 216mm @ 600dpi */
+  DEV ("Canon i-SENSYS MF620 Series", "MF620", MF620_PID, 600, 0, 634, 1050, 
PIXMA_CAP_ADF),
   DEV (NULL, NULL, 0, 0, 0, 0, 0, 0)
 };
---

Here are the results:

  $ sudo scanimage -v -L
  device `pixma:04A927B4_f48139e3ba8e' is a CANON Canon i-SENSYS MF620 Series 
multi-function peripheral

  $ sudo ./tstbackend 
  tstbackend, Copyright (C) 2002 Frank Zago
  tstbackend comes with ABSOLUTELY NO WARRANTY
  This is free software, and you are welcome to redistribute it
  under certain conditions. See COPYING file for details

  This is tstbackend build 19

TEST: init/exit
  ERROR   : no SANE devices found
  warnings: 0  error: 1  checks: 83

But scanning via USB seems to work fine, I tested:

  $ sudo scanimage -v > test.pnm
  scanimage: scanning image of size 637x877 pixels at 24 bits/pixel
  scanimage: acquiring RGB frame
  scanimage: min/max graylevel value = 255/0
  scanimage: sane_read: Operation was cancelled

I also tried LAN, by adding device's IP (bjnp://192.168.1.119) to 

  /usr/local/etc/sane.d/pixma.conf

But this results in:

  $ sudo scanimage -v -L
  [bjnp] udp_command: ERROR - no data received (timeout = 1000)
  [bjnp] bjnp_init_device_structure: Cannot read mac address, skipping this 
scanner
  [bjnp] udp_command: ERROR - no data received (timeout = 1000)
  [bjnp] add_scanner: ERROR - Cannot read scanner make & model: 
bjnp://192.168.1.119:8612/timeout=1000

I am grateful for any help / Thanks

--Markus--




> 
> [1] 
> https://anonscm.debian.org/git/sane/sane-backends.git/commit/?id=879565cefcac61e371581d09696ef6d738c2a720
> 
> -- Markus --
> 
> 
> 
> 
> This is sane-find-scanner from sane-backends 1.0.25git
> 
> # sane-find-scanner will now attempt to detect your scanner. If the
> # result is different from what you expected, first make sure your
> # scanner is powered up and properly connected to your computer.
> 
> searching for SCSI scanners:
> ...
> searching for USB scanners:
> checking /dev/usb/scanner... failed to open (Invalid argument)
> checking /dev/usb/scanner0... failed to open (Invalid argument)
> checking /dev/usb/scanner1... failed to open (Invalid argument)
> ...
> checking /dev/usb/scanner15... failed to open (Invalid argument)
> checking /dev/usbscanner... failed to open (Invalid argument)
> checking /dev/usbscanner0... failed to open (Invalid argument)
> checking /dev/usbscanner1... failed to open (Invalid argument)
> ...
> checking /dev/usbscanner15... failed to open (Invalid argument)
> trying libusb:
> ...
> 
> bLength   18
> bDescriptorType   1
> bcdUSB2.00
> bDeviceClass  0
> bDeviceSubClass   0
> bDeviceProtocol   0
> bMaxPacketSize0   64
> idVendor  0x04A9
> idProduct 0x27B4
> bcdDevice 0.00
> iManufacturer 1 (Canon,Inc.)
> iProduct

[sane-devel] ask for adding support of Canon's i-SENSYS MF620 series

2018-01-02 Thread Markus Heiser
Hi SANE developers,

I'am trying to scan from a Canon MF623Cn which is a AIO device
from Canon's i-SENSYS MF620 series. It can be connected by USB
or LAN.

First I tried USB // MF620 series is not yet listed in:

- http://www.sane-project.org/lists/sane-backends-cvs.html nor in
- 
https://anonscm.debian.org/git/sane/sane-backends.git/tree/doc/descriptions/pixma.desc

I'am a bit confused by the naming 'i-SENSYS' and 'PIXMA' from
SANE's POV. What is the difference (or is there a difference)
between i-SENSYS and PIXMA? Especially, can we use the bjnp
protocol (bjnp://myscanner.my.domain:8612) for Canon's i-SENSYS
devices when connected via IP?

Back to USB, I test the device on Ubuntu's 16.04 LTS // sane-find-scanner
from sane-backends 1.0.25git gives me::

 found USB scanner (vendor=0x04a9 [Canon,Inc.], product=0x27b4 [MF620C Series]) 
at libusb:003:003

For the full output see below.

Now I ask you SANE developer's for adding support of Canon's i-SENSYS
MF620 series. If you needed testers, I can test USB & LAN scenarios
with my MF623Cn.

Thanks!

Sidenote, I looked at commit 879565 [1]:

  "new scanners Canon i-SENSYS MF230 and MF240 Series

is this all we need, adding a define MF620_PID (with 0x27b4)
to backend/pixma_imageclass.c?

[1] 
https://anonscm.debian.org/git/sane/sane-backends.git/commit/?id=879565cefcac61e371581d09696ef6d738c2a720

-- Markus --




This is sane-find-scanner from sane-backends 1.0.25git

 # sane-find-scanner will now attempt to detect your scanner. If the
 # result is different from what you expected, first make sure your
 # scanner is powered up and properly connected to your computer.

searching for SCSI scanners:
...
searching for USB scanners:
checking /dev/usb/scanner... failed to open (Invalid argument)
checking /dev/usb/scanner0... failed to open (Invalid argument)
checking /dev/usb/scanner1... failed to open (Invalid argument)
...
checking /dev/usb/scanner15... failed to open (Invalid argument)
checking /dev/usbscanner... failed to open (Invalid argument)
checking /dev/usbscanner0... failed to open (Invalid argument)
checking /dev/usbscanner1... failed to open (Invalid argument)
...
checking /dev/usbscanner15... failed to open (Invalid argument)
trying libusb:
...

bLength   18
bDescriptorType   1
bcdUSB2.00
bDeviceClass  0
bDeviceSubClass   0
bDeviceProtocol   0
bMaxPacketSize0   64
idVendor  0x04A9
idProduct 0x27B4
bcdDevice 0.00
iManufacturer 1 (Canon,Inc.)
iProduct  2 (MF620C Series)
iSerialNumber 3 (f48139e3ba8e)
bNumConfigurations1

bLength  9
bDescriptorType  2
wTotalLength 62
bNumInterfaces   2
bConfigurationValue  1
iConfiguration   0 ()
bmAttributes 192 (Self-powered)
MaxPower 2 mA
 
  
  bLength9
  bDescriptorType4
  bInterfaceNumber   0
  bAlternateSetting  0
  bNumEndpoints  3
  bInterfaceClass255
  bInterfaceSubClass 0
  bInterfaceProtocol 255
  iInterface 0 ()
   
   bLength   7
   bDescriptorType   5
   bEndpointAddress  0x03 (out 0x03)
   bmAttributes  2 (bulk)
   wMaxPacketSize512
   bInterval 0 ms
   bRefresh  0
   bSynchAddress 0
   
   bLength   7
   bDescriptorType   5
   bEndpointAddress  0x84 (in 0x04)
   bmAttributes  2 (bulk)
   wMaxPacketSize512
   bInterval 0 ms
   bRefresh  0
   bSynchAddress 0
   
   bLength   7
   bDescriptorType   5
   bEndpointAddress  0x85 (in 0x05)
   bmAttributes  3 (interrupt)
   wMaxPacketSize64
   bInterval 11 ms
   bRefresh  0
   bSynchAddress 0
 
  
  bLength9
  bDescriptorType4
  bInterfaceNumber   1
  bAlternateSetting  0
  bNumEndpoints  2
  bInterfaceClass7
  bInterfaceSubClass 1
  bInterfaceProtocol 2
  iInterface 0 ()
   
   bLength   7
   bDescriptorType   5
   bEndpointAddress  0x01 (out 0x01)
   bmAttributes  2 (bulk)
   wMaxPacketSize512
   bInterval 0 ms
   bRefresh  0
   bSynchAddress 0
   
   bLength   7
   bDescriptorType   5
   bEndpointAddress  0x82 (in 0x02)
   bmAttributes  2 (bulk)
   wMaxPacketSize512
   bInterval 0 ms
   bRefresh  0
   bSynchAddress 0


   checking for LM983[1,2,3] ...
   this is not a LM983x (bcdUSB = 0x200)
   checking for GT-6801 ...
   this is not a GT-6801 (bDeviceClass = 0)
   checking for GT-6816 ...
   this is not a GT-6816 (bcdUSB = 0x200)
   checking for GLxxx ...
   this is not a GL646 (bDeviceClass = 0, bInterfaceClass = 255)
   this is not a GLxxx (bDeviceClass = 0, bInterfaceClass = 255)


found USB scanner (vendor=0x04a9 [Canon,Inc.], product=0x27b4 [MF620C Series]) 
at libusb:003:003


bLength   18
bDescriptorType   1
bcdUSB2.00