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 example code questions

Part Number: AM2434

Hello,

My customer is evaluating Ethernet/IP example code.

When he added the data log inside GENERIC_DEVICE_run() and check the result, he has 2 questions about the result.

<modified code>

image.png

  1. after the booting, it prints the dummy data for 2044ms and then shows real data. is this because cip task is running but physical connection is not estabilished? or there's another reason
  2. when the connection disconnects then it prints the former data. in this case, how the customer handle the data? do they need to check phy status?
  • Hi  

    Our EtherNet/IP Stack expert is currently out-of-office till the end of this week. Please ping the thread again if you don't receive a response by the mid of next week.

    Regards
    Archit

  • Hi Ted,

    #1) Yes; the physical link has not been established, and consequently the I/O connection remains inactive.

    #2) If you’re asking how a customer can be notified when a connection times out (e.g., physical disconnection or the remote side closes the I/O connection), they should register a timeout callback with EI_API_ADP_setCobjTimeOutCb. This callback is not used in the Generic‑Device example, but it is demonstrated in the Discrete‑IO example.


    Best regards,
    Pouyra