5 posts / 0 new
The Last post
randyzhou
Offline
Last seen:Three weekes four days a line
Joined:The 2014-02-20 07:09
Dynamic radio

Hi dialog
Dynamic broadcast after the broadcast, why can't connect, a connection terminal is crashed, but if have been broadcast dynamic data is ok, as long as don't connect events.

Device:
Gongyu_Dialog
Offline
Last seen:1 day 14 hours line
Joined:The 2016-04-27 07:07
Normal is ok.You can upload your modification project code?

Normal is ok.You can upload your modification project code?

randyzhou
Offline
Last seen:Three weekes four days a line
Joined:The 2014-02-20 07:09
Hi dialog:

Hi dialog:
Here is my modified demon code?Please analyse the reason. Thanks.

randyzhou
Offline
Last seen:Three weekes four days a line
Joined:The 2014-02-20 07:09
Hi dialog:

Hi dialog:
Because the code is large, I put the process probably and you said it.In broadcast function open APP_ADV_TIMER timer, timing time of 1 s, 1 s time, stop broadcasting.After the 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)
App_adv_undirect_complete function calls a function according to the news, as long as in pp_adv_undirect_complete this function, and add the app_adv_start ();Function, can appear connection crash phenomenon.Trouble you help to analyze

Int app_adv_timer_handler (ke_msg_id_t const msgid,
Void const * param,
Ke_task_id_t const dest_id,
Ke_task_id_t const src_id)
{

App_adv_stop ();

Return (KE_MSG_CONSUMED);
}

Void app_adv_undirect_complete (uint8_t status)
{

Ke_timer_clear (APP_ADV_TIMER TASK_APP);
App_adv_start ();
The return;
}

Gongyu_Dialog
Offline
Last seen:1 day 14 hours line
Joined:The 2016-04-27 07:07
Void app_adv_undirect

Void app_adv_undirect_complete (uint8_t status)
{

/ / ke_timer_clear (APP_ADV_TIMER TASK_APP);/ / into the timer function
If (status = = GAP_ERR_CANCELED)
{
App_adv_start ();
}
The return;
}