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

Advertising interval and the LED blinking interval (in beacon example and ble_app_bps)

Dear Sir,

I am working with 

SDK  ---  nRF5_SDK_15.0.0_a53641a

softdevice -- s132

nrf52832.

I was working with example codes in the SDK folder.

I am working the example codes (ble_app_bps and ble_app_beacon) in SDK folder.

I flashed the ble_app_bps in to DK.

When I reset the device the LED will start turning ON and OFF.

Q1)  Whether this interval is related to advertising interval?Is the blinking interval same as advertising interval?

Q2) How can I change the advertising interval ?  Is it sufficient to change the value of 'APP_ADV_INTERVAL'.(in case of ble_app_bps) If I want to set Advertising interval as 5 , shall I set it to 8000 as follows?

#define APP_ADV_INTERVAL                8000

Is it correct?

So Now  I am expecting the LED should blink each 5 seconds . Is my understanding correct?..

Once I flash the ble_app_beacon to DK, it will show the LED blinking and a periodic interval.

And in case of ble_app_ beacon i will modify the value as follows

"NON_CONNECTABLE_ADV_INTERVAL    MSEC_TO_UNITS(5000, UNIT_0_625_MS)"  

to set the advertising interval as 5 seconds..Is that sufficient? Here also I am expecting the LED to blink every 5 seconds.Is my understanding correct?

I want to change the advertising interval and make sure that it is advertising at the interval of 5 seconds.How can I do that?

Thanking you in advance.

with regards,

Geetha

Parents
  • Hi, I could find out the following.

    The advetising interval (APP_ADV_INTERVAL)  and interval in which advertising LED blinks(ADVERTISING_LED_ON_INTERVAL and ADVERTISING_LED_OFF_INTERVAL )  are different. Now my confusion is how to confirm/check  that the advertising happens in the new time interval we set?

  • Correct, the LED blink interval is fixed. It's just to indicate that the device is advertising, not how fast/slow it does it. The easiest way to verify the actual advertisement interval is probably to scan for the device in the nRF connect app on Android or iOS. The double arrow (<--> x ms) listed below the device name corresponds to the adv. interval. Note that it may not be 100% accurate because the phone may miss an event now and then.     

Reply
  • Correct, the LED blink interval is fixed. It's just to indicate that the device is advertising, not how fast/slow it does it. The easiest way to verify the actual advertisement interval is probably to scan for the device in the nRF connect app on Android or iOS. The double arrow (<--> x ms) listed below the device name corresponds to the adv. interval. Note that it may not be 100% accurate because the phone may miss an event now and then.     

Children
No Data
Related