Skip to content

Transports

Every path uses Classic Bluetooth SPP, a plain byte stream over RFCOMM (channel 1 on the tested printers). It carries the picture bytes unchanged and needs no login.

Where How
macOS A small background app (InklessBluetooth.app) holds the connection with IOBluetooth and pipes bytes to the CLI
Linux BlueZ RFCOMM sockets through a small Python script
Windows The serial port Windows gives a paired printer (COM3 and so on), through a small PowerShell script built into Windows
Browser, through this computer The website sends the design to inkless console on 127.0.0.1, which prints with the macOS, Linux or Windows path. Only https://inkless.sh may do this
Browser, direct Web Serial with the Bluetooth serial port service (Chrome, Edge on Windows, Linux, ChromeOS)

The CLI starts the macOS helper itself. It needs a real app run loop, which is why opening /dev/cu.* or calling Bluetooth straight from a terminal does not work. The first run asks for Bluetooth permission; rebuilding the helper may ask again.

All three paths share the same session:

  1. Hello. Send the printer’s hello and wait for its answer: the CONFIG reply on the PM290, the serial number on the HP6-C.
  2. Job. Send the job in 512 byte chunks, 3 ms apart, never more than the link’s MTU at once.
  3. Done. Wait for the printer’s own “finished” signal: a new 63 00 on the PM290, a status frame that goes from printing to idle on the HP6-C.

A print is only reported as done when the printer says so. If anything times out, inkless stops and says so. It never retries a print on its own.

  • Only one device can hold the printer. Close the phone app first.
  • On Windows, pair the printer in Bluetooth settings first; Windows then lists a “Standard Serial over Bluetooth link” port for it. If PowerShell refuses to run npx, run it from Command Prompt or use npx.cmd.
  • Web Serial needs HTTPS or localhost, and a browser with Bluetooth serial support.
  • Chrome on macOS fails with “SDP query timeout”: it always asks the printer which RFCOMM channel to use, and these printers never answer that service lookup on a Mac. The helper skips the question and uses the record saved at pairing time, which is why the website prints through it there.
  • The HP6-C needs its baseband link opened before RFCOMM, and it forgets its pairing when the phone app connects. Pick it with --address.
  • Bluetooth Low Energy was tried and dropped: it changed bytes and wrapped the picture sideways.

The job formats: the TSPL job for the PM290. The HP6-C format is in RESEARCH.md.