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.

[参考译文] AM2434:EtherNet/IP 网络状态处理

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1617721/am2434-ethernet-ip-net-status-handling

器件型号: AM2434

您好:

我正在开发 EtherNet/IP 器件、我需要实现网络状态 LED、我已经找到了这些回调 https://software-dl.ti.com/processor-industrial-sw/esd/ind_comms_sdk/am243x/latest/docs/am243x/ethernetip_adapter/group___e_i___a_p_i___a_d_p___c_a_l_l_b_a_c_k.html、 但在示例中找不到如何使用它们。 您能为我指出如何实现此功能的正确方向吗?

谢谢你。

此致、

1 月

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

    您好、Jan、

    您可以注册回调、以便通过“EI_API_ADP_setModuleNetworkStatusFunc"API“ API 了解网络状态 LED 的更改情况。

    有关实际的实现示例、请参阅 discreted_io_device_cfg.c 文件中的分立式 IO 示例。 在此示例中、注册了名为“DIO_DEVICE_ModNetStatusCb"的“的回调、随后用于正确操作 DOP 对象。

    此致、
    Pourya

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

    尊敬的  Pourya:

    感谢您的快速答复、我成功解决了这个问题。

    此致、

    1 月