Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-M16v2 Ethernet Problem
#1
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
Reply
#2
which code you are using? send URL of your demo code used.
is this one? https://www.kincony.com/forum/showthread.php?tid=2878
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)