Implement common comms channel abstraction for pluggable transports
@dymk is already working on this.
Since Apr 16, 2026.
Assessment
This issue has not been assessed yet.
Description
Task
Refactor services to use a common communications channel abstraction instead of reading/writing arbitrary byte arrays directly. This prepares the codebase for pluggable comms backends (eSPI, UART, etc.) as the underlying transport between the EC secure partition and the embedded controller.
Motivation
Currently each service manually packs/unpacks raw byte arrays for request and response data. This tightly couples service logic to the wire format and makes it difficult to swap the underlying transport. A common comms channel trait/abstraction would:
- Decouple service logic from transport details
- Enable pluggable backends (eSPI OOB, UART, shared memory, etc.)
- Provide a consistent interface for framing, serialization, and error handling
- Make it easier to test services with mock transports
Scope
- Define a comms channel trait (send/receive with typed messages or structured buffers)
- Refactor existing services to use the new abstraction instead of raw byte slices
- Ensure unit tests still pass with an in-memory/mock backend
- Document the abstraction and how to implement new backends
Related
- #55 (eSPI OOB support — would be one backend implementation)
- Part of #60
Parent
Part of #60
- Dominant language
- Rust
- Stars
- 4
- Forks
- 11
- Avg merge
- 35m
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OpenDevicePartnership/odp-secure-services
-
Update heapless dependencies to >=0.9.4Possibly taken @felipebalbi claimed this 8 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Implement TPM extended handlersMay be free again @dymk claimed this 229 days ago, and no pull request is open. Open
OpenDevicePartnership/odp-secure-services#65 · 1 assignee ·
-
Implement notify service state-trackingMay be free again @dymk claimed this 229 days ago, and no pull request is open. Open
OpenDevicePartnership/odp-secure-services#64 · 1 assignee ·
-
Implement FwMgmt service error handlingMay be free again @dymk claimed this 229 days ago, and no pull request is open. Open
OpenDevicePartnership/odp-secure-services#63 · 1 assignee ·
-
Implement battery service (all 15 opcodes)May be free again @dymk claimed this 229 days ago, and no pull request is open. Open
OpenDevicePartnership/odp-secure-services#62 · 1 assignee ·
All issues in OpenDevicePartnership/odp-secure-services
Similar issues
-
app bug session
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
marketing
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Maintainers usually reply within 1 day
-
macOS autosubmit enable passes unsupported --wait to launchctl bootoutPossibly taken @iqdoctor claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
junhoyeo/tokscale#1713 · 3 comments ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day