This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Losing publish timer resolution based on call of divide_publish_interval(..)

Hi

Using SDK for Mesh 4.0.0

I had a strange behaviour: Setting up a model with publication period 16s resulted to an interval of actually 10s. Multiples of 10s were working correct. So I assumed a resolution loss issue.

Changing the divide_publish_interval(..) function in the access.c as shown in the attached screenshot made it working. Can you confirm that this fix is necessary?

Thank you.

Regards, Timon

Parents
  • Some feedback from our developers; 

    This seems to be an issue on our side.
    Your fix seems to be fine. However, the proposed fix from our developers is as follows: 

    Instead of; 
    '<64' 
    '<640' 
    etc.. 

    You can use: 

    `<= ACCESS_PUBLISH_PERIOD_STEP_MAX`,
    `
    <= ACCESS_PUBLISH_PERIOD_STEP_MAX*10`,
    etc..

    Because the max value for each step resolution = ACCESS_PUBLISH_PERIOD_STEP_MAX * step resolution.

    Best regards, 
    Joakim Jakobsen

Reply
  • Some feedback from our developers; 

    This seems to be an issue on our side.
    Your fix seems to be fine. However, the proposed fix from our developers is as follows: 

    Instead of; 
    '<64' 
    '<640' 
    etc.. 

    You can use: 

    `<= ACCESS_PUBLISH_PERIOD_STEP_MAX`,
    `
    <= ACCESS_PUBLISH_PERIOD_STEP_MAX*10`,
    etc..

    Because the max value for each step resolution = ACCESS_PUBLISH_PERIOD_STEP_MAX * step resolution.

    Best regards, 
    Joakim Jakobsen

Children
No Data
Related