Cat-shaped BLE thermal printer · Partial

Reverse engineered a Bluetooth cat-shaped thermal printer with ChatGPT's help

by Mertol KasananRead the write-up Save and follow8 views
View JSON
Cat-shaped BLE thermal printer: No Bluetooth background, a cat-shaped printer, and dithered images printing.
Image: mertol.substack.com

Who did what

The author had no Bluetooth background and relied on the LLM for explanations and code. ChatGPT suggested Wireshark or sniffing hardware, which the author calls bad advice. Grayscale printing was left for a part 2.

What was done

Captured the Fun Print app's Bluetooth traffic with Apple's PacketLogger, worked out the command and 48-byte line format with ChatGPT, and printed dithered images from custom CoreBluetooth code.

Mertol Kasanan reverse engineered a cheap cat-shaped Bluetooth thermal printer that only works with the vendor's Fun Print app. With ChatGPT explaining Bluetooth and writing code, Kasanan captured the app's traffic with Apple's PacketLogger, decoded the commands and line format, and printed dithered images from custom CoreBluetooth code.

Existing open-source libraries did not support the printer's hardware version, and Kasanan had no Bluetooth background. Kasanan installed Apple's Bluetooth logging profile on an iPhone and used PacketLogger to record the traffic between Fun Print and the printer, then read through the HCI, L2CAP and ATT layers, where the printer commands sit. ChatGPT helped build a CoreBluetooth class to scan, connect and discover characteristics, and Kasanan replayed the captured commands while changing values to see what happened.

Kasanan found a header command that changes with the print length and a darkness command with values from 1 to 100. Sending 384 values per line produced a garbled, sliding pattern. Trial and error showed that 48 values per line worked. Since 384 divided by 48 is 8, each byte packs eight 1-bit pixels. The image pipeline converts to grayscale, resizes, dithers, splits into lines and packs the bits.

The code sends dithered images over Bluetooth, and with proper flow control it can print long images until the roll runs out. ChatGPT had suggested Wireshark or dedicated sniffing hardware, which Kasanan calls bad advice because PacketLogger was simpler and free. The app's HD mode, which prints true gray tones, uses a different encoding and was left for a part 2.

Discussion

Your library

Sources

Sources reviewed · Added

An AI model drafted this entry from the sources above. Checked against the sources on 14 Oct 2026. The figures are the author's. How entries are checked. Something wrong? Tell me.

The weekly dump: new projects, once a week