This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具/软件:TI-RTOS
您好!
我从 C6670 EVM 向主机 PC 发送了1000个 UDP 数据包(1个数据包大小:1316字节)。
我的代码如下所示
for (i=0;i<1000;i++)
{
Sendto (udp_send_socket、movi_test+i*1316、BUF_SIZE1、0、(PSA)&sin1、send_adr_size);
}
问题是主机 PC 仅接收50个数据包。
主机 PC 中第0到第20个数据包与 DSP 中的数据包相同
但主机 PC 中的第21个数据包是 DSP 中的第22个数据包、
主机 PC 中的第22个数据包是 DSP 中的第28个数据包、
主机 PC 中的第23个数据包是 DSP 中的第34个数据包...
将1000 UDP 封包从 PC 发送到 PC 时。
接收1000个 UDP 封包没有任何问题。
您好!
您的实验只是证实、在数据包供应方面、DSP 比在数据包消耗方面的 PC 好得多。 您可以使用 PC 做的一件事是使用类似的方法来增加其套接字上的接收器缓冲器
setsockopt (socket、SOL_socket、SO_RCVBUF、...
同样、您可能会看到从 PC 到 DSP 的吞吐量较差、在这种情况下、您可能希望在传出套接字上调整 SO_SNDBUF 选项。