Skip to main content
Visitor II
December 7, 2023
Question

Modbus TCP Server-Client communication through Ethernet switch

  • December 7, 2023
  • 1 reply
  • 1375 views

Hi,

I'm using 2 STM32F4 MCUs for Modbus TCP Server/Client implementation based on LWIP. One MCU as a Client and other one as a Server. I have connect both MCUs through D-Link DES-1016D ethernet switch.

The problem is when I connect both MCUs directly (ie: without Ethernet switch) both Server-Client communicates properly. But if I connect them through switch, communication breaks from server side for some time and reconnects again.

If I ping the IP of Client it responds continuously. But when I ping the IP of Server, it responds for sometime and hit Request timeout for sometime.Server IP Ping testServer IP Ping test

Because some other TCP connections also are in my setup so I need to connect both the MCUs through switch only. Does anyone already succeed implementing such behavior?

 

Thanks in advance.

 

    This topic has been closed for replies.

    1 reply

    ST Employee
    December 12, 2023

    Hello Preeti,

    Thank you for contacting STMicroelectronics. Your inquiry is being escalated for specialized support.

    Kind Regards,

    Christian

    ST Support