RDKC-15902: Add RDKC camera platform support to rfcMgr#192
Open
rdkcteam wants to merge 6 commits into
Open
Conversation
added 5 commits
April 12, 2026 18:35
Replace shell-based RFC processing (RFCbase.sh) with the C++ RFC Manager for RDKC camera devices (XHC1/XHB1). New files: - rdkc_rfc_xconf_handler.cpp/.h: Camera-specific subclass overriding Xconf URL building, hash/time retrieval, and endpoint metadata storage. Changes guarded by #ifdef RDKC / --enable-rdkc: - configure.ac: Add --enable-rdkc and --enable-xcam2 options. - Makefile.am: Build rfcapi + rfcMgr under ENABLE_RDKC. - rfc_xconf_handler.h/.cpp: Protected virtual methods, direct tr181store.ini writes, effectiveImmediate reboot cron evaluation, hash/time RAM files, mTLS download, clearDB/clearDBEnd guards. - rfc_manager.cpp: IP acquisition via getifaddrs(), 120s startup delay, reboot cron scheduling, skip MaintenanceManager events. - xconf_handler.cpp: MAC via mfrApi_test, partner ID from partnerid.txt. - rfc_common.cpp: 2-arg getRFCParameter for RDKC. - mtlsUtils.cpp: Dynamic/static XPKI cert fallback. - rfcapi/rfcapi.h/.cpp: Unified RDKB/RDKC int-based API path.
…02-camera-support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add RDKC (XHC1) camera platform support to the RFC Manager component, enabling RFC
feature-flag synchronization on camera devices via platform-specific Xconf handling.
JIRA Ticket
RDKC-15902
Changes
New files
rfcMgr/rdkc_rfc_xconf_handler.h—RdkcRuntimeFeatureControlProcessorsubclassof
RuntimeFeatureControlProcessorwith RDKC-specific overrides.rfcMgr/rdkc_rfc_xconf_handler.cpp— Implementation of three overridden methods:CreateXconfHTTPUrl()— AddsaccountHashquery param, omits STB-only fields(
manufacturer,ecmMacAddress,osClass,controllerId,channelMapId,vodId).RetrieveHashAndTimeFromPreviousDataSet()— ReadsconfigSetHash/configSetTimefrom RAM files (
/tmp/RFC/.hashValue,/tmp/RFC/.timeValue) instead of TR181 DB.StoreXconfEndpointMetadata()— No-op; XHC1 must not persist XconfSelector/XconfUrl.docs/— Architecture, sequence diagram, and data processing flow documentation.Modified files
configure.ac— Added--enable-rdkcand--enable-xcam2autoconf options withcorresponding
AM_CONDITIONALguards (ENABLE_RDKC,ENABLE_XCAM2).rfcMgr/Makefile.am— Conditionally compilesrdkc_rfc_xconf_handler.cppwhenENABLE_RDKCis set; adds RDKC-specific include paths and linker flags for bothXCAM2 (
RDK_FSROOT_PATH) and Yocto (STAGING_DIR_TARGET) sysroots; links-lrfcapilocally from
rfcapi/.libs/.rfcMgr/rfc_main.cpp— Creates/tmp/RFCdirectory at startup whenRDKCis defined(alongside existing RDKB path).
Design Rationale
Uses inheritance (subclass +
#ifdef RDKCguard) rather than inline conditionals to keepthe base
RuntimeFeatureControlProcessorunchanged for STB/RDKB platforms. All RDKC logicis compiled in only when
--enable-rdkcis passed toconfigure.Testing
--enable-rdkc --enable-xcam2--enable-rdkc(no regressions to STB/RDKB)make check)Checklist
make check)#ifdef RDKCdocs/folder)