Search found 11 matches

by spacebiker
Wed Oct 04, 2023 8:40 am
Forum: Hardware
Topic: Flashing ESP32 using ESP32-S3
Replies: 1
Views: 1111

Flashing ESP32 using ESP32-S3

Hello everyone!
I have ESP32-S3 (host) that can be flashed through USB-UART, and two ESP32 connected to host. Is it possible to flash target ESP32 using ESP32-S3 via USB-UART?
Thank you!
by spacebiker
Tue Jun 13, 2023 2:51 pm
Forum: ESP-ADF
Topic: Full duplex pipeline
Replies: 0
Views: 4183

Full duplex pipeline

Hello! I have pipelines like this: First LyraT: [bluetooth] --> [i2s], Second LyaT: [i2s] --> [bluetooth], LyraTs are connected via i2s so it's like a bridge between wireless headphones and smartphone. But there is a microphone in the headphones and I want to send sound back, so pipeline should look...
by spacebiker
Wed May 24, 2023 10:20 am
Forum: ESP-IDF
Topic: BT A2DP event handling
Replies: 0
Views: 825

BT A2DP event handling

Hello everyone! I have bt -> i2s pipeline and i just noticed that i have a big delay between pushing stop button in my phone and real music stopping. I logged all events like that: void bt_handler(esp_a2d_cb_event_t ev, esp_a2d_cb_param_t* param) { gpio_set_level(DATA_PIN, dt); dt = !dt; ESP_LOGE(TA...
by spacebiker
Fri Jun 18, 2021 12:08 pm
Forum: ESP-ADF
Topic: How to swap pipelines correctly
Replies: 0
Views: 4518

How to swap pipelines correctly

I have inited two pipelines: i2s -> bt and i2s_r -> i2s_w. When wire headphones are inserted I want to stop first pipeline and start the second. I wrote the code below: if(event->cmd == JACK_INSERTED) { ESP_LOGW("_periph_event_handle", "Change pipeline to i2s"); audio_pipeline_terminate(pipeline); a...
by spacebiker
Fri Jun 18, 2021 12:06 pm
Forum: ESP-ADF
Topic: Restarting a Pipeline containing a bluetooth element.
Replies: 4
Views: 8356

Re: Restarting a Pipeline containing a bluetooth element.

ns1668 wrote:
Fri Jun 18, 2021 8:32 am
The original post is two years old...
Dum spiro spero
by spacebiker
Thu Jun 17, 2021 3:32 pm
Forum: ESP-ADF
Topic: Restarting a Pipeline containing a bluetooth element.
Replies: 4
Views: 8356

Re: Restarting a Pipeline containing a bluetooth element.

Hey! Have you found a solution?
by spacebiker
Thu Jun 10, 2021 3:24 pm
Forum: ESP-ADF
Topic: How to make two parallel pipelines
Replies: 0
Views: 4961

How to make two parallel pipelines

There is an example of parallel pipelines: https://github.com/espressif/esp-adf/blob/master/examples/advanced_examples/http_play_and_save_to_file/main/http_play_and_save_to_file.c I need to do the same thing, but bluetooth instead of http. So I have two pipelines: bt -> i2s and raw -> wav_encoder ->...
by spacebiker
Thu Jun 10, 2021 3:15 pm
Forum: ESP-ADF
Topic: What is the difference between LINE_IN and ENCODE/DECODE codec modes and how to play sound from AUX
Replies: 1
Views: 4657

Re: What is the difference between LINE_IN and ENCODE/DECODE codec modes and how to play sound from AUX

Problem is solved. You should add lines below:

Code: Select all

audio_hal_ctrl_codec(board_handle->audio_hal, AUDIO_HAL_CODEC_MODE_BOTH, AUDIO_HAL_CTRL_START); // instead of AUDIO_HAL_CODEC_LINE_IN
es8388_write_reg(ES8388_ADCCONTROL2, ADC_INPUT_LINPUT2_RINPUT2);
es8388_write_reg(ES8388_ADCCONTROL1, 0x00);
by spacebiker
Mon Jun 07, 2021 10:42 am
Forum: ESP-ADF
Topic: What is the difference between LINE_IN and ENCODE/DECODE codec modes and how to play sound from AUX
Replies: 1
Views: 4657

What is the difference between LINE_IN and ENCODE/DECODE codec modes and how to play sound from AUX

I'm trying to send audio from i2s (AUX in) to bluetooth headphones. I made a pipeline i2s->bt, But if i type audio_hal_ctrl_codec(board_handle->audio_hal, AUDIO_HAL_CODEC_MODE_DECODE, AUDIO_HAL_CTRL_START); or AUDIO_HAL_CODEC_MODE_ENCODE , i hear sound from microphones, but not from AUX_IN. But when...
by spacebiker
Wed May 26, 2021 3:27 pm
Forum: General Discussion
Topic: Is there a way to use esp32 as bluetooth host and client at the same time
Replies: 1
Views: 2365

Is there a way to use esp32 as bluetooth host and client at the same time

I need to connect smartphone to esp32 and send audio stream, but esp32 I also want to connect with headphones and send audio. So for smartphone esp32 is client, but for headphones it is host. Is it possible to make two connections like this?