Skip to content

RDKEMW-18612: onStatus event contain data from all networks#238

Open
egalla204 wants to merge 8 commits into
developfrom
feature/RDKEMW-18612_onStatus-both-ble-rf4ce_MAIN
Open

RDKEMW-18612: onStatus event contain data from all networks#238
egalla204 wants to merge 8 commits into
developfrom
feature/RDKEMW-18612_onStatus-both-ble-rf4ce_MAIN

Conversation

@egalla204
Copy link
Copy Markdown
Contributor

No description provided.

@egalla204 egalla204 requested a review from a team as a code owner May 22, 2026 01:42
Copilot AI review requested due to automatic review settings May 22, 2026 01:42
Copy link
Copy Markdown

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

Updates the Thunder/IARM RCU status event payload so onStatus reports remote/controller data aggregated across all networks (rather than only the triggering network), aligning the event output with the existing “get RCU status” multi-network behavior.

Changes:

  • Build onStatus JSON payload from an all-networks RCU status map and flatten controller status into a single remoteData array.
  • Add a new ctrlm_main_network_rcu_status_map_get() helper API to gather per-network ctrlm_rcp_ipc_net_status_t replies.
  • Add a ctrlm-main helper to invoke a network handler across all registered networks.

Reviewed changes

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

File Description
src/ipc/ctrlm_rcp_ipc_iarm_thunder.cpp Reworks on_status() to assemble a multi-network status payload (remote list + supported network types + default RF4CE-derived state).
src/ctrlm.h Declares the new ctrlm_main_network_rcu_status_map_get() API and forward-declares ctrlm_rcp_ipc_net_status_t.
src/ctrlm_main.cpp Implements ctrlm_main_network_rcu_status_map_get() by executing req_process_get_rcu_status across all networks.

Comment thread src/ctrlm_main.cpp
Comment on lines +881 to +885
for (auto const &network_it : g_ctrlm.networks) {
if (network_it.second) {
(network_it.second->*handler)(data, size);
}
}
Comment thread src/ctrlm.h
Comment on lines 509 to 513
ctrlm_irdb_interface_t* ctrlm_main_irdb_get();
ctrlm_auth_t* ctrlm_main_auth_get();
void ctrlm_main_auth_start_poll();
std::map<ctrlm_network_id_t, ctrlm_rcp_ipc_net_status_t> ctrlm_main_network_rcu_status_map_get();
std::string ctrlm_device_id_get();
Comment on lines +119 to +123
json_t *ret = json_object();
json_t *status = json_object();
json_t *net_type_supported = json_array();
json_t *remote_array = json_array();
std::map<ctrlm_network_id_t, ctrlm_rcp_ipc_net_status_t> status_map = ctrlm_main_network_rcu_status_map_get();
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.

2 participants