why device stop adv self

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
moiify
Offline
Last seen:2 months 4 days 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:42分钟前1天
Staff
加入: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