Quantcast
Channel: Processors
Viewing all articles
Browse latest Browse all 123557

Forum Post: TSK_Sleep necessary for sending UDP data?

$
0
0

Hello,

I'm trying to do a simple test to have the DSP transmit UDP packets as fast as possible. The transmit task is a P4 and the network process is a P8 (setup as high priority interrupt driven).


The transmit task opens up a socket and inside a loop calls "sendto", followed by a task sleep. I was modifying to the sleep time to adjust the throughput and to allow the network process to run. However, when I remove the task sleep all together, I don't get any data out - though the udps.SndTotal continually increments as in all other cases with task sleep being called. My understanding is that the "sendto" command is a blocking call and therefore will allow the network process to run - as it is higher priority than the transmit task.

Is there something fundamental that I'm missing?

Thanks,
Rajan


Viewing all articles
Browse latest Browse all 123557

Trending Articles



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