This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to add ota service by using bluetooth mesh and nrf52840

Hi,

      Now I'm using window10,nrf52840 and nrfSDKforMESHV3.1.0, and I want to achieve ota fonction within two nrf52840,I had read the Software Development Kit > Previous versions of nRF5 SDK for Mesh > nRF5 SDK for Mesh v1.0.1 > Getting started,but finally I found that I should use the command:

nrfutil dfu serial -pkg dfu_test.zip -p <COM port> -b 115200 -fc --mesh

So can I finsh dfu service just like buttonless_dfu service insdk15.3.0?By example, using moblie phone to control the ota service,

by the way, I don't know what should I should in this step:

All dfu-enabled mesh devices require a device page that contains information about
the device and the firmware that is installed on the device.The device page is 
generated using the device_page_generator.py script file available in the tools/dfu 
folder. 
This script file uses bootloader_config_default.json file to prepare the device 
page. The public key obtained above must be inserted in this JSON object.

To add the public key information to the bootloader configurator JSON, create a new property named "public_key" and assign the concatenated values of the Qx and the Qy strings to this key. For example:

{
    "bootloader_config": {
        "bootloader_id": 1,
        "bootloader_version": 1,
        "company_id": 89,
        "application_id": 1,
        "application_version": 1,
        "public_key": "ed09a58df6db5cd15b8637304f31d31f4042492ed7c7e4839fbe903f260a2ba1a855e92b72885825481ad56282bcf549ad7455ec46f000f0f62d97eeec883ba6"
    }
}

I just need to modify the file bootloader_config_default.json?(add the public key?),Looking forward to your reply

best regards,

zhong

Parents Reply Children
Related