Search found 12 matches

by DylanR0
Mon Aug 13, 2018 5:41 pm
Forum: ESP32 IDF
Topic: ADC glitchs - I2S - ESP32
Replies: 22
Views: 1050

Re: ADC glitchs - I2S - ESP32

Okay, I see..
I'll try to gather some informations about multithreading.
Thank you !
by DylanR0
Mon Aug 13, 2018 7:51 am
Forum: ESP32 IDF
Topic: ADC glitchs - I2S - ESP32
Replies: 22
Views: 1050

Re: ADC glitchs - I2S - ESP32

Hello I understand your 1/2. If it' already connected it's ok, if not, you try to connect and if it's okay you return true else you return false and you retry. For the 3, it's a good idea. The 4, why the read call is blocking the queue ? Can we remove it just like that ? For the 5, ok it's what I un...
by DylanR0
Fri Aug 10, 2018 10:55 pm
Forum: ESP32 IDF
Topic: ADC glitchs - I2S - ESP32
Replies: 22
Views: 1050

Re: ADC glitchs - I2S - ESP32

Ok, I'll tell you how I think my code works. int s; s=socket(AF_INET, SOCK_STREAM, 0); //<- I buy my phone only one time ESP_LOGI(TAG,"ICI %d \n",s); int connexion_status = connect(s, (struct sockaddr *)&tcpServerAddr, sizeof(tcpServerAddr)); //<- Just assign the way to connect to a va...
by DylanR0
Fri Aug 10, 2018 9:27 am
Forum: ESP32 IDF
Topic: ADC glitchs - I2S - ESP32
Replies: 22
Views: 1050

Re: ADC glitchs - I2S - ESP32

Thank you for the video and for your explanation with the example with the phone. I think I understand better. So I writted another code and it works more or less : int s; s=socket(AF_INET, SOCK_STREAM, 0); ESP_LOGI(TAG,"ICI %d \n",s); int connexion_status = connect(s, (struct sockaddr *)&...
by DylanR0
Thu Aug 09, 2018 7:22 pm
Forum: ESP32 IDF
Topic: ADC glitchs - I2S - ESP32
Replies: 22
Views: 1050

Re: ADC glitchs - I2S - ESP32

I'm an intern for 2 months and this is a project that I have to retake. But it's not my field of study... But I have no choice... I try my best to understand the code and your advice. But it's the first time that I see an ESP32, sockets and things like that. Moreover, unfortunately I don't do studie...
by DylanR0
Thu Aug 09, 2018 1:55 pm
Forum: ESP32 IDF
Topic: ADC glitchs - I2S - ESP32
Replies: 22
Views: 1050

Re: ADC glitchs - I2S - ESP32

I tried your method with 2 loops, something like that : int s; s=socket(AF_INET, SOCK_STREAM, 0); ESP_LOGI(TAG,"ICI %d \n",s); while(1) { connect(s, (struct sockaddr *)&tcpServerAddr, sizeof(tcpServerAddr)); ESP_LOGI(TAG,"la %d \n",s); xEventGroupWaitBits(wifi_event_group,CON...
by DylanR0
Wed Aug 08, 2018 3:26 pm
Forum: ESP32 IDF
Topic: ADC glitchs - I2S - ESP32
Replies: 22
Views: 1050

Re: ADC glitchs - I2S - ESP32

Thank you John A for your explanation. I tried to combine ideas from posts of you two. Meaning that I can increase the number of buffers and the length of them. And that I have to create one and only one socket before entering the loop of "read and send". I modified the code and made it ea...
by DylanR0
Tue Aug 07, 2018 7:36 pm
Forum: ESP32 IDF
Topic: ADC glitchs - I2S - ESP32
Replies: 22
Views: 1050

Re: ADC glitchs - I2S - ESP32

I'll try tomorow, Tell me if I'm wrong, but that's mean that just using this code : while(1){ xEventGroupWaitBits(wifi_event_group,CONNECTED_BIT,false,true,portMAX_DELAY); s=socket(AF_INET, SOCK_STREAM, 0); if (xQueueReceive(i2s_event_queue, &evt, portMAX_DELAY) == pdPASS) { if (evt.type==I2S_EV...
by DylanR0
Tue Aug 07, 2018 1:53 pm
Forum: ESP32 IDF
Topic: ADC glitchs - I2S - ESP32
Replies: 22
Views: 1050

Re: ADC glitchs - I2S - ESP32

Thank you for the explanation. So you're telling me that I should remove this close(s) ? (1) while(1){ xEventGroupWaitBits(wifi_event_group,CONNECTED_BIT,false,true,portMAX_DELAY); s=socket(AF_INET, SOCK_STREAM, 0); if (xQueueReceive(i2s_event_queue, &evt, portMAX_DELAY) == pdPASS) { if (evt.typ...
by DylanR0
Tue Aug 07, 2018 9:37 am
Forum: ESP32 IDF
Topic: ADC glitchs - I2S - ESP32
Replies: 22
Views: 1050

Re: ADC glitchs - I2S - ESP32

HS :
It's my first time here, how long is it to have the permission to submit ? :?:
The flow between messages is a little bit impacted
(Sorry for double post)