BLE Advertising

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

BLE Advertising

2,259 次查看
hbburnha
Contributor I

I am trying to change the timing of the BLE advertising, the current program sends data about once a second, I want to decrease to about once per minute. I was wondering if there was a way in the source code to change that, which I have attached below. The board is a QN9080-DK and i am debugging using a J-link

0 项奖励
回复
1 回复

2,229 次查看
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi,

In power_profiling.c you can find that the advertising type is set to slow advertisement (slowAdvState_c), inside the BleApp_Start function.

When slowAdvState_c is selected, the BleApp_Advertise function sets the advertising interval time to the value of the gReducedPowerMinAdvInterval_c macro:

gAdvParams.minInterval = gReducedPowerMinAdvInterval_c;
gAdvParams.maxInterval = gReducedPowerMinAdvInterval_c;

The definition of this macro can be found in power_profiling.h and while you can modify its value, please be aware that you should use the pre-defined time intervals to comply with the BLE time specifications and constraints and ensure the correct behavior of the application.

Regards,
Eduardo.

0 项奖励
回复