Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LAN8720
#1
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
Reply
#2
do you have set the Ethernet LAN8720 chip pin define in config file firstly?
Reply
#3
(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?
Reply
#4
check with ETH.h file
   
Reply
#5
(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


Attached Files Image(s)
   
Reply
#6
yes, config define as my photo.
Reply
#7
(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?
Reply
#8
you login your router, check whether have a new IP address.
or you can see the LOG printed on USB-Serial port.
Reply
#9
(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?
Reply
#10
connect your board and computer to same router.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)