Replies: 7 comments 3 replies
-
Hi @xG3nesis! We appreciate you submitting your first issue for our open-source project. 🌟 Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙 |
Beta Was this translation helpful? Give feedback.
-
Currently, ESP32 does not have good support for BR/EDR under Zephyr. You can modify the code as follows: index fb323c5532..04c9df0c7b 100644 --- a/zephyr/esp32/include/bt/esp_bt.h +++ b/zephyr/esp32/include/bt/esp_bt.h @@ -132,7 +132,7 @@ the adv packet will be discarded until the memory is restored. */ #elif defined(CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY) #define BTDM_CONTROLLER_MODE_EFF ESP_BT_MODE_CLASSIC_BT #else -#define BTDM_CONTROLLER_MODE_EFF ESP_BT_MODE_BLE +#define BTDM_CONTROLLER_MODE_EFF ESP_BT_MODE_BTDM #endif #ifdef CONFIG_BTDM_CTRL_AUTO_LATENCY_EFF @@ -181,7 +181,7 @@ the adv packet will be discarded until the memory is restored. */ #define CONFIG_BTDM_CTRL_PCM_ROLE_EFF 0 #define CONFIG_BTDM_CTRL_PCM_POLAR_EFF 0 -#ifdef CONFIG_BT_BREDR +#ifdef CONFIG_BT_CLASSIC #define CONFIG_BTDM_CTRL_BR_EDR_MAX_SYNC_CONN_EFF CONFIG_BT_MAX_SCO_CONN #define CONFIG_BTDM_CTRL_BR_EDR_MAX_ACL_CONN_EFF 2 #else @@ -190,7 +190,6 @@ the adv packet will be discarded until the memory is restored. */ #endif #define CONFIG_BTDM_CTRL_FULL_SCAN_SUPPORTED 1 #define BT_CONTROLLER_INIT_CONFIG_DEFAULT() { \
` |
Beta Was this translation helpful? Give feedback.
-
Hello @jtyao ! I have some additional questions regarding my main objective, which is to transfer audio recorded on my Atom Echo to my devices. Currently, the Zephyr stack doesn't support the I2S protocol on the ESP32, so I plan to use the ESP-IDF libraries with the Zephyr stack. My question is: can I use the A2DP/Handsfree profile implemented on the Zephyr stack (BR/EDR) to transfer audio? Do you think that there would be any hardware/implementation issues ? I understand that Zephyr has Audio LE libraries, but my board only supports Bluetooth 4.2, not the Bluetooth 5.2 version required for audio over Bluetooth Low Energy. Thank you once more for your help, you are my sensei ! 🙏 |
Beta Was this translation helpful? Give feedback.
-
Hello xG3nesis: |
Beta Was this translation helpful? Give feedback.
-
Thank you for your prompt answer ! |
Beta Was this translation helpful? Give feedback.
-
It should be possible to run it, as the OPUS-encoded audio data with a 16kHz sample rate and 20ms duration only amounts to 80 bytes, which is well within the bandwidth capabilities of BLE for transmission. |
Beta Was this translation helpful? Give feedback.
-
@jtyao thanks for the suggestions above. |
Beta Was this translation helpful? Give feedback.
-
Hello guys !
I'm attempting to run the
samples/bluetooth/handsfree
example on my M5Stack Atom Echo which has quite the same architecture than the M5Stack Atom Lite, I've just removed the useless lines on the devicetree to create one for my board. Everything is building and flashing okay, but when it runs on my board, I've the following error :This is what my DTS looks like :
I am running this example on the M5Stack Atom Echo, which features an ESP32-PICO-D4 and typically supports Bluetooth BR/EDR version 4.2.
Atom Echo documentation !
To Reproduce
Steps to reproduce the behavior:
west build -p always -b m5stack_atom_echo/esp32/procpu samples/bluetooth/handsfree
west flash
west espressif monitor
Environment (please complete the following information):
I am unable to initialize the Bluetooth service on my ESP32 and I don't understand the source of the error. I'm quite a noob, so I'm really sorry if I've misunderstood a step or any kind of information that might help me to run the "handsfree" example.
Thank you in advance for your help ! 😄
Beta Was this translation helpful? Give feedback.
All reactions