examples/gnrc_networking: move udp command to shell commands#16598
examples/gnrc_networking: move udp command to shell commands#16598benpicco merged 1 commit intoRIOT-OS:masterfrom
Conversation
|
Which I personally also use a lot by now: I have extended the command with the optional parameter "-s" (size) to directly send a fixed number of bytes. This is then always the same character, but is great for quickly testing a specific packet size via shell. Having something like that later would be handy (possibly as a subsequent PR). |
fjmolinas
left a comment
There was a problem hiding this comment.
How different is tests/gnrc_udp/udp.c from this? Can it be re-used there as well?
|
Indeed, it's the same code - but that one comes with it's own server thread instead of |
|
I think you will find a lot of applications that use a variant of this code. I always wanted to consolidate them somehow (maybe even make a version that is both compatible with |
The `udp` command is a valuable debugging tool that is also useful outside of the gnrc_networking example. To enable easy sending of udp messages in other applications during development, move the `udp` command to the shell module and introduce the `gnrc_udp_cmd` pseudo-module to enable it.
|
rebased after #16634 was merged |
Is that an ACK or a will not NACK? |
|
A won't NACK. |
|
Lets get this one in, @benpicco can you provide some test output? |
|
Sure. e.g. when adding to the border router application: |
Contribution description
The
udpcommand is a valuable debugging tool that is also useful outside of the gnrc_networking example.To enable easy sending of udp messages in other applications during development, move the
udpcommand to the shell module and introduce thegnrc_udp_cmdpseudo-module to enable it.Testing procedure
The
udpcommand is still present in thegnrc_networkingexample.But it's now also possible to add
to e.g.
examples/gnrc_border_routerand have a simple test for one-way communication available there.Issues/PRs references