labelwriter / core/src / SkuInfo
Interface: SkuInfo
Parsed ESC U response — the 63-byte NFC SKU dump.
Field layout matches the spec table on p.16-19. All multi-byte integers are little-endian.
Geometry fields (label*Mm, marker*Mm, the *OffsetMm pair, linerWidthMm, totalLengthMm) are deci-millimetres on the wire and converted to true mm here. The spec table calls them 1...2^16 = length in mm, but that unit is an erratum — an S0722540 (57×32 mm) roll reports 571 / 317. The deci-mm reading is confirmed by on-the-wire capture, not the PDF; this is the same class of spec error already noted for the status frame's width/length in support_550_devices.md §2.3.
Properties
brand
brand:
"unknown"|"dymo"
Brand identifier — 'dymo' for 0x00, 'unknown' otherwise.
contentColor
contentColor:
"black"|"unknown"|"red-black"
counterMargin
counterMargin:
number
counterStrategy
counterStrategy:
"unknown"|"count-up"|"count-down"
crc
crc:
number
CRC over payload (u16 LE, bytes 4-5).
labelColor
labelColor:
"white"|"clear"|"yellow"|"blue"|"green"|"unknown"|"pink"
labelLengthMm
labelLengthMm:
number
Label length in mm — one decimal; deci-mm on the wire. 0 for continuous.
labelType
labelType:
"continuous"|"unknown"|"card"|"die"
labelWidthMm
labelWidthMm:
number
Label width in mm — one decimal; deci-mm on the wire.
length
length:
number
Payload length byte.
linerWidthMm
linerWidthMm:
number
magic
magic:
number
Magic number 0xCAB6 — used to validate the response.
marker1ToStartMm
marker1ToStartMm:
number
marker1WidthMm
marker1WidthMm:
number
marker2OffsetMm
marker2OffsetMm:
number
marker2WidthMm
marker2WidthMm:
number
markerPitchMm
markerPitchMm:
number
markerType
markerType:
number
material
material:
"removable"|"durable"|"clear"|"unknown"|"card"|"paper"|"permanent"|"plastic"|"time-exp"
printableHorizontalOffsetMm
printableHorizontalOffsetMm:
number
printableVerticalOffsetMm
printableVerticalOffsetMm:
number
productionDate
productionDate:
string
Production date in DDYY format (per spec p.19).
productionTime
productionTime:
string
Production time in HHMM format.
rawBytes
rawBytes:
Uint8Array
The raw ESC U response, verbatim. Mirrors PrinterStatus.rawBytes — lets a downstream report carry the undecoded frame for triage when the parse is wrong or a firmware revision adds fields.
region
region:
number
Region code (0xFF = global per p.17).
sku
sku:
string
12-char SKU number, e.g. '30252 '.
totalLabelCount
totalLabelCount:
number
totalLengthMm
totalLengthMm:
number
version
version:
number
Spec version byte (currently '0' per p.16).
verticalOffsetMm
verticalOffsetMm:
number