Hi boys and girls,
I have tried to do my best but finally I can't get Arduino UNO with official ETHShield (Wiznet5100 with SD micro) to be connected to network. I tried the samples coming with IDE 0022 and "Ethernet" library but I can't see/ping shield on my network. I'm successful in some respect only using the Polling sketch under library EthernetDCHP - running it I can see Arduino in my client list on router with IP assigned by DCHP and ping that IP from Windows command line.
When I compile the examples working with Ethernet library with fixed IP address (and / or gateway and subnet values) I have shield with blinking RX/link LEDs only and .... nothing more.
I also tried different cables and another router, unfortunately without success. My simple sketch for test:
#include <Ethernet.h>
byte mac[] = { 0x90, 0xA2, 0xDA, 0x00, 0x2E, 0x78 };
byte ip[] = { 192, 168, 2, 6 };
byte server[] = { 64, 233, 187, 99 }; // Google
Client client(server, 80);
void setup() {
Ethernet.begin( mac, ip );
Serial.begin(9600);
delay(1000);
Serial.println("connecting...");
if (client.connect()) {
Serial.println("connected");
client.println("GET /search?q=arduino HTTP/1.0");
client.println();
} else {
Serial.println("connection failed");
}
}
void loop() {
}
The Serial.print gives "connecting ..." and "Connection failed" only so it seems that either "Ethernet.begin" or "client.connect()" don't work as expected.
For sake of good order the MAC is from sticker on the shield's back side, network parametres should be OK as it works for another network components.
Does anybody have idea what can be wrong ??
Cheers
Vladimir