Bluetooth Crash on connect

phando
Posts: 24
Joined: Wed Dec 14, 2016 5:30 am

Bluetooth Crash on connect

Postby phando » Tue Mar 20, 2018 3:59 pm

Hello,
I am trying to get Bluetooth working and not getting very far. The example code all of the net is the same. When my devices reboot every time connect is called.

Code: Select all

pClient->connect(pAddress);


Have any of you seen this behavior. Bluetooth is kind of what led me to the ESP32 in the first place, it would be a bummer to not be able to use it.

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: Bluetooth Crash on connect

Postby chegewara » Tue Mar 20, 2018 7:15 pm

If you are using this library, then better is to open issue on github.
https://github.com/nkolban/esp32-snippets

JV_Boum
Posts: 1
Joined: Thu Dec 07, 2017 4:49 pm

Re: Bluetooth Crash on connect

Postby JV_Boum » Fri Mar 23, 2018 7:04 am

I got these reboot with 2 differents esp32 dev board using either Arduino or ESP32 IDF script.

If your ESP32 device work fine without BT you might have a power problem.
BT required more current.. then voltage get down below a threshold that trigger a software protection that trigger a reboot.
I received a msg 'Brownout detector was triggered' at each reboot.

I solved the problem by adding an electrolytic capacitor of 1000 micro Farads (16v) between Vin pin (5v input) and Gnd.
I also add an electrolytic capacitor of 47 micro Farads (16v) between 3v3 pin and Gnd, you can use a 100 microFarads also.
Put the capacitor respecting polarities.
????
When I used only WiFi, it runs OK but when I used BT only I got Brownout.
It is paradoxal that BT use more current then WiFi ??

Who is online

Users browsing this forum: Bing [Bot] and 225 guests