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

timing Enhanced Shock Burst protocol nRF52

Hello all,

I try to find out how long some configurations of the Enhanced Shock Burst protocol take time. I am working with the nRF52 Development Kits.

Some timings I want to figure out are:

  • initialization of ESB protocol
  • set prefix address
  • change device type from PTX to PRX

My idea to measure the time is to use a timer, capture timer value before initialization function call and after.

My results are so far values in the range of a few micro seconds. I cannot believe that after this short time the ESB is ready for transmission/receiving. So I suppose in background the initialization process is running further while the called function returns a NRF_SUCCESS. Can anybody confirm this behaviour? Or is it guarantied that the peripharel is initialized after the called initialization function returns a Success?

Thanks in advance,

Florian

Parents
  • Hi

    Initializing the library is very quick since you don't start the radio until you actually have something to transmit or receive.

    In PTX mode the radio will be turned on as soon as you upload a new packet to the TX FIFO.

    In PRX mode you have to run the nrf_esb_start_rx() function after initializing the library, to have the radio enter receive mode.

    These functions will also return before the operation is complete, and the initialization of the radio will happen in the background while the MCU is free to do other things.

    Best regards, Torbjørn

Reply
  • Hi

    Initializing the library is very quick since you don't start the radio until you actually have something to transmit or receive.

    In PTX mode the radio will be turned on as soon as you upload a new packet to the TX FIFO.

    In PRX mode you have to run the nrf_esb_start_rx() function after initializing the library, to have the radio enter receive mode.

    These functions will also return before the operation is complete, and the initialization of the radio will happen in the background while the MCU is free to do other things.

    Best regards, Torbjørn

Children
No Data
Related