ESP32 Bluetooth SPP

For general Flowcode discussion that does not belong in the other sections.
Post Reply
Alan_37
Posts: 118
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 34 times
Been thanked: 16 times

ESP32 Bluetooth SPP

Post 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?

BenR
Matrix Staff
Posts: 1706
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: ESP32 Bluetooth SPP

Post 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.

Alan_37
Posts: 118
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 34 times
Been thanked: 16 times

Re: ESP32 Bluetooth SPP

Post 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?
Attachments
sdkconfig.rar
(8.88 KiB) Downloaded 104 times
Flowcode1.fcfx
(15.9 KiB) Downloaded 113 times

Alan_37
Posts: 118
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 34 times
Been thanked: 16 times

Re: ESP32 Bluetooth SPP

Post by Alan_37 »

So is this a bug ? or i am doing something wrong ?

Alan_37
Posts: 118
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 34 times
Been thanked: 16 times

Re: ESP32 Bluetooth SPP

Post by Alan_37 »

Any help on this, please?

BenR
Matrix Staff
Posts: 1706
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: ESP32 Bluetooth SPP

Post 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.

luibra63
Posts: 11
Joined: Thu Dec 03, 2020 10:30 pm
Has thanked: 1 time
Been thanked: 4 times

Re: ESP32 Bluetooth SPP

Post 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

Post Reply