[codex] Add MC0 BLE companion transport#69
Draft
n30nex wants to merge 3 commits into
Draft
Conversation
Contributor
Author
|
COM8 validation for commit
|
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.
What changed
Adds a private MeshCore MC0-over-BLE companion transport for LimitlezzOS/test clients:
src/mc_ble_companion.cpp, a T-Deck NimBLE GATT service advertising asLimitlezz-MC0-<shortname>with RX write and TX read/notify characteristics.companion mc ble on|off|status|test.bridge=ble, while USB remainsbridge=usb.scripts/mc_companion_ble_smoke.pyfor host BLE smoke testing and includes it in CI Python compile checks.Stack
This branch is stacked on the earlier MC0 companion work:
58755ebexact MC0 MeshCore DM routing8742c31MC0 live event streaming0593c7dMC0 BLE companion transportValidation
Local validation run on Windows before push:
git diff --checkpython -m py_compile scripts\check_tdeck_budget.py scripts\fetch_tdeck_artifact.py scripts\serial_harness.py scripts\tdeck_smoke.py scripts\tdm_airtime_smoke.py scripts\mc_companion_usb_smoke.py scripts\mc_companion_ble_smoke.py scripts\release_evidence.pypio run -e native.pio\build\native\program.exe --selftest.pio\build\native\program.exe --simtestpio run -e tdeck-meshcoresucceeded; RAM 241,364 / 327,680 bytes, flash 1,589,021 / 5,242,880 bytespio run -e tdecksucceeded; RAM 241,356 / 327,680 bytes, flash 1,587,297 / 5,242,880 bytesGitHub Actions:
27880813251passed for0593c7daf85f64e2801143e0313e81b2045f2640.tdeck-meshcore-firmware-0593c7daf85f64e2801143e0313e81b2045f2640to.pio\ci-artifacts\mc0-ble-0593c7d.env=tdeck-meshcore,meshcore_enabled=1,budget_status=pass,firmware_bytes=1589264,static_ram_bytes=241364.COM8 hardware validation:
scripts\tdeck_smoke.py --port COM8 --env tdeck-meshcore --no-stub-upload --skip-build --artifact-dir .pio\ci-artifacts\mc0-ble-0593c7d.cc:8d:a2:0d:14:28, and verified flash hashes.id,sys,net,rf,stats,wifi,companion mc test,companion mc ble on,companion mc ble status,companion mc ble test,companion mc ble off,companion, andcompanion test.python scripts\mc_companion_ble_smoke.py --mc0-tx-smoke --scan-timeout 20 --connect-timeout 30 --timeout 30 --verboseconnected toLimitlezz-MC0-*, assertedbridge=ble, read identity/nodes/threads, sent Public text, and observedMC0 EVT tx_statusforclient_mid=mc0-ble-smoke-tx.