Re: [sane-devel] UsbSnoop for Canon DR-C225

2015-04-29 Thread m. allan noah
Hmm, I finally had some time to look at this log, and the scanner is
sending entirely black data. This might be a calibration problem, or
it might be that the scanner does not support grayscale. Perhaps you
could try a color scan?

allan

On Mon, Apr 20, 2015 at 8:12 PM, m. allan noah kitno...@gmail.com wrote:
 hmm, can you try to get a debugging log like so:

 SANE_DEBUG_CANON_DR=35 scanimage --resolution 100  test.pnm 2test.log

 then send me a compressed version of test.log?

 allan

 On Mon, Apr 20, 2015 at 7:45 PM, Nicolas Marchildon
 nico...@marchildon.net wrote:
 Duplex  resolution appear to be interpreted, since the number of files and
 scanning speed varies, but the ouput is always a black image.

 Tried combinations of:

 scanimage --resolution {100,600} {,--mode Color} {,--source ADF Duplex}
 --batch


 Le lun. 6 avr. 2015 à 21:40, m. allan noah kitno...@gmail.com a écrit :

 I have attached a patch which will hopefully improve the situation. I
 have guessed at most of the parameters, and so we might have to
 experiment. Please apply this to a current git repo, and try some
 scans, simplex, duplex, color, gray, etc.

 allan

 On Wed, Apr 1, 2015 at 9:57 AM, Nicolas Marchildon
 nico...@marchildon.net wrote:
  Le mar. 31 mars 2015 à 21:56, Nicolas Marchildon
  nico...@marchildon.net a
  écrit :
 
  Can you get another usb log from windows, but this time with a low
  resolution, color duplex scan, of only the top of the paper? If the
  front side could have RGB written in those colors, and the back side
  could be blank or have black writing, that would help.
 
 
  I'll do that tomorrow. I have attached what I plan to scan. I assume a
  large font is going to make it easier to spot.
 
 
  I cut the bottom of the sheet off in an attempt to reduce file size, but
  it's slightly bigger. I can't go lower than 150 dpi.
 
  https://drive.google.com/file/d/0B1s3C34oDHi5UkowLTVaZDZsSVk/view



 --
 well, I stand up next to a mountain- and I chop it down with the edge
 of my hand



 --
 well, I stand up next to a mountain- and I chop it down with the edge
 of my hand



-- 
well, I stand up next to a mountain- and I chop it down with the edge
of my hand

-- 
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] UsbSnoop for Canon DR-C225

2015-04-20 Thread Nicolas Marchildon
Duplex  resolution appear to be interpreted, since the number of files and
scanning speed varies, but the ouput is always a black image.

Tried combinations of:

scanimage --resolution {100,600} {,--mode Color} {,--source ADF Duplex}
--batch


Le lun. 6 avr. 2015 à 21:40, m. allan noah kitno...@gmail.com a écrit :

 I have attached a patch which will hopefully improve the situation. I
 have guessed at most of the parameters, and so we might have to
 experiment. Please apply this to a current git repo, and try some
 scans, simplex, duplex, color, gray, etc.

 allan

 On Wed, Apr 1, 2015 at 9:57 AM, Nicolas Marchildon
 nico...@marchildon.net wrote:
  Le mar. 31 mars 2015 à 21:56, Nicolas Marchildon nico...@marchildon.net
 a
  écrit :
 
  Can you get another usb log from windows, but this time with a low
  resolution, color duplex scan, of only the top of the paper? If the
  front side could have RGB written in those colors, and the back side
  could be blank or have black writing, that would help.
 
 
  I'll do that tomorrow. I have attached what I plan to scan. I assume a
  large font is going to make it easier to spot.
 
 
  I cut the bottom of the sheet off in an attempt to reduce file size, but
  it's slightly bigger. I can't go lower than 150 dpi.
 
  https://drive.google.com/file/d/0B1s3C34oDHi5UkowLTVaZDZsSVk/view



 --
 well, I stand up next to a mountain- and I chop it down with the edge
 of my hand

-- 
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] UsbSnoop for Canon DR-C225

2015-04-20 Thread m. allan noah
hmm, can you try to get a debugging log like so:

SANE_DEBUG_CANON_DR=35 scanimage --resolution 100  test.pnm 2test.log

then send me a compressed version of test.log?

allan

