Commit Graph

763 Commits

Author SHA1 Message Date
Solomon Peachy db0c7d8b99 all: Eliminate the multi-stage cmdline parsing.
Unfortunately this means we lose the '-B backend' method, but the
overall control flow is much, much simpler now.
2015-08-13 21:09:56 -04:00
Solomon Peachy 0e91abe75d canonselphy: Log the job type before the job/printer mismatch error. 2015-08-12 23:15:53 -04:00
Solomon Peachy de8a32424c all: Unified approach to extra_vid/pid/type
This required a modification to all attach() methods.

Also, fix canonselphy's parsing/attachment code.
2015-08-12 22:56:29 -04:00
Solomon Peachy f67a8f8ea5 common: Eliminate early_parse() from backend.
only canonselphy used it.  This also showed that extra_vid/pid was broken.
2015-08-12 22:51:45 -04:00
Solomon Peachy 20f6d05b8a common: Rework the early cmdline argument parsing code to improve robustness
Also move fast_return out of individual backends and into common code.
2015-08-12 21:02:11 -04:00
Solomon Peachy ba2f964c6a dnpds40: More fixes to rewind support on the DS620.
Previous comit broke all sizes that couldn't legitimately be rewound.  oops.
2015-08-10 20:00:58 -04:00
Solomon Peachy 84575600e4 dnpds40: Allow usb iserialnumber visibility to be configured.
Also, decouple it from the DS620, since it'll be available on other
models eventually
2015-08-06 09:54:49 -04:00
Solomon Peachy 0a44ac0906 dnpds40: Left out 4x6*2. 2015-07-31 20:57:15 -04:00
Solomon Peachy b3718e1f12 s6145: More fixes. 2015-07-27 22:08:56 -04:00
Solomon Peachy 1783bdb3c4 shinko_s6145: Add initial support for the binary 6145 library.
...In the hope that this can be replaced.
2015-07-27 21:22:25 -04:00
Solomon Peachy f04753bbf2 docs: Add info on the preliminary, non-functional s6145 backend. 2015-07-27 12:20:33 -04:00
Solomon Peachy 114202d7f5 shinko6145: Add a preliminary backend. Does NOT include library work. 2015-07-26 23:05:21 -04:00
Solomon Peachy e5a2fff2b1 kodak1400: Add another printer error we've seen. 2015-07-24 23:37:36 -04:00
Solomon Peachy 79279ee4ea build: Clean up the makefile a bit. Use c99 to build. 2015-07-24 23:37:12 -04:00
Solomon Peachy 5ffc5f3f8e mitsu70x: Fix up some compile warnings on some compilers. 2015-07-24 23:36:50 -04:00
Solomon Peachy 42d191c993 build: Add a DESTDIR option. 2015-07-21 22:11:26 -04:00
Solomon Peachy 36463c70c6 dnpds40: Fix rewind support in the presence of multiple copies.
(Actually, rewind support was broken, period, but now it's all good..)
2015-07-21 22:01:24 -04:00
Solomon Peachy 6b11607c93 dnpds40: DS40 "forgets" 2x6 cutter mode when resuming from an out-of-media error
...So resort to manual copy generation.

TODO:  See if newer DS40 firmware fixes this?
2015-07-21 18:00:58 -04:00
Solomon Peachy 869a255f2f dnpds40: Add support for disabling the printer's native copy generation.
DS40 v1.40 "forgets" 2x6 strip mode when we run out of media during the job.

DS620 v1.10 (probably) might not support rewind and multi-copy simultaneously. Might also break pipelining!

Note that neither condition is actually enabled right now, need to test
more first.
2015-07-21 17:57:23 -04:00
Solomon Peachy bc746cc56b dnpds40: Handful of improvements:
* RX1 also supports querying MQTY_DEFAULT
 * Don't query resolution, return last print status only.
 * Query Media Class
 * Query Ribbon ID code
 * Query 300 and 600dpi color checksum data independently for all models
2015-07-11 15:12:47 -04:00
Solomon Peachy 30d9b050df dsnpds40: 6*4.5 prints can be rewound, and are presumably legal on 6x8 media. 2015-07-06 17:47:19 -04:00
Solomon Peachy 2181ae04b9 all: Clean up a small pile of warnings that clang-analyzer found. 2015-07-04 11:03:52 -04:00
Solomon Peachy 65d1c5461d s6245/s1245: Fix a pile of warnings found by clang-analyzer 2015-07-04 11:01:10 -04:00
Solomon Peachy cd03e9a22f misc: Fix some unitialized variable warnings that show up with -Os 2015-07-04 10:12:57 -04:00
Solomon Peachy 5fa84dc2b7 s6245: Add ability to set standby time. 2015-07-04 10:01:23 -04:00
Solomon Peachy 4489c1c0a5 misc: Clean up buffer overflows identified by cppcheck 2015-07-04 09:45:48 -04:00
Solomon Peachy 5ce4b691e3 s1245/6245: Fix some buffer overflows. 2015-07-04 09:38:59 -04:00
Solomon Peachy 6a02bf8554 common: A few minor cleanups. 2015-07-04 09:13:42 -04:00
Solomon Peachy b13445d3c6 s6245: Add ICC profiles. 2015-07-03 00:15:09 -04:00
Solomon Peachy 3f36efa57e s6245: Set the printer's RTC at each print. 2015-07-02 23:55:52 -04:00
Solomon Peachy 49f6d85c45 s6245/s2145: Don't abort in the face of some soft errors. 2015-07-02 23:55:22 -04:00
Solomon Peachy 9b3f7cbb66 s6245: Add a preliminary backend for the Shinko S6245 2015-07-02 23:32:16 -04:00
Solomon Peachy 8f1243de31 s2145: Get rid of early parse. 2015-07-02 22:43:43 -04:00
Solomon Peachy 3965f237ed common: Handle problems claming the USB interface.
...Retry a few times, and sleep between each one.
2015-07-02 19:44:26 -04:00
Solomon Peachy c9c3cb859a dnpds40: Fix help text. 2015-06-30 21:35:05 -04:00
Solomon Peachy 992e551a02 all: Fix command like parsing when the argument has an option.
This was a longstanding bug.  Oops.
2015-06-30 21:33:02 -04:00
Solomon Peachy 14af6acbb9 dnpds40: Decode sensor information as much as possible. 2015-06-30 20:51:30 -04:00
Solomon Peachy c3044c7fc7 Get rid of a bad chunk in the multicut patch. 2015-06-25 20:12:54 -04:00
Solomon Peachy 24c3550feb all: Ensure all malloc() failures are caught and logged. 2015-06-23 20:48:52 -04:00
Solomon Peachy 980fada366 dnpds40: Max printjob size was too small.
Resulted in 8x12 @600dpi prints failing to fully parse due to buffer overflows.

Also added a log message when we fail to read things.
2015-06-23 19:40:35 -04:00
Solomon Peachy 19ce36f65b dnpds40: Distinguish between soft (user-correctable) and fatal errors. 2015-06-23 19:25:23 -04:00
Solomon Peachy d39ff78b4d Update blacklist. 2015-06-23 00:03:04 -04:00
Solomon Peachy 476318bbec dnpds40: Don't repeat media query. 2015-06-22 23:55:48 -04:00
Solomon Peachy 189631d9b4 dnpds40: Add some #ifdefs 2015-06-22 23:51:17 -04:00
Solomon Peachy 2cce68aa81 dnpds40: Minor update. 2015-06-22 23:48:30 -04:00
Solomon Peachy 64a85a4a42 dnpds40: Push media query into early attachment code.
Also, move all sanity checks into the job parsing function, out of the
main loop.  Only stuff like remaining media, rewind, etc belong in the
main loop.
2015-06-22 23:32:48 -04:00
Solomon Peachy 8f6fff03c7 Documentation updates. 2015-06-22 23:19:28 -04:00
Solomon Peachy d63c075015 dnpds40: correct media offset. 2015-06-22 19:26:23 -04:00
Solomon Peachy e67628389e Update gutenprint patch. 2015-06-22 19:04:31 -04:00
Solomon Peachy a2bd3946d1 dnpds40: Display total media quantity *before* remaining prints. 2015-06-22 18:58:19 -04:00