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

BLE s130-advertisement interval not following value in APP_ADV_INTERVAL

gaps.zip

Hi, I have a code that continuously toggles a pin(I use nrf_drv of gpiote+ppi+timer2 for this purpose and interrupt time = 30usec). I have basically taken the gpiote example and added ble_uart_peripheral code on top of it. I can see the advertisement packets. I have set advertisement interval (APP_ADV_INTERVAL = 500msec). I can see gpio toggling for 500msec. At the end of 500msec I can receive advertisement packets to the Nordic Master control panel app. But this advertisement packets mostly happens once in ~265msec instead of once in 500msec. I have changed APP_ADV_INTERVAL to 3 seconds, even then sometimes I see advertisement packets coming once in ~265msec. Also I noticed that just after sending the advertisement packet, there is a gap (meaning no gpio toggling) for ~265msec. Please find the attached code and cro capture.

[Newfile4.png](/attachment/221450599f83be5845642e9473e66903

gaps.zip

I am using s130, nrf51822xxaa ver nrf examples: 10.0.0; nrf libraries, nrf drivers and nrf ble : 3.1.0