Dear Dialog
Call app_easy_gap_directed_advertise_start method in SDK5.0 version cannot be broadcast-oriented, view current situation found to broadcast the first 3 seconds and then sleep
/ * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* @ brief, Create advertising message for directed connection.
* @ return gapm_start_advertise_cmd Pointer to the advertising message
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* /
The static struct gapm_start_advertise_cmd * app_easy_gap_directed_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;
If (USER_CONFIG)
{
CMD - > op. Code = user_directed_advertise_conf. Advertise_operation;
CMD - > op. Addr_src = user_directed_advertise_conf. Address_src;
CMD - > channel_map = user_directed_advertise_conf. Channel_map;
CMD - > intv_min = 1100;
CMD - > intv_max = 1120;
CMD - > info. Host. Mode = GAP_GEN_DISCOVERABLE;
ASSERT_WARNING (user_directed_advertise_conf advertise_operation = = GAPM_ADV_DIRECT);
CMD - > info. Direct.. Addr_type = user_directed_advertise_target_address_conf addr_type;
Memcpy (CMD - > info. Direct. Addr. Addr, user_directed_advertise_target_address_conf. Addr, BD_ADDR_LEN);
}
The else
Memcpy (CMD (void *) (void *) & default_dir_adv_cmd, sizeof (default_dir_adv_cmd));
}
Return (adv_cmd);
}
Excuse me, where is the above configuration is not correct;thank you
Directional broadcast based on bluetooth standard specification, see 4.4.2.4 Connectable Directed Event Type this section.
"The Link Layer shall exit The Advertising State no later than 1.28 s after The Advertising State was rose."
That is not received within 1.28 s connection request, it no longer hair directional broadcast packets.