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

How to increase number of subscription address to 16?

Hi Nordic:

We are using mesh-sdk2.2, our application need a device can subscribe many group address, at the most we need 16 subscribe address in a model, 

1. I'd like to ask how to modify the number of subscribe address number? Is changing DSM_NONVIRTUAL_ADDR_MAX and ACCESS_SUBSCRIPTION_LIST_COUNT ?

2. I try to modify DSM_NONVIRTUAL_ADDR_MAX and ACCESS_SUBSCRIPTION_LIST_COUNT to 10 in nrf_mesh_config_app.h of proxy_server example, it looks I can set subscribe address up to 10, but if I modify to 16, there is a compile assert in access.c

NRF_MESH_STATIC_ASSERT(ACCESS_SUBS_LIST_FLASH_SIZE < ACCESS_MODEL_STATE_FLASH_SIZE && ACCESS_MODEL_STATE_FLASH_SIZE > ACCESS_ELEMENTS_FLASH_SIZE);

The assert is happen in red text.

I want to ask why has this compile checking? can I set subscribe number to 16?

Thanks.

Parents
  • Hi,

    In order to increase the number of addresses to subscribe to, you should not need to increase ACCESS_SUBSCRIPTION_LIST_COUNT. That value is for describing how many models would need to store a subscription list. If you do not increase the number of models, you do not need to increase this value either. (See also the documentation comment for ACCESS_SUBSCRIPTION_LIST_COUNT in nrf_mesh_config_app.h, which you find for instance under examples/light_switch/client/include/)

    You will typically get that assert if you do increase ACCESS_SUBSCRIPTION_LIST_COUNT, but you did not increase ACCESS_MODEL_COUNT. In your case it seems neither of them should be increased.

    Regards,
    Terje

Reply
  • Hi,

    In order to increase the number of addresses to subscribe to, you should not need to increase ACCESS_SUBSCRIPTION_LIST_COUNT. That value is for describing how many models would need to store a subscription list. If you do not increase the number of models, you do not need to increase this value either. (See also the documentation comment for ACCESS_SUBSCRIPTION_LIST_COUNT in nrf_mesh_config_app.h, which you find for instance under examples/light_switch/client/include/)

    You will typically get that assert if you do increase ACCESS_SUBSCRIPTION_LIST_COUNT, but you did not increase ACCESS_MODEL_COUNT. In your case it seems neither of them should be increased.

    Regards,
    Terje

Children
No Data
Related