Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

CCS/CC3220: Massive Delays in HTTP or SNTP requests using slnetutils

$
0
0

Part Number:CC3220

Tool/software: Code Composer Studio

Hi, 

Note: All my times are measured against the windows clock so not terribly accurate...

So the titles says it all. I've tried using the slnetutilities httpclient and the sntp client in a few different forms. First, I converted it over to work with no rtos and tried http and sntp requests. Every now and then a request would go through in the expected sub 5 second range, usually within a couple hundred milliseconds. But most attempts would take upwards of 12-22 seconds!!!

I assumed that the problem was using slnetutils without an RTOS. Perhaps the lack of servicing of sl_Task I thought. So I moved over to the FreeRTOS Out_of_box example code and created my own application. I created three tasks, one outputing to console every 64 ms, one at 200 ms and the third peformed sntp and http requests ever 60 seconds. 

Every now and then a request would go through quickly. Usually the first one or two requests. Then after that, all the requests took over 12 seconds, many upwards of 17 and even 22 seconds. 

I've now tried the same thing with the simple httpget example using FreeRTOS and TIRTOS, both with the same really disappointing results.

Can somebody point to something I've done wrong? I have attached the platform.c file that I modified to get the httpget_CC3220SF_LAUNCHXL_tirtos_gcc project (Changes are lines 82-88 and 445-446).

(Please visit the site to view this file)


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>