Based on mesh3.1 sdk15.2 Can I add DFU service to light switch server? Used to upgrade firmware via APP nrf Connect?
I added a dfu service to the light switch server with the following error: mesh assert at 0x002D4A2
How to solve this problem?
Based on mesh3.1 sdk15.2 Can I add DFU service to light switch server? Used to upgrade firmware via APP nrf Connect?
I added a dfu service to the light switch server with the following error: mesh assert at 0x002D4A2
How to solve this problem?
Hi,
The DFU for Mesh is not the same as the DFU in the nRF5 SDK. You can't upgrade the firmware via the nRF Connect app. The application can be updated over the mesh using side-by-side mode DFU, it is transferred in the background. I recommend you to have a look at the DFU example in the Mesh SDK. Also read more about DFU for Mesh on this page and it's subpages.
Hi
I have completed the test of the mesh dfu example, but I want to upgrade the firmware with ota-dfu. Is there any way?
Currently we haven't implemented a solution for doing OTA DFU with nRF Connect. I think is possible to implement this yourself, but the easiset way is to do DFU over a serial interface for mesh right now. You can have a look at this post.
Edit: We do have an example that uses BLE DFU. Have a look at this example, it will give you an idea on how to implement this.
Hi Mttrinh
1. Open the nrf5_SDK_for_Mesh_v3.1.0_src\examples\experimental_lpn example
2. Change #define BLE_DFU_SUPPORT_ENABLED 0 to 1
3. Compile the project
4. The debug log is as follows:
00> <t: 0>, main.c, 521, ----- BLE Mesh LPN Demo ----- 00> <t: 0>, app_error_weak.c, 119, Mesh error 4 at 0x00000000 (:0)
I have not made any changes to this project. Why do I get this error with dfu? How to solve it?
Hi,
Error 4 is NRF_ERROR_NO_MEM. You need to allocate more memory for the DFU.