hiti: Document a couple more things, and fix the log messages for media type

This commit is contained in:
Solomon Peachy 2023-04-16 23:33:20 -04:00
parent f77d10812f
commit 3f30912f96
2 changed files with 15 additions and 1 deletions

View File

@ -1200,7 +1200,7 @@ static uint8_t *hiti_get_correction_data(struct hiti_ctx *ctx, uint8_t mode)
int mediatype = ctx->ribbonvendor & 0xf000;
DEBUG("Locating correction data for model %d, mode %02x, media %02x, ver %02x\n",
ctx->conn->type, mode, mediatype >> 2, mediaver);
ctx->conn->type, mode, mediatype >> 4, mediaver);
switch (ctx->conn->type)
{
@ -1601,6 +1601,9 @@ static const char* hiti_get_heat_file(struct hiti_ctx *ctx, uint8_t mode)
int mediaver = ctx->ribbonvendor & 0x3f;
int mediatype = ctx->ribbonvendor & 0xf000;
DEBUG("Locating heat data for model %d, mode %02x, media %02x, ver %02x\n",
ctx->conn->type, mode, mediatype >> 4, mediaver);
// XXX if field_0x70 != 100) send blank/empty tables..
// no idea what sets this field.
switch (ctx->conn->type) {

View File

@ -2,6 +2,17 @@ These '.bin' are either 3D LUTs or Heat Tables for various HiTi
printers. All files were extracted from public HiTi source code or
binary driver releases.
Media type & Version are obtained via the CMD_ERDC_RRVC ("Read Ribbon Vendor Code") command.
16-bit word:
x0xx
||\\--- version (0-255)
|\----- unknown (always zero?)
\------ type/mfg (1 for CHC, 0 for DNP) (presumably others too?)
Some models (P461, maybe others?) do not support RRVC. At this time the mechanism to query
the ribbon mfg/etc is unknown; it might need to be manually specified.
LUT filename Codes:
C M Q P ? ra [ .bin ]