![]() |
|
KC868-A16 - Own Arduino firmware - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=1) +--- Forum: Development (https://www.kincony.com/forum/forumdisplay.php?fid=4) +--- Thread: KC868-A16 - Own Arduino firmware (/showthread.php?tid=7057) Pages:
1
2
|
RE: KC868-A16 - Own Arduino firmware - boe666 - 11-14-2024 I already have the PCB I tried to upload the example from ESP32 (it compiles correctly), however, in the serial window there is an error related to the MAC address:Code: st:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)Code: #define ETH_PHY_TYPE ETH_PHY_LAN8720RE: KC868-A16 - Own Arduino firmware - admin - 11-14-2024 your LAN8720 setting wrong. set as mine: Ethernet (LAN8720) I/O define: #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 RE: KC868-A16 - Own Arduino firmware - boe666 - 11-15-2024 I just thought of this a moment ago, thanks for the info (the example compiles and works fine) - but the question is whether these values shouldn't be set somewhere in WebServer_WT32_ETH01. Why so many compiler errors for this example and the fact that it's impossible to compile? RE: KC868-A16 - Own Arduino firmware - boe666 - 11-15-2024 the settings should be: #define ETH_PHY_TYPE ETH_PHY_LAN8720 #define ETH_PHY_ADDR 0 #define ETH_PHY_MDC 23 #define ETH_PHY_MDIO 18 #define ETH_PHY_POWER -1 #define ETH_CLK_MODE ETH_CLOCK_GPIO17_OUT then works. RE: KC868-A16 - Own Arduino firmware - admin - 11-15-2024 ok, good. RE: KC868-A16 - Own Arduino firmware - boe666 - 11-16-2024 Generally, launching the mysensors library on KC868-A16 is solved. All you need to do is initialize PHY for ESP32 using the ETH.h library from the Espresiff package in the MyHWESP32 files. Then it's a matter of eliminating WiFI initialization which is automatically launched for ESP32. Interestingly, you can use two IP addresses at the same time, one from PHY and the other from Wifi - of course Mysensors responds to both. If anyone is interested in the solution - I invite you to talk. I'm a bit surprised that PHY support for ESP32 has not been professionally added by the Mysensors team, because it is quite simple and does not require major changes to the code - and it would be easier for everyone - KICONY itself could do it - thanks to which their product would be compatible with this library. |