Only 15 UDP packets / second with W5100S-EVB-Pico possible? #6
-
Hi @khoih-prog , first of all thanks a lot for your efforts with all of your projects! Now my question: Any idea about what could cause this? Please let me know if you need any further information! Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
Hi @FeuerSturm Thanks for your encouraging words about the libraries.
It's really impossible for anyone to duplicate and understand the issue without Minimal, Reproducible Example. I guess now only you can try and figure out and get more info if the performance is somehow related on
You can try and isolate by using
Sorry I can't help anything now, and waiting for your test results. |
Beta Was this translation helpful? Give feedback.
-
I found the problem, it seems that using the hostname of the target device for sending the UDP packets slows sending them down massively. This is my absolutely minimal test sketch: Could you please be so kind and investigate? Thank you! |
Beta Was this translation helpful? Give feedback.
-
It's good you spent some more time to investigate, but you still need to understand more about the network / DNS operation. Try the following code and study then know what you've done wrong (I won't go into details and hope your research will help you better)
and you'll see the result is consistent, USE_HOSTNAME or not mbed_rp2040 core => worse network performanceUDP_Test USE_IP on RaspberryPi Pico
arduino-pico core => much better network performanceUDP_Test USE_HOSTNAME on RASPBERRY_PI_PICO
|
Beta Was this translation helpful? Give feedback.
-
Oh, by the way, would it be possible to get the ability to "setHostname" like we can do for Wifi in the future? |
Beta Was this translation helpful? Give feedback.
It's good you spent some more time to investigate, but you still need to understand more about the network / DNS operation.
Try the following code and study then know what you've done wrong (I won't go into details and hope your research will help you better)