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.

[参考译文] TM4C1294KCPDT:如何处理多线程应用中的以太网任务

Guru**** 2534260 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/903884/tm4c1294kcpdt-how-to-handle-ethernet-task-in-multi-thread-application

器件型号:TM4C1294KCPDT

尊敬的先生:

我在我们的应用中使用 ti RTOS、因为我们已将您的 TCP 回显参考代码用作基础代码、在该应用层中、它用作 TCP Modbus、但在我们添加 了5到6任务超时错误后  

在控制台上调试时 、会显示以下错误  

00005.300 TcpTimeoutRexmt:重新发送超时
发送= 12
00006.200 TcpTimeoutRexmt:重新发送超时  

这是哪个超时,以及处理多任务系统(其中一个任务是 TCP 数据发送和接收)的最佳方法是什么??

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Saurabh:

    TCP 超时是标准协议的一部分。 话虽如此、通常在稳定的网络上不会经常发生这种情况。 NDK 应继续工作、因为它只会在发生 ACK 超时时时时重新传输数据包。

    1.应用程序是否仍然正常工作?  

    请附上会话的 Wireshark 捕获。

    3.您能否查看 Tools->ROV Classic->BIOS->Scan for Errors 以查看应用程序是否存在任何问题(例如堆栈溢出等)。

    Todd