Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

BSP_INDICATE_SCANNING - period 2 s or 4.4 s

In the description of example BLE Heart Rate Collector, it says that it can indicate state BSP_INDICATE_SCANNING and state BSP_INDICATE_CONNECTED.

In the description of BSP indication states for PCA10040 and PCA10056 it says that BSP_INDICATE_SCANNING is LED1 blinking with period 2 seconds and duty cycle 10 %.

When I run the BLE Heart Rate Collector example on PCA10040, LED1 is blinking with period 4.4 seconds and duty cycle 10 %. This is strange since

1. Accordning to the description of BSP indicate states, this blinking indicates BSP_INDICATE_ADVERTISING_SLOW.

2. The description of the example does not mention BSP_INDICATE_ADVERTISING_SLOW.

3. A Heart Rate Collector wouldn't advertise.

Can you explain this?

 

Parents
  • Thank you for the thorough explanation and investigation. There seems to have been made some simplifications in bsp_led_indication()  by combining BSP_INDICATE_SCANNING and BSP_INDICATE_ADVERTISING, but this has not been taken into consideration in 

    next_delay = indicate ==
    BSP_INDICATE_ADVERTISING ? ADVERTISING_LED_OFF_INTERVAL :
    ADVERTISING_SLOW_LED_OFF_INTERVAL;

    This will cause the INDICATE_SCANNING to always go to "slow" mode  which is 4.4 seconds.

    I have reported this issue internally, and we'll look at whether we will update the documentation or SDK to reflect this. Thank you again!

    Best regards,

    Simon

Reply
  • Thank you for the thorough explanation and investigation. There seems to have been made some simplifications in bsp_led_indication()  by combining BSP_INDICATE_SCANNING and BSP_INDICATE_ADVERTISING, but this has not been taken into consideration in 

    next_delay = indicate ==
    BSP_INDICATE_ADVERTISING ? ADVERTISING_LED_OFF_INTERVAL :
    ADVERTISING_SLOW_LED_OFF_INTERVAL;

    This will cause the INDICATE_SCANNING to always go to "slow" mode  which is 4.4 seconds.

    I have reported this issue internally, and we'll look at whether we will update the documentation or SDK to reflect this. Thank you again!

    Best regards,

    Simon

Children
No Data
Related