Commit graph

296 commits

Author SHA1 Message Date
Solomon Peachy 140f9ecf42 s2145: Enable a 'fast return' mode
This terminates the backend as soon as the printer acks the print job,
allowing the use of both printer bufers.
2013-09-30 13:07:35 +01:00
Solomon Peachy ca0f241e52 kodak1400: Add rudimentary error detection so we abory cleanly. 2013-09-01 16:58:11 -04:00
Solomon Peachy 7a7bdf9fab all: Update URL to the public git repo. 2013-08-20 20:10:21 -04:00
Solomon Peachy 1deb5ca1b3 s2145: Clean up calling conventions of s2145_do_cmd()
Instead of passing dev, endp_up, endp_down, just pass the ctx that has
everything in it already.
2013-08-20 20:02:10 -04:00
Solomon Peachy ccf8ad9e59 common: when we're not in scan mode, attach to the first matching
printer we find.
2013-08-19 18:33:32 -04:00
Solomon Peachy b81f6735ac s2145: Minor documentation cleanups. 2013-08-08 08:53:48 -04:00
Solomon Peachy 36404817e7 common: Rename everything consistently. 2013-07-27 07:34:36 -04:00
Solomon Peachy 06b12fc4ed kodak1400: minor cosmetic fix. 2013-07-27 07:32:21 -04:00
Solomon Peachy f42f9c4b47 docs: kodak6850 works. 2013-07-26 21:36:24 -04:00
Solomon Peachy 49f222dcf4 kodak6800: More 6850 work. 2013-07-26 21:03:08 -04:00
Solomon Peachy 1c9168d717 kodak6800: Tweak 6850 somoe more. 2013-07-26 20:19:02 -04:00
Solomon Peachy 4e3fb0f1d5 misc: Use the same readback printout code everywhere. 2013-07-26 16:29:58 -04:00
Solomon Peachy db7f1c5187 kodak6800: Fix not setting rdbuf2 (forcing readback always on)
Also, fix mis-handling of 6850 detection.
2013-07-26 16:29:22 -04:00
Solomon Peachy 884919b5fe common: Clean up some gcc warnings (when -Wextra is used) 2013-07-26 16:18:35 -04:00
Solomon Peachy 193ced9487 kodak1400: Fix command line help. 2013-07-26 10:12:59 -04:00
Solomon Peachy f0eb2d8bf8 kodak6800: rename testjob to indicat it works with 6850 too. 2013-07-26 07:46:43 -04:00
Solomon Peachy 2465092534 kodak6800: Fix a boneheaded errror. 2013-07-26 07:45:22 -04:00
Solomon Peachy 953ebd91ec common: Move backend id/version log to where we init the backend. 2013-07-26 07:44:53 -04:00
Solomon Peachy 1d655d722a common: Log the backend name and version when printing starts. 2013-07-26 07:42:33 -04:00
Solomon Peachy 5428587570 kodak6800: Tone curve write is identical to '6800. 2013-07-25 20:05:01 -04:00
Solomon Peachy 32aa46fc81 kodak6800: Rework state machine to hopefully fix 6800 bugs.
Also, flesh out support for 6850.  Theoretically should work now.
2013-07-25 19:56:50 -04:00
Solomon Peachy 78ec7ae79e s2145: Tweak error message. 2013-07-25 18:19:24 -04:00
Solomon Peachy 883e7ad1da s2145: Improve error formatting, and log it in the status query.
Also, we have our first decoded error code.
2013-07-25 18:17:49 -04:00
Solomon Peachy 43188afb61 Apparently this does work.
Revert "s2145:  serno query doesn't work.  disable it for now."

This reverts commit e9032b981293a7be11c639911ec2c2cf64cbc71a.
2013-07-25 17:59:07 -04:00
Solomon Peachy 639306c1c0 kodak6800: Add initial support for 6850. Probably doesn't work yet. 2013-07-25 17:13:36 -04:00
Solomon Peachy 1572041513 kodak6800: Add unique ID for Kodak 6850 printer. 2013-07-25 15:51:45 -04:00
Solomon Peachy eed41de9d3 s2145: serno query doesn't work. disable it for now. 2013-07-25 15:50:35 -04:00
Solomon Peachy 4ca87e69ee s2145: Update list of observed error codes and my guesses. 2013-07-25 14:22:04 -04:00
Solomon Peachy 576fd4de33 common: If an open fails, it's almost certainly becase we're not root. 2013-07-25 14:21:36 -04:00
Solomon Peachy ec073b28f0 s2145: Include the decoded error code in the errorlog dump. 2013-07-25 08:09:01 -04:00
Solomon Peachy a552498716 s2145: Enumerate every known error condition, guessing as to their major/minor codes. 2013-07-24 21:52:16 -04:00
Solomon Peachy 66c0f2831a s2145: Enable the query_serno() call. 2013-07-24 20:54:48 -04:00
Solomon Peachy 051cf386b5 common: Claim the device before calling the backend's query_serno() call. 2013-07-24 20:54:14 -04:00
Solomon Peachy cc8936094a s2145: Initial implementation of the serno query..
It's not enabled yet; the API still needs work.
2013-07-24 13:49:43 -04:00
Solomon Peachy b7851a3df1 common: Add support for a backend-specific serno call.
(Nothing uses it just yet)
2013-07-24 13:49:06 -04:00
Solomon Peachy d01cb80428 common: libusbx is not the same as libusb.
The libusb_get_port_number() call was added in libusbx 1.0.12.
libusbx 1.0.13 added a macro to detect what version of libusb was in use.
So key off that macro's presence; otherwise we don't know at build time.
2013-07-20 19:10:15 -04:00
Solomon Peachy db0650da55 common: Fix EXTRA_PID/VID/TYPE not matching.. 2013-07-19 22:21:15 -04:00
Solomon Peachy b75ce41670 kodak805: Use a gutenprint-generated testprint. 2013-07-19 19:59:46 -04:00
Solomon Peachy e2a1a057fa common: Fix printer matching for all backends other than SELPHY. 2013-07-19 19:53:08 -04:00
Solomon Peachy d9df258aae selphy: Fix printjob reading. Now successfully prints. 2013-07-19 18:48:31 -04:00
Solomon Peachy 4b9e689548 backend: Fix crash bug. 2013-07-19 11:12:14 -04:00
Solomon Peachy 9f19970ba7 selphy: Utilize the early_parse() backend hook
This way wae can detect printer type, and figure out what device type
we need to attach to.

Also, get rid of the read_data() function in favor of simple read().
2013-07-19 10:15:27 -04:00
Solomon Peachy b5b41405dc Documentation update. 2013-07-19 10:14:55 -04:00
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