nRF5 SDK is not maintained anymore
More Info: Consider nRF Connect SDK for new designs

BEACON switch ESB

Hi. 

nRF52-DK board use. (PCA10040)

* now system : bootloader + softdevice + Beacon application     ->> working fine. good.

* new system : Swtiching ESB or Beacon 

I would like to receive support for the following:

1. bootloader -> application -> Read GPIO -> Beacon Run

2. bootloader -> application -> Read GPIO -> ESB Run

GPIO(push button) read. -> choice function

I want example. 

Parents
  • Hi,

    There is no official example for this, but what you are describing is quite straight-forward, as the decision on ESB or BLE is taken initially by reading a GPIO. That means that your application decides initially if it should initialize the SoftDevice and use BLE, or if it should not initialize the SoftDevice and instead use ESB.

    As SoftDevice / BLE projects are a bit more complex, I suggest you start of with a SoftDevice example project, and add in ESB dependencies. I did a quick and dirty merge of the Beacon Transmitter Sample Application and the ESB transmitter example from SDK 17.1.0 which you can refer to: . This is simply a merge of the two, so there are many things that should be improved, but this should work and shows you how this can be done.

Reply
  • Hi,

    There is no official example for this, but what you are describing is quite straight-forward, as the decision on ESB or BLE is taken initially by reading a GPIO. That means that your application decides initially if it should initialize the SoftDevice and use BLE, or if it should not initialize the SoftDevice and instead use ESB.

    As SoftDevice / BLE projects are a bit more complex, I suggest you start of with a SoftDevice example project, and add in ESB dependencies. I did a quick and dirty merge of the Beacon Transmitter Sample Application and the ESB transmitter example from SDK 17.1.0 which you can refer to: . This is simply a merge of the two, so there are many things that should be improved, but this should work and shows you how this can be done.

Children
No Data
Related