Create a custom model in nrf mesh.

I am Creating a custom model for my application  using the chat client example.    My project is based on checking the battery percentage of a device using this model. So what are the steps that need to be taken while creating this model.  Also how to change the model name using the model ID. I have checked the vendor model development example. is there any other method to make the model.

Parents
  • Hi,

    The chat model implementation may be a good reference for making your own models, since it is a vendor specific model. I highly recommend that you have a look at the Chat sample walk-through, which explains how the chat model works and how it is implemented. With the walk-through, and studying the code, you should get a solid understanding of how it works and how to modify it towards what you need.

    I also recommend looking at the implementations of other mesh models, to see how to implement a typical server/client type model. Please remember that the difference between the SIG defined models and a vendor specific one, is basically the model ID and the size of the opcode for messages. This means you could base your model off of any of the existing models, provided that you change to using 3 byte opcodes for the messages, and use a proper model ID.

    Regards,
    Terje

Reply
  • Hi,

    The chat model implementation may be a good reference for making your own models, since it is a vendor specific model. I highly recommend that you have a look at the Chat sample walk-through, which explains how the chat model works and how it is implemented. With the walk-through, and studying the code, you should get a solid understanding of how it works and how to modify it towards what you need.

    I also recommend looking at the implementations of other mesh models, to see how to implement a typical server/client type model. Please remember that the difference between the SIG defined models and a vendor specific one, is basically the model ID and the size of the opcode for messages. This means you could base your model off of any of the existing models, provided that you change to using 3 byte opcodes for the messages, and use a proper model ID.

    Regards,
    Terje

Children
No Data
Related