Skip to content

Driving the Device

magikh0e edited this page Nov 16, 2026 · 2 revisions

Driving the Device

These are the command sequences the official Puffco Connect 3.13.47 app uses, recovered by decompiling it. Each step is a writeShort (opcode 0x11) to a path. I've round-tripped the start/stop and temp/time ones on a real Peak Pro (fw gith 5652c02); the rest are read straight out of the app and not yet hardware-tested.

The mode command: /p/app/mc

/p/app/mc (u8) is the master mode command — writing it is how you move the device between states:

value meaning
0 off
2 idle
7 start (begin the selected heat cycle)
8 abort (stop the current cycle)

The app never sends 9 / boost over this path.

Sequences

action sequence status
start cycle /p/app/hcs = <index> (i8) → /p/app/mc = 7 verified
stop cycle /p/app/mc = 8 → /p/app/mc = 2 verified
+temp /p/app/tmpo = <delta C> (float32) verified
+time /p/app/timo = <seconds> (float32) verified
lantern on (mood light) /p/app/ltrn/colr = <8-byte color> → /p/app/ltrn/cmd = 1 → /p/app/ltrn/time = 7200 verified
lantern off /p/app/ltrn/cmd = 0 verified
power off /p/app/ltrn/cmd = 0 → /p/app/mc = 0 from app

/p/app/hcs picks the cycle before you start: -1 for an on-the-fly temp cycle, 0..3 for a saved profile.

Temp & time overrides

tmpo and timo adjust an active heat cycle. Both are float32:

  • tmpo is a temperature delta in Celsius. The app's "+10 °F" button sends 5.5556 (10 °F expressed as a °C delta), so convert before you write.
  • timo is seconds, e.g. 10.0 to add ten seconds.

LEDs

LED color writes (/p/app/led/*, /p/app/ltrn/colr) are 8 bytes:

r, g, b, 0, lumaAnim, 0, 0, 0

Byte 3 selects the color source — 0 a plain RGB color (hardware-confirmed for the lantern), 1 an animation table, 255 none. lumaAnim is the animation: PRESERVE 0 / STEADY 1 / BREATHING 5 / RISING 6 / CIRCLING 7.

Still from the app, not yet round-tripped

Profile edits, stealth (/u/app/ui/stlm), ready-mode (/u/app/rdym/hc), brightness (/u/app/ui/lbrt) and device power off (ltrn/cmd = 0 then mc = 0) are mapped from the app but haven't been confirmed on hardware yet. The async event channel (43312cd1-…) — the app subscribes with fileWatch (0x23) and acks with ackEvents (0x03) — isn't decoded past the subscribe/ack handshake either.

Interop isn't endorsement. A reimplemented client isn't blessed by the vendor and can drive hardware past safe limits — clamp and sanity-check anything that moves a heater. That's on you.

Clone this wiki locally