Pages: [1]   Go Down
Author Topic: How to detect loss of ethernet network?  (Read 878 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 1
Posts: 128
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 201
Posts: 8648
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You should probably look in the WizNet W5100 datasheet to see how to check the Ethernet status.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 138
Posts: 5833
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Full Member
***
Karma: 1
Posts: 128
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Chris
Logged

Pages: [1]   Go Up
Jump to: