Hello guys, first to all thanks for the last version flowcode v9. In this days I am testing some examples with new version. I detect that when I try to use a Bluetooth spp the system show issue.
I have a module ESP32 DEV KIT V1
The message of the compiler is the following:
#warning "esp_event_loop.h is deprecated, please include esp_event.h instead"
^~~~~~~
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\includes.c:55,
from ../main/esp-project.c:97:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_BT_SPP.c:42:10: fatal error: esp_bt.h: No such file or directory
#include "esp_bt.h"
^~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
Executing action: all (aliases: build)
Running ninja in directory c:\users\jomag\desktop\pruebas_esp32\bt\build
Executing "ninja all"...
ninja failed with exit code 1
Build Failed
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ESP\Batch\esp32_build.bat reported error code 0x1
Autoclose turned off
FINISHED
Bluetooth spp does't work in ESP32
-
- Posts: 10
- http://meble-kuchenne.info.pl
- Joined: Sat Dec 05, 2020 6:34 pm
-
- Matrix Staff
- Posts: 1926
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 501 times
- Been thanked: 684 times
Re: Bluetooth spp does't work in ESP32
Hello,
Hmm I'll have to check this I thought I switched bluetooth on for all targets but obviously I missed one.
To switch it on you can simply edit the sdkconfig file inside the Project compilation directory using a text editor.
The Bluetooth section should look something like this.
Hmm I'll have to check this I thought I switched bluetooth on for all targets but obviously I missed one.
To switch it on you can simply edit the sdkconfig file inside the Project compilation directory using a text editor.
The Bluetooth section should look something like this.
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
CONFIG_BTDM_CTRL_BLE_MAX_CONN=3
CONFIG_BTDM_CTRL_BR_EDR_SCO_DATA_PATH_EFF=0
CONFIG_BTDM_CTRL_BLE_MAX_CONN_EFF=3
CONFIG_BTDM_CTRL_BR_EDR_MAX_ACL_CONN_EFF=0
CONFIG_BTDM_CTRL_BR_EDR_MAX_SYNC_CONN_EFF=0
CONFIG_BTDM_CTRL_PINNED_TO_CORE_0=y
# CONFIG_BTDM_CTRL_PINNED_TO_CORE_1 is not set
CONFIG_BTDM_CTRL_PINNED_TO_CORE=0
CONFIG_BTDM_CTRL_HCI_MODE_VHCI=y
# CONFIG_BTDM_CTRL_HCI_MODE_UART_H4 is not set
#
# Bluedroid Options
#
CONFIG_BT_BTC_TASK_STACK_SIZE=3072
CONFIG_BT_BLUEDROID_PINNED_TO_CORE_0=y
# CONFIG_BT_BLUEDROID_PINNED_TO_CORE_1 is not set
CONFIG_BT_BLUEDROID_PINNED_TO_CORE=0
CONFIG_BT_BTU_TASK_STACK_SIZE=4096
# CONFIG_BT_BLUEDROID_MEM_DEBUG is not set
CONFIG_BT_CLASSIC_ENABLED=y
# CONFIG_BT_A2DP_ENABLE is not set
CONFIG_BT_SPP_ENABLED=y
# CONFIG_BT_HFP_ENABLE is not set
CONFIG_BT_SSP_ENABLED=y
CONFIG_BT_BLE_ENABLED=y
CONFIG_BT_GATTS_ENABLE=y
# CONFIG_BT_GATTS_PPCP_CHAR_GAP is not set
# CONFIG_BT_GATTS_SEND_SERVICE_CHANGE_MANUAL is not set
CONFIG_BT_GATTS_SEND_SERVICE_CHANGE_AUTO=y
CONFIG_BT_GATTS_SEND_SERVICE_CHANGE_MODE=0
CONFIG_BT_GATTC_ENABLE=y
# CONFIG_BT_GATTC_CACHE_NVS_FLASH is not set
CONFIG_BT_BLE_SMP_ENABLE=y
# CONFIG_BT_SMP_SLAVE_CON_PARAMS_UPD_ENABLE is not set
# CONFIG_BT_STACK_NO_LOG is not set
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Posts: 10
- Joined: Sat Dec 05, 2020 6:34 pm
Re: Bluetooth spp does't work in ESP32
Hello BenR,
Thanks but I don't know how to find this sdkconfig file. Write down this issue and fix it when you can.
Regards.
Thanks but I don't know how to find this sdkconfig file. Write down this issue and fix it when you can.
Regards.
-
- Matrix Staff
- Posts: 1926
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 501 times
- Been thanked: 684 times
Re: Bluetooth spp does't work in ESP32
Hello,
When you compile your flowcode project it will create a folder with the same name in the project directory. The file is inside that folder.
So if your project is called Flowcode1 then the file will be in Flowcode1/sdkconfig
Hope this helps.
I cannot currently easily update the batch files that control this functionality on your machine so it's something that may take a little time for us to solve at this end.
When you compile your flowcode project it will create a folder with the same name in the project directory. The file is inside that folder.
So if your project is called Flowcode1 then the file will be in Flowcode1/sdkconfig
Hope this helps.
I cannot currently easily update the batch files that control this functionality on your machine so it's something that may take a little time for us to solve at this end.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Valued Contributor
- Posts: 447
- Joined: Mon Dec 07, 2020 1:00 pm
- Has thanked: 81 times
- Been thanked: 243 times
Re: Bluetooth spp does't work in ESP32
Hi,
For the change to be permanent for devkitv1 targets,
copy the customised sdkconfig to devkitv1_sdkconfig in
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ESP\Batch
Ben,
The problem is due to the fact that devkitv1_sdkconfig seems to be missing from
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ESP\Batch

