# rdkcentral/miscellaneous-broadband architecture

> Architecture diagram of the GitHub repository rdkcentral/miscellaneous-broadband, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rdkcentral/miscellaneous-broadband
- Repository: https://github.com/rdkcentral/miscellaneous-broadband

## Overview

This repository is a collection of embedded RDK/CCSP utilities and daemons, rather than one end-user application. Its clearest service workflow is ServiceCtrl startup, RBUS property handling, and queued service restarts; other components provide network bridging, DHCP client management, configuration decoding, and system utilities. The README describes running the broader Cosa system, but does not document how these individual utilities connect. Arrows are limited to relationships visible in excerpts or the source index; unsampled components are not assigned speculative links.

Main entry points: [`source/ServiceCtrl/servicecontrol_rbus_handler_apis.c`](https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/ServiceCtrl/servicecontrol_rbus_handler_apis.c) (RBUS handlers), [`source/ServiceCtrl/servicecontrol_main.c`](https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/ServiceCtrl/servicecontrol_main.c) (Service daemon), [`source/ServiceCtrl/servicecontrol_apis.c`](https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/ServiceCtrl/servicecontrol_apis.c) (Restart queue and API), [`source/bridge_utils/bridge_utils_bin/main.c`](https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/bridge_utils/bridge_utils_bin/main.c) (Bridge utility entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_service["Service control"]
  node_svc_main["Service daemon"]
  node_svc_api["Restart queue and API"]
  node_svc_rbus["RBUS handlers"]
  node_svc_dml["Service DML"]
  node_svc_collection["Queue collection<br/>[collection.c]"]
end

subgraph group_network["Network utilities"]
  node_bridge_cli["Bridge utility entry<br/>[main.c]"]
  node_bridge["Bridge management<br/>[bridge_util.c]"]
  node_bridge_creation["Bridge creation<br/>[bridge_creation.c]"]
  node_dhcp_common["DHCP process and options"]
  node_dhcpv4["DHCPv4 client"]
  node_dhcpv6["DHCPv6 client"]
  node_udhcpc["udhcpc integration"]
  node_dibbler["Dibbler integration"]
end

subgraph group_config["Configuration tools"]
  node_webcfg["Webconfig decoder<br/>[main.c]"]
  node_multipart["Multipart processing<br/>[multipartRoot.c]"]
  node_psmcli["PSM CLI<br/>[psmcli.c]"]
  node_wbapp["Webconfig test app<br/>[wbCfgTestApp.c]"]
  node_wbdaemon["Webconfig test daemon<br/>[wbCfgTestDaemon.c]"]
end

subgraph group_system["System utilities"]
  node_fwcheck["Firmware download check"]
  node_fwbank["Firmware bank info<br/>[FwBank_Info.c]"]
  node_event_sub["Event subscriber<br/>[event_subscriber.c]"]
  node_notify_lease["Lease notification<br/>[Notify_Lease.c]"]
  node_timeconv["Time conversion<br/>[time_conversion.c]"]
  node_msgq["Message queue utility<br/>[msgq_util.c]"]
end

node_rbus(("RBUS"))
node_systemctl(("systemctl"))

node_svc_main -->|"initializes and starts"| node_svc_api
node_svc_main -->|"initializes"| node_svc_rbus
node_svc_rbus -->|"registers handlers"| node_rbus
node_svc_rbus -->|"calls parameter API"| node_svc_dml
node_svc_api -->|"restarts services"| node_systemctl
node_bridge_cli -->|"dispatches to"| node_bridge
node_dhcpv6 -->|"uses integration"| node_dibbler

click node_svc_main "https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/ServiceCtrl/servicecontrol_main.c"
click node_svc_api "https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/ServiceCtrl/servicecontrol_apis.c"
click node_svc_rbus "https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/ServiceCtrl/servicecontrol_rbus_handler_apis.c"
click node_svc_dml "https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/ServiceCtrl/servicecontrol_dml.c"
click node_svc_collection "https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/ServiceCtrl/collection.c"
click node_bridge_cli "https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/bridge_utils/bridge_utils_bin/main.c"
click node_bridge "https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/bridge_utils/bridge_utils_bin/bridge_util.c"
click node_bridge_creation "https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/bridge_utils/bridge_utils_bin/bridge_creation.c"
click node_dhcp_common "https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/dhcp_client_utils/dhcp_client_common.c"
click node_dhcpv4 "https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/dhcp_client_utils/dhcpv4_client_utils.c"
click node_dhcpv6 "https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/dhcp_client_utils/dhcpv6_client_utils.c"
click node_udhcpc "https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/dhcp_client_utils/udhcpc_client_utils.c"
click node_dibbler "https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/dhcp_client_utils/dibbler_client_utils.c"
click node_webcfg "https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/webcfg_decoder/main.c"
click node_multipart "https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/multipartRoot/multipartRoot.c"
click node_psmcli "https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/Psmcli/psmcli.c"
click node_fwcheck "https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/FwDownloadChk/fw_download_check.c"
click node_fwbank "https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/FwBankInfo/FwBank_Info.c"
click node_event_sub "https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/EventSubscription/event_subscriber.c"
click node_notify_lease "https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/Notify_Lease/Notify_Lease.c"
click node_timeconv "https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/TimeConv/time_conversion.c"
click node_msgq "https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/msgq_util/msgq_util.c"
click node_wbapp "https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/wbCfgTestApp/wbCfgTestApp.c"
click node_wbdaemon "https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/wbCfgTestDaemon/wbCfgTestDaemon.c"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_svc_main,node_svc_api,node_svc_rbus,node_svc_dml,node_svc_collection toneBlue
class node_bridge_cli,node_bridge,node_bridge_creation,node_dhcp_common,node_dhcpv4,node_dhcpv6,node_udhcpc,node_dibbler toneAmber
class node_webcfg,node_multipart,node_psmcli,node_wbapp,node_wbdaemon toneMint
class node_fwcheck,node_fwbank,node_event_sub,node_notify_lease,node_timeconv,node_msgq toneRose
class node_rbus,node_systemctl toneIndigo
```

## Components

### Service control

- [Service daemon](https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/ServiceCtrl/servicecontrol_main.c): `source/ServiceCtrl/servicecontrol_main.c`
- [Restart queue and API](https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/ServiceCtrl/servicecontrol_apis.c): `source/ServiceCtrl/servicecontrol_apis.c`
- [RBUS handlers](https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/ServiceCtrl/servicecontrol_rbus_handler_apis.c): `source/ServiceCtrl/servicecontrol_rbus_handler_apis.c`
- [Service DML](https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/ServiceCtrl/servicecontrol_dml.c): `source/ServiceCtrl/servicecontrol_dml.c`
- [Queue collection](https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/ServiceCtrl/collection.c): `source/ServiceCtrl/collection.c`

### Network utilities

- [Bridge utility entry](https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/bridge_utils/bridge_utils_bin/main.c): `source/bridge_utils/bridge_utils_bin/main.c`
- [Bridge management](https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/bridge_utils/bridge_utils_bin/bridge_util.c): `source/bridge_utils/bridge_utils_bin/bridge_util.c`
- [Bridge creation](https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/bridge_utils/bridge_utils_bin/bridge_creation.c): `source/bridge_utils/bridge_utils_bin/bridge_creation.c`
- [DHCP process and options](https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/dhcp_client_utils/dhcp_client_common.c): `source/dhcp_client_utils/dhcp_client_common.c`
- [DHCPv4 client](https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/dhcp_client_utils/dhcpv4_client_utils.c): `source/dhcp_client_utils/dhcpv4_client_utils.c`
- [DHCPv6 client](https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/dhcp_client_utils/dhcpv6_client_utils.c): `source/dhcp_client_utils/dhcpv6_client_utils.c`
- [udhcpc integration](https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/dhcp_client_utils/udhcpc_client_utils.c): `source/dhcp_client_utils/udhcpc_client_utils.c`
- [Dibbler integration](https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/dhcp_client_utils/dibbler_client_utils.c): `source/dhcp_client_utils/dibbler_client_utils.c`

### Configuration tools

- [Webconfig decoder](https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/webcfg_decoder/main.c): `source/webcfg_decoder/main.c`
- [Multipart processing](https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/multipartRoot/multipartRoot.c): `source/multipartRoot/multipartRoot.c`
- [PSM CLI](https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/Psmcli/psmcli.c): `source/Psmcli/psmcli.c`
- [Webconfig test app](https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/wbCfgTestApp/wbCfgTestApp.c): `source/wbCfgTestApp/wbCfgTestApp.c`
- [Webconfig test daemon](https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/wbCfgTestDaemon/wbCfgTestDaemon.c): `source/wbCfgTestDaemon/wbCfgTestDaemon.c`

### System utilities

- [Firmware download check](https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/FwDownloadChk/fw_download_check.c): `source/FwDownloadChk/fw_download_check.c`
- [Firmware bank info](https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/FwBankInfo/FwBank_Info.c): `source/FwBankInfo/FwBank_Info.c`
- [Event subscriber](https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/EventSubscription/event_subscriber.c): `source/EventSubscription/event_subscriber.c`
- [Lease notification](https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/Notify_Lease/Notify_Lease.c): `source/Notify_Lease/Notify_Lease.c`
- [Time conversion](https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/TimeConv/time_conversion.c): `source/TimeConv/time_conversion.c`
- [Message queue utility](https://github.com/rdkcentral/miscellaneous-broadband/blob/develop/source/msgq_util/msgq_util.c): `source/msgq_util/msgq_util.c`

### Other components

- **RBUS**
- **systemctl**

## Connections

- Service daemon → Restart queue and API: initializes and starts (evidence: `source/ServiceCtrl/servicecontrol_main.c`)
- Service daemon → RBUS handlers: initializes (evidence: `source/ServiceCtrl/servicecontrol_main.c`)
- RBUS handlers → RBUS: registers handlers (evidence: `source/ServiceCtrl/servicecontrol_rbus_handler_apis.c`)
- RBUS handlers → Service DML: calls parameter API (evidence: `source/ServiceCtrl/servicecontrol_rbus_handler_apis.c`)
- Restart queue and API → systemctl: restarts services (evidence: `source/ServiceCtrl/servicecontrol_apis.c`)
- Bridge utility entry → Bridge management: dispatches to (evidence: `source/bridge_utils/bridge_utils_bin/main.c`)
- DHCPv6 client → Dibbler integration: uses integration (evidence: `source/dhcp_client_utils/dhcpv6_client_utils.c`)
