Go Down

Topic: How to detect loss of ethernet network? (Read 999 times) previous topic - next topic

iisfaq

I have an Ethernet shield and am using the standard Ethernet library.

What is the best way to detect that for example the network is no longer available?

If I pull a cable out of my PC it knows pretty quickly that it is not there any more.

Is there a status I can check for?

Chris

johnwasser

You should probably look in the WizNet W5100 datasheet to see how to check the Ethernet status.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

SurferTim

The w5200 has a PHYSTATUS register to determine if the interface link is up or not. I do not believe the w5100 has that feature.

iisfaq

Probably a bit of my conform zone - I was hoping there was a quick and simple method.

Chris

Go Up