sys/shell: add generic udp command#22049
Conversation
Just tested, it also fails on current |
Obviously this is just another instance of #21843 |
ea01134 to
9bacb00
Compare
maribu
left a comment
There was a problem hiding this comment.
Thx! looks good to me. some remarks inline.
| #if IS_USED(MODULE_ZTIMER_USEC) | ||
| ztimer_sleep(ZTIMER_USEC, delay); | ||
| #elif IS_USED(MODULE_ZTIMER_MSEC) | ||
| ztimer_sleep(ZTIMER_MSEC, (delay + US_PER_MS - 1) / US_PER_MS); | ||
| #endif |
There was a problem hiding this comment.
@benpicco How far are we with ripping out the xtimer code and using the xtimer-API as a thin layer on top of ztimer for when you want "whatever clock is available" to be used?
|
Some memory stats: |
|
I think everything should be addressed by now. Friendly ping @maribu |
877569c to
0c38863
Compare
0c38863 to
bde6ec3
Compare
bde6ec3 to
7393302
Compare
|
Thanks for the reviews! :) |
Contribution description
I've noticed there are several shell command implementations for
udpsend and server functionality in RIOT. This PRs starts to unify those by replacingshell_cmd_gnrc_udpand the custom one intests/pkg/lwipby a generic implementation based onsock_udp.This command is added to the default shell commands if
sock_udpis used.Testing procedure
Tested successfully on
native64(Linux on the other side) withexamples/networking/gnrc/networkingandtests/pkg/lwip, both with IPv6 and IPv4 (on lwip).Also just ran an interop test with having lwip on an
adafruit-feather-nrf52840-senseand gnrc running on annrf52840dk. I was able to send data from gnrc to lwip, but not the other way around for some reason. Needs further investigation.Issues/PRs references
This is one step further to getting rid of the msg_queue requirement boilerplate in many example applications, as this implementation in contrast to the
gnrc-specific one does not require a msg_queue (shell_cmd_gnrc_icmpv6_echois the next and last one to tackle).