Search found 17 matches
- Mon Sep 16, 2019 4:20 pm
- Forum: General Discussion
- Topic: tcp_server example not able to reconnect the server after disconnect
- Replies: 25
- Views: 32299
Re: tcp_server example not able to reconnect the server after disconnect
Are you sure this is right?: if (sock != -1) { ESP_LOGE(TAG, "Shutting down socket and restarting..."); shutdown(sock, 0); close(sock); // mcarter 13-Sep-2019 err 112 fix. Ostensibly shutdown(listen_sock, 0); close(listen_sock); vTaskDelay(5); } I'm still having difficulties here. I will try recompi...
- Sun Jun 30, 2019 5:24 pm
- Forum: ESP-IDF
- Topic: Confused over i2s_config_t
- Replies: 2
- Views: 5092
Re: Confused over i2s_config_t
OK, I've assumed that the data needs to be as 16-bit ints rather than 8-bit ints. I've therefore created a main section that loops over the track endlessly: void app_main() { //int n=0; esp_err_t ret; static const int i2s_num = 0; // i2s port number static const i2s_config_t i2s_config = { .mode = I...
- Sun Jun 30, 2019 4:57 pm
- Forum: ESP-IDF
- Topic: Confused over i2s_config_t
- Replies: 2
- Views: 5092
Re: Confused over i2s_config_t
One thing occurred to me: is the reason that I can't set bits_per_sample to 8 because data has to be word-aligned, i.e. to even addresses?
- Sun Jun 30, 2019 12:37 pm
- Forum: ESP-IDF
- Topic: Confused over i2s_config_t
- Replies: 2
- Views: 5092
Confused over i2s_config_t
So, I have a big block of data that I want to write to I2S. The data consists of 8-bit mono audio, sample rate 8kHz. I want the output on the DAC (pin 25). I figured that a way to do it is to write in blocks of 512 bytes using i2s_write(). However I am getting E (283) I2S: Invalid bits per sample wh...
- Wed Jun 26, 2019 5:53 pm
- Forum: Sample Code
- Topic: Playing audio embedded on an ESP32 via DAC
- Replies: 1
- Views: 4811
Re: Playing audio embedded on an ESP32 via DAC
And here's a video where I successfully stream audio over wifi using an ESP32-WROOM. A blinkt kit is included to give it a spiffy volume indicator. https://youtu.be/P5fPJ1hshdE
- Tue Jun 25, 2019 7:44 pm
- Forum: Sample Code
- Topic: Playing audio embedded on an ESP32 via DAC
- Replies: 1
- Views: 4811
Playing audio embedded on an ESP32 via DAC
Thought you guys might be interested in a little gist ( https://gist.github.com/blippy/ee1b0f970c56d8eee7f54f796c5b20f1 ) I created to get audio playing on the ESP32 in the simplest possible way. It seemed pretty cool to me, anyway, as it's the first time I've got it to work. The gist contains a wri...
- Tue Jun 25, 2019 8:00 am
- Forum: ESP-IDF
- Topic: Watchdog keeps timing out
- Replies: 1
- Views: 3068
Watchdog keeps timing out
Everything "works", I get the responses I'm expecting, but I keep getting a watchdog timeout, and it's bugging me. I'm running out of ideas. Here's what's being reported: E (33283) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time: E (33283) task_wdt: - ID...