Add a printer to the Atlas
You need one thermal stencil printer, an Android phone, and about an hour. You record what your phone sends to your printer, and you write it down in a small file.
Only capture your own device, for your own use.
Record only the printer you own. Do not capture someone else's printer, and do not submit vendor firmware, SDK source code, or app code you did not write.
1. Capture the traffic
- On the phone, open Settings > About phone and tap Build number seven times to turn on Developer options. The menu names vary a little by Android version.
- Open Developer options and turn on Enable Bluetooth HCI snoop log. Turn Bluetooth off and on again.
- Pair the printer with the phone, then use the vendor's own app or the phone's standard share menu to print a test page. Keep the actions simple and note each one, for example “printed test page, default settings”.
- Turn Bluetooth off, then take the log. Android writes it to the phone, and the path depends on the version.
adb bugreportincludes it on most versions.
2. Find the commands
- Open the log in Wireshark. Filter with
btattto see the Bluetooth LE writes. - Find the writes to the printer. The characteristic UUID is the write target. Note it, and note whether the write expected a reply (with response or without response).
- Copy the bytes of each write, for example
1b 40. Give each command a short id such asinit,feed, orraster_start, and say in one line what it does. - For image data, record the header bytes and the row format, not the whole picture.
3. Write the records
There are two kinds of file. A connection describes how to talk to a family of printers. A printer describes one model, and it points at a connection. If the connection already exists, you only need the printer file.
Start from the templates in the templates/ folder of the repository. The fields are:
transport:ble,spp,usb, orother.write_uuid,write_type: the characteristic and whether it is written with or without a response.commands: a list ofid,hex(spaced bytes, like1b 40), anddescription.status:untested,partial, orworks. Useworksonly after a stencil printed, and add the evidence and atestedentry.evidence: a link to a photo, a video, or a short written description of the test.
{
"id": "acme-t1",
"vendor": "Acme",
"model": "T1",
"advertised_names": ["T1"],
"connection": "ble-acme-service",
"paper_width_mm": 58,
"print_width_px": 384,
"dpi": 203,
"commands": [
{ "id": "init", "hex": "1b 40", "description": "Reset the printer" }
],
"status": "partial",
"tested": [{ "by": "your-github-handle", "date": "2026-12-01" }],
"evidence": ["https://example.com/photo-of-test-print"]
}
What never to submit
- Bluetooth addresses. The checker rejects them. Remove them from the log before you copy anything out of it.
- Serial numbers, device names with serials, and anything about your phone or your home.
- Raw logs. Submit the bytes you describe, not the
btsnoop_hci.logfile. Raw logs contain addresses. - Vendor firmware, SDK code, or app code you did not write. Record what goes over the wire, not how the vendor's software works inside.
4. Send it
Two ways, and both are reviewed by a person:
- Pull request (preferred). Fork the repository, add your files to
connections/andprinters/, runpython3 scripts/atlas.py check, then open the pull request. The pull request template lists what to tick. - Issue form. No GitHub experience needed. Use the Add a printer form and paste your JSON. A maintainer turns it into files.