[CP-series] Handle a readback quirk reported on the CP900.

This commit is contained in:
Solomon Peachy 2012-11-20 13:25:20 -05:00
parent 5dc84fa966
commit 4723122796
2 changed files with 8 additions and 4 deletions

View File

@ -134,7 +134,8 @@
14 00 00 00 [pg] 00 [pg2] 00 00 00 00 00 [out of paper/ink]
14 00 01 00 [pg] 00 [pg2] 00 01 00 00 00 [out of paper/ink]
[xx] can be 0x00 or 0xff, depending on if a print job has completed or not.
[xx] can be 0x00 or 0xff, depending on if a previous print job has
completed or not.
[pg] is: 0x01 for P-paper (only 'P' tested)
0x02 for L-paper (guessed)
@ -233,7 +234,7 @@
Known readback values:
01 00 00 00 00 00 [pg] 00 00 00 00 [xx] [idle, waiting for init]
01 00 00 00 [ss] 00 [pg] 00 00 00 00 [xx] [idle, waiting for init]
02 00 [rr] 00 70 00 [pg] 00 00 00 00 [xx] [waiting for Y data]
04 00 00 00 00 00 [pg] 00 00 00 00 [xx] [waiting for M data]
08 00 00 00 00 00 [pg] 00 00 00 00 [xx] [waiting for C data]
@ -244,6 +245,9 @@
[rr] is 0x00 normally, and 0x08 when ribbon is depleted.
[ss] is either 0x00 or 0x70. Unsure as to its significance; perhaps it
means paper or ribbon is already set to go?
[pg] is as follows:
'P' paper 0x11

View File

@ -25,7 +25,7 @@
*
*/
#define VERSION "0.34"
#define VERSION "0.35"
#define DEBUG( ... ) fprintf(stderr, "DEBUG: " __VA_ARGS__ )
#define ERROR( ... ) fprintf(stderr, "ERROR: " __VA_ARGS__ )
@ -133,7 +133,7 @@ struct printer_data printers[P_END] = {
.model = "SELPHY CP Series (!CP790)",
.init_length = 12,
.foot_length = 0, /* CP900 has four-byte NULL footer that can be safely ignored */
.init_readback = { 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, -1, 0x00, 0x00, 0x00, 0x00, -1 },
.init_readback = { 0x01, 0x00, 0x00, 0x00, -1, 0x00, -1, 0x00, 0x00, 0x00, 0x00, -1 },
.ready_y_readback = { 0x02, 0x00, 0x00, 0x00, 0x70, 0x00, -1, 0x00, 0x00, 0x00, 0x00, -1 },
.ready_m_readback = { 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, -1, 0x00, 0x00, 0x00, 0x00, -1 },
.ready_c_readback = { 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, -1, 0x00, 0x00, 0x00, 0x00, -1 },