Arduino ESP32 with KSZ8081 phy

bbreukelen
Posts: 2
Joined: Thu May 31, 2018 7:39 am

Arduino ESP32 with KSZ8081 phy

Postby bbreukelen » Thu May 31, 2018 7:47 am

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

MagnoCube
Posts: 3
Joined: Mon Oct 01, 2018 7:00 am

Re: Arduino ESP32 with KSZ8081 phy

Postby MagnoCube » Mon Oct 01, 2018 7:07 am

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

bbreukelen
Posts: 2
Joined: Thu May 31, 2018 7:39 am

Re: Arduino ESP32 with KSZ8081 phy

Postby bbreukelen » Fri Oct 12, 2018 9:54 am

Hi Stefan,

No, I decided to go with another PHY so we changed the hardware.

Good luck,

Bo

MagnoCube
Posts: 3
Joined: Mon Oct 01, 2018 7:00 am

Re: Arduino ESP32 with KSZ8081 phy

Postby MagnoCube » Fri Oct 12, 2018 12:36 pm

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)

MagnoCube
Posts: 3
Joined: Mon Oct 01, 2018 7:00 am

Re: Arduino ESP32 with KSZ8081 phy

Postby MagnoCube » Tue Jan 08, 2019 11:00 am

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.
Capture.PNG
Capture.PNG (44.72 KiB) Viewed 12773 times
Hope i could help anyone out!

esarac
Posts: 1
Joined: Mon May 18, 2020 2:33 pm

Re: Arduino ESP32 with KSZ8081 phy

Postby esarac » Mon May 18, 2020 2:35 pm

Do you use 8081MLX for connection.Is there any connection schematic which you can share ?
Best Regards

Enis

ThisIsMrT
Posts: 2
Joined: Wed Sep 09, 2020 4:02 pm

Re: Arduino ESP32 with KSZ8081 phy

Postby ThisIsMrT » Thu Sep 10, 2020 7:42 pm

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

linkineo
Posts: 1
Joined: Fri Feb 19, 2021 3:33 pm

Re: Arduino ESP32 with KSZ8081 phy

Postby linkineo » Fri Feb 19, 2021 3:35 pm

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

kdgoranale
Posts: 2
Joined: Wed Dec 21, 2022 12:05 pm

Re: Arduino ESP32 with KSZ8081 phy

Postby kdgoranale » Wed Dec 21, 2022 12:12 pm

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!
Attachments
WhatsApp Image 2022-12-19 at 17.33.18.jpeg
WhatsApp Image 2022-12-19 at 17.33.18.jpeg (256.92 KiB) Viewed 6177 times

ESP_ondrej
Posts: 211
Joined: Fri May 07, 2021 10:35 am

Re: Arduino ESP32 with KSZ8081 phy

Postby ESP_ondrej » Fri Dec 23, 2022 7:43 am

Hi,

do you use your own custom board?

Who is online

Users browsing this forum: No registered users and 88 guests