• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Alan-Jowett / sonde / 24006287891
81%

Build:
DEFAULT BRANCH: main
Ran 05 Apr 2026 05:10PM UTC
Jobs 1
Files 84
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Apr 2026 05:05PM UTC coverage: 80.969% (+0.002%) from 80.967%
24006287891

push

github

web-flow
feat: add pairing-time RSSI diagnostic protocol (#512) (#644)

* feat: add pairing-time RSSI diagnostic protocol (#512)

Add DIAG_REQUEST (0x06) and DIAG_REPLY (0x85) ESP-NOW message types
and DIAG_RELAY_REQUEST / DIAG_RELAY_RESPONSE BLE envelope types for
pairing-time RF link quality diagnostics.

The pairing tool uses the node as a dumb radio relay to measure the
node-to-gateway RSSI before provisioning. The node broadcasts an opaque
ESP-NOW frame (authenticated with the phone PSK) and forwards the
gateway's reply back over BLE. The gateway measures RSSI and returns a
signal quality assessment (good/marginal/bad) with configurable
thresholds.

Specification changes (13 docs):
- protocol.md: msg_types, CBOR keys, message defs, diagnostic flow
- ble-pairing-protocol.md: BLE envelope types, relay flow (§6a)
- node-requirements.md: ND-1100–1106 (diagnostic relay)
- gateway-requirements.md: GW-1700–1706 (diagnostic handler)
- ble-pairing-tool-requirements.md: PT-1300–1308 (RSSI diagnostics)
- protocol-crate-design.md: constants, codec, message types (§12)
- node-design.md: diagnostic relay (§15.8)
- gateway-design.md: diagnostic handler (§21)
- ble-pairing-tool-design.md: RSSI diagnostic flow (§14a)
- protocol-crate-validation.md: T-P110–116
- node-validation.md: T-N1100–1110
- gateway-validation.md: T-1700–1717
- ble-pairing-tool-validation.md: T-PT-1300–1312

Implementation (sonde-protocol crate):
- \NodeMessage::DiagRequest\ and \GatewayMessage::DiagReply\ variants
- BLE relay codec: \ncode/decode_diag_relay_request/response\
- 14 new constants, 9 new tests, all passing

Gateway, node, and pairing tool implementations deferred to follow-up
PRs (require platform-specific infrastructure).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* feat: implement diagnostic handler across gateway, node, and pair crates

Gateway (sonde-gateway):
- \handle_diag_request()\ in engine.rs: p... (continued)

443 of 561 new or added lines in 9 files covered. (78.97%)

1 existing line in 1 file now uncovered.

20677 of 25537 relevant lines covered (80.97%)

141.93 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
0.0
0.0% crates/sonde-protocol/src/error.rs
6
87.0
0.66% crates/sonde-gateway/src/engine.rs
7
97.66
-1.88% crates/sonde-pair/src/crypto.rs
8
96.06
-3.94% crates/sonde-protocol/src/ble_envelope.rs
10
76.44
-1.06% crates/sonde-gateway/src/modem.rs
11
0.0
0.0% crates/sonde-gateway/src/bin/gateway.rs
27
86.64
-3.8% crates/sonde-pair/src/phase2.rs
47
91.15
-5.76% crates/sonde-node/src/ble_pairing.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
76.44
-1.06% crates/sonde-gateway/src/modem.rs
Jobs
ID Job ID Ran Files Coverage
1 24006287891.1 05 Apr 2026 05:10PM UTC 84
80.97
GitHub Action Run
Source Files on build 24006287891
  • Tree
  • List 84
  • Changed 11
  • Source Changed 11
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24006287891
  • aae5a5fc on github
  • Prev Build on main (#23991722055)
  • Next Build on main (#24009926951)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc