mitsud90: More guesses about the status query responses

This commit is contained in:
Solomon Peachy 2019-12-23 21:58:05 -05:00
parent 3e1a536058
commit 1ab0cf86eb
1 changed files with 14 additions and 6 deletions

View File

@ -53,14 +53,12 @@ const char *mitsu70x_temperatures(uint8_t temp);
#define D90_STATUS_TYPE_x1e 0x1e // 1, power state or time? (x00) #define D90_STATUS_TYPE_x1e 0x1e // 1, power state or time? (x00)
#define D90_STATUS_TYPE_TEMP 0x1f // 1 (see below) #define D90_STATUS_TYPE_TEMP 0x1f // 1 (see below)
#define D90_STATUS_TYPE_x22 0x22 // 2, all 0 (counter?) #define D90_STATUS_TYPE_x22 0x22 // 2, all 0 (counter?)
#define D90_STATUS_TYPE_x28 0x28 // 2, seen 00 00, counts up. Power-on prints? #define D90_STATUS_TYPE_x28 0x28 // 2, next jobid? (starts 00 01, increments by 1 for each print)
#define D90_STATUS_TYPE_x29 0x29 // 8, e0 07 00 00 21 e6 b3 22 #define D90_STATUS_TYPE_x29 0x29 // 8, e0 07 00 00 21 e6 b3 22
#define D90_STATUS_TYPE_MEDIA 0x2a // 10 (see below) #define D90_STATUS_TYPE_MEDIA 0x2a // 10 (see below)
#define D90_STATUS_TYPE_x2b 0x2b // 2, all 0 (counter?) #define D90_STATUS_TYPE_x2b 0x2b // 2, all 0 (counter?)
#define D90_STATUS_TYPE_x2c 0x2c // 2, 00 56 (counter?) #define D90_STATUS_TYPE_x2c 0x2c // 2, 00 56 (counter?)
#define D90_STATUS_TYPE_x65 0x65 // 50, ac 80 00 01 bb b8 fe 48 05 13 5d 9c 00 33 00 00 00 00 00 00 00 00 00 00 00 00 02 39 00 00 00 00 03 13 00 02 10 40 00 00 00 00 00 00 05 80 00 3a 00 00 #define D90_STATUS_TYPE_x65 0x65 // 50, see below
// 50, aa 79 00 01 bb b7 fe 47 05 13 5d 9c 01 2f 00 68 00 00 00 00 00 00 00 00 00 00 02 08 00 00 00 00 03 14 00 02 10 40 00 00 00 00 00 00 05 80 00 3a 00 00
#define D90_STATUS_TYPE_ISER 0x82 // 1, 80 (iserial disabled) #define D90_STATUS_TYPE_ISER 0x82 // 1, 80 (iserial disabled)
#define D90_STATUS_TYPE_x83 0x83 // 1, 00 #define D90_STATUS_TYPE_x83 0x83 // 1, 00
#define D90_STATUS_TYPE_x84 0x84 // 1, 00 #define D90_STATUS_TYPE_x84 0x84 // 1, 00
@ -103,7 +101,7 @@ struct mitsud90_info_resp {
struct mitsud90_fw_resp_single fw_vers[7]; struct mitsud90_fw_resp_single fw_vers[7];
uint8_t x1e; uint8_t x1e;
uint8_t x22[2]; uint8_t x22[2];
uint8_t x28[2]; uint16_t x28;
uint8_t x29[8]; uint8_t x29[8];
uint8_t x2b[2]; uint8_t x2b[2];
uint8_t x2c[2]; uint8_t x2c[2];
@ -1028,7 +1026,7 @@ static int mitsud90_get_info(struct mitsud90_ctx *ctx)
INFO("TYPE_02: %02x\n", resp.x02); INFO("TYPE_02: %02x\n", resp.x02);
INFO("TYPE_1e: %02x\n", resp.x1e); INFO("TYPE_1e: %02x\n", resp.x1e);
INFO("TYPE_22: %02x %02x\n", resp.x22[0], resp.x22[1]); INFO("TYPE_22: %02x %02x\n", resp.x22[0], resp.x22[1]);
INFO("TYPE_28: %02x %02x\n", resp.x28[0], resp.x28[1]); INFO("TYPE_28: %04x\n", be16_to_cpu(resp.x28));
INFO("TYPE_29: %02x %02x %02x %02x %02x %02x %02x %02x\n", INFO("TYPE_29: %02x %02x %02x %02x %02x %02x %02x %02x\n",
resp.x29[0], resp.x29[1], resp.x29[2], resp.x29[3], resp.x29[0], resp.x29[1], resp.x29[2], resp.x29[3],
resp.x29[4], resp.x29[5], resp.x29[6], resp.x29[7]); resp.x29[4], resp.x29[5], resp.x29[6], resp.x29[7]);
@ -1565,4 +1563,14 @@ Comms Protocol for D90 & CP-M1
1b 44 43 41 4e 43 45 4c 00 00 00 00 1b 44 43 41 4e 43 45 4c 00 00 00 00
request x65 examples:
ac 80 00 01 bb b8 fe 48 05 13 5d 9c 00 33 00 00 00 00 00 00 00 00 00 00 00 00 02 39 00 00 00 00 03 13 00 02 10 40 00 00 00 00 00 00 05 80 00 3a 00 00
aa 79 00 01 bb b7 fe 47 05 13 5d 9c 01 2f 00 68 00 00 00 00 00 00 00 00 00 00 02 08 00 00 00 00 03 14 00 02 10 40 00 00 00 00 00 00 05 80 00 3a 00 00
a3 5d 00 01 ba ba fe 43 04 13 5d 9c 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 0c 00 00 00 00 03 0f 00 03 10 40 00 00 00 00 00 00 05 80 00 3a 00 00
a3 5d 00 01 ba ba fe 42 04 13 5d 9c 01 08 00 87 00 00 00 00 00 00 00 00 00 00 01 e5 00 00 00 00 03 0f 00 03 10 40 00 00 00 00 00 00 05 80 00 3a 00 00
a2 5d 00 01 ba ba fe 42 06 13 5d 9c 01 08 00 87 00 00 00 00 00 00 00 00 00 00 01 d1 00 00 00 00 03 0f 00 03 10 40 00 00 00 00 00 00 05 80 00 3a 00 00
a2 5c 00 01 ba ba fe 42 06 13 5d 9c 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 e0 00 00 00 00 03 0f 00 03 10 40 00 00 00 00 00 00 05 80 00 3a 00 00
a2 5d 00 01 ba ba fe 41 04 13 5d 9c 01 08 00 89 00 00 00 00 00 00 00 00 00 00 01 c9 00 00 00 00 03 0f 00 03 10 40 00 00 00 00 00 00 05 80 00 3a 00 00
*/ */