Reset Ethernet

Hi,
I am using one of those Arduino Ethernet Shields. Sadly, the connection is not very stable for long runs. I have to conclude, that the Arduino / Shield is the problem, since I reset my network hardware regularly. The Arduino just stops opening connections to my servers anymore.

Is it possible to reset the Ethernet Shield using software?

Daniel

Thanks, but sadly that's not the problem. Which is: The arduino shield looses connection after some time (may be 1 or 2 days), even though it has a static ip address and the network hardware is working fine.

So basically I need to reset the shield using software.

Daniel

You could do this:

  if (client.connect()) {
    Serial.println("connecting...");
    // send the HTTP PUT request. 
    // fill in your feed address here:
do something
  } 
  else {
    // if you couldn't make a connection:
    Serial.println("connection failed");
    resetEthernetShield();
  }
}




void resetEthernetShield(){
  Serial.println("reset ethernet");
  Ethernet.begin(mac, ip, gateway);
}

also, check this out:

http://community.pachube.com/arduino/ethernet/watchdog