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.

LP-AM243: ModbusTCP Server does not update the data registers (coils, discrete inputs) in real time

Part Number: LP-AM243

Hi, I have a problem with the Industrial Modbus TCP Server example.

I am using:

  • ind_comms_sdk_am243x_2025_00_00_08

  • mcu_plus_sdk_am243x_11_01_00_19

Previously, I already asked a related question on this thread:
LP-AM243: How to improve Modbus TCP server response time performance? - Processors forum - Processors - TI E2E support forums 

I already tried the suggested workaround by adding:

#define TCP_TMR_INTERVAL 10

to the lwipopts.h file in the lwIP library:

C:\ti\mcu_plus_sdk_am243x_11_01_00_19\source\networking\lwip

Then I recompiled the library successfully and included it in the Industrial Communications Modbus TCP Server example.

However, when I tested it, the result was still the same.

I tested several Modbus functions such as:

  • Read Discrete Inputs (FC 2)

  • Write Multiple Coils (FC 15)

I used several Modbus TCP client applications on my computer and monitored the traffic using Wireshark. I calculated the time difference between the request and response packets.

The response times are:

  • FC 2: around 1 ms

  • FC 15: around 14 ms

However, the strange thing is that the data values are not updated simultaneously. The data only gets updated after around 200 ms.

Could you help explain what may cause this delay and which part of the example project or stack should be checked?