Page 1 of 1

ESP32 Bluetooth SPP

Posted: Wed Oct 06, 2021 12:42 pm
by Alan_37
Hi , I would like to use the esp32 Bluetooth on the help page it says "BT Legacy functionality must be switched on via the sdkconfig file"

but I don't have any idea how to do that anyone can help, please?

Re: ESP32 Bluetooth SPP

Posted: Wed Oct 06, 2021 1:41 pm
by BenR
Hello,

In the Flowcode project directory should be a folder that is created when you compile. Inside this folder is a file called sdkconfig.

Open this file with a text editor e.g. notepad++ and look for this section.
# Bluetooth
The default is that BLE_ONLY is enables and so need to change the setting to look like this instead.

Code: Select all

#
# Bluetooth
#
CONFIG_BT_ENABLED=y
#
# Bluetooth controller
#
# CONFIG_BTDM_CTRL_MODE_BLE_ONLY is not set
CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY=y
# CONFIG_BTDM_CTRL_MODE_BTDM is not set
Once you've done this save the config file and recompile the project.

Hope that helps.

Re: ESP32 Bluetooth SPP

Posted: Wed Oct 06, 2021 6:03 pm
by Alan_37
Hi Ben,

I have edited the file as you told me but I still can't see the esp when
I scan the Bluetooth for new devices.

Also, I noticed that if I Initialize WLAN and BT together the esp will not boot correctly and panic
can WLAN and Bluetooth be used together?

Re: ESP32 Bluetooth SPP

Posted: Fri Oct 08, 2021 10:29 am
by Alan_37
So is this a bug ? or i am doing something wrong ?

Re: ESP32 Bluetooth SPP

Posted: Mon Oct 18, 2021 1:13 pm
by Alan_37
Any help on this, please?

Re: ESP32 Bluetooth SPP

Posted: Mon Oct 18, 2021 4:18 pm
by BenR
Hello,

Reading around the subject it looks like BT and WIFI should be able to run at the same time on the ESP, but this does not specifically mention the EDR mode.

I'll see if I can find out any further info for you.

Re: ESP32 Bluetooth SPP

Posted: Sun Jan 02, 2022 12:12 am
by luibra63
Good morning
I have the same problem, I programmed the device with this file and modified the "sdkconfig" file as indicated but I don't see the ble on the phone; I noticed, however, that the modified and saved file, when I compile the next time the modification, the file returns as before the modification. do you have any news?
Best Regards