Menu

#79 TRDP Ctrl: tau_initEcspCtrl sets data size permanently as 0

1.3.0.0
closed
1395 (1)
2015-04-10
2015-04-01
Kalle Ranki
No

tau_initEcspCtrl publishes Ecsp ctrl packet with data size 0 and NULL data.
When trying to add data with tau_setEcspCtrl the call to tlp_put will fail to TRDP_PARAM err.
This is due to trdp_pdPut check that fails when data size is different than published data size.

Discussion

  • Kalle Ranki

    Kalle Ranki - 2015-04-01

    tau_setEcspCtrl should tlp_republish instead of tlpPut

     
  • Kalle Ranki

    Kalle Ranki - 2015-04-01

    Patched to republish and allow removing data with NULL data parameter.
    Still needs input if it is better to use tlp_put if we change data, but not data size.

     
  • Armin-Hagen Weiss

    There is the feature that allows to initialise the publishing of PD without sending it already. This was partly connected to dataSize == 0. The correct behaviour is, that tlp_publish gets the correct data size but in case sending shall not start yet pData == NULL. With the update also tlp_publish, tlp_put and trdp_pdPut are supporting correctly this feature.

     
  • Armin-Hagen Weiss

    • labels: --> 1395
    • status: open --> closed
    • Milestone: 1.2.0.0 --> 1.3.0.0
     

Log in to post a comment.

MongoDB Logo MongoDB