On Mon, Apr 20, 2015 at 7:45 PM, Nicolas Marchildon
nico...@marchildon.net wrote:
 Duplex  resolution appear to be interpreted, since the number of files and
 scanning speed varies, but the ouput is always a black image.

 Tried combinations of:

 scanimage --resolution {100,600} {,--mode Color} {,--source ADF Duplex}
 --batch


 Le lun. 6 avr. 2015 à 21:40, m. allan noah kitno...@gmail.com a écrit :

 I have attached a patch which will hopefully improve the situation. I
 have guessed at most of the parameters, and so we might have to
 experiment. Please apply this to a current git repo, and try some
 scans, simplex, duplex, color, gray, etc.

 allan

 On Wed, Apr 1, 2015 at 9:57 AM, Nicolas Marchildon
 nico...@marchildon.net wrote:
  Le mar. 31 mars 2015 à 21:56, Nicolas Marchildon
  nico...@marchildon.net a
  écrit :
 
  Can you get another usb log from windows, but this time with a low
  resolution, color duplex scan, of only the top of the paper? If the
  front side could have RGB written in those colors, and the back side
  could be blank or have black writing, that would help.
 
 
  I'll do that tomorrow. I have attached what I plan to scan. I assume a
  large font is going to make it easier to spot.
 
 
  I cut the bottom of the sheet off in an attempt to reduce file size, but
  it's slightly bigger. I can't go lower than 150 dpi.
 
  https://drive.google.com/file/d/0B1s3C34oDHi5UkowLTVaZDZsSVk/view



 --
 well, I stand up next to a mountain- and I chop it down with the edge
 of my hand



-- 
well, I stand up next to a mountain- and I chop it down with the edge
of my hand

-- 
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] UsbSnoop for Canon DR-C225

2015-04-20 Thread Nicolas Marchildon
test.log.gz
https://drive.google.com/file/d/0B1s3C34oDHi5eGJYSk9pY25wYVk/view

Le lun. 20 avr. 2015 à 20:12, m. allan noah kitno...@gmail.com a écrit :

 hmm, can you try to get a debugging log like so:

 SANE_DEBUG_CANON_DR=35 scanimage --resolution 100  test.pnm 2test.log

 then send me a compressed version of test.log?

 allan

 On Mon, Apr 20, 2015 at 7:45 PM, Nicolas Marchildon
 nico...@marchildon.net wrote:
  Duplex  resolution appear to be interpreted, since the number of files
 and
  scanning speed varies, but the ouput is always a black image.
 
  Tried combinations of:
 
  scanimage --resolution {100,600} {,--mode Color} {,--source ADF Duplex}
  --batch
 
 
  Le lun. 6 avr. 2015 à 21:40, m. allan noah kitno...@gmail.com a écrit
 :
 
  I have attached a patch which will hopefully improve the situation. I
  have guessed at most of the parameters, and so we might have to
  experiment. Please apply this to a current git repo, and try some
  scans, simplex, duplex, color, gray, etc.
 
  allan
 
  On Wed, Apr 1, 2015 at 9:57 AM, Nicolas Marchildon
  nico...@marchildon.net wrote:
   Le mar. 31 mars 2015 à 21:56, Nicolas Marchildon
   nico...@marchildon.net a
   écrit :
  
   Can you get another usb log from windows, but this time with a low
   resolution, color duplex scan, of only the top of the paper? If the
   front side could have RGB written in those colors, and the back side
   could be blank or have black writing, that would help.
  
  
   I'll do that tomorrow. I have attached what I plan to scan. I assume
 a
   large font is going to make it easier to spot.
  
  
   I cut the bottom of the sheet off in an attempt to reduce file size,
 but
   it's slightly bigger. I can't go lower than 150 dpi.
  
   https://drive.google.com/file/d/0B1s3C34oDHi5UkowLTVaZDZsSVk/view
 
 
 
  --
  well, I stand up next to a mountain- and I chop it down with the edge
  of my hand



 --
 well, I stand up next to a mountain- and I chop it down with the edge
 of my hand

-- 
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] UsbSnoop for Canon DR-C225

2015-04-06 Thread m. allan noah
I have attached a patch which will hopefully improve the situation. I
have guessed at most of the parameters, and so we might have to
experiment. Please apply this to a current git repo, and try some
scans, simplex, duplex, color, gray, etc.

allan

On Wed, Apr 1, 2015 at 9:57 AM, Nicolas Marchildon
nico...@marchildon.net wrote:
 Le mar. 31 mars 2015 à 21:56, Nicolas Marchildon nico...@marchildon.net a
 écrit :

 Can you get another usb log from windows, but this time with a low
 resolution, color duplex scan, of only the top of the paper? If the
 front side could have RGB written in those colors, and the back side
 could be blank or have black writing, that would help.


 I'll do that tomorrow. I have attached what I plan to scan. I assume a
 large font is going to make it easier to spot.


 I cut the bottom of the sheet off in an attempt to reduce file size, but
 it's slightly bigger. I can't go lower than 150 dpi.

 https://drive.google.com/file/d/0B1s3C34oDHi5UkowLTVaZDZsSVk/view



