Loading...
Pages: [1]   Go Down
Author Topic: How to detect loss of ethernet network?  (Read 558 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 99
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: 96
Posts: 6335
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

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 49
Posts: 3446
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
Jr. Member
**
Karma: 0
Posts: 99
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
Print
 
Jump to: