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

How can I merge the DFU and UART peripheral all into the experimental multiperipheral design?

I have a design which mainly needs to be a peripheral, however I was told that I need to use the multi-pheripheral example as I may need the device to switch to a central at times. If there is a way to connect 2 peripherals together and be in 1 central environment that is really my goal I think. I will be adding another piece of hardware which may or may not be nrf52810 based as that only supports a peripheral connection. My main trouble in general is how to combine the peripheral UART function over BLE into this along with the DFU as I believe that is all one app correct or the DFU sits in a different project and as well a different FLASH memory address? AS well if its not that difficult I would like to add pairing however this is not a hard requirement especially right now. I hope this makes sense!!!

  • If there is a way to connect 2 peripherals together and be in 1 central environment that is really my goal I think.

    Take a look at the BLE Multi-link Example, it shows how one central can be connected to several peripherals simultaneously.

    My main trouble in general is how to combine the peripheral UART function over BLE into this along with the DFU as I believe that is all one app correct or the DFU sits in a different project and as well a different FLASH memory address?

    You don't need to merge the DFU and the application, as they are two separate applications programmed onto flash at different locations. However, you would need a way to enter DFU mode. The main ways of doing it either by holding Button 4 during startup (See step 6 in this and this link), or by using a buttonless approach (Take a look at the Buttonless DFU Template Application).

    AS well if its not that difficult I would like to add pairing however this is not a hard requirement especially right now.

    Take a look at the Peer Mananger Library, which is used to manage BLE Security, including pairing. The Peer Manager Usage section demonstrates how to implement pairing to your application.

    Could you please try to explain your problem more clearly, I don't think I understand what you are really trying to do.

    Best regards,

    Simon

Related