Ethernet Shield problem - can't ping

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.

Thanks for any ideas on what to try next!

What do you have operating at IP address 192.168.0.9 that is supposed to respond?

The shield is 192.168.0.9. The server I'm trying to contact is 192.168.0.4. I can ping the server but not the shield.

Also, the router has 2 solid LEDs for the shield (same as for the server).

can you ping the router at 192.168.0.1?

Yes, I can ping the router, no problem.

Also, I have tried this on a Seeeduino v2.12 (168) and an Arduino Duemilanove. Same problem.

Also tried USB power and external power. Same problem.

I'd say that what ever you have at 192.168.0 4 is not responding. Using your pc, does this IP address respond to ping reqiest?

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.

OK, did a search on "ethernet reset". In all cases it seems that a manual reset works and the previously unlit LINK light comes on solid.

But I have different symptoms: LINK, 100M and FULLD are already on solid. Still no ping or client.connect(), before or after a manual reset.

More info: the mini-LEDs (green and orange) on the silver RJ45 socket are also on solid.

Same problem.

DFRobot Arduino Mega
DFRobot Ethernet Shield.

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.

Ideas?

Modified spi.h to deal with Mega pins.

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.

I'm a numpty. Realise now that the 4 pins have moved ::slight_smile: . Excuse me, will test this later.

Right all working.

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.

Update: DFRobot card still not working. Ordered an official Arduino card from SKPang which works perfectly.

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 :slight_smile: