-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
esp_ble_tx_power_set - Documentation unclear (IDFGH-363) #2390
Comments
I just did test to answer your question. My rig is:
Maybe its problem with antenna on your esp32 board or with smartphone. |
Many thanks for taking the time to test and answer me. I will now try a different configuration and see if anything changes. |
After ble init but before start advertising. |
I can confirm it works; I was able to scan and connect to my ESP32 from a ~30m range (I can't get further away while keeping a clear path). I was probably having issues with obstacles. Initially I was trying it indoors, but apparently even a corridor corner is enough to severely cripple the signal strength. The documentation problem however still holds:
I am still confused about the "only be set after connection created" bit. What does it mean? I set the tx power right after |
Hello @chegewara, I tried to add : My esp32 model is WROOM-32. My code ( client ) is :
and my server code on the other esp32 :
Thanks in advance Thomas |
@thomasmeon first try to upload server code to both esp32 and see with nRF connect or any other tool if they both are advertising with the same RSSI from the same distance. If all is ok then try to upload server and client to esp32 and if still is not working as you expecting try to switch code and flash server and client apps to the other esp32. As you can see all is working for me and @Maldus512 , its issue with obstacles but i am assuming you dont have any obstacles if you are testing in range 1 m. |
@chegewara Hey, |
@chegewara Thanks for your help. |
@Weijian-Espressif I have no more questions, thank you for your time |
@Maldus512 Thanks for reporting the issue. Feel free to reopen the issue if this issue still exists. Thanks. |
Environment 4.17.14-arch1-1-ARCH x86_64 GNU/Linux
Problem Description
How do I increase the transmission/advertisement range of the ESP32 as BLE device beyond 10 meters?
I'm trying to use the ESP32 as a GATT server communicating with a smartphone. The datasheet states (https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf , section 1.3) that the esp32 should be able to transmit as class-1 device without external power amplifier, which means around 100m range.
I am however unable to achieve this.
The documentation is somewhat lacking, the only references I could find being:
I am simply adding the function call on the connection established event (as described in the docs) in the gatt_server example. My only addition is here:
I've tried every possible value power_type argument since I couldn't understand what a "connection handle" is.
This task should be simple enough, can anyone point me in the right direction? Is it possible at all to transmit further than 10 meters?
The text was updated successfully, but these errors were encountered: