Hey guys, I've got a weird issue happening with my Arduino Duemilanove (ATMEGA168) running with a ladyada ethernet shield (WIZnet W5100). I have some code developed and working, however when I plug in the Arduino with a DC power adapter (instead of being powered through USB) the WIZnet doesn't seem to respond (to pings or server) until I press the reset button. If I plug it in to USB, the ethernet shield responds as it should right away. Here's the code I'm using to initialize the ethernet adapter:
#include <Ethernet.h>
// define ethernet properties
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = { 192, 168, 15, 7 };
byte gateway[] = { 192, 168, 15, 1};
byte subnet[] = { 255, 255, 255, 0};
Server server = Server(23);
...
void setup()
{
Ethernet.begin(mac, ip, gateway, subnet);
server.begin();
}
void loop(){
Client client = server.available();
if (client){
...do some stuff...
client.stop();
}
...
I've tried using Arduino 0015-0017 to no avail. I've read some stuff about patches to the ethernet libraries, but I'm not certain if those changes are required with the newest versions of the Arduino IDE. Any ideas?
Thanks,
Dan