Complete EC service stub implementations + unit tests
@dymk is already working on this.
Since Apr 16, 2026.
Assessment
This issue has not been assessed yet.
Description
Overview\n\nComplete the stub service implementations in ec-service-lib with stateful logic, error handling, and comprehensive unit tests. Each service currently has a skeleton that returns hardcoded or NotSupported responses — these need to be filled in with real state-tracking behavior.\n\n## Services\n\n- [ ] Thermal — state-tracking for all 6 opcodes (get_temperature, set/get_threshold, set/get_variable, get_policy)\n- [ ] Battery — all 15 opcodes (BTP, BMC, BST, BIX, BPC, BPS, BCT, BCV, BAR, BAT_DIS, BAT_STA, BAT_PSR, BAT_SOC, BAT_CYC, BAT_FCC)\n- [ ] FwMgmt — error handling + process_indirect\n- [ ] Notify — add/remove/assign/unassign state-tracking\n- [ ] TPM — extended handlers (get_feature_info, register, unregister, finish, deinit)\n\n## Related PRs\n\n- #56 — Thermal\n- #57 — Battery\n- #58 — FwMgmt, Notify, TPM\n\n## Scope\n\nUnit tests for each service, plus MessageHandler dispatch tests. Fixes for any bugs found (e.g. panic on invalid MessageID, shift overflow in notify).
- 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 common comms channel abstraction for pluggable transportsMay be free again @dymk claimed this 229 days ago, and no pull request is open. Open
OpenDevicePartnership/odp-secure-services#66 · 1 assignee ·
-
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 ·
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