Skip to main content
NMALH
Associate II
January 13, 2022
Question

Lwip TCP Client disconnect detection. I am unable to detect if my client is disconnected from server. if my server sends the close command then i am able to detect but problem arises when the server stops abruptly or power goes down.

MCU is STM32F207VIT6 (client)

server is windows application.

LWIP library is used.

Is there any ping command?

This topic has been closed for replies.

3 replies

LCE
Principal III
January 13, 2022

Ping:

Yes, there is, and it's "processed" in icmp.c as ICMP_ECHO .

So you must have LWIP_ICMP defined to enable ping, in opt.h .

NMALH
NMALHAuthor
Associate II
January 13, 2022

already set to 1. Will you please elaborate more.

Piranha
Principal III
January 15, 2022