Smart Home Automation Forum
LAN8720 - 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-E16S/E16P (https://www.kincony.com/forum/forumdisplay.php?fid=26)
+--- Thread: LAN8720 (/showthread.php?tid=6107)

Pages: 1 2


LAN8720 - desert286 - 07-16-2024

Hi everybody. I have a problem: I need to configure the KS868-E16st board so that the relays on it turn on according to the get request. I tried to use the code from this appeal: https://www.kincony.com/forum/showthread.php?tid=1927 But without result.
When compiling the code, the following error pops up:

invalid conversion from 'int' to 'eth_phy_type_t' [-fpermissive]

Maybe the problem is with the wrong board in the Arduino IDE?

Versions of my apps:
Arduino 1.8.19
Ethernet 1.1.2

I hope on your help!
Thanks


RE: LAN8720 - admin - 07-16-2024

do you have set the Ethernet LAN8720 chip pin define in config file firstly?


RE: LAN8720 - desert286 - 07-17-2024

(07-16-2024, 09:46 PM)admin Wrote: do you have set the Ethernet LAN8720 chip pin define in config file firstly?

I don't quite understand what you mean. Where can I find this config file?


RE: LAN8720 - admin - 07-17-2024

check with ETH.h file
   


RE: LAN8720 - desert286 - 07-17-2024

(07-17-2024, 05:52 AM)admin Wrote: check with ETH.h file

I have a different version of Eth.h. Maybe that's the problem? 
There is the way:

...\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2\libraries\Ethernet\src\ETH.h


RE: LAN8720 - admin - 07-17-2024

yes, config define as my photo.


RE: LAN8720 - desert286 - 07-17-2024

(07-17-2024, 09:37 AM)admin Wrote: yes, config define as my photo.

Great. The script has loaded onto the board. But how do I check that she got the IP? Ping via cmd does not work. And which board should I choose in arduino?


RE: LAN8720 - admin - 07-17-2024

you login your router, check whether have a new IP address.
or you can see the LOG printed on USB-Serial port.


RE: LAN8720 - desert286 - 07-17-2024

(07-17-2024, 12:22 PM)admin Wrote: you login your router, check whether have a new IP address.
or you can see the LOG printed on USB-Serial port.

And if I need a direct lan cable connection from the board to the computer?


RE: LAN8720 - admin - 07-17-2024

connect your board and computer to same router.