Repository navigation
feat(pch): picture token 0xBB/0xB1 arbitration and Radio #2 web UI (phase D) - #34
Merged
Merged
Conversation
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.
Summary
picture_token.{h,cpp}(pure C++17, ~160 B static RAM, host-testable): FIFO 4-camera wait queue,IDLE/RESERVED/HELDstates, 10 s grant / 12 s inactivity / 90 s max-hold leases, 3 s ACK grace, and legacy camera implicit claim / immediate release.0xBB(token request, immediatecmd=0downlink answer withDL_FLAG_TOKEN | DL_FLAG_GRANT/HOLD) and0xB1(release) acrossmain.cpp,image_receiver.cpp,serial_cli.cpp(pch status), andweb_portal.cpp(/api/statustokenobject).MD_CAM/firmware/main.c: capture JPEG into SDRAM first, acquire token via0xBBbefore0xB2, hold across0xF0resends, release via0xB1on poll ACK orack_lefttimeout, and fall back to Phase B on 3 unanswered0xBBs or!DL_FLAG_TOKEN.Picture Radio (#2),Radio #2 RSSI,PCH Chunks,Picture Token) tiles using safetextContentupdates.test_picture_token.cpp, updatetest_downlink.cpp,fuzz_image_receiver.cpp, andcc1110_common/test_host/.Verification
lolin_s2_mini+lolin_s2_mini_eval): 0 warnings, RAM 31.7%, Flash 82.3%.MD_CAM): 10,593 B, 0 SDCC warnings; Door sensor: 4,346 B, 0 SDCC warnings.ctr_log_testspassed;pytest tests: 133 passed;check_secrets.py: 0 findings.COM9) + camera (COM11):test_camera_e2e.py12/12 passed withgrants 6 | holds 0 | releases 6 | expiries 0 | legacy 0, 1,865 PCH chunks / 0 main chunks, 0 overflows, 0 late polls.