How to create custom / vendor model for ble mesh using nrf connect sdk v2.2.0?

I'm attempting to use a vendor or custom model to deliver sensor data through a ble mesh using a nrf52840dk board. On Ubuntu, I'm using the nrf connect sdk v2.2.0. i have reviewed the vendor documentation available and have tried modifying chat sample by nordic and "on_off_lvl_lighting_vnd_app" example by zephyr, but couldn't do it. I'm still learning, can you recommend a good way for me to make a custom model?

My board does not appear in the list of unprovisioned nodes when I try to run the "on off lvl lighting vnd app" example as it is provided by Zephyr, yet I do not receive any errors in the output console.

Parents
  • Hi Aditya, 

    I would assume that you have studied other samples before trying to create your vendor specific model ? Have you tested with mesh light_switch and the mesh light sample ? Please study how to define a server and a client from the samples. 

    To learn how to define vendor specific model, I agree that besides the vendor documentation, the on_off_lvl_lighting_vnd_app and chat sample would be the best sources. They unfortunately don't show both client and server , only server on on_off_lvl_lighting_vnd_app and client on chat sample. 

    If you look at the on_off_lvl_lighting_vnd_app you can find the server is defined in device_composition.c file , please look for "vnd" in the code. When you press a button publish() function in publisher.c will be called. And if VND_MODEL_TEST is defined the code will publish the status to 1 or 0 depends on the button press. 

    To run the on_off_lvl_lighting_vnd_app in NCS v2.2.0 you would need to remove: 

    CONFIG_BT_CTLR_ADV_EXT=n 
    Or set it to y. 
Reply Children
No Data
Related