|
From: | Noam Weissman |
Subject: | [lwip-users] elegant way to detect network connection |
Date: | Tue, 8 Nov 2016 13:39:13 +0000 |
Hi, I am looking for an elegant way to detect network connection on remote side. My problem is as follows. I have an embedded device that has a micro connected to one port of an internal switch. The other switch ports are connected to HDBasT endpoints, either TX or RX. The switch connection that are connected to the remote devices (over HDBaseT) may also be
connected to a router on the remote ETH connection.
That means that I have no way of checking for a real link on remote devices just on the local port. The local PHY is accessible via the micro SMI bus. I had in mind changing my DHCP module to try and get an address say every 0.5-1 Sec. If it fails It will sleep for say 1 seconds and try again. If remote connection is present the DHCP request will get out to the router and eventually my device will get an IP. So far its OK… Now what if the remote connection is dropped?... how can I know that it was dropped and return
to the mode of getting an IP ? I was thinking on pinging after address accepted but some routers will not answer and some may even
Drop the frequent ping requests? Any ideas on an elegant way to detect network connection? BR, Noam.
|
[Prev in Thread] | Current Thread | [Next in Thread] |