-- 
well, I stand up next to a mountain- and I chop it down with the edge
of my hand
diff --git a/backend/canon_dr.c b/backend/canon_dr.c
index 0b120fa..4d0bf46 100644
--- a/backend/canon_dr.c
+++ b/backend/canon_dr.c
@@ -360,7 +360,7 @@
 #include canon_dr.h
 
 #define DEBUG 1
-#define BUILD 49
+#define BUILD 50
 
 /* values for SANE_DEBUG_CANON_DR env var:
  - errors   5
@@ -1544,9 +1544,7 @@ init_model (struct scanner *s)
 s-can_monochrome=0;
   }
 
-  else if (strstr (s-model_name,DR-C125)
-   || strstr (s-model_name,DR-C225)
-  ){
+  else if (strstr (s-model_name,DR-C125)){
 
 /*confirmed settings*/
 s-gray_interlace[SIDE_FRONT] = GRAY_INTERLACE_2510;
@@ -1576,6 +1574,35 @@ init_model (struct scanner *s)
 s-valid_x = 8.5 * 1200;
   }
 
+  else if (strstr (s-model_name,DR-C225)){
+
+s-color_interlace[SIDE_FRONT] = COLOR_INTERLACE_RRGGBB;
+s-color_interlace[SIDE_BACK] = COLOR_INTERLACE_rRgGbB;
+s-gray_interlace[SIDE_BACK] = GRAY_INTERLACE_gG;
+s-duplex_interlace = DUPLEX_INTERLACE_FBFB;
+
+s-unknown_byte2 = 0x88;
+s-need_ccal = 1;
+s-ccal_version = 3;
+s-need_fcal = 1;
+s-invert_tly = 1;
+s-can_color = 1;
+s-rgb_format = 1;
+/*s-duplex_offset = 400; now set in config file*/
+
+/*only in Y direction, so we trash them in X*/
+s-std_res_x[DPI_100]=0;
+s-std_res_x[DPI_150]=0;
+s-std_res_x[DPI_200]=0;
+s-std_res_x[DPI_240]=0;
+s-std_res_x[DPI_400]=0;
+
+/*suspected settings*/
+s-always_op = 0;
+s-fixed_width = 1;
+s-valid_x = 8.5 * 1200;
+  }
+
   DBG (10, init_model: finish\n);
 
   return SANE_STATUS_GOOD;
-- 
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] UsbSnoop for Canon DR-C225

2015-04-01 Thread Nicolas Marchildon
Le mar. 31 mars 2015 à 20:55, m. allan noah kitno...@gmail.com a écrit :

 The image format from this machine is nothing like that from the
 DR-C125, and our attempt to descramble it using the same functions fails.


Oh, that's sad.


 Can you get another usb log from windows, but this time with a low
 resolution, color duplex scan, of only the top of the paper? If the
 front side could have RGB written in those colors, and the back side
 could be blank or have black writing, that would help.


I'll do that tomorrow. I have attached what I plan to scan. I assume a
large font is going to make it easier to spot.


rgb.pdf
Description: Adobe PDF document


rgb.odg
Description: application/vnd.oasis.opendocument.graphics
-- 
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] UsbSnoop for Canon DR-C225

2015-04-01 Thread Nicolas Marchildon
Le mar. 31 mars 2015 à 21:56, Nicolas Marchildon nico...@marchildon.net a
écrit :

 Can you get another usb log from windows, but this time with a low
 resolution, color duplex scan, of only the top of the paper? If the
 front side could have RGB written in those colors, and the back side
 could be blank or have black writing, that would help.


 I'll do that tomorrow. I have attached what I plan to scan. I assume a
 large font is going to make it easier to spot.


I cut the bottom of the sheet off in an attempt to reduce file size, but
it's slightly bigger. I can't go lower than 150 dpi.

https://drive.google.com/file/d/0B1s3C34oDHi5UkowLTVaZDZsSVk/view
-- 
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] UsbSnoop for Canon DR-C225

2015-03-31 Thread m. allan noah
my scripts currently don't handle having this kind of mixed data in
one log. I could update them I suppose, but it would be easier to get
a smaller log- can you try bypassing the hub when making the log?
Connect the scanner directly to the machine?

allan

On Mon, Mar 30, 2015 at 10:06 PM, Nicolas Marchildon
nico...@marchildon.net wrote:
 This is on Windows XP. For some reason, I was not capturing anything until I
 included the USB hub *and* the scanner. Is the log worthless?

 Le lun. 30 mars 2015 à 21:33, m. allan noah kitno...@gmail.com a écrit :

 Your log has the packets from two different devices in it, or
 something else strange is going on. What OS was this captured on?

 allan

 On Mon, Mar 30, 2015 at 9:15 PM, m. allan noah kitno...@gmail.com wrote:
  have you tried to use a recent sane-backends git snapshot? I would be
  interested to see a debugging log of sane trying to make a scan.
 
  allan
 
  On Mon, Mar 30, 2015 at 9:08 PM, Nicolas Marchildon
  nico...@marchildon.net wrote:
  Scanning a blank page at 150 dpi, 24 bit, simplex, using Canon's
  CaptureOnTouch and Usb Sniffer from
  http://www.pcausa.com/Utilities/UsbSnoop/
 
  58 MB log
  https://drive.google.com/file/d/0B1s3C34oDHi5ZzFqd3E4Nk5uekE/view
 
 
  --
  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
 
 
 
  --
  well, I stand up next to a mountain- and I chop it down with the edge
  of my hand



 --
 well, I stand up next to a mountain- and I chop it down with the edge
 of my hand



-- 
well, I stand up next to a mountain- and I chop it down with the edge
of my hand

-- 
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] UsbSnoop for Canon DR-C225

2015-03-31 Thread Nicolas Marchildon
This is on Windows XP. For some reason, I was not capturing anything until
I included the USB hub *and* the scanner. Is the log worthless?

Le lun. 30 mars 2015 à 21:33, m. allan noah kitno...@gmail.com a écrit :

 Your log has the packets from two different devices in it, or
 something else strange is going on. What OS was this captured on?

 allan

 On Mon, Mar 30, 2015 at 9:15 PM, m. allan noah kitno...@gmail.com wrote:
  have you tried to use a recent sane-backends git snapshot? I would be
  interested to see a debugging log of sane trying to make a scan.
 
  allan
 
  On Mon, Mar 30, 2015 at 9:08 PM, Nicolas Marchildon
  nico...@marchildon.net wrote:
  Scanning a blank page at 150 dpi, 24 bit, simplex, using Canon's
  CaptureOnTouch and Usb Sniffer from
  http://www.pcausa.com/Utilities/UsbSnoop/
 
  58 MB log
  https://drive.google.com/file/d/0B1s3C34oDHi5ZzFqd3E4Nk5uekE/view
 
 
  --
  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
 
 
 
  --
  well, I stand up next to a mountain- and I chop it down with the edge
  of my hand



 --
 well, I stand up next to a mountain- and I chop it down with the edge
 of my hand

-- 
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] UsbSnoop for Canon DR-C225

2015-03-31 Thread m. allan noah
The log looks very similar to the DR-C125. Can you try building a
current sane-backends git snapshot, and try the code? You might have
to run as root user until we get the permissions sorted out.

allan

On Tue, Mar 31, 2015 at 9:31 AM, Nicolas Marchildon
nico...@marchildon.net wrote:
 After few attempts (reboot, locked device, etc.), I managed to sniff only
 the device. The device is connected to the VirtualBox instance.

 https://drive.google.com/file/d/0B1s3C34oDHi5QTFyMDdmVVNaNTA/view

 Le mar. 31 mars 2015 à 07:20, m. allan noah kitno...@gmail.com a écrit :

 my scripts currently don't handle having this kind of mixed data in
 one log. I could update them I suppose, but it would be easier to get
 a smaller log- can you try bypassing the hub when making the log?
 Connect the scanner directly to the machine?

 allan

 On Mon, Mar 30, 2015 at 10:06 PM, Nicolas Marchildon
 nico...@marchildon.net wrote:
  This is on Windows XP. For some reason, I was not capturing anything
  until I
  included the USB hub *and* the scanner. Is the log worthless?
 
  Le lun. 30 mars 2015 à 21:33, m. allan noah kitno...@gmail.com a écrit
  :
 
  Your log has the packets from two different devices in it, or
  something else strange is going on. What OS was this captured on?
 
  allan
 
  On Mon, Mar 30, 2015 at 9:15 PM, m. allan noah kitno...@gmail.com
  wrote:
   have you tried to use a recent sane-backends git snapshot? I would be
   interested to see a debugging log of sane trying to make a scan.
  
   allan
  
   On Mon, Mar 30, 2015 at 9:08 PM, Nicolas Marchildon
   nico...@marchildon.net wrote:
   Scanning a blank page at 150 dpi, 24 bit, simplex, using Canon's
   CaptureOnTouch and Usb Sniffer from
   http://www.pcausa.com/Utilities/UsbSnoop/
  
   58 MB log
   https://drive.google.com/file/d/0B1s3C34oDHi5ZzFqd3E4Nk5uekE/view
  
  
   --
   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
  
  
  
   --
   well, I stand up next to a mountain- and I chop it down with the
   edge
   of my hand
 
 
 
  --
  well, I stand up next to a mountain- and I chop it down with the edge
  of my hand



 --
 well, I stand up next to a mountain- and I chop it down with the edge
 of my hand



-- 
well, I stand up next to a mountain- and I chop it down with the edge
of my hand

-- 
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] UsbSnoop for Canon DR-C225

