Hello together,
just a add on in relation to the BT connectivity.
I testet some samart phone Android BT terminal APP´s.
"Bluetooth Terminal HC-05" Pro or non Pro Version works and is stable with my ESP-32.
BR
Dirk
Bluetooth spp does't work in ESP32
-
- Posts: 89
- http://meble-kuchenne.info.pl
- Joined: Fri Dec 04, 2020 11:03 am
- Has thanked: 6 times
- Been thanked: 12 times
-
- Valued Contributor
- Posts: 984
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 105 times
- Been thanked: 516 times
Re: Bluetooth spp does't work in ESP32
I'm trying to get Bluetooth working on a Heltec wifi kit 32.
I altered the sdkconfig as per previous posts but I get linker errors:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP/ESP_CAL_BT_SPP.c:210: undefined reference to `esp_bt_gap_pin_reply'
h:/.espressif/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP/ESP_CAL_BT_SPP.c:214: undefined reference to `esp_bt_gap_pin_reply'
h:/.espressif/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/main/libmain.a(esp-project.c.obj): in function `esp_spp_cb':
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP/ESP_CAL_BT_SPP.c:138: undefined reference to `esp_bt_gap_set_scan_mode'
Trimmed for readability - but there are several of the 'undefined reference' errors on linking..
Anyone got this working?
As an aside - the forum search function ignores a lot of words (for example I can't search for esp32 bluetooth) - I'd prefer to get lot's of results than none?
Martin
I altered the sdkconfig as per previous posts but I get linker errors:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP/ESP_CAL_BT_SPP.c:210: undefined reference to `esp_bt_gap_pin_reply'
h:/.espressif/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP/ESP_CAL_BT_SPP.c:214: undefined reference to `esp_bt_gap_pin_reply'
h:/.espressif/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/main/libmain.a(esp-project.c.obj): in function `esp_spp_cb':
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP/ESP_CAL_BT_SPP.c:138: undefined reference to `esp_bt_gap_set_scan_mode'
Trimmed for readability - but there are several of the 'undefined reference' errors on linking..
Anyone got this working?
As an aside - the forum search function ignores a lot of words (for example I can't search for esp32 bluetooth) - I'd prefer to get lot's of results than none?
Martin
-
- Matrix Staff
- Posts: 1463
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 514 times
- Been thanked: 473 times
Re: Bluetooth spp does't work in ESP32
I fully agree with Martin.
Search on the Martrix forums for bluetooth and you get
Code: Select all
Search found 642 matches: bluetooth
Code: Select all
The following words in your search query were ignored because they are too common words: bluetooth.
Martin
-
- Matrix Staff
- Posts: 1269
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 168 times
- Been thanked: 283 times
Re: Bluetooth spp does't work in ESP32
Regarding the search issue, I've changed the threshold level for common words from 5% to 30% so you shouldn't have this problem in the future.
-
- Valued Contributor
- Posts: 760
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 150 times
- Been thanked: 171 times
Re: Bluetooth spp does't work in ESP32
Hi Ben
I have tried all the tips listed here but no success.
There are no errors when compiling, but neither my computer nor my phone can find the bluetooth signal.
I tried two different modules without success
regards
Stefan
I have tried all the tips listed here but no success.
There are no errors when compiling, but neither my computer nor my phone can find the bluetooth signal.
I tried two different modules without success
regards
Stefan
-
- Valued Contributor
- Posts: 760
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 150 times
- Been thanked: 171 times
Re: Bluetooth spp does't work in ESP32
Hi Ben
It's working again with the M5 Atom board.
But I don't know why.
I guess, because every time I rename the program or copy it to another folder I have to redefine the two lines in the sdkconfig file.
On this occasion I would like to mention the simple drag and drop of Flowcode for ESP32 Bluetooth. You don't need a pin or baud rate and you never confuse about rx and tx pin. And simple to choose a Bt name. Also to check if it's connected is so easy.
regards
Stefan
It's working again with the M5 Atom board.
But I don't know why.
I guess, because every time I rename the program or copy it to another folder I have to redefine the two lines in the sdkconfig file.
On this occasion I would like to mention the simple drag and drop of Flowcode for ESP32 Bluetooth. You don't need a pin or baud rate and you never confuse about rx and tx pin. And simple to choose a Bt name. Also to check if it's connected is so easy.
regards
Stefan
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
- Attachments
-
- FC9_M5STACK_Modul_Atom_BT.fcfx
- (9.25 KiB) Downloaded 204 times
-
- BT-ok.png (97.92 KiB) Viewed 5678 times
-
- Matrix Staff
- Posts: 1756
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 446 times
- Been thanked: 606 times
Re: Bluetooth spp does't work in ESP32
Hi Stefan,
Glad you've got it working now. I would like to revisit Bluetooth on the ESP32 soon and get some of the more modern Bluetooth profiles working. Would you have any need for anything specific to be supported?
Glad you've got it working now. I would like to revisit Bluetooth on the ESP32 soon and get some of the more modern Bluetooth profiles working. Would you have any need for anything specific to be supported?
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: 760
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 150 times
- Been thanked: 171 times
Re: Bluetooth spp does't work in ESP32
Hi Ben
A small wish, is to read the uniq ID from the Bluetooth part.
Yes the A2DP is an option
This enables me to stream my measurement data directly into Audacity. I had done this many years ago with a Microchip module.
Of course you can also send sound, to some bluetooth speaker.
regards
Stefan
A2DP (Advanced Audio Distribution Profile) is a Bluetooth protocol that enables a headset to stream high quality stereo audio wirelessly from a smartphone or other compatible device. The quality of the audio is much better, both for calls and for music playback.
A small wish, is to read the uniq ID from the Bluetooth part.
Yes the A2DP is an option
This enables me to stream my measurement data directly into Audacity. I had done this many years ago with a Microchip module.
Of course you can also send sound, to some bluetooth speaker.
regards
Stefan
A2DP (Advanced Audio Distribution Profile) is a Bluetooth protocol that enables a headset to stream high quality stereo audio wirelessly from a smartphone or other compatible device. The quality of the audio is much better, both for calls and for music playback.
-
- Valued Contributor
- Posts: 760
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 150 times
- Been thanked: 171 times
Re: Bluetooth spp does't work in ESP32
Hi Ben
I have two wish more...
1. A command to set the RF Power from the Bluetooth (to reduce it).
2. I have a recorder with 2 external Sensor, all the 3 are programmed with Flowcode and ESP32.
When I turn on all the 3, the recorder should connect automatically with the 2 sensors. It's always a set and the distance between the recorder and sensor is just about 0.5meter. In the recorder is permanently programmed the same two sensors it has to be connected
This funktion can also be used if just 2 ESP32 boards need to be connected by Bluetooth, without a computer or a user input.
regards
Stefan
I have two wish more...
1. A command to set the RF Power from the Bluetooth (to reduce it).
2. I have a recorder with 2 external Sensor, all the 3 are programmed with Flowcode and ESP32.
When I turn on all the 3, the recorder should connect automatically with the 2 sensors. It's always a set and the distance between the recorder and sensor is just about 0.5meter. In the recorder is permanently programmed the same two sensors it has to be connected
This funktion can also be used if just 2 ESP32 boards need to be connected by Bluetooth, without a computer or a user input.
regards
Stefan
-
- Valued Contributor
- Posts: 760
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 150 times
- Been thanked: 171 times
Re: Bluetooth spp does't work in ESP32
Hi Ben
What about a files transfer protocol?
OBEX-FTP File Transfer Profile
regards
Stefan
Bluetooth file transfer is a simple way to send files to another nearby Bluetooth device without the need for a separate app. Bluetooth is compatible with smartphones, tablets, laptops, and desktop computers. Files can be transferred over Bluetooth using Android OS, Fire OS, Blackberry OS, Windows OS, Mac OS, and Linux OS.
What about a files transfer protocol?
OBEX-FTP File Transfer Profile
regards
Stefan
Bluetooth file transfer is a simple way to send files to another nearby Bluetooth device without the need for a separate app. Bluetooth is compatible with smartphones, tablets, laptops, and desktop computers. Files can be transferred over Bluetooth using Android OS, Fire OS, Blackberry OS, Windows OS, Mac OS, and Linux OS.