-
-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ethernet: High ping on Portenta H7 compared to MKR Shield #955
Comments
anybody any idea? I tried increasing some values in
|
@razvanphp are you getting the same results using WiFi? or WiFi is working good? If it is i would say the root cause is probably at lower level than LwIP. |
Hi! I just completed rewriting the entire STM32H7 ethernet driver in Mbed. I think there's a good chance it will solve this issue, as the existing one was held together with the digital equivalent of glue and duct tape. PR here: mbed-ce/mbed-os#438 |
Did you managed to get better latency with the new driver? Any idea if I can test your branch before mbed merges it? Not sure how Arduino layer plays on top of mbed, now that mbed is deprecated officially. |
What board(s) do you have? Currrntly Mbed can be built directly (no arduino) for Portenta H7 and Giga. I also have a WIP version of this arduino core based on Mbed CE, I can try to set it up to work for Portenta |
Portenta H7. I could replace some files on my machine and clear the cache, it should load it on a fresh build, if it is compatible with arduino ETH API that is built on-top. Would love to test it. Thank you! |
Yeah if you manually apply my patch, it should work. Also I will work on preparing a version of the mbed ce arduino core for you. |
Good news! I was able to prepare a Portenta release of the Mbed CE arduino core. Still have more checking to do, but I was able to confirm that it at least boots, flashes code, and can talk over Ethernet. Please give it a try if you have a chance! https://github.com/mbed-ce/ArduinoCore-mbed-ce/releases/tag/v1.2.0 If everything works, this should be a drop in replacement for the regular Arduino code that is compatible with the same code. |
After migrating our app from MKR WiFi 1010 + ETH shield --> Portenta H7 + Vision Shield, we noticed increased and uneven/unstable ping response times.
Here it is how it looks like on MKR:
And here it is on Portenta H7:
I suspect this is impacting our app's performance, since we need sub ms processing of the data received over ethernet, but not sure how to approach this problem.
Userland code is basically inexistent, as I'm testing just with this:
Initially I though this is because MKR ETH Shield uses W5500 chipset with a built-in hardware TCP/IP stack, while Portenta H7 uses LAN8742AI, an Ethernet PHY that requires a software TCP/IP stack like LwIP.
But today I tried to flash the exact same board with micropython and ping times look perfect:
Are there any settings or optimisations that we could try in LwIP? Seems the issue is not in HW.
Thank you!
R
PS: opened initially in arduino-libraries/Ethernet#275
The text was updated successfully, but these errors were encountered: