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.

[参考译文] TM4C129ENCPDT:如何在 RTOS 运行时更改静态 IP 地址?

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/897708/tm4c129encpdt-how-to-change-the-static-ip-adress-when-the-rtos-is-runing

器件型号:TM4C129ENCPDT

我使用的是以太网 TCP/IP 的 NDK,我已经能够使用 xconfig 将静态 IP 配置到我的设备,程序工作正常我遇到的问题是我需要更改静态 IP, 当控制器在运行时收到新的静态 IP 时(如果没有其他方法,我不介意重新启动)。 如何做到这一点?

根据我的理解、IP 配置在 ti_ndk_config_Global_stackThread 中进行、该线程在系统引导后立即运行、因此我无法对其执行任何操作。

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

    您好、Joseph、

    您需要关闭堆栈并重新启动它。 为此、您不能使用.cfg 配置堆栈。 请参阅 NDK 用户指南、了解如何提供代码而不是使用.cfg 文件。

    Todd