why device stop adv self

Learn MoreFAQsTutorials

2 posts / 0 new
Last post
moiify
Offline
Last seen:4 weeks 1 day ago
加入:2020-03-12 07:26
why device stop adv self

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; } } }

Device:
PM_Dialog
Offline
Last seen:4 hours 36 min ago
工作人员
加入:2018-02-08 11:03
Hi moiify,

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