Repository navigation
A battery frame rejoins Wi-Fi directly, asks for an update only when one waits, and paints with the radio off (W-921) - #375
Merged
Conversation
…one waits, and paints with the radio off (W-921) A deep-sleep wake rejoins the last access point by BSSID and channel from RTC memory, falling back to the all-channel scan; the pinned config stays in RAM for the wake so it is never saved. /api/frame says X-FF-Update 1|0 (self-hosted: app._firmware_answer, the one rule for both asks; Cloud: the front door's firmwareFor), and the frame asks /api/firmware only then. Once the check-in is answered the wake is done with the network: the update check, then Wi-Fi off (and the EE02 at 80 MHz) before any paint. Each wake reports the last one's awake and join time in X-Wake-Detail. Refs: W-921
…, and a failed update check never holds up a check-in (W-921) From review: retry restoring the saved Wi-Fi config while the driver is still connecting; try the quick rejoin only on a wake that ends in deep sleep; leave X-FF-Update out (the frame then asks as before) if the answer raises. Refs: W-921
…into docs/ (W-921)
…rames-spend-less-on-each-check-in
wr
enabled auto-merge (squash)
November 20, 2026 03:35
wr
deleted the
wells/w-921-battery-frames-spend-less-on-each-check-in
branch
November 20, 2026 03:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A frame on Battery now spends less radio time on each check-in. Three changes, as
W-921 Battery frames spend less on each check-inset out:/api/framenow answersX-FF-Update: 1|0on every response (304, 503, 403 and views included). On self-hosted,app._firmware_answeris the one rule for both the check-in and/api/firmware, so the two cannot disagree; asking on a check-in does not count as handing a release over. On Cloud the front door says1exactly when itsfirmwareForwould let/api/firmwarethrough to the server, and an unclaimed kit's pairing screen says0. A frame that hears no header (an older server) asks as before. A USB frame's poll loop honours it too.Also:
up=… join=…q|sinX-Wake-Detail,qa quick rejoin,sa scan), so the cost of a wake can be read from the server without a serial cable.LIKE), since it now runs on every check-in.USB frames are unchanged apart from skipping
/api/firmwarewhen the check-in says nothing waits. Quick rejoin applies only to wakes out of deep sleep.Verified
make test: 1397 passed, 2 skipped. New tests hold the check-in'sX-FF-Updateto what/api/firmwareanswers, for releases (not pressed, pressed before the image arrives, ready, already running it, another frame) and dev images (none, this board, already running it, another board, a frame not added yet).hosted:vitest323 passed (newtest/update.test.ts),tsc --noEmitclean.ee02,xiao_ee03,release,release_ee02,generic_bench.Not verified
Refs W-921