Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/native_full_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
jobs:
build-devicesettings-on-pr:
name: Build devicesettings component in github rdkcentral
if: false
runs-on: ubuntu-latest
container:
image: ghcr.io/rdkcentral/docker-rdk-ci:latest
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,18 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [1.0.31](https://github.com/rdkcentral/devicesettings/compare/1.0.30...1.0.31)

- RDK-60748 : TElemetry for Devicesettings [`#222`](https://github.com/rdkcentral/devicesettings/pull/222)
- RDK-69747 - Adding T2 telemtry for devicesettings [`#217`](https://github.com/rdkcentral/devicesettings/pull/217)
- Merge tag '1.0.30' into develop [`3e0563e`](https://github.com/rdkcentral/devicesettings/commit/3e0563ec0996544c7b0c80275c4c0ac0866b51c6)

#### [1.0.30](https://github.com/rdkcentral/devicesettings/compare/1.0.29...1.0.30)

> 6 March 2026

- RDKEMW-8587: consume the config variables using dlsym() in MW [`#185`](https://github.com/rdkcentral/devicesettings/pull/185)
- 1.0.30 release change log updates [`1ad9d72`](https://github.com/rdkcentral/devicesettings/commit/1ad9d72a71e81781fc60480906a1af7def80b8a9)
- Merge tag '1.0.29' into develop [`ab7a2df`](https://github.com/rdkcentral/devicesettings/commit/ab7a2df7bd873c5a7bc9ee20057b70b3d93765cb)

#### [1.0.29](https://github.com/rdkcentral/devicesettings/compare/1.0.28...1.0.29)
Expand Down
70 changes: 70 additions & 0 deletions rpc/include/dsTelemetry.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2016 RDK Management
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#ifndef __DS_TELEMETRY_H__
#define __DS_TELEMETRY_H__

/**
* @defgroup devicesettings
* @{
* @defgroup dsTelemetry
* @{
**/

#include <telemetry_busmessage_sender.h>

#ifdef __cplusplus
extern "C" {
#endif

#define TELEMETRY_INIT(component) \
do { \
t2_init((char*)component); \
} while(0)

#define TELEMETRY_UNINIT() \
do { \
t2_uninit(); \
} while(0)

#define TELEMETRY_EVENT_STRING(marker, value) \
do { \
t2_event_s((char*)marker, (char*)value); \
} while(0)

#define TELEMETRY_EVENT_FLOAT(marker, value) \
do { \
t2_event_f((char*)marker, (double)value); \
} while(0)

#define TELEMETRY_EVENT_INT(marker, value) \
do { \
t2_event_d((char*)marker, (int)value); \
} while(0)

#ifdef __cplusplus
}
#endif

#endif /* __DS_TELEMETRY_H__ */

/**
* @}
* @}
**/
2 changes: 1 addition & 1 deletion rpc/srv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ all: install

library: $(OBJS)
@echo "Building $(LIBNAMEFULL) ...."
$(CXX) $(OBJS) $(CFLAGS) -shared -o $(LIBNAMEFULL)
$(CXX) $(OBJS) $(CFLAGS) $(LDFLAGS) -shared -o $(LIBNAMEFULL)

%.o: %.c
@echo "Building $@ ...."
Expand Down
2 changes: 1 addition & 1 deletion rpc/srv/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ libdshalsrv_la_CXXFLAGS= -std=c++0x -g -fPIC -D_REENTRANT -Wall
libdshalsrv_la_CFLAGS = -x c++ -g -fPIC -D_REENTRANT -Wall
libdshalsrv_la_SOURCES = dsHost.cpp hostPersistence.cpp dsAudio.c dsDisplay.c dsFPD.c dsMgr.c dsVideoDevice.c dsVideoPort.c dsserverlogger.c \
dsConfigs.c dsAudioConfig.c dsVideoPortConfig.c dsVideoDeviceConfig.c dsCompositeIn.c dsHdmiIn.c
libdshalsrv_la_LIBADD = -ldl
libdshalsrv_la_LIBADD = -ldl -ltelemetry_msgsender
18 changes: 17 additions & 1 deletion rpc/srv/dsAudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@


#include "dsAudio.h"
#include "dsTelemetry.h"

#include <sys/types.h>
#include <stdint.h>
Expand Down Expand Up @@ -2080,7 +2081,13 @@ void AudioConfigInit()
if (NULL != handle) {
if (dsSetStereoMode(handle, _srv_HDMI_ARC_Audiomode) == dsERR_NONE)
{
INT_INFO("dsSetStereoMode The HDMI ARC Port Audio Settings Mode is %d \r\n",_srv_HDMI_ARC_Audiomode);
INT_INFO("dsSetStereoMode The HDMI ARC Port Audio Settings Mode is %d \r\n",_srv_HDMI_ARC_Audiomode);
if(_srv_HDMI_ARC_Audiomode == dsAUDIO_STEREO_PASSTHRU)
{
char telemetryValue[128] = {0};
snprintf(telemetryValue, sizeof(telemetryValue), "dsSetStereoMode The HDMI ARC Port Audio Settings Mode is %d", _srv_HDMI_ARC_Audiomode);
TELEMETRY_EVENT_STRING("SYS_INFO_PASSTHRUENABLED", telemetryValue);
}
}
}
}
Expand Down Expand Up @@ -2741,6 +2748,12 @@ IARM_Result_t _dsSetStereoMode(void *arg)
else if(param->mode == dsAUDIO_STEREO_PASSTHRU)
{
INT_INFO("Setting Audio Mode PASSTHRU with persistent value %d \r\n",param->toPersist);
if(param->toPersist){
char telemetryValue[128] = {0};
snprintf(telemetryValue, sizeof(telemetryValue), "The HDMI Audio Mode Setting From Persistent is %d", param->toPersist);
TELEMETRY_EVENT_STRING("SYS_INFO_Userpassthruenable", telemetryValue);
}


if (_APortType == dsAUDIOPORT_TYPE_HDMI)
{
Expand Down Expand Up @@ -6366,6 +6379,9 @@ static void _GetAudioModeFromPersistent(void *arg)
}
}
INT_INFO("The HDMI Audio Mode Setting From Persistent is %s \r\n",_AudioModeSettings.c_str());
char telemetryValue[128] = {0};
snprintf(telemetryValue, sizeof(telemetryValue), "The HDMI Audio Mode Setting From Persistent is %s", _AudioModeSettings.c_str());
TELEMETRY_EVENT_STRING("hdmiAudioMode_split", telemetryValue);
}
else if (_APortType == dsAUDIOPORT_TYPE_HDMI_ARC){
_AudioModeSettings = device::HostPersistence::getInstance().getProperty("HDMI_ARC0.AudioMode",_AudioModeSettings);
Expand Down
7 changes: 7 additions & 0 deletions rpc/srv/dsDisplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@


#include "dsDisplay.h"
#include "dsTelemetry.h"

#include <sys/types.h>
#include <stdint.h>
Expand Down Expand Up @@ -542,6 +543,7 @@ void _dsDisplayEventCallback(intptr_t handle, dsDisplayEvent_t event, void *even

case dsDISPLAY_RXSENSE_OFF:
INT_INFO("Rx Sense Status OFF !!!!!!!! ..\r\n");
TELEMETRY_EVENT_STRING("HDMI_INFO_tv_off", "Rx Sense Status OFF");
_eventData.data.hdmi_rxsense.status = dsDISPLAY_RXSENSE_OFF ;
_eventId = IARM_BUS_DSMGR_EVENT_RX_SENSE;
break;
Expand Down Expand Up @@ -643,6 +645,11 @@ static void dumpEDIDInformation( dsDisplayEDID_t *edid)
{
printf("[DsMgr]dumpEDIDInformation tags: Product, SN, Year, Week, Monitor, Type, Repeater\n");
printf("[DsMgr]dumpEDIDInformation values:%x,%x,%d,%d,%s,%s,%x\n",edid->productCode,edid->serialNumber,edid->manufactureYear,edid->manufactureWeek,edid->monitorName,edid->hdmiDeviceType?"HDMI":"DVI",edid->isRepeater);
char telemetryValue[512] = {0};
snprintf(telemetryValue, sizeof(telemetryValue), "[DsMgr]dumpEDIDInformation values Product Code:%x, Serial Number:%x, Manufacture Year:%d, Manufacture Week:%d, Monitor Name:%s, Device Type:%s, IsRepeater:%x",
edid->productCode, edid->serialNumber, edid->manufactureYear, edid->manufactureWeek,
edid->monitorName, edid->hdmiDeviceType ? "HDMI" : "DVI", edid->isRepeater);
TELEMETRY_EVENT_STRING("SYST_INFO_TVData_split", telemetryValue);
printf("Supported resolutions: ");
for (size_t j = 0; j < edid->numOfSupportedResolution; j++)
{
Expand Down
1 change: 1 addition & 0 deletions rpc/srv/dsMgr.c
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <stdio.h>
#include <string.h>
#include "dsserverlogger.h"
#include "dsTelemetry.h"

#include <iostream>
#include "hostPersistence.hpp"
Expand Down
8 changes: 8 additions & 0 deletions rpc/srv/dsVideoPort.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

#include "dsVideoPort.h"
#include "dsDisplay.h"
#include "dsTelemetry.h"

#include <sys/stat.h>
#include <unistd.h>
Expand Down Expand Up @@ -188,6 +189,13 @@ IARM_Result_t dsVideoPortMgr_init()
*/
_dsHDMIResolution = device::HostPersistence::getInstance().getProperty("HDMI0.resolution",_Resolution);
INT_INFO("The Persistent HDMI resolution read is %s \r\n",_dsHDMIResolution.c_str());
if (_dsHDMIResolution == "2160p")
{
char telemetryValue[128] = {0};
snprintf(telemetryValue, sizeof(telemetryValue), "The Persistent HDMI resolution read is %s", _dsHDMIResolution.c_str());
TELEMETRY_EVENT_STRING("SYS_INFO_4KResolution", telemetryValue);
}

#ifdef HAS_ONLY_COMPOSITE
if (PROFILE_TV == profileType)
{
Expand Down
Loading