Directional broadcast problem

1 post / 0 new
Michaelxiao
Offline
Last seen:1 year 10 have a line
Joined:The 2015-12-09 02:57
Directional broadcast problem

Hi Dialog,

My side using the sps_device and sps_host routines, to the host machine from one to one matching, please guide, what code changes?The following changes have been made in the sps_device at present:

1, app. CMD in c - > op. The code set as directional broadcast model.
The static struct gapm_start_advertise_cmd * app_easy_gap_undirected_advertise_start_create_msg (void)
{
/ / the Allocate a message for the GAP
If (adv_cmd = = NULL)
{
CMD struct gapm_start_advertise_cmd *;
CMD = app_advertise_start_msg_create ();
Adv_cmd = CMD;

CMD - > op. Code = GAPM_ADV_DIRECT;
CMD - > op. Addr_src = user_adv_conf. Addr_src;
CMD - > op. Renew_dur = user_adv_conf. Renew_dur;
If (user_adv_conf addr_src = = GAPM_PROVIDED_RND_ADDR)
{
...
...
}

2, app_default_handlers. C in do the following modifications
Void default_advertise_operation (void)
{
If (user_default_hnd_conf adv_scenario = = DEF_ADV_FOREVER)
App_easy_gap_directed_advertise_start ();
Else if (user_default_hnd_conf adv_scenario = = DEF_ADV_WITH_TIMEOUT)
App_easy_gap_directed_advertise_with_timeout_start (user_default_hnd_conf advertise_period, NULL);
}

Code, made the modified, burn into the chip, using the caught caught tools, didn't catch broadcast data.Is this change what's wrong?What also need to be amended in sps_host?

Device: