Solomon Peachy
a7a75cb7c9
common: add an 'early_parse' backend hook
...
Also fix 'query_only' usage to properly bypass the open/read.
2013-07-19 10:13:35 -04:00
Solomon Peachy
4598c5cd6b
misc: clean up use of exit() in the backends.
2013-07-19 09:53:05 -04:00
Solomon Peachy
660cd2f3b0
all: split apart backend init into separate init/attach calls.
...
Also fixed every backend, 'dev' wasn't being set properly.
2013-07-19 09:23:53 -04:00
Solomon Peachy
6da476edab
selphy: Internal rejiggering in preparation for fixing the job parsing
2013-07-19 07:52:21 -04:00
Solomon Peachy
d4de8ceb2d
selphy: Don't duplicate information kept in our printer struct.
2013-07-19 07:44:34 -04:00
Solomon Peachy
3e306886bd
common: Tweak to internal API for future use.
2013-07-19 07:44:20 -04:00
Solomon Peachy
67b09c95be
common: Fix enumeration and output formatting.
...
Canon SELPHY backend is definitely broken; we don't try to parse the
file until after we've probed for the device. Doesn't affect CUPS
operation.
2013-07-18 23:54:43 -04:00
Solomon Peachy
2730a145d4
all: Move USB device IDs into respective backends.
...
This is also untested.
2013-07-18 23:39:36 -04:00
Solomon Peachy
587dd52247
common: Fix enumeration which was fixed looking for a SONY type.
2013-07-18 23:22:24 -04:00
Solomon Peachy
53fbf791a0
misc: Add '-g' to build for debugging ease.
2013-07-18 23:13:02 -04:00
Solomon Peachy
32da54ee36
common: Fix a segfault when backend provides no cmdline handler.
2013-07-18 23:12:40 -04:00
Solomon Peachy
93de75e813
selphy: Fix paper init.
2013-07-18 23:12:25 -04:00
Solomon Peachy
1e0f679eb4
selphy: Final backend migrated to new unified model.
...
None of this has been tested!
2013-07-18 23:00:58 -04:00
Solomon Peachy
060b6763fb
s2145: Migrate to new unified backend.
...
UNTESTED.
2013-07-18 22:10:56 -04:00
Solomon Peachy
bf1f12476b
README updates
2013-07-18 21:23:34 -04:00
Solomon Peachy
d20f1e2049
kodak1400: Merge into new multi-call paradigm.
2013-07-18 21:05:33 -04:00
Solomon Peachy
c3b9e14aea
kodak6800: Finish merging into new multi-call paradigm.
2013-07-18 20:32:44 -04:00
Solomon Peachy
b038aa71c1
kodak6800: 75% of new backend migration completed. Main loop is all that's left.
2013-07-18 18:03:40 -04:00
Solomon Peachy
a3d60820b9
makefile: Strip out the old stuff, only build new stuff now.
...
Next up, porting other backends to new framework!
2013-07-18 12:51:05 -04:00
Solomon Peachy
40604d6664
common: Finish multi-exec handling, including auto backend detection based on environment and/or argv[0]
...
Now ready to try porting another backend into this framework.
2013-07-18 12:45:35 -04:00
Solomon Peachy
0ca04120a8
common: Placeholder for backend detection
2013-07-18 08:51:02 -04:00
Solomon Peachy
be8c5c494f
unification: Rearrange internals quite a lot.
...
Only Sony UP-DR150 driver is converted.
Still to-do in common code:
* Backend selection based on URI (ie CUPS mode)
* Backend selection based on BACKEND or argv[0] (ie standalone mode)
2013-07-18 08:46:44 -04:00
Solomon Peachy
7f4123d5eb
documentation updates to reflect global EXTRA_VID/PID/TYPE
2013-07-18 00:09:59 -04:00
Solomon Peachy
fc66186e4c
common: Don't re-attach after scanning device IDs.
2013-07-17 23:40:48 -04:00
Solomon Peachy
be94ac3fff
all: Unify find_and_enumerate function.
...
Also means pushing device IDs etc into a table.
This is all *UNTESTED*
2013-07-17 23:39:31 -04:00
Solomon Peachy
937c687274
all: Simplify print_scan_output() a bit, eliminate the obsolete 'valid' argument.
2013-07-17 22:43:49 -04:00
Solomon Peachy
49f413543d
kodak1400: Kodak 805 is validated as working. Mark it as supported.
2013-07-17 19:57:20 -04:00
Solomon Peachy
1b460b4072
all: Support DEVICE=serno when in standalone mode.
2013-07-17 19:47:47 -04:00
Solomon Peachy
c91459603a
s2145: bump version.
2013-07-16 23:36:42 -04:00
Solomon Peachy
c05671a1c6
s2145: Tweak status messages a bit.
2013-07-16 23:35:34 -04:00
Solomon Peachy
67f2e817df
s2145: Added decoding of command ids to text strings.
...
Also, added a sleep after the data dump, to avoid USB comms problems.
2013-07-16 23:33:09 -04:00
Solomon Peachy
c3173703c6
all: Tweak state transtition/sleeping a bit.
...
Now we only sleep if the readback and teh state haven't changed.
2013-07-16 23:19:04 -04:00
Solomon Peachy
2f294c6518
s2145: Major internal reworking
...
* Factor out command-response sequence into a separate function
* Stop using lookup tables for text fields in favor of switch statements
* Add full status/error field decoding (not counting "printer error" fields
* Fix order of bankX status fields
* Simplify state machine, fixing major bugs in the process
* Improved status and error logging considerably
* Other bugfixes
There's still finiky USB handshaking going on at times; the printer just
times out on responses. Haven't figured out why still.
2013-07-16 23:00:50 -04:00
Solomon Peachy
f70d028ac2
common: When no serial number is known, use the bus/portnum
2013-07-16 21:08:33 -04:00
Solomon Peachy
c602ad75c0
s2145: Fix formatting.
2013-07-16 18:38:38 -04:00
Solomon Peachy
48a2df1196
all: Don't re-attach the kernel driver when we're done.
...
It actually breaks the Shinko s2145, and given that none of these
printers comply with the USBLP class anyway, it's no real loss.
2013-07-16 18:34:48 -04:00
Solomon Peachy
91d68621d5
s2145: Use a common read buffer, and rearrange status counters.
2013-07-16 18:13:10 -04:00
Solomon Peachy
66c5a913fd
all: Gutenprint's automake can't handle '-' in variable names. sigh.
2013-07-14 20:18:04 -04:00
Solomon Peachy
caaaf3f623
all: Unify naming convention of backends. Get rid of '_' in URIs.
...
now it's:
manufacturer-model
2013-07-14 20:10:18 -04:00
Solomon Peachy
7224fe02a8
Update README.
2013-07-14 17:47:11 -04:00
Solomon Peachy
28c70a6fbc
s2145: Use a fixed-size buffer to receive responses from the printer.
...
Doesn't seem to fix the hanging on subsequent requests. Hmm. Maybe
there's something wrong with the initial requests instead?
2013-07-14 17:37:48 -04:00
Solomon Peachy
fbbd488c36
sony_updr150: Add a new experimental backend for the Sony UP-DR150 printer.
2013-07-14 15:55:35 -04:00
Solomon Peachy
e0b2a6907e
kodak6800: Add (untested) support for setting tone curves too.
2013-07-08 22:33:54 -04:00
Solomon Peachy
52a702e191
kodak6800: Update documentation about the curve data decoding.
2013-07-08 22:17:22 -04:00
Solomon Peachy
145911c6cf
kodak6800: Initial support for querying stored tone curve.
...
(Setting the tone curve is a lot more complicated)
2013-07-08 21:59:51 -04:00
Solomon Peachy
6f64488c48
kodak1400: fix error in byteswapping.
2013-07-08 21:53:52 -04:00
Solomon Peachy
a8c90f3731
kodak1400: Add tone curve setting support. Untested.
2013-07-08 20:45:46 -04:00
Solomon Peachy
60ab3bd040
s2145: Fix tone curve set. oops.
2013-07-08 20:37:30 -04:00
Solomon Peachy
1be87e8839
s2145: Dump tonecurve to a file instead of formatted stdout.
2013-07-08 20:15:39 -04:00
Solomon Peachy
13bf3e1936
kodak6800: Add sniffs about reading/writing the tone curves.
2013-07-08 20:08:57 -04:00