BLE Advertising

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

BLE Advertising

2,264件の閲覧回数
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,234件の閲覧回数
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 件の賞賛
返信