Skip to content

Add a printer

A new printer is easiest if it uses Classic Bluetooth, like both printers here. You need the printer, its phone app and an Android phone, since iPhones cannot record Bluetooth traffic.

  1. Record the app printing. Turn on the Bluetooth HCI snoop log in Android’s developer options, print a simple image from the app, and open the log in Wireshark.
  2. Work out the job. Find the hello, how commands are wrapped, the picture format and how the printer says it is done.
  3. Add the printer. One file in packages/inkless/src/core/printers/ with the job builder, the hello and a reply reader, registered in printers/index.js. The CLI, the console and the website pick it up from there.
  4. Prove it. A test that rebuilds the captured job byte for byte, then a real print of the same image next to the app’s.
  5. Open a pull request.

The full steps are in CONTRIBUTING.md. The HP6-C section of RESEARCH.md is a worked example.