minimum time between stop and start advertise

3 posts / 0 new
Last post
Jonas Freitas
Offline
Last seen:3 years 1 month ago
Joined:2014-11-14 12:23
minimum time between stop and start advertise

Good Morning,

I am developing an application with DSPS running on Da14580, and it receives commands via uart an external microcontroller, such as stop and start advertise advertise. I found that there is a minimum time between stop and start advertise advertise, if not the same not start the publication, would have a minimum time indicated?

Another question is whether there is any way to check for status, if ble stack this publishing or not, because I would like to implement a command to my main microcontroller check this status?

Device:
Gongyu_Dialog
Offline
Last seen:1 week 3 days ago
Joined:2016-04-27 07:07
you can check the function

you can check the function gapm_cmp_evt_handler. I think after waiting the corresponding gamp_cmp_evt , you can call another operation for start or stop.

regarding question 2, you may set a status bit in the function when you start advertising procedure.

int gapm_cmp_evt_handler(ke_msg_id_t const msgid,
struct gapm_cmp_evt const *param,
ke_task_id_t const dest_id,
ke_task_id_t const src_id)
{

switch(param->operation)
{
.......
// Advertising finished
case GAPM_ADV_UNDIRECT: //****************************
{
arch_printf(“% s,操作:0 x % x,状态:0 x %, dest_id:0x%x,src_id:0x%x\n",
__func__,param->operation,param->status,dest_id,src_id);
EXECUTE_CALLBACK_PARAM(app_on_adv_undirect_complete, param->status);
}
break;

Jonas Freitas
Offline
Last seen:3 years 1 month ago
Joined:2014-11-14 12:23
right, I did it and solved my

right, I did it and solved my issue.
thank you