← index #8104Issue #6947
Off-topic · high · value 0.957
QUERY · ISSUE

ESP32: Setting Bluetooth TX power when initalizing BLE

openby ctschachopened 2021-12-20updated 2026-01-13
port-esp32

I had trouble connecting to a Bluetooth master running on an ESP32. After about 4m I couldn't get a reliable connection anymore.

After trying out different ESP32's and external antennas, I run across the following forum post:

https://forum.micropython.org/viewtopic.php?t=7733#p62651

He is increasing the Bluetooth power directly in the init function with the following two commands:

    esp_ble_tx_power_set(ESP_BLE_PWR_TYPE_DEFAULT, ESP_PWR_LVL_P9);
    esp_ble_tx_power_set(ESP_BLE_PWR_TYPE_ADV, ESP_PWR_LVL_P9);

And that actually solved the problem. Not sure what the default Bluetooth TX power is, but would there be a chance that you can set the TX power from the bluetooth init-function inside of MicroPython?

CANDIDATE · ISSUE

Ble, read more 20 bytes esp32 wroom32d. MTU not work

closedby rdaguerreopened 2021-02-21updated 2021-09-27
port-esp32

Hello, Sorry for my English.
I am making a connection to a blutooth BMS and I need to send a command to receive via notify that I have the data.
The thing is, I only get 20 bytes.
I don't know what else to change. I am not very knowledgeable in esp32 but I have been trying for many days to make it connect and now I have succeeded but I do not get out of these 20 reception bytes.
If anyone knows I would appreciate it.
regards

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied