Page 1 of 1

ESP32 Advertising Interval

Posted: Tue Jun 30, 2020 1:25 pm
by WardMas
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.

Re: ESP32 Advertising Interval

Posted: Thu Jul 02, 2020 8:07 am
by WardMas
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.