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

Secure DFU over mesh

Hello,

I was trying to perform DFU over mesh. My setup was as followings:

7 nrf52832 Devies. One of them is connected to my laptop.

I programmed those according to this 

But i made only one change and that is public key in the device page.

Lets say,  three of them having  public key 1 and rest of them having public key 2. 

Now i have created a dfu package with respective private key(key1) of public key 1.  While performing dfu operation , i see that some progress on my screen. It finishes with following messages:

[####################################] 100% DFU upgrade took 70.0579998493s
Closing serial port...

Closing serial port...
Device programmed.

But no device is programmed actually(no one blinks with blinky example) 

Now i have couple of questions to ask:

1) Why no devices were updated( I was expecting devices with public key 1 to be successfully update, am i right?)   

2) They did not update the firmware but they participated in dfu operation( I saw all devices even with different public keys are in dfu mode).  My question is, if gateway is not programmed with respective public key why it forward dfu packets? Should not it just ignore all DFU packets  in first place ?

  • Hi,

    1) Yes, that would be expected. But even if it says that the DFU upgrade is finished 100%, it might take a while before it is finished sending between the nodes. You can try waiting couple minutes(2-3) and see if it works.

    2) No, the gateway will still forward DFU packets even if it is not programmed with the repective key.

    I suggest you to have a look at Hung's answer in this post, think it will give you answer on how you can do this.

Related