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.

[参考译文] AM2431:关于 LWIP 中使用的周期

Guru**** 2512005 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1455678/am2431-about-the-tick-used-in-lwip

器件型号:AM2431

工具与软件:

我使用的 SDK 为 mcu_plus_sdk_am243x_08_03_00_18

我想问、使用 LWIP 时是否需要将电流周期设置为1ms?

我项目中的现象是、当周期设置为10ms 时、LWIP 中的各种轮询时间似乎增加了。

例如、以下轮询。

静态 int LWIPIF_LWIP_start (结构 netif * netif)

ClockP_Params_init (&clkPrms);
clkPrms.start = 0;
clkPrms.period = ENETLWAPP _POLL_PERIOD;(# define ENETLWAPP _POLL_PERIOD   500)μ s
clkPrms.args =&hLwip2Enet->pollLinkSemObj;
clkPrms.callback =&LWIPIF_LWIP_postPollLink;
clkPrms.timeout = ENETLWAPP _POLL_PERIOD;

/*创建计时器并设置计时器回调函数*/
状态= ClockP_Construct (&H lwip2Enet->pollLinkClkObj、
clkPrms (&C);

}

此轮询用于检测链路状态。 目前、我的节拍是10ms、所以这里的轮询周期变为5s。

我的问题是:

  1. 如果我要使用 LWIP、是否需要将电流节拍设置为1ms?

  2. 如果将周期设置为10ms、如何调整相关轮询操作的轮询间隔?

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

     

    感谢您的提问。

    [报价 userid="523085" url="~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1455678/am2431-about-the-tick-used-in-lwip "]mcu_plus_sdk_am243x_08_03_00_18

    使用旧 SDK 有任何具体原因?

    Unknown 说:
    我的项目中的现象是、当刻度设置为10ms 时、LWIP 中的各种轮询时间似乎增加了

    您是否可以尝试使用"tick to 1ms" 和"#define ENETLWIPAPP_POLL_PERIOD   5000"并告诉我您是否注意到相同的行为?

    [quote userid="523085" url="~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1455678/am2431-about-the-tick-used-in-lwip 如果我将刻度设置为10ms、我应该如何调整相关轮询操作的轮询间隔?

    我会检查一下、然后回复给您。

    此致

    Ashwani

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

    尊敬的  Ashwani:

    感谢您的答复。

    使用旧 SDK 有任何具体原因?
    >是的,这是我们公司的要求。

    您是否可以尝试使用"tick to 1ms" 和"#define ENETLWIPAPP_POLL_PERIOD   5000"并告诉我您是否注意到相同的行为?

    >我尝试了 tick=1ms、ENETLWAPP _POLL_PERIOD=5000、出现了相同的行为。

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

    如果这是一个新工程、我建议使用最新的 SDK 基线 AM243x MCU+ SDK:以太网和网络

    >我尝试了 tick=1ms、ENETLWAPP _POLL_PERIOD=5000、出现了同样的行为。

    我将检查我的设置(最新基准)并向您进行更新。

    [报价 userid="523085" url="~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1455678/am2431-about-the-tick-used-in-lwip/5585813 #5585813"]我试过 tick=1ms、

    别问了… 您提到的哪个节拍是 DMA 轮询周期还是 Enet 轮询周期?

    Unknown 说:
    LWIP 中的各种轮询次数似乎有所增加。

    您能在此处提供更多详细信息吗?

    [quote userid="523085" url="~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1455678/am2431-about-the-tick-used-in-lwip 当刻度设置为10ms

    您能否就此共享代码更改(位置)?

    此致

    Ashwani