Problem - ESP32-IDF Reading HTTP-GET response with delay

slh_binary
Posts: 10
Joined: Mon Mar 29, 2021 9:53 am

Problem - ESP32-IDF Reading HTTP-GET response with delay

Postby slh_binary » Thu Jun 24, 2021 9:27 am

Hi Forum,

I use the sample "http_request" from ESP-IDF V4.2 and it works. But the Problem is that when I read a file e.g 1MB from a URL, the file reading process is delayed by about 1 second every once in a while and resumes again until read the entire file. This will make the download time be long. How can to download smoothly without delay?

ESP_Sprite
Posts: 9759
Joined: Thu Nov 26, 2015 4:08 am

Re: Problem - ESP32-IDF Reading HTTP-GET response with delay

Postby ESP_Sprite » Thu Jun 24, 2021 10:05 am

What are you downloading the file to?

slh_binary
Posts: 10
Joined: Mon Mar 29, 2021 9:53 am

Re: Problem - ESP32-IDF Reading HTTP-GET response with delay

Postby slh_binary » Thu Jun 24, 2021 11:11 am

ESP_Sprite wrote:
Thu Jun 24, 2021 10:05 am
What are you downloading the file to?
From own server and also this two links:
https://class.ece.uw.edu/542/peckol/doc ... icture.bmp
https://www.timscbx.com/Gallery%20pics/jeff%20coker.bmp

slh_binary
Posts: 10
Joined: Mon Mar 29, 2021 9:53 am

Re: Problem - ESP32-IDF Reading HTTP-GET response with delay

Postby slh_binary » Thu Jun 24, 2021 11:14 am

ESP_Sprite wrote:
Thu Jun 24, 2021 10:05 am
What are you downloading the file to?
Both send via SPI and just showing in Terminal.

ESP_Sprite
Posts: 9759
Joined: Thu Nov 26, 2015 4:08 am

Re: Problem - ESP32-IDF Reading HTTP-GET response with delay

Postby ESP_Sprite » Fri Jun 25, 2021 1:35 am

Okay, that implies the one second delay can't be on the output side. Hard to say then. You could try to see if you could sniff the WiFi traffic somewhere (e.g. hotspot on a laptop + Wireshark) to see if there's obvious badness going on.

Who is online

Users browsing this forum: No registered users and 85 guests