arduino-libraries / Ethernet

Ethernet Library for Arduino
http://arduino.cc/
252 stars 253 forks source link

Ethernet cable is not connected #194

Open stevenlianyi opened 2 years ago

stevenlianyi commented 2 years ago

Initialization (begin()) adds soft reset to prevent the switch from not detecting the cable. Situation: Using WIZ820io RC5 module, ESP32 control I found that if the switch and the module are powered on at the same time, there is a slight chance that the module cannot get the IP address, and if I observe the switch, I find that the corresponding port green light is off and cannot recognize the module. Solution: Modify Ethernet.h/Ethernet.cpp to add software reset at the beginning. Problem solved.

admindotnu commented 2 years ago

Initialization (begin()) adds soft reset to prevent the switch from not detecting the cable. Situation: Using WIZ820io RC5 module, ESP32 control I found that if the switch and the module are powered on at the same time, there is a slight chance that the module cannot get the IP address, and if I observe the switch, I find that the corresponding port green light is off and cannot recognize the module. Solution: Modify Ethernet.h/Ethernet.cpp to add software reset at the beginning. Problem solved.

We experience same behavior with the w5500 chips.

Could you share what u changed ?