Configure the XCONF server with the values
Client side
1) Make sure that required RFC parameters are configured before starting the validation and file community-rfc-configs.ini is present in /etc/rfcdefaults/ path to do so.
| No Format |
|---|
/etc/rfcdefaults# ls -l |
...
-rw-r--r-- 1 root root 352 Jan 30 05:11 community-rfc-configs.ini |
2) Ensure telemetry process is running by checking the pid
| No Format |
|---|
root@raspberrypi4-64-rdke: |
...
~# pidof telemetry2_0 1312 |
3) Invoke system service query for setting timezone
...
| No Format |
|---|
root@raspberrypi4-64-rdke:/opt/persistent# curl -d |
...
'{"jsonrpc":"2.0","id":"3","method": "org.rdk.System.setTimeZoneDST","params": {"timeZone": "America/New_York"}}' http://127.0.0.1:9998/ |
...
jsonrpc {"jsonrpc":"2.0","id":3,"result":{"success":true}} |
...
root@raspberrypi4-64-rdke:/opt/persistent# cat timeZoneDST America/New_ |
...
York root@raspberrypi4-64-rdke:/opt/persistent# |
4) Set the Telemetry URL
...
| No Format |
|---|
tr181 -s -t string -v https://xconf.rdkcentral.com/loguploader/getT2Settings Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.Telemetry.ConfigURL tr181 -g Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.Telemetry.ConfigURL |
5) Restart telemetry2_0 service
| No Format |
|---|
curl --header "Content-Type: application/json" --request POST --data '{"jsonrpc":"2.0","id":"3","method":"Controller.1.activate","params":{"callsign":"org.rdk.MaintenanceManager"}}' http://127.0.0.1:9998/jsonrpc |
...
Maintanencemanager invocation is handling through UI side. For current validation, we are following this approach.
...
1. Check DCM process is active
| No Format |
|---|
root@raspberrypi4-64-rdke:~# systemctl status dcmd
● dcmd.service - To start dcm daemon
Loaded: loaded (/lib/systemd/system/dcmd.service; enabled; vendor preset: enabled)
Active: active (exited) since Fri 2025-10-03 16:07:08 EDT; 1 months 21 days ago
Process: 1183 ExecStart=/usr/bin/dcmd (code=exited, status=0/SUCCESS)
Main PID: 1183 (code=exited, status=0/SUCCESS)
Tasks: 8 (limit: 512)
CGroup: /system.slice/dcmd.service
├─1194 /usr/bin/dcmd
├─2781 /bin/busybox sh /lib/rdk/uploadSTBLogs.sh Fallbacklogupload 1 1 1 HTTP https://xconf.rdkcentral.com/logTelemetryServer/logportal.php
└─2877 sleep 330
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
root@raspberrypi4-64-rdke:~#
|
2. check DCMresponse.txt entry is created in /opt/.t2persistentfolder
Note - dcmd requires Telemetry2_0 to communicate with XConf to download the DCMresponse.txt, if it fails, dcm upload will not start.
| No Format |
|---|
root@raspberrypi4-64-rdke:~# cat /opt/.t2persistentfolder/DCMresponse.txt
{"urn:settings:GroupName":"MW_RPi45","urn:settings:CheckOnReboot":true,"urn:settings:TimeZoneMode":"UTC","urn:settings:CheckSchedule:cron":"2 2 * * *","urn:settings:CheckSchedule:DurationMinutes":0,"urn:settings:LogUploadSettings:Message":null,"urn:settings:LogUploadSettings:Name":"RPi45","urn:settings:LogUploadSettings:NumberOfDays":0,"urn:settings:LogUploadSettings:UploadRepositoryName":"m8RPiFullTest45","urn:settings:LogUploadSettings:UploadRepository:URL":"https://xconf.rdkcentral.com/logTelemetryServer/logportal.php","urn:settings:LogUploadSettings:UploadRepository:uploadProtocol":"HTTP","urn:settings:LogUploadSettings:UploadOnReboot":true,"urn:settings:LogUploadSettings:UploadImmediately":false,"urn:settings:LogUploadSettings:upload":true,"urn:settings:LogUploadSettings:UploadSchedule:cron":"5 0 * * *","urn:settings:LogUploadSettings:UploadSchedule:levelone:cron":null,"urn:settings:LogUploadSettings:UploadSchedule:leveltwo:cron":null,"urn:settings:LogUploadSettings:UploadSchedule:levelthree:cron":null,"urn:settings:LogUploadSettings:UploadSchedule:TimeZoneMode":"UTC","urn:settings:LogUploadSettings:UploadSchedule:DurationMinutes":0,"urn:settings:VODSettings:Name":null,"urn:settings:VODSettings:LocationsURL":null,"urn:settings:VODSettings:SRMIPList":null,"urn:settings:TelemetryProfile":{"@type":"PermanentTelemetryProfile","id":"fcda6fb8-953d-4699-85b2-70e6f4824c9e","telemetryProfile":[{"header":"TELEMETRY_STARTED","content":"dnsmasq: starting /usr/bin/dnsmasq","type":"NetworkManager.log","pollingFrequency":"1"},{"header":"MEDIA_ERROR_NETWORK_ERROR","content":"onMediaError NETWORK ERROR(10)","type":"receiver.log","pollingFrequency":"1"}],"schedule":"3","expires":0,"telemetryProfile:name":"RDKMA_Test","uploadRepository:URL":"http://xconf.rdkcentral.com/xconf/logupload.php","uploadRepository:uploadProtocol":"HTTP"}}
root@raspberrypi4-64-rdke:~#
|