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

NRF Bluetooth Mesh Models

Hello,

I'm trying to develop custom model for my bluetooth mesh application. I have gone through Creating new models document and I understood the procedure. But to integrate it into a complete application I have referred to this link. When I use segger embedded studio to build a server side model, I'm getting many errors. I'm using nrf5 sdk v17.0 and nrf5 sdk for mesh v4.2.0. How relevant is this link with respect to above mentioned sdk versions. If I can't use that link, can you guide me how to integrate my model into a custom application, can you provide me with any simple examples?

Thanks,

Shyam Joshi

Parents
  • Hi Shyam, 
    The link you pointed to was for SDK v1.0 which is very old. 

    I would suggest you to have a look at the light switch example where we used the generic on off model.
    We provided the simple_on_off model located inside \models\vendor\simple_on_off. This is a custom model that we created as an example. 


    Your job is to base on how we initialize and use generic on off model to do the same with simple on off model. You can choose to remove the generic on off or not but the point is to integrate the simple on off model in to your application. 

  • typedef struct __attribute((packed))
    {
    uint8_t on_off; /**< State to set */
    uint8_t tid; /**< Transaction number for application */
    uint8_t transition_time; /**< Encoded transition time value */
    uint8_t delay; /**< Encoded message execution delay in 5 millisecond steps */
    } generic_onoff_set_msg_pkt_t;

    1. Can you please explain what is the use of transition_time and delay members from the above structure?

    2. access_model_add_params_t structure has a member publish_timeout_cb of type access_publish_timeout_cb_t, Can you explain what is the purpose of this callback function? 

    3. I want to program a node as a relay node which acts as intermediary node to expand the network coverage for server-client model. Can you guide me on this? 

  • Hi,

    The same questions were asked and answered here: nRF Mesh

    Please keep further discussion there.

    Regards,
    Terje

Reply Children
No Data
Related