I am working on my project with Arduino Uno and Ethernet shield w5100 on it.
my code is just exampe : web server (just changed IP to 192.168.100.120). but if i want to ping arduino it writes "request timed out"
i have connected ethernet shield to pc with crossover ethernet cable and leds on arduino are still on (they do not blink or turn off for a while ...)
I have tried to connect it with straight cable, connect it to the switch and from switch to my pc, to router --> router to switch and switch to pc but nothing worked
I did search on the internet and here on forum for 2 months and tried everything but nothing fixed it up...
I also bought 2 more new ethernet shields but they do the same. I did think that my problem can be in my pc so i ping it from another but this did not work either, so i decided to write here
If anyone can help me or have any ideas what to do please write me
Hello friend @Juraj
I tried all what have you told me to do but it did not work ...
I also tried code for arduino, that arduino will get IP from DHCP but that also didn't work
Ivo_Creamo_Durec:
Hello friend @Juraj
I tried all what have you told me to do but it did not work ...
I also tried code for arduino, that arduino will get IP from DHCP but that also didn't work
details about "doesn't work"? what is in Serial Monitor?
I am working on my project with Arduino Uno and Ethernet shield w5100 on it.
my code is just exampe : web server (just changed IP to 192.168.100.120). but if i want to ping arduino it writes "request timed out"
i have connected ethernet shield to pc with crossover ethernet cable and leds on arduino are still on (they do not blink or turn off for a while ...)
I have tried to connect it with straight cable, connect it to the switch and from switch to my pc, to router --> router to switch and switch to pc but nothing worked
I did search on the internet and here on forum for 2 months and tried everything but nothing fixed it up...
I also bought 2 more new ethernet shields but they do the same. I did think that my problem can be in my pc so i ping it from another but this did not work either, so i decided to write here
If anyone can help me or have any ideas what to do please write me
Juraj:
details about "doesn't work"? what is in Serial Monitor?
on serial monitor is always : "Failed to configure Ethernet using DHCP"
I tried this code :
#include <SPI.h>
#include <Ethernet.h>
#include <LiquidCrystal.h>
// Enter a MAC address for your controller below.
// Newer Ethernet shields have a MAC address printed on a sticker on the shield
byte mac[] = {
0x00, 0xAA, 0xBB, 0xCC, 0xDE, 0x02 };
// Initialize the Ethernet client library
// with the IP address and port of the server
// that you want to connect to (port 80 is default for HTTP):
EthernetClient client;
void setup() {
// start the serial library:
Serial.begin(9600);
// start the Ethernet connection:
Ethernet.begin(mac);
}
void loop() {
if (Ethernet.begin(mac) == 0) {
Serial.println("Failed to configure Ethernet using DHCP");
}
else {
Serial.println("Assigned IP Address is : ");
Serial.println(Ethernet.localIP());
}
delay(2000);
}
SurferTim:
Try this test sketch. If the serial monitor doesn't display 192.168.0.2, you have a SPI bus problem.
OMG
It is true ! wow thank you @SurferTim
serial monitor output : "Starting w5100" and then under it "0.0.0.0"
so problem is here... now, please tell me how to fix it please
this is my chip I am using, exactly the same. (attachment)
all pins are looking good ...
that problem started like I was pinging arduino IP Address with cmd and command "ping 192.168.1.120
-t" so it ping forever ...
and it was working good ... arduino was responding, but i don't know why it stopped and it changed to "host unreachable". I then tried to fix it, but I think i just did it worse because it started (cmd) printing "request timed out"
so ...
do you have any idea how to fix that problem ?
or if you want to know something about it to let you help figure it out just ask and i will try to help as much as i can
at last, it is me who want to fix it
led that are still on : FULLD, 100M,LINK and of course PWR
COLL, RX and TX blinks just for a few seconds after powering up the arduino but after a few seconds are turned off and never even blink again ...
I guess that means something, but i am newbie and do not know much about it