移植STM32F407开发板的网络历程,和电脑通信后,速度能跑到四兆,但是长时间下去后,速度会下降,最终停止发送,此外在发送速度降低的同时,串口会打印出Assertion "tcp_write: pbufs on queue => at least one queue non-empty" failed at line 328 in ..LWIPlwip-1.4.1srccore cp_out.cAssertion "tcp_receive: valid queue length" failed at line 1031 in ..LWIPlwip-1.4.1srccore cp_in.c,新人学32,请各位老师指点啊?
循环里面是这样写的
ess->p=pbuf_alloc(PBUF_TRANSPORT,2200,PBUF_POOL);//申请内存 给数据
text=pbuf_take(ess->p,(char*)tcp_server_sendbuf,2200);
if(text==ERR_OK)
{
tcp_server_senddata(tcppcbnew,ess);
}
tcp_output(tcppcbnew); //发送
if(ess->p!=NULL)
{
pbuf_free(ess->p);
} //
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
一周热门 更多>