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

How to make beacon connectable

Hi Nordic,

I am trying to implement DFU-OTA in beacon. For that I am trying to make beacon connectable. My requirement is to work the beacon in non-connectable mode during normal operation whereas for implementing DFU, I need to make it connectable by using a button press.

What I have implemented - when a button is pressed, I stop the advertising and start the connectable advertising.

Issue faced- I am not able to perform DFU. My reasoning is that, since I have copied the DFU relevant code snippets from working example code, there is nearly no chance of error in DFU part. So I am guessing the issue lies with transition from non-connectable to connectable mode.

Is my implementation for connectable mode correct?If there is a better way of implementing the following, please suggest..

Parents
  • Hi Hung, I have implemented in the following manner -

    I am generating an interrupt using a button. When the button is pressed, the device stops advertising (non connectable by default) and starts advertising in connectable mode.

    I flashed the softdevice and bootloader from the nrfgo studio. I flashed the application using DFU. when I press the button, the device switches from non-connectable mode to connectable mode. when I press the DFU icon, it gives the following notifications-

    Starting DFU->Starting Bootloader->Connecting(stays here for some time)->Disconnecting->Connecting(again stays here for some time)->Disconnecting->DFU failed and stops advertising .

Reply
  • Hi Hung, I have implemented in the following manner -

    I am generating an interrupt using a button. When the button is pressed, the device stops advertising (non connectable by default) and starts advertising in connectable mode.

    I flashed the softdevice and bootloader from the nrfgo studio. I flashed the application using DFU. when I press the button, the device switches from non-connectable mode to connectable mode. when I press the DFU icon, it gives the following notifications-

    Starting DFU->Starting Bootloader->Connecting(stays here for some time)->Disconnecting->Connecting(again stays here for some time)->Disconnecting->DFU failed and stops advertising .

Children
No Data
Related