Hi All,
Are there any tutorials showing doing a DFU on a central device(scanner) from a peripheral(advertiser) device?
Hi All,
Are there any tutorials showing doing a DFU on a central device(scanner) from a peripheral(advertiser) device?
Hi,
Can you say a bit more about the use case?
There are no tutorials or examples of that. If the peripheral device is for instance a phone in this case, then perhaps you could make the central switch to acting as a peripheral when doing DFU (and use phone as central).
Hi Einar,
I have a group of nodes with nRF52840. It is communicating with a central gateway also made with nRF52840. The gateway changes advertising payload specifically for each nodes to initiate connection and data exchange happens. Now i would like to do DFU from gateway(advertiser) to the nodes(scanner) after connection if necessary and reboot the node after successful DFU.
I see. That is certainly possible. I do not see a reason why you cannot switch roles between central/peripheral, and if you do, then you can use the example bootloader as is in peripheral mode. If not, you would have to adapt the bootloader implementation to switch the roles. Another thing you need to do regardless of approach is to write the DFU master code. Nordic does not provide a DFU master implementation in C, only implementations for PC and mobile devices.
So, for updating firmware we need to switch role and do the update. That is the procedure. right? Let me see if can find a way to do it with my application. Thank you very much for the support.
Yes, that is correct.