Commit graph

26 commits

Author SHA1 Message Date
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 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 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 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 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 aab6074ab4 s2145: Add initial ability to set tone curves.
..This expects a raw file.  Probably not ideal, but it's a start.
2013-07-06 22:44:51 -04:00
Solomon Peachy fec7e6d776 common: Fix more USB descriptor parsing bugs. 2013-07-06 20:58:23 -04:00
Solomon Peachy 6093b65481 s2145: Add support for reading the tone curves. 2013-07-06 20:29:30 -04:00
Solomon Peachy 060c38ba74 s2145: Add a blurb about how LiveLink Technology sponsored this backend. 2013-07-06 19:08:17 -04:00
Solomon Peachy 20f903e166 s2145: Decode many of the values in the various status messages.
Also, if we get an error after printing, log it properly instead of
assuming we're peachy.
2013-07-06 18:56:19 -04:00
Solomon Peachy 924164e683 s2145: Flash LED, Cancel job, reset printer/user curve, configure buttons.
Everything but querying and setting the tone curves is implemented now.
2013-07-06 15:12:45 -04:00
Solomon Peachy 26c8224fca s2145: Add the ability to set the user/unique string. 2013-07-06 14:11:41 -04:00
Solomon Peachy 63ee09ff0f s2145: Added the ability to query status, media, errors, and fwinfo. 2013-07-06 13:39:00 -04:00
Solomon Peachy 62ba1bd276 s2145: Add functions to dump status/state/logs/etc. 2013-07-06 12:48:19 -04:00
Solomon Peachy daec9e6f68 s2145: Rename helper to include manufacturer. 2013-07-06 11:03:49 -04:00
Renamed from s2145_print.c (Browse further)