ESP32 Advertising Interval

WardMas
Posts: 12
Joined: Fri Jun 19, 2020 9:09 am

ESP32 Advertising Interval

Postby WardMas » Tue Jun 30, 2020 1:25 pm

Hello friends,
I have two questions related to esp_ble_adv_params_t structure parameters which are adv_int_min and adv_int_max. Now after starting advertising by executing esp_ble_gap_start_advertising();, The specified data in esp_ble_adv_data_t structure starts to be advertised when ESP_GAP_BLE_SCAN_RSP_DATA_SET_COMPLETE_EVT interrupt occur. how does the BT core decides when to send an advertisement. I mean the time duration between adv_int_min and adv_int_max can be more than a second right? The second question is that at the instant when the BT core is going to send an advertisement, where does the program counter go ? In the shared figure, I am toggling a GPIO pin. while the ESP32 is advertising data through BLE, there is interference in the toggled pin signal so why is that happening.
Thank you.
Attachments
BLE adv.PNG
BLE adv.PNG (68.1 KiB) Viewed 241 times
You can always visit my Youtube channel for hardware tutorials
https://www.youtube.com/channel/UC5zdou ... subscriber

WardMas
Posts: 12
Joined: Fri Jun 19, 2020 9:09 am

Re: ESP32 Advertising Interval

Postby WardMas » Thu Jul 02, 2020 8:07 am

to whoever sees this post, I could solve the problem by running Manual UART handling functions on Core 1 and BLE is already running on Core 0 (defult settings). This made the whole system more stable and robust.
You can always visit my Youtube channel for hardware tutorials
https://www.youtube.com/channel/UC5zdou ... subscriber

Who is online

Users browsing this forum: No registered users and 18 guests