Skip to content

RDKEMW-14445 : Add session end and protocol return to telemetry#182

Open
jthomp007c wants to merge 9 commits intodevelopfrom
topic/RDKEMW-14445
Open

RDKEMW-14445 : Add session end and protocol return to telemetry#182
jthomp007c wants to merge 9 commits intodevelopfrom
topic/RDKEMW-14445

Conversation

@jthomp007c
Copy link
Contributor

Reason for change: ctrlm currently does log why xrsr might have ended a session. Also it does not log what protocol error may have occurred. only that one did.

Test Procedure: check telemetry for new fields, parse them, confirm that new data exists and is correct

Priority: P0

Reason for change: ctrlm currently does not know why xrsr might
have ended a session. Also it does not know what protocol error
may have occurred only that one did.

Test Procedure: check telemetry for new fields, parse them,
confirm that new data exists and is correct

Priority: P0

Signed-off-by: Jason Thomson <[email protected]>
Copilot AI review requested due to automatic review settings February 27, 2026 16:47
@jthomp007c jthomp007c requested a review from a team as a code owner February 27, 2026 16:47
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends voice-session telemetry so downstream analytics can see why a session ended (session end reason) and what protocol return code occurred, rather than only seeing that an error happened.

Changes:

  • Extend ctrlm.voice.session.stats telemetry payload to include session-end reason and protocol return code.
  • Propagate/standardize the “RCU session end reason” type across voice, RF4CE, BLE, IPC, and utils.
  • Update legacy IARM voice events to use the renamed end-reason enum type.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/voice/telemetry/ctrlm_voice_telemetry_events.h Updates session stats telemetry API and adds new stored fields.
src/voice/telemetry/ctrlm_voice_telemetry_events.cpp Emits the new telemetry fields and updates session-end stats handling.
src/voice/ipc/ctrlm_voice_ipc_iarm_legacy.cpp Casts legacy IARM “reason” fields to the updated end-reason enum type.
src/voice/ctrlm_voice_obj.h Switches queue messages/session structures and APIs to the renamed end-reason type.
src/voice/ctrlm_voice_obj.cpp Propagates renamed end-reason usage and wires session-end stats into telemetry.
src/rf4ce/ctrlm_rf4ce_network.cpp Updates RF4CE stop handling to use renamed end-reason constants.
src/rf4ce/ctrlm_rf4ce_indication.cpp Updates default/derived stop reasons to the renamed end-reason constants/types.
src/ctrlm_utils.h Renames the end-reason-to-string helper declaration to match the new enum type.
src/ctrlm_utils.cpp Renames/updates the end-reason-to-string helper implementation and cases.
src/ble/ctrlm_ble_network.h Updates BLE voice-session end API to accept the renamed end-reason type.
src/ble/ctrlm_ble_network.cpp Updates BLE voice-session end calls to pass renamed end-reason constants.
include/ctrlm_ipc_voice.h Renames the public end-reason enum/type and updates IARM event struct fields accordingly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings February 27, 2026 17:08
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@dwolaver dwolaver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of comments...

Copilot AI review requested due to automatic review settings February 27, 2026 18:42
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings February 28, 2026 15:56
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@dwolaver dwolaver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok for QA test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants