Cannot obtain IP Address using Ethernet Example
Posted: Tue May 30, 2017 2:30 pm
Hello,
I'm trying to obtain an IP address from a DHCP server using the ethernet example program found on Github. The source code is in the esp-idf folder, under examples/ethernet, or it can be found here:
https://github.com/espressif/esp-idf/tr ... t/ethernet
The hardware configuration I am using is a breakout board circuit based off of the schematic for the Waveshare LAN8720 ETH Board, found here:
http://www.waveshare.com/w/upload/0/08/ ... ematic.pdf
The README.md file explains that the program is supposed obtain a DHCP lease so you can ping the the IP address that was given. However, when I run the program from within the terminal window, the IP address, gateway and subnet mask is repeatedly printed as all zeros. I'm not sure where in the program the ESP is supposed to request or obtain an IP address.
I was wondering if anyone else has had a similar problem, or has any idea how to go about fixing this. Could it be a hardware, or a software issue?
Thanks
I'm trying to obtain an IP address from a DHCP server using the ethernet example program found on Github. The source code is in the esp-idf folder, under examples/ethernet, or it can be found here:
https://github.com/espressif/esp-idf/tr ... t/ethernet
The hardware configuration I am using is a breakout board circuit based off of the schematic for the Waveshare LAN8720 ETH Board, found here:
http://www.waveshare.com/w/upload/0/08/ ... ematic.pdf
The README.md file explains that the program is supposed obtain a DHCP lease so you can ping the the IP address that was given. However, when I run the program from within the terminal window, the IP address, gateway and subnet mask is repeatedly printed as all zeros. I'm not sure where in the program the ESP is supposed to request or obtain an IP address.
I was wondering if anyone else has had a similar problem, or has any idea how to go about fixing this. Could it be a hardware, or a software issue?
Thanks