When i enable BLE_DFU_SUPPORT_ENABLED 1 and debug i have problem Mesh error 4 at 0x00000000 (:0).
I'm using sdk: 17.0.2, sdk_for_mesh: 5.0.0. Board nRF52840 DK.
Thanks you for support.
When i enable BLE_DFU_SUPPORT_ENABLED 1 and debug i have problem Mesh error 4 at 0x00000000 (:0).
I'm using sdk: 17.0.2, sdk_for_mesh: 5.0.0. Board nRF52840 DK.
Thanks you for support.
Hi Sơn,
As the log may suggest, have you flashed the BLE bootloader ?
You would need to flash the BLE bootloader as instructed here.
Hi Hung,
I don't know step 4 "merge the bootloader HEX file and the bootloader settings HEX file". where can i find or how to generate bootloader settings Hex file.
Thanks you for reply me.
Hi Son,
It's described at step 1.e in the same page , you need to use nrfutil to generate bootloader setting. https://infocenter.nordicsemi.com/topic/ug_nrfutil/UG/nrfutil/nrfutil_settings_generate_display.html?cp=10_7_6
However, you don't need to generate bootloader setting if you simply want to test the bootloader. I would suggest to follow my blog here on how to test the bootloader and get familiar with the bootloader before you testing it with the LPN mesh.
Thanks you so much. I will follow your blog. So I have a question. In example Light_Switch, other than sending the onoff message, can i send another message, for example "hello"?
Hi Son,
Yes, but you would need to define your own model. Have a look at the simple_on_off model. You need to define your own payload data , to add a byte array there.
Hi Son,
Yes, but you would need to define your own model. Have a look at the simple_on_off model. You need to define your own payload data , to add a byte array there.
Hi Hùng,
To use simple_on_off, i just need to change function "models_init_cb", "mesh_init" in main.c, right? And which funcion will send my message? I see uint32_t simple_on_off_client_set(simple_on_off_client_t * p_client, bool on_off), it send bool message but not send string message.
Please study the generic on off example to know how to implement a model in your application.
You can just refine the payload, so instead of a bool variable, you can define a byte array.
Hi Hung,
I add vendor model. So how to use this model and refine the payload. Sorry for my ignorance. Please help me.

Have you tried to provide the opcode that you used in your model and the payload ?
I would suggest to print out the log inside access.c , please look for the logging ("RX:" ) inside mesh_msg_handle() , you can print out the raw message that you receive on access layer. From that you can check if you receive the packet from the phone or not, and if the opcode is correct or not.
If that works, you can start to customize the nRF Mesh app interface , the source code for the app is available on our github.
Hi Hung,
I can send and receive uint16_t message, but when i using app to turn on, it not work. How do i fix it.