Conversation
New ESPHome external component `ccp`: a CAN Calibration Protocol master on can_gateway (single-frame CRO/DTO, no ISO-TP). Full command set + high-level read_memory/write_memory helpers, ESPHome actions, on_connected/on_response/ on_error/on_daq triggers, and a pure host-testable ccp_proto.h codec. Every field (command/response CAN ids, station address, byte order, timeout) is configurable; the schema defaults and every test/example address are generic placeholders, not tied to any one ECU. Observe-first safety: no auto-connect, allow_write gates every write command; emits USE_CAN_GATEWAY_OBSERVE. Gates green: script/check.sh (14 ccp schema tests, both build fixtures, clang-format, esphome config); make -C tests/host (5 ccp_proto cases incl. little-endian SET_MTA and 12->5/5/2 read chunking).
Both ccp build fixtures (default read-only, allow_write:true) now compile in CI alongside the rest of the matrix, so a ccp change is gated the same as every other component before it can reach main. Claude-Session: https://claude.ai/code/session_01JpmPzXhUDovTMWBiNMzb89
Branch protection on main will require this one context rather than every individual compile-matrix leg by name, so renaming or adding a build fixture never requires touching the ruleset. Claude-Session: https://claude.ai/code/session_01JpmPzXhUDovTMWBiNMzb89
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
New ESPHome external component
ccp: a CAN Calibration Protocol master oncan_gateway (single-frame CRO/DTO, no ISO-TP). Full command set + high-level
read_memory/write_memory helpers, ESPHome actions, on_connected/on_response/
on_error/on_daq triggers, and a pure host-testable ccp_proto.h codec.
timeout) is configurable; the schema defaults and every test/example
address are generic placeholders, not tied to any one ECU.
allow_writegates every writecommand; emits
USE_CAN_GATEWAY_OBSERVE.Recreated as a fresh PR in this new repository (see the project handover
notes for why); the original PR #18 on the prior repo covered the same
work. (Supersedes #1, which was opened against the wrong head branch and
pulled in unrelated work.)
Test plan
script/check.sh— 14 ccp schema tests, both build fixtures,clang-format, esphome config, all green.
make -C tests/host— 5 ccp_proto cases incl. little-endian SET_MTAand 12->5/5/2 read chunking, all green.
script/check_no_private_data.py— clean.