2015-03-31 Thread Nicolas Marchildon
After few attempts (reboot, locked device, etc.), I managed to sniff only
the device. The device is connected to the VirtualBox instance.

https://drive.google.com/file/d/0B1s3C34oDHi5QTFyMDdmVVNaNTA/view

Le mar. 31 mars 2015 à 07:20, m. allan noah kitno...@gmail.com a écrit :

 my scripts currently don't handle having this kind of mixed data in
 one log. I could update them I suppose, but it would be easier to get
 a smaller log- can you try bypassing the hub when making the log?
 Connect the scanner directly to the machine?

 allan

 On Mon, Mar 30, 2015 at 10:06 PM, Nicolas Marchildon
 nico...@marchildon.net wrote:
  This is on Windows XP. For some reason, I was not capturing anything
 until I
  included the USB hub *and* the scanner. Is the log worthless?
 
  Le lun. 30 mars 2015 à 21:33, m. allan noah kitno...@gmail.com a
 écrit :
 
  Your log has the packets from two different devices in it, or
  something else strange is going on. What OS was this captured on?
 
  allan
 
  On Mon, Mar 30, 2015 at 9:15 PM, m. allan noah kitno...@gmail.com
 wrote:
   have you tried to use a recent sane-backends git snapshot? I would be
   interested to see a debugging log of sane trying to make a scan.
  
   allan
  
   On Mon, Mar 30, 2015 at 9:08 PM, Nicolas Marchildon
   nico...@marchildon.net wrote:
   Scanning a blank page at 150 dpi, 24 bit, simplex, using Canon's
   CaptureOnTouch and Usb Sniffer from
   http://www.pcausa.com/Utilities/UsbSnoop/
  
   58 MB log
   https://drive.google.com/file/d/0B1s3C34oDHi5ZzFqd3E4Nk5uekE/view
  
  
   --
   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
  
  
  
   --
   well, I stand up next to a mountain- and I chop it down with the edge
   of my hand
 
 
 
  --
  well, I stand up next to a mountain- and I chop it down with the edge
  of my hand



 --
 well, I stand up next to a mountain- and I chop it down with the edge
 of my hand

-- 
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] UsbSnoop for Canon DR-C225

2015-03-31 Thread Nicolas Marchildon
$ /usr/local/bin/scanimage --version
scanimage (sane-backends) 1.0.25git; backend version 1.0.25

