Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Do I have a faulty LAN chip?
#1
I have tried to get the ETH working on my KC868-A8S. I have tried the following:
Binary that shipped with the board - ETH not working.
LAN8720_UDP.ino using static address 192.168.1.200 - debug says connected but it does NOT appear on LAN
KC868-A8S_Digital_input_Web_Server-ETH.ino -using DHCP settings - returns IP address 0.0.0.0 and the following:
Code:
E (124) lan87xx: lan87xx_pwrctl(409): power up timeout
E (124) lan87xx: lan87xx_init(491): power control failed
E (124) esp_eth: esp_eth_driver_install(215): init phy failed

I have used the following settings 
Code:
#define ETH_POWER_PIN -1
#define ETH_MDC_PIN 23
#define ETH_MDIO_PIN 18
#define ETH_TYPE ETH_PHY_LAN8720
#define ETH_CLK_MODE ETH_CLOCK_GPIO17_OUT
The LAN connection is working, but I do not see any LED activity on the KC868-A8S Physical port:
   

Any help would be appreciated.
Phil
Reply
#2
can you use this code for a test? or download by ESPHome config yaml for a test?
after download firmware, re power on of your board have a test.
Reply
#3
Smile 
(05-20-2023, 12:53 AM)admin Wrote: can you use this code for a test? or download by ESPHome config yaml for a test?
after download firmware, re power on of your board have a test.

I uploaded the firmware "KC868_A8S_V1.0.10.bin" and the LAN LED's came on, I was able to get the IP address and I was able to ping the device! So the LAN is working Smile 

I will try to figure out why I can't get the LAN port to operate. I am using these PINS:
Code:
#define ETH_POWER_PIN -1
#define ETH_MDC_PIN 23
#define ETH_MDIO_PIN 18
#define ETH_TYPE ETH_PHY_LAN8720
#define ETH_CLK_MODE ETH_CLOCK_GPIO17_OUT
Reply
#4
#define ETH_ADDR 0
#define ETH_POWER_PIN -1
#define ETH_MDC_PIN 23
#define ETH_MDIO_PIN 18
#define ETH_TYPE ETH_PHY_LAN8720
#define ETH_CLK_MODE ETH_CLOCK_GPIO17_OUT


maybe you have not add :
#define ETH_ADDR 0
Reply
#5
(05-20-2023, 11:55 AM)admin Wrote: #define ETH_ADDR        0
#define ETH_POWER_PIN  -1
#define ETH_MDC_PIN    23
#define ETH_MDIO_PIN  18
#define ETH_TYPE      ETH_PHY_LAN8720
#define ETH_CLK_MODE  ETH_CLOCK_GPIO17_OUT


maybe you have not add :
#define ETH_ADDR        0

Thank You, yes I had forgotten the define for ETH_ADDR

I have now got the unit connecting via Static IP (which is what I need) to a router. I have to travel next week but I will upload a video on my YouTube channel when I get back.

Many thanks to you sir.
Reply
#6
you are welcome. if you uploaded video on your YouTube channel, you can leave a URL link. let's watch it Smile
Reply


Forum Jump:


Users browsing this thread: