[riot-notifications] [RIOT-OS/RIOT] drivers/at86rf215: use channel pages for other modulation and bands (#16315)

Jean Pierre Dudey notifications at github.com
Mon Apr 12 12:21:18 CEST 2021


### Contribution description

This adds the code for handling the channel pages, as specified by 2006 and 2012 IEEE 802.15.4 standards,
channel page nine is for SUN PHYs whereas the 0, 1 and 2 are for 2006 modulation and bands.

The `at86rf215_set_page` function uses the following table to set the proper PHY and band for 2006 modulations:

![Screenshot from 2021-04-12 12-18-56](https://user-images.githubusercontent.com/5952531/114379612-4e373d80-9b89-11eb-8885-07e223a24d0d.png)

And for 2012:

![Screenshot from 2021-04-12 12-20-40](https://user-images.githubusercontent.com/5952531/114379778-83dc2680-9b89-11eb-9d42-5efb6a18d895.png)



### Testing procedure

Untested by me, just throwed some code around to see what could come up.

- `make -C examples/gnrc_networking BOARD=openmote-b` and try various combinations of:
- `ifconfig [iface] set page 2` For Sub-GHZ
- `ifconfig [iface] set channel 0` Should now be in 868 MHz
- `ifconfig [iface] set channel 1` Should now be in 915 MHz

And try pinging with at least two nodes.

### Issues/PRs references

Fix for #16420 for IEEE 802.15.4-2006 modulations, for 802.15.4g-2012 there is still work to do though.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * drivers/at86rf215: select only the lowest available channel
  * drivers/at86rf215: add setter for NETOPT_CHANNEL_PAGE

-- File Changes --

    M drivers/at86rf215/at86rf215_fsk.c (5)
    M drivers/at86rf215/at86rf215_getset.c (84)
    M drivers/at86rf215/at86rf215_internal.c (18)
    M drivers/at86rf215/at86rf215_netdev.c (41)
    M drivers/at86rf215/at86rf215_o-qpsk.c (78)
    M drivers/at86rf215/at86rf215_ofdm.c (4)
    M drivers/include/at86rf215.h (11)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/16315.patch
https://github.com/RIOT-OS/RIOT/pull/16315.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/16315
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210412/45134181/attachment.htm>


More information about the notifications mailing list