Hi guys,
Currently, I develop an application based on a ATMega2560 board. I use the Ethernet shield to communicate with my remote server. My application manages: LEDs, push buttons, LCD and several sensors.
I configured W5100 (Ethernet chipset) like that to avoid the connection step waiting:
W5100.setRetransmissionTime(100); // microsecond
W5100.setRetransmissionCount(1);
Unfortunately, sometimes, there are some communication errors with the remote (Exceptions on server side). I wanted to retrieve the return codes sent by the server but the treatment is too long and my other software modules are not called enought quickly.
So do you think, if I add an OS (like FreeRTOS):
- I can manage my server return code - doesn't matter the process time to do that
- All my software module will be call enough quickly
Thank you so much guy!