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

Mesh will connect automatically or not

Hello All

i flashed one of the example in following mesh SDK "ble_mesh_v0.9.1-Alpha_2" SDK , I testing light control example code while testing i have got some doubt in the example code .

Example source code support 4 nRF51 DK,3 server and client ,if i want plugin one more module in same mesh network ,i has to do any change in the source code or not required

If we increase the nRF51 DK mash will form automatically or user has to give any input in the source code

Could please help me

thanks Ameer

Parents
  • Hi Ameer,

    I suggest that you read through the nRF5x SDK for Mesh doucumention, found here.

    Specifically, I recommend taking a look at the How to build a network section, found here. The Light Control Client example implements the following procedure

    1. Initialize:
        Core mesh stack
        Device state manager
        Access layer
        (Optional) Load flash configuration.
    2. Listen for unprovisioned beacons.
    3. Provision device.
    4. Configure device.
    5. If more devices should join the network, go back to step 2.
    

    where the number of nodes in the network is defined by

    #define SERVER_COUNT (3)
    #define CLIENT_COUNT (SERVER_COUNT + 1)
    

    so if you want to add more servers then just increase the SERVER_COUNT.

    Best regards

    Bjørn

  • Hi Bjørn, Ameer,

    You'll also need to scale the numbers in the light control client's nrf_mesh_config_app.h header.

    /* Number of client models:
     * - 1 per directly controlled server
     * - 1 for group control
     * - 1 configuration client model
     */
    #define ACCESS_MODEL_COUNT SERVER_COUNT + 2
    /* Each instance of the same model needs a separate element:
     * - 1 per Simple OnOff client
     */
    #define ACCESS_ELEMENT_COUNT SERVER_COUNT + 1
    /* You need one key per device provisioned */
    #define DSM_DEVICE_MAX SERVER_COUNT
    /* One unicast address per server plus one group address. */
    #define DSM_NONVIRTUAL_ADDR_MAX SERVER_COUNT + 1
    

    I'll report that this is a bit unclear internally and we'll try to make it easier to understand how it call connects :)

    Best, Thomas

Reply
  • Hi Bjørn, Ameer,

    You'll also need to scale the numbers in the light control client's nrf_mesh_config_app.h header.

    /* Number of client models:
     * - 1 per directly controlled server
     * - 1 for group control
     * - 1 configuration client model
     */
    #define ACCESS_MODEL_COUNT SERVER_COUNT + 2
    /* Each instance of the same model needs a separate element:
     * - 1 per Simple OnOff client
     */
    #define ACCESS_ELEMENT_COUNT SERVER_COUNT + 1
    /* You need one key per device provisioned */
    #define DSM_DEVICE_MAX SERVER_COUNT
    /* One unicast address per server plus one group address. */
    #define DSM_NONVIRTUAL_ADDR_MAX SERVER_COUNT + 1
    

    I'll report that this is a bit unclear internally and we'll try to make it easier to understand how it call connects :)

    Best, Thomas

Children
No Data
Related