kopia lustrzana https://gitlab.com/sane-project/backends
canon_dr backend v49
initial support for DR-C125 and possibly DR-C225merge-requests/1/head
rodzic
128c8931b3
commit
71ffcfe30e
|
@ -309,6 +309,8 @@
|
||||||
- set another unknown byte in buffermode for ssm2
|
- set another unknown byte in buffermode for ssm2
|
||||||
- add another gettimeofday call at end of do_usb_cmd
|
- add another gettimeofday call at end of do_usb_cmd
|
||||||
- don't print 0 length line in hexdump
|
- don't print 0 length line in hexdump
|
||||||
|
v49 2015-03-18, MAN
|
||||||
|
- initial support for DR-C125
|
||||||
|
|
||||||
SANE FLOW DIAGRAM
|
SANE FLOW DIAGRAM
|
||||||
|
|
||||||
|
@ -358,7 +360,7 @@
|
||||||
#include "canon_dr.h"
|
#include "canon_dr.h"
|
||||||
|
|
||||||
#define DEBUG 1
|
#define DEBUG 1
|
||||||
#define BUILD 48
|
#define BUILD 49
|
||||||
|
|
||||||
/* values for SANE_DEBUG_CANON_DR env var:
|
/* values for SANE_DEBUG_CANON_DR env var:
|
||||||
- errors 5
|
- errors 5
|
||||||
|
@ -1542,6 +1544,38 @@ init_model (struct scanner *s)
|
||||||
s->can_monochrome=0;
|
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");
|
DBG (10, "init_model: finish\n");
|
||||||
|
|
||||||
return SANE_STATUS_GOOD;
|
return SANE_STATUS_GOOD;
|
||||||
|
|
|
@ -150,6 +150,7 @@ option duplex-offset 400
|
||||||
usb 0x1083 0x163f
|
usb 0x1083 0x163f
|
||||||
|
|
||||||
# DR-C125
|
# DR-C125
|
||||||
|
option duplex-offset 400
|
||||||
usb 0x1083 0x1640
|
usb 0x1083 0x1640
|
||||||
|
|
||||||
# DR-P215
|
# DR-P215
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
:backend "canon_dr" ; name of backend
|
:backend "canon_dr" ; name of backend
|
||||||
:url "http://www.thebility.com/canon/"
|
: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)
|
:manpage "sane-canon_dr" ; name of manpage (if it exists)
|
||||||
:comment "Backend updated for SANE release 1.0.25, see sane-canon_dr manpage"
|
:comment "Backend updated for SANE release 1.0.25, see sane-canon_dr manpage"
|
||||||
:devicetype :scanner ; start of a list of devices....
|
:devicetype :scanner ; start of a list of devices....
|
||||||
|
@ -273,8 +273,7 @@
|
||||||
:model "DR-C125"
|
:model "DR-C125"
|
||||||
:interface "USB"
|
:interface "USB"
|
||||||
:usbid "0x1083" "0x1640"
|
:usbid "0x1083" "0x1640"
|
||||||
:status :untested
|
:status :good
|
||||||
:comment "Similar protocol to other canon_dr machines, but unsupported image format."
|
|
||||||
|
|
||||||
:model "DR-C130"
|
:model "DR-C130"
|
||||||
:interface "USB"
|
:interface "USB"
|
||||||
|
@ -285,6 +284,7 @@
|
||||||
:interface "USB"
|
:interface "USB"
|
||||||
:usbid "0x1083" "0x1658"
|
:usbid "0x1083" "0x1658"
|
||||||
:status :untested
|
:status :untested
|
||||||
|
:comment "Perhaps similar to DR-C125?"
|
||||||
|
|
||||||
:model "DR-F120"
|
:model "DR-F120"
|
||||||
:interface "USB"
|
:interface "USB"
|
||||||
|
|
Ładowanie…
Reference in New Issue