canon_dr backend v49

initial support for DR-C125 and possibly DR-C225
merge-requests/1/head
m. allan noah 2015-03-18 20:48:02 -04:00
rodzic 128c8931b3
commit 71ffcfe30e
3 zmienionych plików z 39 dodań i 4 usunięć

Wyświetl plik

@ -309,6 +309,8 @@
- set another unknown byte in buffermode for ssm2
- add another gettimeofday call at end of do_usb_cmd
- don't print 0 length line in hexdump
v49 2015-03-18, MAN
- initial support for DR-C125
SANE FLOW DIAGRAM
@ -358,7 +360,7 @@
#include "canon_dr.h"
#define DEBUG 1
#define BUILD 48
#define BUILD 49
/* values for SANE_DEBUG_CANON_DR env var:
- errors 5
@ -1542,6 +1544,38 @@ init_model (struct scanner *s)
s->can_monochrome=0;
}
else if (strstr (s->model_name,"DR-C125")
|| strstr (s->model_name,"DR-C225")
){
/*confirmed settings*/
s->gray_interlace[SIDE_FRONT] = GRAY_INTERLACE_2510;
s->gray_interlace[SIDE_BACK] = GRAY_INTERLACE_2510;
s->color_interlace[SIDE_FRONT] = COLOR_INTERLACE_2510;
s->color_interlace[SIDE_BACK] = COLOR_INTERLACE_2510;
s->duplex_interlace = DUPLEX_INTERLACE_2510;
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;

Wyświetl plik

@ -150,6 +150,7 @@ option duplex-offset 400
usb 0x1083 0x163f
# DR-C125
option duplex-offset 400
usb 0x1083 0x1640
# DR-P215

Wyświetl plik

@ -11,7 +11,7 @@
:backend "canon_dr" ; name of backend
:url "http://www.thebility.com/canon/"
:version "47" ; version of backend
:version "49" ; version of backend
:manpage "sane-canon_dr" ; name of manpage (if it exists)
:comment "Backend updated for SANE release 1.0.25, see sane-canon_dr manpage"
:devicetype :scanner ; start of a list of devices....
@ -273,8 +273,7 @@
:model "DR-C125"
:interface "USB"
:usbid "0x1083" "0x1640"
:status :untested
:comment "Similar protocol to other canon_dr machines, but unsupported image format."
:status :good
:model "DR-C130"
:interface "USB"
@ -285,6 +284,7 @@
:interface "USB"
:usbid "0x1083" "0x1658"
:status :untested
:comment "Perhaps similar to DR-C125?"
:model "DR-F120"
:interface "USB"