Cannot connect to ethernet shield

There is no function call with a parameter like that in my socket.cpp file (SOCKET&) . I will attach my socket.cpp and socket.h files. They go here.
/Applications/Arduino.app/Contents/Resources/Java/libraries/Ethernet/utility/
I guess if that doesn't work, reinstall the Arduino IDE.

I failed to ask. What version of the Arduno IDE are you using, and what platform? Windows or Linux?

socket.cpp (7.71 KB)

socket.h (1.05 KB)

I really think that this board is not going to live.

Are you connecting the arduino to a router? if so have you appropiately changed the code to match your router settings?

zoomkat:

I really think that this board is not going to live.

Are you connecting the arduino to a router? if so have you appropiately changed the code to match your router settings?

I have the board attached to a switch. All IP and subnet configs were changed to each network I have tested on. Have also tried pinging from different workstations.

SurferTim:
There is no function call with a parameter like that in my socket.cpp file (SOCKET&) . I will attach my socket.cpp and socket.h files. They go here.
/Applications/Arduino.app/Contents/Resources/Java/libraries/Ethernet/utility/
I guess if that doesn't work, reinstall the Arduino IDE.

I failed to ask. What version of the Arduno IDE are you using, and what platform? Windows or Linux?

Hi surferTim,

pasted your files. No errors and compiled fine. Unfortunately still no data. Arduino ide reinstalled without success.

Let's check the SPI and ethernet shield communication. Compile and upload this code. Open the IDE serial monitor and the first line of the serial output should be 192.168.1.2. If it is 0.0.0.0, then the Arduino is not talking to the shield.

#include <SPI.h>
#include <Ethernet.h>
#include <utility/w5100.h>

byte mac[] = { 0x90, 0xA2, 0xDA, 0x00, 0x59, 0x66 };  
byte ip[] = { 192, 168, 1, 2 };    
byte gateway[] = { 192, 168, 1, 1 };
byte subnet[] = { 255, 255, 255, 0 };

byte ipBuf[4];
char outBuf[18];

void setup()
{
  Serial.begin(9600);
  Ethernet.begin(mac, ip, gateway, subnet);
  delay(1000);
  W5100.getIPAddress(ipBuf);
  sprintf(outBuf,"%u.%u.%u.%u\r\n",ipBuf[0],ipBuf[1],ipBuf[2],ipBuf[3]);
  Serial.write(outBuf);
}

void loop()
{
  Serial.println("Tick");
  delay(1000);
}

Code uploaded and... 0.0.0.0 :frowning:

Don't shoot me! I'm just the piano player!
Sounds like it may be a bad ethernet shield. Or there is something else connected to the shield that is interfering with the SPI between the Arduino and the ethernet shield.

I am really glad of your help. Thanks for your hard work. I appreciate your time! I will send it back and try again.

As I am working on a project for work I am going to try an XPort from Lantronix. I hope that I will have a little more luck.

If I ever figure out what was wrong I will post back.