How to use code for Bluetooth mesh dfu instead of shell

I used ncs2.9.1. I download the mesh dfu distributor and mesh dfu target examples to two devices respectively, and successfully updated the mesh node through shell commands. However, I couldn't find a way to control this update process through code, such as registering firmware, adding receiving nodes, and other necessary processes. Can these steps only be performed through shell commands? This is very inconvenient

In addition, there are few instructions on how to use shell commands for mesh dfu. Even if I ask your Nordic AI assistant questions, they often give me incorrect answers. I searched for a long time before finally testing successfully

Parents
  • Hi, 

    The Mesh DFU functionality in nRF Connect SDK is primarily designed to be controlled through shell commands as shown in the documentation. These shell commands are wrappers around the underlying API functions that implement the DFU functionality. The shell approach provides flexibility in how you control the DFU process while still leveraging the standardized Bluetooth Mesh DFU and BLOB Transfer models for the actual firmware distribution. 

    You can check the Bluetooth Mesh Shell for mesh dfu and the command used in the DFU over Bluetooth Mesh

    Regards,
    Amanda H.

Reply
  • Hi, 

    The Mesh DFU functionality in nRF Connect SDK is primarily designed to be controlled through shell commands as shown in the documentation. These shell commands are wrappers around the underlying API functions that implement the DFU functionality. The shell approach provides flexibility in how you control the DFU process while still leveraging the standardized Bluetooth Mesh DFU and BLOB Transfer models for the actual firmware distribution. 

    You can check the Bluetooth Mesh Shell for mesh dfu and the command used in the DFU over Bluetooth Mesh

    Regards,
    Amanda H.

Children
No Data
Related