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.

[参考译文] TMDSCNCD28388D:使用 lwIP 堆栈的 Modbus TCP 协议的 NO_SYS

Guru**** 2530100 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1232086/tmdscncd28388d-no_sys-for-modbus-tcp-protocol-using-lwip-stack

器件型号:TMDSCNCD28388D

您好!

我正在使用 enet_lwip 示例创建一个从以太网接收 TCP 数据包的程序、在下面的链接中遇到了同样的问题。

使用 lwIP 堆栈的 Modbus TCP

症状无法输入 MB_recv 公式、 我是否知道如何解决此问题?

此外、我还查阅了 Lwip_2.0.2 网站、 是因为需要实现队列函数吗?

但 我不明白如何 实现 "queue_try_get"函数、也不 在 我的系统上运行操作系统(no_SYS)。

希望得到答案。

提前感谢。

/*检查接收到的帧、将它们馈送到 lwIP */
lock_interrupts();
structpbuf*p = queue_try_get (&queue);
unlock_interrupts();
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!  

    我不熟悉 ModBus 协议、无法为您提供正确的解决方案。  

    您可以在 LWIP 论坛或任何与 ModBus 实施相关的论坛上进行查看。

    此致

    Siddharth