Skip to content

esp_bt_init falied : 259 #11181

Open
@Admsher

Description

@Admsher

Board

ESP32 CHIP

Device Description

ESP32 One : https://www.waveshare.com/wiki/ESP32_One

Hardware Configuration

OV2460 Camera with SD Card reader, Classic BT and TLS enabled

Version

latest master (checkout manually)

IDE Name

ESP-IDF v5.3

Operating System

Windows 11

Flash frequency

40 Mhz

PSRAM enabled

yes

Upload speed

115200

Description

I am currently using an A2DP library : https://github.com/pschatzmann/arduino-audio-tools
This library need arduino-eps32 to run some of it's program and also i had initially written my code on Arduino IDE and then migrated to ESP-IDF.
I went through this related issue with the same error : #3436
This has put me in doubt that if the issue above is solved in the latest version of esp-idf , if not , there is a workaround provided in the issue but I am not sure how to use it in my case.

Sketch

#define HELIX_LOGGING_ACTIVE false
#include "AudioTools.h"
#include "AudioTools/AudioLibs/A2DPStream.h"
#include "AudioTools/AudioLibs/AudioSourceSDFAT.h"
#include "AudioTools/AudioCodecs/CodecMP3Helix.h"

const char *startFilePath="/music/";
const char* ext="mp3";
AudioSourceSDFAT source(startFilePath, ext, 15);
A2DPStream out;
MP3DecoderHelix decoder;
AudioPlayer player(source, out, decoder);

void setup() {
  Serial.begin(115200);
  AudioToolsLogger.begin(Serial, AudioToolsLogLevel::Warning);
  // setup player
  // Setting up SPI if necessary with the right SD pins by calling 
  SPI.begin(14, 12, 13, 15);
  player.setVolume(0.8);
  player.begin();

  // setup output - We send the test signal via A2DP - so we conect to a Bluetooth Speaker
  auto cfg = out.defaultConfig(TX_MODE);
  cfg.silence_on_nodata = true; // prevent disconnect when there is no audio data
  cfg.name = "CLIP 5";  // set the device here. Otherwise the first available device is used for output
  //cfg.auto_reconnect = true;  // if this is use we just quickly connect to the last device ignoring cfg.name
  out.begin(cfg);
}

void loop() {
  player.copy();
}

Debug Message

Please go through this issue I created in : https://github.com/pschatzmann/arduino-audio-tools/issues/1977

Other Steps to Reproduce

Pleas apply this configuration: https://github.com/pschatzmann/ESP32-A2DP/wiki/Espressif-IDF-as-a-Component
and it should lead you to the error i am stuck with.

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions