Go Down

Topic: WiFi shield - server response read delay of ~2s (Read 104 times) previous topic - next topic

abhir24

Hi,

I am using the Arduino WiFi shield for an IoT application. I make GET requests to the server and to read the response successfully and completely I need to wait for 2 seconds before I read it. If I do not, I will lose  the data that is being transmitted. For my application this delay is a lot. I need to bring it down to < 0.5 seconds at the least. I have read threads from close to 3 years ago that this issue is something many others face too. I am posting this here to check if there have been any improvements to the same or if there is a work around I have missed in my research.

Links of similar issues are:

http://mssystems.emscom.net/helpdesk/knowledgebase.php?article=51

http://forum.arduino.cc/index.php?topic=123824.15

http://forum.arduino.cc/index.php?topic=165549.0

https://stackoverflow.com/questions/22714657/arduino-wifi-client-read-very-slow

http://forum.arduino.cc/index.php?topic=134868.15

Thank you in advance for any help possible.

sterretje

If it takes 2 seconds to arrive, it takes 2 seconds to arrive; not much you can do about that.

You can however use an approach as described in the updated Serial Input Basics thread (do a search). The principles apply equally to serial ports or network stuff. At least the code will not block so you can do other stuff while 'waiting'.
If you understand an example, use it.
If you don't understand an example, don't use it.

Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.

DrAzzy

A lot of the network access methods available to microcontrollers (at least relatively primitive ones like the 8-bit AVRs - the simplicity of the AVRs is an asset w/regards to understanding and using them, but they're not the top of the line by any means) are just plain slow.

Why do you need to poll so frequently that 2 seconds is too slow? That seems like a really demanding requirement, something that would not be required for most applications.
ATtiny core for 841+1634+828 and x313/x4/x5/x61/x7/x8 series Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts (some assembled), mosfets and awesome prototyping board in my store http://tindie.com/stores/DrAzzy

Go Up