Do I have a faulty LAN chip? - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20) +--- Forum: KC868-A8S (https://www.kincony.com/forum/forumdisplay.php?fid=24) +--- Thread: Do I have a faulty LAN chip? (/showthread.php?tid=2928) |
Do I have a faulty LAN chip? - philmacu - 05-19-2023 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 I have used the following settings Code: #define ETH_POWER_PIN -1 Any help would be appreciated. Phil RE: Do I have a faulty LAN chip? - admin - 05-20-2023 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. RE: Do I have a faulty LAN chip? - philmacu - 05-20-2023 (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? 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 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 RE: Do I have a faulty LAN chip? - admin - 05-20-2023 #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 RE: Do I have a faulty LAN chip? - philmacu - 05-20-2023 (05-20-2023, 11:55 AM)admin Wrote: #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. RE: Do I have a faulty LAN chip? - admin - 05-21-2023 you are welcome. if you uploaded video on your YouTube channel, you can leave a URL link. let's watch it |