# PrintPet Firmware

English | [简体中文](README.zh_CN.md)

PrintPet is community firmware for the third-party FoloToy AI Passport (ESP32-C3, 8 MiB flash, no PSRAM). It provides read-only monitoring of Bambu Lab printer progress, temperatures, and filament.

## Download

- **[PrintPet Core 1.6.2](https://github.com/ericwubeta/printpet-firmware/releases/tag/v1.6.2)** offers a compact monitor with an optional LAN camera preview. This update reduces repeated frame reads and lowers Wi-Fi receive latency during preview while connected to a USB host. [Download the full ZIP](https://github.com/ericwubeta/printpet-firmware/releases/download/v1.6.2/PrintPet-Core-1.6.2-install-recovery.zip)
- **[PrintPet Spirit 2.0.6](https://github.com/ericwubeta/printpet-firmware/releases/tag/v2.0.6)** adds six characters, print-state animations, and short voice prompts to the monitor. This update retains the last reported external spool name and color during cloud reconnects and fixes a disconnect caused by low memory while reading cloud status. [Download the full ZIP](https://github.com/ericwubeta/printpet-firmware/releases/download/v2.0.6/PrintPet-Spirit-2.0.6-install-recovery.zip)

Both releases add a separate external spool page. On X2D, you can view the external spool alongside an attached AMS.

The Windows desktop app, PrintPet - 打印小监工, is available separately. [PrintPet website](https://printpet.684159.xyz/#downloads) · [Release history](https://github.com/ericwubeta/printpet-firmware/releases)

## Installation, upgrade, and recovery

Extract the full ZIP for your version and run `python printpet_flash.py` to check it offline. Use the complete installation mode for first-time setup, migration from older layouts or community single-file packages, and recovery. Follow the version's guide to check the layout and bootloader requirements before an app-only upgrade. [Core installation guide](https://github.com/ericwubeta/printpet-firmware/blob/v1.6.2/docs/INSTALL.md) · [Spirit installation guide](https://github.com/ericwubeta/printpet-firmware/blob/v2.0.6/docs/INSTALL.md)

Both releases use the same layout to preserve the factory identity. The bootloader belongs at `0x0`, the application at `0x370000`, and Spirit resources at `0x10000`. Keep `0x310000–0x36FFFF` intact, including the read-only `cardid` partition. The installer backs up the device before writing. Recover lost factory identity data from the original device's own backup or through the hardware vendor.

## Core camera monitoring and power

Enter the printer address and LAN access code in setup to enable the JPEG preview on the second detail page. The preview shows the current print status and measured frame rate. X2D is the model covered by the hardware observations. [Camera setup and compatibility](https://github.com/ericwubeta/printpet-firmware/blob/v1.6.2/docs/CAMERA_UI.md)

Core restores the last printer and page at startup. It enters deep sleep after 10 continuous minutes with the screen off, no USB host connection, and no known active print. Press a physical button to resume monitoring. USB host detection may miss ordinary chargers and power banks. [Automatic power-off](https://github.com/ericwubeta/printpet-firmware/blob/v1.6.2/docs/AUTO_POWEROFF.md)

## Release verification

- **Core 1.6.2** camera changes were observed on one X2D during a print using a development build with the same camera code. It received 71 distinct frames in about 96 seconds. [Core verification details](https://github.com/ericwubeta/printpet-firmware/blob/v1.6.2/docs/RELEASE_CORE_1.6.2.md)
- **Spirit 2.0.6** used the exact release application for an app-only upgrade on one AI Passport. Readback confirmed that settings and factory identity data were retained. The device identified the glow-in-the-dark filament on the X2D's external spool and stayed connected for the 5 minutes and 12 seconds observed. [Spirit verification details](https://github.com/ericwubeta/printpet-firmware/blob/v2.0.6/docs/RELEASE_SPIRIT_2.0.6.md)

The two full ZIPs were verified offline and through simulated installation and upgrade.

## Build from source

Use the tag matching the release you want to build. Use ESP-IDF 5.5.x with target `esp32c3` and run `idf.py build`. For distributable builds, use the example credentials from `main/secrets.h.example`. [Core v1.6.2 source](https://github.com/ericwubeta/printpet-firmware/tree/v1.6.2) · [Spirit v2.0.6 source](https://github.com/ericwubeta/printpet-firmware/tree/v2.0.6)

## License

The current PrintPet source uses [MPL-2.0](LICENSE). [Firmware licensing](LICENSING.md) describes the upstream MIT code, dependencies, embedded assets, and historical releases.

## Third-party media

Furina and Hu Tao are unofficial fan depictions from Genshin Impact / miHoYo. Associated prompts are noncommercial AI-cloned synthetic speech, not new actor recordings; original Chinese performances: Qian Chen and Tao Dian. No endorsement is implied, and the software license grants no third-party character, trademark or voice rights.
