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.
- 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.
- Work out the job. Find the hello, how commands are wrapped, the picture format and how the printer says it is done.
- Add the printer. One file in
packages/inkless/src/core/printers/with the job builder, the hello and a reply reader, registered inprinters/index.js. The CLI, the console and the website pick it up from there. - 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.
- Open a pull request.
The full steps are in CONTRIBUTING.md. The HP6-C section of RESEARCH.md is a worked example.