KC868-M16v2 Ethernet Problem - 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-M16 / M1 / MB / M30 (https://www.kincony.com/forum/forumdisplay.php?fid=50) +--- Thread: KC868-M16v2 Ethernet Problem (/showthread.php?tid=4072) |
KC868-M16v2 Ethernet Problem - Roni - 01-03-2024 Hello , I have KC868-M16v2. I try the ethernet connection, but i have a problem this is my ethernet setting #include <ETH.h> #include <WebServer_WT32_ETH01.h> //#define DEBUG_ETHERNET_WEBSERVER_PORT Serial //#define _ETHERNET_WEBSERVER_LOGLEVEL_ 3 #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 void config_ethernet() { if(s_enable_ethernet=="1") { WT32_ETH01_onEvent(); //bool begin(uint8_t phy_addr=ETH_PHY_ADDR, int power=ETH_PHY_POWER, int mdc=ETH_PHY_MDC, int mdio=ETH_PHY_MDIO, // eth_phy_type_t type=ETH_PHY_TYPE, eth_clock_mode_t clk_mode=ETH_CLK_MODE); ETH.begin(ETH_PHY_ADDR, ETH_PHY_POWER, ETH_PHY_MDC, ETH_PHY_MDIO, ETH_PHY_TYPE, ETH_CLK_MODE); ETH.begin(ETH_PHY_ADDR, ETH_PHY_POWER); status_ethernet(); //Serial.println("ethernet mac: "+ ETH.macAddress()); //Serial.println("ethernet ip: "+ ETH.localIP().toString()); } } This is Error in serial ETH Connected ETH Disconnected ETH Connected ETH Disconnected ETH Connected ETH Disconnected ETH Connected ETH Disconnected ETH Connected ETH Disconnected ETH Connected ETH Disconnected RE: KC868-M16v2 Ethernet Problem - admin - 01-03-2024 which code you are using? send URL of your demo code used. is this one? https://www.kincony.com/forum/showthread.php?tid=2878 |