$ sudo /usr/local/bin/scanimage -L
device `canon_dr:libusb:002:011' is a CANON DR-C225 scanner

$ sudo /usr/local/bin/scanimage --format=tiff image.tiff
*** glibc detected *** /usr/local/bin/scanimage: double free or corruption
(!prev): 0x01ef66c0 ***
=== Backtrace: =
/lib64/libc.so.6[0x30dd875e66]
/lib64/libc.so.6[0x30dd8789b3]
/usr/local/lib/sane/libsane-canon_dr.so.1(+0x10256)[0x7fb49804d256]
/usr/local/lib/sane/libsane-canon_dr.so.1(+0x114e7)[0x7fb49804e4e7]
/usr/local/lib/sane/libsane-canon_dr.so.1(+0x11d7e)[0x7fb49804ed7e]
/usr/local/lib/sane/libsane-canon_dr.so.1(sane_canon_dr_start+0x7f1)[0x7fb498056651]
/usr/local/bin/scanimage[0x404119]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x30dd81ed5d]
/usr/local/bin/scanimage[0x401749]
=== Memory map: 
0040-0040a000 r-xp  fd:00 1070393
 /usr/local/bin/scanimage
0060a000-0060b000 rw-p a000 fd:00 1070393
 /usr/local/bin/scanimage
01e77000-01f2b000 rw-p  00:00 0
 [heap]
30dd40-30dd42 r-xp  fd:00 1470123
 /lib64/ld-2.12.so
30dd61f000-30dd62 r--p 0001f000 fd:00 1470123
 /lib64/ld-2.12.so
30dd62-30dd621000 rw-p 0002 fd:00 1470123
 /lib64/ld-2.12.so
30dd621000-30dd622000 rw-p  00:00 0
30dd80-30dd98a000 r-xp  fd:00 1470128
 /lib64/libc-2.12.so
30dd98a000-30ddb8a000 ---p 0018a000 fd:00 1470128
 /lib64/libc-2.12.so
30ddb8a000-30ddb8e000 r--p 0018a000 fd:00 1470128
 /lib64/libc-2.12.so
30ddb8e000-30ddb8f000 rw-p 0018e000 fd:00 1470128
 /lib64/libc-2.12.so
30ddb8f000-30ddb94000 rw-p  00:00 0
30ddc0-30ddc83000 r-xp  fd:00 1470129
 /lib64/libm-2.12.so
30ddc83000-30dde82000 ---p 00083000 fd:00 1470129
 /lib64/libm-2.12.so
30dde82000-30dde83000 r--p 00082000 fd:00 1470129
 /lib64/libm-2.12.so
30dde83000-30dde84000 rw-p 00083000 fd:00 1470129
 /lib64/libm-2.12.so
30de00-30de017000 r-xp  fd:00 1470133
 /lib64/libpthread-2.12.so
30de017000-30de217000 ---p 00017000 fd:00 1470133
 /lib64/libpthread-2.12.so
30de217000-30de218000 r--p 00017000 fd:00 1470133
 /lib64/libpthread-2.12.so
30de218000-30de219000 rw-p 00018000 fd:00 1470133
 /lib64/libpthread-2.12.so
30de219000-30de21d000 rw-p  00:00 0
30de40-30de402000 r-xp  fd:00 1470135
 /lib64/libdl-2.12.so
30de402000-30de602000 ---p 2000 fd:00 1470135
 /lib64/libdl-2.12.so
30de602000-30de603000 r--p 2000 fd:00 1470135
 /lib64/libdl-2.12.so
30de603000-30de604000 rw-p 3000 fd:00 1470135
 /lib64/libdl-2.12.so
30e780-30e7816000 r-xp  fd:00 1470132
 /lib64/libgcc_s-4.4.7-20120601.so.1
30e7816000-30e7a15000 ---p 00016000 fd:00 1470132
 /lib64/libgcc_s-4.4.7-20120601.so.1
30e7a15000-30e7a16000 rw-p 00015000 fd:00 1470132
 /lib64/libgcc_s-4.4.7-20120601.so.1
30ec40-30ec407000 r-xp  fd:00 1072790
 /usr/lib64/libusb-0.1.so.4.4.4
30ec407000-30ec606000 ---p 7000 fd:00 1072790
 /usr/lib64/libusb-0.1.so.4.4.4
30ec606000-30ec608000 rw-p 6000 fd:00 1072790
 /usr/lib64/libusb-0.1.so.4.4.4
30ee00-30ee03f000 r-xp  fd:00 1081604
 /usr/lib64/libjpeg.so.62.0.0
30ee03f000-30ee23f000 ---p 0003f000 fd:00 1081604
 /usr/lib64/libjpeg.so.62.0.0
30ee23f000-30ee24 rw-p 0003f000 fd:00 1081604
 /usr/lib64/libjpeg.so.62.0.0
30ee24-30ee25 rw-p  00:00 0
7fb496953000-7fb49696 r-xp  fd:00 1207774
 /usr/local/lib/sane/libsane-net.so.1.0.25
7fb49696-7fb496b6 ---p d000 fd:00 1207774
 /usr/local/lib/sane/libsane-net.so.1.0.25
7fb496b6-7fb496b61000 rw-p d000 fd:00 1207774
 /usr/local/lib/sane/libsane-net.so.1.0.25
7fb496b61000-7fb496b6e000 r-xp  fd:00 1207574
 /usr/local/lib/sane/libsane-abaton.so.1.0.25
7fb496b6e000-7fb496d6d000 ---p d000 fd:00 1207574
 /usr/local/lib/sane/libsane-abaton.so.1.0.25
7fb496d6d000-7fb496d6e000 rw-p c000 fd:00 1207574
 /usr/local/lib/sane/libsane-abaton.so.1.0.25
7fb496d6e000-7fb496d7d000 r-xp  fd:00 1207578
 /usr/local/lib/sane/libsane-agfafocus.so.1.0.25
7fb496d7d000-7fb496f7d000 ---p f000 fd:00 1207578
 /usr/local/lib/sane/libsane-agfafocus.so.1.0.25
7fb496f7d000-7fb496f7e000 rw-p f000 fd:00 1207578
 /usr/local/lib/sane/libsane-agfafocus.so.1.0.25
7fb496f7e000-7fb496f8e000 r-xp  fd:00 1207582
 /usr/local/lib/sane/libsane-apple.so.1.0.25
7fb496f8e000-7fb49718d000 ---p 0001 fd:00 1207582
 /usr/local/lib/sane/libsane-apple.so.1.0.25
7fb49718d000-7fb49718e000 rw-p f000 fd:00 1207582
 /usr/local/lib/sane/libsane-apple.so.1.0.25
7fb49718e000-7fb4971b8000 r-xp  fd:00 1207598
 /usr/local/lib/sane/libsane-avision.so.1.0.25
7fb4971b8000-7fb4973b7000 ---p 0002a000 fd:00 1207598
 /usr/local/lib/sane/libsane-avision.so.1.0.25
7fb4973b7000-7fb4973ba000 rw-p 00029000 fd:00 1207598
 /usr/local/lib/sane/libsane-avision.so.1.0.25
7fb4973ba000-7fb4973bc000 rw-p  00:00 0
7fb4973bc000-7fb4973cf000 r-xp  fd:00 1207586
 

Re: [sane-devel] UsbSnoop for Canon DR-C225

2015-03-31 Thread m. allan noah
How about this:

SANE_DEBUG_CANON_DR=25 scanimage --resolution 150  foo.pnm 2 drc225.log

and send that log file.

allan

On Tue, Mar 31, 2015 at 5:33 PM, Nicolas Marchildon
nico...@marchildon.net wrote:
 $ /usr/local/bin/scanimage --version
 scanimage (sane-backends) 1.0.25git; backend version 1.0.25

 $ sudo /usr/local/bin/scanimage -L
 device `canon_dr:libusb:002:011' is a CANON DR-C225 scanner

 $ sudo /usr/local/bin/scanimage --format=tiff image.tiff
 *** glibc detected *** /usr/local/bin/scanimage: double free or corruption
 (!prev): 0x01ef66c0 ***
 === Backtrace: =
 /lib64/libc.so.6[0x30dd875e66]
 /lib64/libc.so.6[0x30dd8789b3]
 /usr/local/lib/sane/libsane-canon_dr.so.1(+0x10256)[0x7fb49804d256]
 /usr/local/lib/sane/libsane-canon_dr.so.1(+0x114e7)[0x7fb49804e4e7]
 /usr/local/lib/sane/libsane-canon_dr.so.1(+0x11d7e)[0x7fb49804ed7e]
 /usr/local/lib/sane/libsane-canon_dr.so.1(sane_canon_dr_start+0x7f1)[0x7fb498056651]
 /usr/local/bin/scanimage[0x404119]
 /lib64/libc.so.6(__libc_start_main+0xfd)[0x30dd81ed5d]
 /usr/local/bin/scanimage[0x401749]
 === Memory map: 
 0040-0040a000 r-xp  fd:00 1070393
 /usr/local/bin/scanimage
 0060a000-0060b000 rw-p a000 fd:00 1070393
 /usr/local/bin/scanimage
 01e77000-01f2b000 rw-p  00:00 0
 [heap]
 30dd40-30dd42 r-xp  fd:00 1470123
 /lib64/ld-2.12.so
 30dd61f000-30dd62 r--p 0001f000 fd:00 1470123
 /lib64/ld-2.12.so
 30dd62-30dd621000 rw-p 0002 fd:00 1470123
 /lib64/ld-2.12.so
 30dd621000-30dd622000 rw-p  00:00 0
 30dd80-30dd98a000 r-xp  fd:00 1470128
 /lib64/libc-2.12.so
 30dd98a000-30ddb8a000 ---p 0018a000 fd:00 1470128
 /lib64/libc-2.12.so
 30ddb8a000-30ddb8e000 r--p 0018a000 fd:00 1470128
 /lib64/libc-2.12.so
 30ddb8e000-30ddb8f000 rw-p 0018e000 fd:00 1470128
 /lib64/libc-2.12.so
 30ddb8f000-30ddb94000 rw-p  00:00 0
 30ddc0-30ddc83000 r-xp  fd:00 1470129
 /lib64/libm-2.12.so
 30ddc83000-30dde82000 ---p 00083000 fd:00 1470129
 /lib64/libm-2.12.so
 30dde82000-30dde83000 r--p 00082000 fd:00 1470129
 /lib64/libm-2.12.so
 30dde83000-30dde84000 rw-p 00083000 fd:00 1470129
 /lib64/libm-2.12.so
 30de00-30de017000 r-xp  fd:00 1470133
 /lib64/libpthread-2.12.so
 30de017000-30de217000 ---p 00017000 fd:00 1470133
 /lib64/libpthread-2.12.so
 30de217000-30de218000 r--p 00017000 fd:00 1470133
 /lib64/libpthread-2.12.so
 30de218000-30de219000 rw-p 00018000 fd:00 1470133
 /lib64/libpthread-2.12.so
 30de219000-30de21d000 rw-p  00:00 0
 30de40-30de402000 r-xp  fd:00 1470135
 /lib64/libdl-2.12.so
 30de402000-30de602000 ---p 2000 fd:00 1470135
 /lib64/libdl-2.12.so
 30de602000-30de603000 r--p 2000 fd:00 1470135
 /lib64/libdl-2.12.so
 30de603000-30de604000 rw-p 3000 fd:00 1470135
 /lib64/libdl-2.12.so
 30e780-30e7816000 r-xp  fd:00 1470132
 /lib64/libgcc_s-4.4.7-20120601.so.1
 30e7816000-30e7a15000 ---p 00016000 fd:00 1470132
 /lib64/libgcc_s-4.4.7-20120601.so.1
 30e7a15000-30e7a16000 rw-p 00015000 fd:00 1470132
 /lib64/libgcc_s-4.4.7-20120601.so.1
 30ec40-30ec407000 r-xp  fd:00 1072790
 /usr/lib64/libusb-0.1.so.4.4.4
 30ec407000-30ec606000 ---p 7000 fd:00 1072790
 /usr/lib64/libusb-0.1.so.4.4.4
 30ec606000-30ec608000 rw-p 6000 fd:00 1072790
 /usr/lib64/libusb-0.1.so.4.4.4
 30ee00-30ee03f000 r-xp  fd:00 1081604
 /usr/lib64/libjpeg.so.62.0.0
 30ee03f000-30ee23f000 ---p 0003f000 fd:00 1081604
 /usr/lib64/libjpeg.so.62.0.0
 30ee23f000-30ee24 rw-p 0003f000 fd:00 1081604
 /usr/lib64/libjpeg.so.62.0.0
 30ee24-30ee25 rw-p  00:00 0
 7fb496953000-7fb49696 r-xp  fd:00 1207774
 /usr/local/lib/sane/libsane-net.so.1.0.25
 7fb49696-7fb496b6 ---p d000 fd:00 1207774
 /usr/local/lib/sane/libsane-net.so.1.0.25
 7fb496b6-7fb496b61000 rw-p d000 fd:00 1207774
 /usr/local/lib/sane/libsane-net.so.1.0.25
 7fb496b61000-7fb496b6e000 r-xp  fd:00 1207574
 /usr/local/lib/sane/libsane-abaton.so.1.0.25
 7fb496b6e000-7fb496d6d000 ---p d000 fd:00 1207574
 /usr/local/lib/sane/libsane-abaton.so.1.0.25
 7fb496d6d000-7fb496d6e000 rw-p c000 fd:00 1207574
 /usr/local/lib/sane/libsane-abaton.so.1.0.25
 7fb496d6e000-7fb496d7d000 r-xp  fd:00 1207578
 /usr/local/lib/sane/libsane-agfafocus.so.1.0.25
 7fb496d7d000-7fb496f7d000 ---p f000 fd:00 1207578
 /usr/local/lib/sane/libsane-agfafocus.so.1.0.25
 7fb496f7d000-7fb496f7e000 rw-p f000 fd:00 1207578
 /usr/local/lib/sane/libsane-agfafocus.so.1.0.25
 7fb496f7e000-7fb496f8e000 r-xp  fd:00 1207582
 /usr/local/lib/sane/libsane-apple.so.1.0.25
 7fb496f8e000-7fb49718d000 ---p 0001 fd:00 1207582
 /usr/local/lib/sane/libsane-apple.so.1.0.25
 7fb49718d000-7fb49718e000 rw-p f000 fd:00 1207582
 /usr/local/lib/sane/libsane-apple.so.1.0.25
 7fb49718e000-7fb4971b8000 r-xp  fd:00 1207598
 /usr/local/lib/sane/libsane-avision.so.1.0.25
 7fb4971b8000-7fb4973b7000 ---p 0002a000 fd:00 

