I see the following description on the page CcspTr069Pa


"In order for TR-069 PA to capture event ValueChanged, TR-069 PA must subscribe to the signal through Component Registrar. And once TR-069 PA receives such event, it needs to check if the value change is caused by itself by checking ‘writeID’ included in the signal against TR-069 PA’s own writeID. If they are same, this signal is simply ignored. "



Could you please help to give more detail explanation?

  1. Where is the code entrance of CcspTr069Pa to handle the parameter value change?
  2. Does all parameters changed would notify CcspTr069Pa?
  3. if we added new parameters in the data model, and want CcspTr069Pa received value-change notification, what else we need to do?
  4. if we added a new application, and this application want to receive some concerned parameters' value-change notification, how to do?

Thank you very much!

  • No labels

2 Comments

  1. Hi, Please find the answer below.

    1.Where is the code entrance of CcspTr069Pa to handle the parameter value change?
    >>> Please check CcspCwmppoProcessPvcSignal() in ccsp_cwmp_proco_event.c

    2.Does all parameters changed would notify CcspTr069Pa?
    >>> No, only parameters register for a value change callback will be notified, such as ManagementServerURL

    3.if we added new parameters in the data model, and want CcspTr069Pa received value-change notification, what else we need to do?
    >>> The tr181 parameter notification has to be set using SetParamAttribute

    4.if we added a new application, and this application want to receive some concerned parameters' value-change notification, how to do?Thank you very much!
    >>> The Value Change notification implemented using Dbus callback mechanism. The component needs to register for "parameterValueChangeSignal" callback. Please check how ccspWifiAgent is registering for value change notification using this callback (cosa_wifi_apis.c)

    1. sipra samantray Thank you very much for this useful knowledge.

      I saw the below codes in the cosa_wifi_apis.c, do you know the feature notify component? Is any conflict with value-change notification?

      Thank you!


      #ifndef USE_NOTIFY_COMPONENT
                      ret = CcspBaseIf_Register_Event(
                      bus_handle,
                      ppComponents[0]->componentName,
                      "parameterValueChangeSignal"
                  );      
             
              if ( CCSP_SUCCESS != ret)
              {
                  CcspWifiTrace(("RDK_LOG_ERROR,CaptivePortal:WiFi Parameter failed to Register for notification event ...\n"));



              }

              CcspBaseIf_SetCallback2
                  (
                      bus_handle,
                      "parameterValueChangeSignal",
                      WiFiPramValueChangedCB,
                      NULL
                  );
      #endif