Skip to main content

why device stop adv self

10 months ago

why device stop adv self

Posted bymoiify0 points 1 reply
0 upvotes

i set the adv adv parameter :

user_default_hnd_conf.adv_scenario = DEF_ADV_FOREVER

and start the adv. In most time,it works right。But When I turned on a lot of devices and keep the device working continuously, I found that it sometimes would stop broadcasting itself。i have add the protect code,but the the device will still stop adv and cannot be restored.

void ble_selfCorrect(void) { { static uint32_t adv_times = 0; if(setting.mode == BLE_MODE_ADV && setting.isconnected == 0) { adv_times++; // one second add one time if(adv_times > 600) { adv_times = 0; app_easy_gap_advertise_stop(); app_easy_timer(500,ble_start_adv); } } else { adv_times = 0; } } }

10 months ago

PM_Dialog

Hi moiify,

>>>But When I turned on a lot of devices and keep the device working continuously

Could you please clarify this? Do you mean another DA14585s which advertise at the same time? If yes, are you using same BD addresses?

I would suggest to run your project in debug mode and check if the code is getting crashed (NMI, assertion, hardfoault etc. ) . Then, add a BKPT into your code and check if is hits.

Are you using a custom project, or any of the SDK example? What is the SDK version? Is it SDK6.0.14?

Thanks, PM_Dialog