Pages: [1]   Go Down
Author Topic: Cannot get Ethernet Shield to work  (Read 464 times)
0 Members and 1 Guest are viewing this topic.
Toronto
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Using WebClient code that came with Arduino and samples downloaded from this forum.  Router does not see ethernet shield.  Tried DHCP and static, with and without gateway and subnet mask.  Tried second ethenet shield, no change.  Tried another cable, no change.  Tried different router, no change.  Routers - Linksys (old) and 2Wire (current.)  Firewall settings all open for inside connections, even added MAC as specifically allowed.

Any magic other than plugging the boards together, uploading the code with address changes, and watching the serial monitor?  All the board lights blink nicely as if doing something meaningful.
Logged

0
Offline Offline
God Member
*****
Karma: 39
Posts: 988
Get Bitlash: http://bitlash.net
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No magic.  You've tried all the right stuff.  Do any of the other Ethernet example sketches show signs of life?  Maybe DHCPAddressPrinter?

-br
Logged

Toronto
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

amazing, the DHCP address printer worked out of the box on the Linksys but not on the 2Wire.  Only difference was the MAC address provided in this code from the WebClient code.  changed the MAC in WebClient, now talking to the router.  But Linksys not on internet - do i really want to recofigure the house for the linksys over the supposedly newer and better wireless 2Wire?  hmmmmmmmmmmmmmmm.

Thank you.

david
Logged

0
Offline Offline
Tesla Member
***
Karma: 141
Posts: 9470
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You can try surfertim's test code to see if you get qan assigned ip address.

Code:
#include <SPI.h>
#include <Ethernet.h>

byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };

void setup()
{
  Serial.begin(9600);

  // disable SD SPI if memory card in the uSD slot
  pinMode(4,OUTPUT);
  digitalWrite(4,HIGH);

  Serial.println("Starting w5100...");
  if(!Ethernet.begin(mac)) Serial.println("failed");
  else Serial.println(Ethernet.localIP());
}

void loop() {

}
Logged

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   smiley-cool

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello, how is the setup of your router DHCP?

- Is it enabled?

- Is there a MAXIMUM number of addresses configured (and already in use)? (some router have default values like 10, 50, ..). Increase it..
   (linksys example: http://www.404techsupport.com/wp-content/uploads/2008/11/linksys2.jpg)

- Do you see you Arduino in the list of DHCP clients?
   (linksys example: http://www.flickr.com/photos/ebothy/4445697129/in/set-72157623652768126/)

Try to find the equivalent info of linksys screenshots on your 2wire router to check..
Logged

Pages: [1]   Go Up
Jump to: