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

ble advertising

Hi everyone,

I am trying to advertise data from nrf52832 to a smartphone (nRF Connect).

Below are my advertising parameters.

ble_adv_modes_config_t options = {0}; options.ble_adv_fast_enabled = BLE_ADV_FAST_ENABLED; options.ble_adv_fast_interval = 32; options.ble_adv_fast_timeout = 0;

The device broadcasts for 3 min and then stops advertising when I use Motorolla or iPhone.

If I use a Mi phone, then the advertising doesn't stop after 3 min. it advertises infinitely,

Parents
  • Hi Smit, I agree with Joakim. The advertising duration of your peripheral is totally independent of type of phone you are using to connect. You may be interested to know that there is normally a #define APP_ADV_TIMEOUT_IN_SECONDS in the main.c file that defines the advertising timeout. The default is 180 which sounds consistent with what you are seeing. This is based on my experiences with the nRF51422. Not sure if it is the same for your device. Good luck. Dino

Reply
  • Hi Smit, I agree with Joakim. The advertising duration of your peripheral is totally independent of type of phone you are using to connect. You may be interested to know that there is normally a #define APP_ADV_TIMEOUT_IN_SECONDS in the main.c file that defines the advertising timeout. The default is 180 which sounds consistent with what you are seeing. This is based on my experiences with the nRF51422. Not sure if it is the same for your device. Good luck. Dino

Children
Related