Skip to content

The TSPL job

The PM290 speaks a small part of TSPL2. 203 dpi, 384 dots across = 48 bytes per row = 48 mm on 54 mm paper.

SIZE 54.0 mm,<height/8> mm
DIRECTION 0,0
DENSITY 10
CLS
PRINT 1
BITMAP 0,0,48,<height>,1,<48 * height raw bytes>ALLEND

The job ends with ALLEND\r\n\r\n. This matches the captured app jobs byte for byte.

  • PRINT 1 comes before BITMAP, once. BITMAP itself starts the head; a PRINT after it prints a second copy.
  • SIZE height must equal bitmap rows / 8 exactly. Anything taller and the buffer replays, printing part of the picture twice.
  • 0 = burn, 1 = skip. Pictures are made with 1 = black and flipped exactly once on the way out.
  • No separator before ALLEND and no GAP command. Both are tolerated, but the app does not send them.
  • Density is DENSITY 10 by default; --dark sends 15.
  • Send RCSP opcode 11 (switch device). The printer stops advertising Bluetooth Low Energy until you power cycle it.
  • Use the USB port for data. It answers ERROR0 to everything; it only charges.