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.

DSP6657网络收包问题



DSP6657作为客户端与PC或者其他开发板(作为服务器)收发TCP数据,目前想以10ms/帧的速度进行数据发送,并在任何时候都可以接收数据(非实时),故在DSP6657中建立中断号为99的以太网接收中断。

但是在DSP每次进行send函数时,DSP却会在对方没有发送数据包的情况下进入该接收中断(rawsocket走数据链路层不会发生该情况),而且会多次进入,但之后用recvnc函数却接收不到任何数据,返回值为-1,这样不断触发中断并接收空数据就会导致浪费大量时间,远远不能满足10ms/帧的速度要求。

如果DSP改为轮询方式收数据,每次recvnc函数在收不到任何数据并返回-1时,会运行很长时间(clock计时为0.7s左右),也远远不能达到要求,而recvnc函数在能接收到数据时却运行很快。

请问有什么办法能做到上述的要求??