Arduino ESP32 with KSZ8081 phy
-
- Posts: 2
- Joined: Thu May 31, 2018 7:39 am
Arduino ESP32 with KSZ8081 phy
Hi,
I'm using an ESP32 with a KSZ8081 phy network board.
I noticed that the LAN8720 and TLK110 are supported in the SDK but how can I add support for the KSZ8081?
I probably only need to change the expected chip id from registers 2 and 3, but the existing libraries are compiled object files which I can't edit.
Did anyone ever successfully use the esp32 with Arduino with a network phy other than the sdk-builtin ones?
Thanks!
Bo
I'm using an ESP32 with a KSZ8081 phy network board.
I noticed that the LAN8720 and TLK110 are supported in the SDK but how can I add support for the KSZ8081?
I probably only need to change the expected chip id from registers 2 and 3, but the existing libraries are compiled object files which I can't edit.
Did anyone ever successfully use the esp32 with Arduino with a network phy other than the sdk-builtin ones?
Thanks!
Bo
Re: Arduino ESP32 with KSZ8081 phy
Hello Bo,
Soon i will be trying to do the same thing as you tried to do 4 months ago.
I wonder if you have had any progress or hints for me to keep in mind.
Same goes the other way around. If i will manage to get the PHY working i will let you know!
Many thanks,
Stefan
Soon i will be trying to do the same thing as you tried to do 4 months ago.
I wonder if you have had any progress or hints for me to keep in mind.
Same goes the other way around. If i will manage to get the PHY working i will let you know!
Many thanks,
Stefan
-
- Posts: 2
- Joined: Thu May 31, 2018 7:39 am
Re: Arduino ESP32 with KSZ8081 phy
Hi Stefan,
No, I decided to go with another PHY so we changed the hardware.
Good luck,
Bo
No, I decided to go with another PHY so we changed the hardware.
Good luck,
Bo
Re: Arduino ESP32 with KSZ8081 phy
I have just received the PCB for testing. I will let you know if i get some results.
(in case you or someone else might need it)
(in case you or someone else might need it)
Re: Arduino ESP32 with KSZ8081 phy
Alright, I got everything working. However it is all done in the ESP-idf from Espressif (and not the Arduino core).
Basically i copied the example of the LAN8720 and removed all the setup. (so no internal registers got changed, all stayed on default), and changed all the names to from LAN870 to KSZ8081
Then i changed the PHY-ID to the one specified in the datasheet.
I know this is a dirty workaround. but i had no luck/time to get it done in a nicer way.
The RMII bus still gives an interrupt when the link is up.
Everything works fine, I did not have a single problem regarding Ethernet connection.
I added a image for a more clear picture. Hope i could help anyone out!
Basically i copied the example of the LAN8720 and removed all the setup. (so no internal registers got changed, all stayed on default), and changed all the names to from LAN870 to KSZ8081
Then i changed the PHY-ID to the one specified in the datasheet.
I know this is a dirty workaround. but i had no luck/time to get it done in a nicer way.
The RMII bus still gives an interrupt when the link is up.
Everything works fine, I did not have a single problem regarding Ethernet connection.
I added a image for a more clear picture. Hope i could help anyone out!
Re: Arduino ESP32 with KSZ8081 phy
Do you use 8081MLX for connection.Is there any connection schematic which you can share ?
Best Regards
Enis
Best Regards
Enis
Re: Arduino ESP32 with KSZ8081 phy
Hi there,
just wanna do the same thing. Because I have couple of KZ8081 in the laboratory stock.
Did you improve your dirty solution?
Did there occur any problems so far?
Best Regards
Thomas
just wanna do the same thing. Because I have couple of KZ8081 in the laboratory stock.
Did you improve your dirty solution?
Did there occur any problems so far?
Best Regards
Thomas
Re: Arduino ESP32 with KSZ8081 phy
Hey, just posted a PR to have the KSZ8081 driver mainline. It's for esp-idf 4.3 but you can easily backport it.
https://github.com/espressif/esp-idf/pull/6578
https://github.com/espressif/esp-idf/pull/6578
-
- Posts: 2
- Joined: Wed Dec 21, 2022 12:05 pm
Re: Arduino ESP32 with KSZ8081 phy
Hi,
I am using ESP-IDF and I can see now the chip selection (KSZ80xx) is given in the ethernet example code. I have tried to configure the ethernet example for KSZ8081 but have not been able to succeed.
I am getting "Ethernet Started" but link is not getting up and getting IP address.
Please help me to configure the project KSZ8081 till I am getting IP address and network connectivity.
Thank you!
I am using ESP-IDF and I can see now the chip selection (KSZ80xx) is given in the ethernet example code. I have tried to configure the ethernet example for KSZ8081 but have not been able to succeed.
I am getting "Ethernet Started" but link is not getting up and getting IP address.
Please help me to configure the project KSZ8081 till I am getting IP address and network connectivity.
Thank you!
- Attachments
-
- WhatsApp Image 2022-12-19 at 17.33.18.jpeg (256.92 KiB) Viewed 6188 times
-
- Posts: 211
- Joined: Fri May 07, 2021 10:35 am
Re: Arduino ESP32 with KSZ8081 phy
Hi,
do you use your own custom board?
do you use your own custom board?
Who is online
Users browsing this forum: lbernstone and 112 guests