From b83186a5aed4f404d84922c2b85a60d91204d06b Mon Sep 17 00:00:00 2001 From: biju-vi <151033276+biju-vi@users.noreply.github.com> Date: Thu, 8 Jan 2026 15:32:10 +0000 Subject: [PATCH 1/2] debug build --- source/InterDeviceManager/Idm_data.c | 3 +++ source/InterDeviceManager/Idm_rbus.c | 1 + 2 files changed, 4 insertions(+) diff --git a/source/InterDeviceManager/Idm_data.c b/source/InterDeviceManager/Idm_data.c index bcb8272..2f421f5 100644 --- a/source/InterDeviceManager/Idm_data.c +++ b/source/InterDeviceManager/Idm_data.c @@ -253,8 +253,11 @@ ANSC_STATUS IdmMgr_GetFactoryDefaultValue(const char * param_name,char * param_v return ANSC_STATUS_FAILURE; } + CcspTraceInfo(("%s %d: File opened", __FUNCTION__, __LINE__)); + while (getline(&line, &len, fp) != -1) { + CcspTraceInfo(("%s %d: Reading line %s", __FUNCTION__, __LINE__, line)); if(strstr(line, param_name) != NULL) { // PSM entry stored as Gateway diff --git a/source/InterDeviceManager/Idm_rbus.c b/source/InterDeviceManager/Idm_rbus.c index 184165c..e82a883 100644 --- a/source/InterDeviceManager/Idm_rbus.c +++ b/source/InterDeviceManager/Idm_rbus.c @@ -653,6 +653,7 @@ rbusError_t X_RDK_Remote_MethodHandler(rbusHandle_t handle, char const* methodNa else { // PSM data structre is also empty. Read it from factory and update local device cap + CcspTraceInfo(("%s %d - Trying FR value \n", __FUNCTION__, __LINE__)); IdmMgr_GetFactoryDefaultValue(PSM_DEVICE_CAPABILITIES, pidmDmlInfo->stConnectionInfo.Capabilities); CcspTraceInfo(("%s %d - Updating local device capabilities from factory PSM \n", __FUNCTION__, __LINE__)); rc = strcpy_s(indexNode->stRemoteDeviceInfo.Capabilities, sizeof(indexNode->stRemoteDeviceInfo.Capabilities), pidmDmlInfo->stConnectionInfo.Capabilities); From 1b0975f8be344400084e281c3a54d369a057feb5 Mon Sep 17 00:00:00 2001 From: biju-vi <151033276+biju-vi@users.noreply.github.com> Date: Thu, 8 Jan 2026 22:34:53 +0000 Subject: [PATCH 2/2] XF10-400 Observed IDM crash during XF10 bootup --- source/InterDeviceManager/Idm_data.c | 5 +---- source/InterDeviceManager/Idm_rbus.c | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/source/InterDeviceManager/Idm_data.c b/source/InterDeviceManager/Idm_data.c index 2f421f5..9637362 100644 --- a/source/InterDeviceManager/Idm_data.c +++ b/source/InterDeviceManager/Idm_data.c @@ -237,7 +237,7 @@ ANSC_STATUS IdmMgr_GetFactoryDefaultValue(const char * param_name,char * param_v { FILE * fp = NULL; - uint32_t len = 0; + size_t len = 0; char *line = NULL; if ((param_name == NULL)) @@ -253,11 +253,8 @@ ANSC_STATUS IdmMgr_GetFactoryDefaultValue(const char * param_name,char * param_v return ANSC_STATUS_FAILURE; } - CcspTraceInfo(("%s %d: File opened", __FUNCTION__, __LINE__)); - while (getline(&line, &len, fp) != -1) { - CcspTraceInfo(("%s %d: Reading line %s", __FUNCTION__, __LINE__, line)); if(strstr(line, param_name) != NULL) { // PSM entry stored as Gateway diff --git a/source/InterDeviceManager/Idm_rbus.c b/source/InterDeviceManager/Idm_rbus.c index e82a883..184165c 100644 --- a/source/InterDeviceManager/Idm_rbus.c +++ b/source/InterDeviceManager/Idm_rbus.c @@ -653,7 +653,6 @@ rbusError_t X_RDK_Remote_MethodHandler(rbusHandle_t handle, char const* methodNa else { // PSM data structre is also empty. Read it from factory and update local device cap - CcspTraceInfo(("%s %d - Trying FR value \n", __FUNCTION__, __LINE__)); IdmMgr_GetFactoryDefaultValue(PSM_DEVICE_CAPABILITIES, pidmDmlInfo->stConnectionInfo.Capabilities); CcspTraceInfo(("%s %d - Updating local device capabilities from factory PSM \n", __FUNCTION__, __LINE__)); rc = strcpy_s(indexNode->stRemoteDeviceInfo.Capabilities, sizeof(indexNode->stRemoteDeviceInfo.Capabilities), pidmDmlInfo->stConnectionInfo.Capabilities);