cd /news/developer-tools/ah-m2-bluetooth-thermal-printer-reve… · home › topics › developer-tools › article
[ARTICLE · art-164556] src=reversedwithai.com ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

AH-M2 Bluetooth thermal printer: Reverse engineered the AH-M2 Bluetooth thermal printer protocol and created a web controller with Claude

A developer reverse engineered the Bluetooth protocol of the AH-M2 thermal printer, also sold as the XenGro Mini Sticker Printer, by analyzing the Funny Print Android app, and published a Web Bluetooth controller at sajingeo.github.io/blethermal along with protocol documentation and Node.js unit tests. The repository documents the GATT layout, command structure, CRC-16/XMODEM handshake and bitmap formatting, and the controller prints text, images and test patterns while reporting battery and paper status; it requires a secure context and runs in Chrome and Edge. Claude Opus 5.5 is credited as a co-author on commits covering the protocol documentation, lead-in settings and the GitHub Pages deployment workflow.

by read1 min views3 publishedNov 5, 2026
AH-M2 Bluetooth thermal printer: Reverse engineered the AH-M2 Bluetooth thermal printer protocol and created a web controller with Claude
Image: Reversedwithai (auto-discovered)

Evidence at a glance #

source evidence…

What was done #

The author reverse engineered the AH-M2 thermal printer protocol from the Funny Print Android app and built a Web Bluetooth controller. The project includes protocol documentation, a web interface, and Node.js unit tests.

The author reverse engineered the communication protocol for the AH-M2 Bluetooth thermal printer, also marketed as the XenGro Mini Sticker Printer, by analyzing the Funny Print Android application. The project provides a browser-based controller that communicates with the device via Web Bluetooth. Documentation in the repository details the GATT layout, command structure, CRC-16/XMODEM handshake, and bitmap formatting. The controller supports printing text, images, and test patterns, while providing status updates for battery and paper levels. Claude Opus 5.5 is credited as a co-author on commits related to protocol documentation, the implementation of lead-in settings, and the configuration of the GitHub Pages deployment workflow. The project includes a protocol module in JavaScript and a suite of Node.js tests for verifying packet construction and bitmap processing. The controller requires a secure context and is compatible with Chrome and Edge browsers. https://raw.githubusercontent.com/sajingeo/blethermal/HEAD/README.md

Reproduce it #

Open https://sajingeo.github.io/blethermal/ in a supported browser, turn on the AH-M2 printer, and select the device via the Connect button.

Community #

Ask a question, share what worked, or follow the next milestone.

Your library

── more in #developer-tools 4 stories · sorted by recency
── more on @ah-m2 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/ah-m2-bluetooth-ther…] indexed:0 read:1min 2026-11-05 · —