I recently bought a DFRobot Ethernet Shield. I have tried Ethernet, Ethernet2 and Webduino libraries but can't get any of them to work (WebClient). In all cases the client.connect() statement fails. I have tried putting it in a loop (10 tries, one per second) but this just fails 10 times. I set IP to 192.168.0.9. Ping fails every time (host unreachable). Could it be hardware?
I am connecting to a DSL router 192.168.0.1, subnet 255.255.255.0. Solid LEDs are 100M, FULLD and LINK.
Zoomcat, tx 4 yr response. As I said earlier, I can ping the server (192.168.0.4) no problem. And the router. I cannot however ping the shield (192.168.0.9).
Doa a forum search for "ethernet reset": several people have reported problems with the Ethernet shield not resetting properly, producing similar symptoms.
Modified spi.h to deal with Mega pins.
Tried power via USB and 5v/9v power supply.
Have tried Ethernet and Ethernet2.
Network is working fine, I know what I'm doing (at least when it comes to that)
Light on Ethernet shield, FULLD, 100M, LINK. RX blinks sometimes.
Ethernet RJ45 Socket, both lights on.
Wireshark, no response to ARP requests (TX light never flashes).
Tried manually entering ARP entry, still no response from shield.
The problem is the shield just doens't want to respond, no arp replies therefor nothing else is going to work. Although as I said, even adding the ARP entry doesn't fix this. The board just doesn't want to talk.
Did you modify the Ethernet shield hardware to "deal with Mega pins"?
SPI is a built-in function of the CPU, and you can't compensate for the pinout difference by just tweaking a few "#define"s. You need to rewire the Ethernet shield.
Apart from overlooking the physical movement of pins, the switch (ethernet switch) was going mental when the Arduino Eth module was plugged in. Changed switch and now works fine. Odd.
DFRobot card now working! I had to change my router (from a seven year old D-Link DSL-504) to a new Belkin in order to get DDNS. Now the DFRobot Ethernet shield works