Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Telemetry is the automatic recording and transmission of data from remote or inaccessible sources to an IT system in a different location for monitoring and analysis.

RDKB Telemetry Components

1. Xconf Server
2. Turris-Omnia with rdkb image
3. HTTP Server

Environment Setup

2.1. Build procedure

Follow the wiki page to make yocto's RDK-B image from yocto workspace in your PC.

Wifi-Extender Yocto Build Instructions

2.2. Image Flash procedure

Refer the below link for image flashing

Turris Omnia Reference Platform: Flashing Instruction

 Xconf server

Configuring Telemetry on Xconf server

Change Application to stb in top right corner of the window

     Image Modified

Create Formula

 Login to Xconf Server and go to DCM menu item and click on “Formulas” sub menu and create Formula
Image Modified

Create Device Settings

Xconf Server → DCM → Device Settings 
Image Modified

Create LogUpload Settings

Xconf Server → DCM → LogUpload Settings

...

http://35.155.171.121:9092/loguploader/getSettings?estbMacAddress=D8:58:D7:00:A5:D6&model=Turris

Configuring Telemetry on Turris Omnia

  • Once the board is up , go to /etc/dcm.properties and add the below detail

DCM_LOG_SERVER_URL=http://35.155.171.121:9092/loguploader/getSettings
DCM_HTTP_SERVER_URL=http://35.155.171.121/xconf/telemetry_upload.php
DCM_LA_SERVER_URL=http://35.155.171.121/xconf/logupload.php

  • After board boot up, disable log rotation by using the command: 

$ systemctl disable rdkbLogMonitor


  1. Restart the dcm-log service using “systemctl restart dcm-log
  2. To check the status of the service “systemctl status dcm-log
  3. By triggering the service , Turris-Omnia starts uploading the logs to the xconf-server
  4. The log upload and Telemetry markers can be uploaded via tftp and http
  5. The profile can be verified using curl, conf file , through logs and in server as below

Curl Response

Execute the following command in turris board, and ensure the output

$ curl 'http://35.155.171.121:9092/loguploader/getSettings?estbMacAddress=D8:58:D7:00:A5:D6&model=Turris'

Image Added


 Configuration file

  • Once the profile details are successfully retrieved , the conf file will be created under /tmp which has the server configurations 

Image Added


Log File

$ cat /rdklogs/logs/telemetry.log

Image Added


$ cat /rdklogs/logs/dcmscript.log

Image Added


$ cat /rdklogs/logs/dcmProcessing.log

Image Added


Log upload onto HTTP Server

Verify that Json file and zipped log files for all other logs displayed in HTTP server

JSON file upload

  • open the uploaded json file and ensure the parameters

http://35.155.171.121/xconf/upload/D858D700A5D6_TELE_11-30-2020-12-31PM.json

Image Added


Log Upload


Limitations

Yet to have TFTP server support for log upload