For the change to be permanent for devkitv1 targets,
copy the customised sdkconfig to devkitv1_sdkconfig in
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ESP\Batch
Ben,
The problem is due to the fact that devkitv1_sdkconfig seems to be missing from
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ESP\Batch

-
- Posts: 10
- Joined: Sat Dec 05, 2020 6:34 pm
Re: Bluetooth spp does't work in ESP32
Hello again, I changed sdkconfig file from my project and now the compiler doesn't show the mistake, so now the code seems correct.
However if try to test the example doesn't work.
My example is very simple, attach file.
You can see in my example, only initialise module BT and check status only. If status is connected led pin 2 (ON), if not connected led pin 2 (OFF)
Very easy but doesn't work.
Thanks and regards.
However if try to test the example doesn't work.
My example is very simple, attach file.
You can see in my example, only initialise module BT and check status only. If status is connected led pin 2 (ON), if not connected led pin 2 (OFF)
Very easy but doesn't work.
Thanks and regards.
- Attachments
-
- EASY_CHECK_BT_ESP32.jpg (70.19 KiB) Viewed 24931 times
-
- Matrix Staff
- Posts: 1926
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 501 times
- Been thanked: 684 times
Re: Bluetooth spp does't work in ESP32
Hello,
It might be worth trying to change the target device in the Project Options, then save the project with a new name and this will do a full re-compile for you and hopefully work ok with a different target device setup. I tested the Bluetooth SPP here and it works very well so hopefully it's still due to a config issue with the devkit.
It might be worth trying to change the target device in the Project Options, then save the project with a new name and this will do a full re-compile for you and hopefully work ok with a different target device setup. I tested the Bluetooth SPP here and it works very well so hopefully it's still due to a config issue with the devkit.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Valued Contributor
- Posts: 997
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 190 times
- Been thanked: 217 times
Re: Bluetooth spp does't work in ESP32
Hi Ben, Hi flowjmaria
On my heltec (esp32 board), BT is compiling nice, but not working. Not one of my computer can see (found) the BT from the board.
regards
Stefan
On my heltec (esp32 board), BT is compiling nice, but not working. Not one of my computer can see (found) the BT from the board.
regards
Stefan
-
- Posts: 10
- Joined: Sat Dec 05, 2020 6:34 pm
Re: Bluetooth spp doesn't work in ESP32
Hello everyone, although I tested different programs and choosing different devices (ESP32, ESP32S, ESP WROOM 32) keep seening the same problem.
The bluetooth classic doesn't work.
All programs compiled properly but does'nt work.
When I see the message of compiler I think that something strange happend:
attach file in case you can help me.
I can tell that my module esp32 work ok since I tested this module with other software.
anyway, I waiting other new modules that I want to test with flowcode.
Regards.
The bluetooth classic doesn't work.
All programs compiled properly but does'nt work.
When I see the message of compiler I think that something strange happend:
attach file in case you can help me.
I can tell that my module esp32 work ok since I tested this module with other software.
anyway, I waiting other new modules that I want to test with flowcode.
Regards.
- Attachments
-
- message compiler.txt
- (17.85 KiB) Downloaded 1189 times
-
- Valued Contributor
- Posts: 997
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 190 times
- Been thanked: 217 times
Re: Bluetooth spp does't work in ESP32
Hi Ben
Little problem with the Bt Modul and SPP .
When I turn on the Modul my phone can found a Bt Modul with Number
B8:78:2E:17:42:12
But I expect:
Flowcode BT SPP
And my phone can not connect,
I looked in the file and was surprised that only ble is switched on
Can you have a look and what about more BT commands like read mac adress from the BT Modul?
regards
Stefan
Little problem with the Bt Modul and SPP .
When I turn on the Modul my phone can found a Bt Modul with Number
B8:78:2E:17:42:12
But I expect:
Flowcode BT SPP
And my phone can not connect,
I looked in the file and was surprised that only ble is switched on
Can you have a look and what about more BT commands like read mac adress from the BT Modul?
regards
Stefan
#
# Bluetooth controller
#
CONFIG_BTDM_CTRL_MODE_BLE_ONLY=y
- Attachments
-
- sdkconfig.txt
- (49.9 KiB) Downloaded 1144 times