Skip to main content
ABN
Associate III
March 9, 2025
Solved

Beaconing advertisement

  • March 9, 2025
  • 1 reply
  • 435 views

Hi all,

I'm referring to the BLE_Beacon example project. I figured out that we need to start the advertisement and then attach the required payload/service_data. Is there any minimum set of advertisement packets to be broadcasted in-order to see the payload??

aci_gap_set_discoverable -> aci_gap_delete_ad_type -> aci_gap_update_adv_data
The above-mentioned steps happen during a single advertisement event?

 

/* Put the device in a non-connectable mode. */
 ret = aci_gap_set_discoverable(ADV_NONCONN_IND, /*< Advertise as non-connectable, undirected. */
 AdvertisingInterval, AdvertisingInterval, /*< Set the advertising interval as 700 ms (0.625 us increment). */
 GAP_PUBLIC_ADDR, NO_WHITE_LIST_USE, /*< Use the public address, with no white list. */
 0, NULL, /*< Do not use a local name. */
 0, NULL, /*< Do not include the service UUID list. */
 0, 0); /*< Do not set a slave connection interval. */

 if (ret != BLE_STATUS_SUCCESS)
 {
 return ret;
 }

 /* Remove the TX power level advertisement (this is done to decrease the packet size). */
 ret = aci_gap_delete_ad_type(AD_TYPE_TX_POWER_LEVEL);

 if (ret != BLE_STATUS_SUCCESS)
 {
 return ret;
 }

 /* Update the service data. */
 ret = aci_gap_update_adv_data(sizeof(service_data), service_data);

 if (ret != BLE_STATUS_SUCCESS)
 {
 return ret;
 }

 

Best answer by STTwo-32

Hello @ABN 

I suggest you have a look at the STM32WBA Bluetooth® Low Energy – Beacon - stm32mcu wiki. This one should help you too understand the concept and configurations of the Beacon app.

Best Regards.

STTwo-32

1 reply

STTwo-32
STTwo-32Best answer
Technical Moderator
March 24, 2025

Hello @ABN 

I suggest you have a look at the STM32WBA Bluetooth® Low Energy – Beacon - stm32mcu wiki. This one should help you too understand the concept and configurations of the Beacon app.

Best Regards.

STTwo-32