Smart Home Automation Forum
[Arduino IDE demo source code for KC868-A32]--#08-Ethernet_LAN_Web_server - 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-A32/A32 Pro (https://www.kincony.com/forum/forumdisplay.php?fid=27)
+--- Thread: [Arduino IDE demo source code for KC868-A32]--#08-Ethernet_LAN_Web_server (/showthread.php?tid=2226)

Pages: 1 2


RE: [Arduino IDE demo source code for KC868-A32]--#08-Ethernet_LAN_Web_server - admin - 03-08-2023

ok


RE: [Arduino IDE demo source code for KC868-A32]--#08-Ethernet_LAN_Web_server - tugalsan - 04-03-2023

Hello,

When i compile and upload the code. I am getting below error:
Code:
rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:10124
load:0x40080400,len:5856
entry 0x400806a8

Starting WebServer on NodeMCU_32S with ETH_PHY_LAN8720
WebServer_WT32_ETH01 v1.5.1 for core v1.0.6-
E (1041) emac: Timed out waiting for PHY register 0x2 to have value 0x0007(mask 0xffff). Current value 0xffff
E (2041) emac: Timed out waiting for PHY register 0x3 to have value 0xc0f0(mask 0xfff0). Current value 0xffff
E (2041) emac: Initialise PHY device Timeout

On internet, forums tells me to test the Lan module with the code below:
https://github.com/espressif/arduino-esp32/blob/1.0.3-rc1/libraries/WiFi/examples/ETH_LAN8720/ETH_LAN8720.ino
Here is the result:
Code:
rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:10124
load:0x40080400,len:5856
entry 0x400806a8
E (1028) emac: Timed out waiting for PHY register 0x2 to have value 0x0007(mask 0xffff). Current value 0xffff
E (2028) emac: Timed out waiting for PHY register 0x3 to have value 0xc0f0(mask 0xfff0). Current value 0xffff
E (2028) emac: Initialise PHY device Timeout
E (1028) emac: Timed out waiting for PHY register 0x2 to have value 0x0007(mask 0xffff). Current value 0xffff
E (2028) emac: Timed out waiting for PHY register 0x3 to have value 0xc0f0(mask 0xfff0). Current value 0xffff
E (2028) emac: Initialise PHY device Timeout

This site tels a very complex things about worng pins and such to create the bug again.
https://github.com/espressif/arduino-esp32/issues/3734

Can you reproduce the problem, so that you may have a solution for this.


Because I cannot use Lan, I have to connect through usb cable  Confused
Here is my code: github


RE: [Arduino IDE demo source code for KC868-A32]--#08-Ethernet_LAN_Web_server - admin - 04-12-2023

can you download our "KCS" firmware for a test?
https://www.kincony.com/forum/showthread.php?tid=2764


RE: [Arduino IDE demo source code for KC868-A32]--#08-Ethernet_LAN_Web_server - tugalsan - 04-17-2023

(04-12-2023, 06:10 AM)admin Wrote: can you download our "KCS" firmware for a test?
https://www.kincony.com/forum/showthread.php?tid=2764

I uploaded it but could not connect the ip. may be it is a lan cofiguration issue. I will try again as soon as i will have time. thank you for the support.


RE: [Arduino IDE demo source code for KC868-A32]--#08-Ethernet_LAN_Web_server - admin - 04-17-2023

ok


RE: [Arduino IDE demo source code for KC868-A32]--#08-Ethernet_LAN_Web_server - Jora - 05-23-2024

Heart7:42:44.620 -> rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
07:42:44.620 -> configsip: 0, SPIWP:0xee
07:42:44.620 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
07:42:44.620 -> modeBig GrinIO, clock div:1
07:42:44.671 -> load:0x3fff0030,len:1184
07:42:44.671 -> load:0x40078000,len:13260
07:42:44.671 -> load:0x40080400,len:3028
07:42:44.671 -> entry 0x400805e4
07:42:44.933 ->
07:42:44.933 -> Starting WebServer on NodeMCU_32S with ETH_PHY_LAN8720
07:42:44.973 -> WebServer_WT32_ETH01 v1.5.1 for core v2.0.0+
07:42:45.977 -> E (1023) esp.emac: emac_esp32_init(357): reset timeout
07:42:45.977 -> E (1023) esp_eth: esp_eth_driver_install(214): init mac failed
07:47:29.087 -> E (1023) esp.emac: emac_esp32_init(357): reset timeout
07:47:29.087 -> E (1023) esp_eth: esp_eth_driver_install(214): init mac failed


Can U explain step by step where our problem is?
We can tray bin file?


RE: [Arduino IDE demo source code for KC868-A32]--#08-Ethernet_LAN_Web_server - admin - 05-23-2024

do you using KC868-A32? make sure you have set the ethernet LAN8720 chip pin define for arduino library.