[riot-notifications] [RIOT-OS/RIOT] sys/net/sock: add sock_aux_rssi (#15760)

Marian Buschsieweke notifications at github.com
Wed Jan 13 11:06:13 CET 2021


### Contribution description

- Add module `sock_aux_rssi` to be able to access RSSI values via the SOCK API
- Implement this pseudio module for `gnrc_sock_udp` and `gnrc_sock_ip` (which will also work for DTLS than)
- Extend `tests/sock_gnrc_udp` and `tests/sock_gnrc_ip` to also tests RSSI values
- Add `tests/sock_udp_aux`, which is a UDP echo server that prints all currently supported auxiliary data about received UDP datagrams and sent replies

### Testing procedure

- Murdock will run the unit tests in `tests/sock_gnrc_udp` and `tests/sock_gnrc_ip` for you
- The test application in `tests/sock_udp_aux` will allow testing the RSSI value on real hardware

### Issues/PRs references

- [ ] Depends on and contains: https://github.com/RIOT-OS/RIOT/pull/15754
You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/15760

-- Commit Summary --

  * cpu/nrf5x_common/radio/nrfmin: drop duplicated code
  * sys/net/gnrc: fix in-band signaling of no RSSI
  * sys/net/sock: add sock_aux_rssi
  * sys/net/grnc: implement sock_aux_rssi
  * tests/gnrc_sock_{udp,ip}: test sock_aux_rssi
  * tests/sock_udp_aux: new test application

-- File Changes --

    M cpu/nrf5x_common/radio/nrfmin/nrfmin_gnrc.c (2)
    M makefiles/pseudomodules.inc.mk (1)
    M sys/include/net/gnrc/netif/hdr.h (27)
    M sys/include/net/sock.h (16)
    M sys/include/net/sock/ip.h (10)
    M sys/include/net/sock/udp.h (10)
    M sys/net/gnrc/sock/gnrc_sock.c (6)
    M sys/net/gnrc/sock/include/gnrc_sock_internal.h (4)
    M sys/net/gnrc/sock/ip/gnrc_sock_ip.c (10)
    M sys/net/gnrc/sock/udp/gnrc_sock_udp.c (10)
    M sys/shell/commands/sc_gnrc_icmpv6_echo.c (4)
    M tests/gnrc_sock_ip/Makefile (5)
    M tests/gnrc_sock_ip/main.c (8)
    M tests/gnrc_sock_ip/stack.c (1)
    M tests/gnrc_sock_ip/stack.h (1)
    M tests/gnrc_sock_udp/Makefile (5)
    M tests/gnrc_sock_udp/main.c (10)
    M tests/gnrc_sock_udp/stack.c (1)
    M tests/gnrc_sock_udp/stack.h (1)
    A tests/sock_udp_aux/Makefile (23)
    A tests/sock_udp_aux/main.c (125)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/15760.patch
https://github.com/RIOT-OS/RIOT/pull/15760.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15760
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210113/196134ae/attachment-0001.htm>


More information about the notifications mailing list