Re: [sane-devel] UsbSnoop for Canon DR-C225

2015-03-30 Thread m. allan noah
Your log has the packets from two different devices in it, or
something else strange is going on. What OS was this captured on?

allan

On Mon, Mar 30, 2015 at 9:15 PM, m. allan noah kitno...@gmail.com wrote:
 have you tried to use a recent sane-backends git snapshot? I would be
 interested to see a debugging log of sane trying to make a scan.

 allan

 On Mon, Mar 30, 2015 at 9:08 PM, Nicolas Marchildon
 nico...@marchildon.net wrote:
 Scanning a blank page at 150 dpi, 24 bit, simplex, using Canon's
 CaptureOnTouch and Usb Sniffer from
 http://www.pcausa.com/Utilities/UsbSnoop/

 58 MB log
 https://drive.google.com/file/d/0B1s3C34oDHi5ZzFqd3E4Nk5uekE/view


 --
 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



 --
 well, I stand up next to a mountain- and I chop it down with the edge
 of my hand



-- 
well, I stand up next to a mountain- and I chop it down with the edge
of my hand

-- 
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] UsbSnoop for Canon DR-C225

2015-03-30 Thread m. allan noah
have you tried to use a recent sane-backends git snapshot? I would be
interested to see a debugging log of sane trying to make a scan.

allan

On Mon, Mar 30, 2015 at 9:08 PM, Nicolas Marchildon
nico...@marchildon.net wrote:
 Scanning a blank page at 150 dpi, 24 bit, simplex, using Canon's
 CaptureOnTouch and Usb Sniffer from
 http://www.pcausa.com/Utilities/UsbSnoop/

 58 MB log
 https://drive.google.com/file/d/0B1s3C34oDHi5ZzFqd3E4Nk5uekE/view


 --
 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



-- 
well, I stand up next to a mountain- and I chop it down with the edge
of my hand

-- 
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