-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shell_commands: gnrc_netif: add support for getting/setting PHY modes & options #12171
Conversation
d8329f4
to
925e9c4
Compare
no reviews yet, so I guess it's OK to force-push Just querying & displaying the PHY mode grows ROM on |
925e9c4
to
6bb67e5
Compare
With |
6bb67e5
to
232b1cb
Compare
I don't know much about the network stuff, but looking at this PR I can tell it should be split into the AT86RF2XX driver changes and the network ones because:
|
232b1cb
to
eee327d
Compare
I agree, I wanted to provide it as an example outside of at86rf215, but better make a separate PR for this then. |
This patch adds support for setting PHY modes as specified in 802.15.4 as well as those added in IEEE 802.15.4g-2012. If the driver implements support for it, this adds commands to configure - Chip/s & rate mode for O-QPSK - Modulation / Coding Scheme and Option for OFDM - Modulation Index, Modulation Order, Symbol Rate and Forward Error Correction for FSK Modulation Index is represented as fractions on 64 to ease implementations.
eee327d
to
496df78
Compare
rebased to #12295 |
As I mentioned in #12128 :
For example, this would reduce the FSK config steps (through the shell) to: ifconfig 7 set phy_mode fsk
ifconfig 7 set operating_mode 1 Internally (similar to how you did it for OFDM), this would then result in a number of spi commands that configure the AT86RF215 radio according to the frequency band and operating mode. The proper config parameters (i.e., data rate, modulation index, modulation order, channel spacing) depend on the frequency band and operating mode and can be found in table 20-6 and table 10-10. I agree that this doesn't use the FSK capabilities to its full potential but then at least it's according to spec because as of now, e.g., the sub ghz channel spacing is hardcoded as 200 kHz and setting a modulation index of 0.33 with a data rate of 200 kHz and a modulation order of 4 would cause adjacent channels to overlap significantly. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions. |
Should we close this one @benpicco I think it got in your last |
Yes this is already partially in and will now be added as part of the new modulations. |
Contribution description
I'm getting afraid that if #12128 gets too big, nobody will review it, so I factored out the part that makes changes to common code.
This patch adds support for setting PHY modes as specified in 802.15.4 as well as those added in IEEE 802.15.4g-2012.
If the driver implements support for it, this adds commands to configure
Modulation Index is represented as fractions of 64 to ease implementations.
Some options are also applicable for
at86rf2xx
andmrf24j40
(probably others too, I just didn't look), they could also add more configurable for e.g. BPSK options.I will add try to add implementations for some existing drivers to this PR.
Testing procedure
Should do nothing unless the driver supports it.
Or on
samr30-xpro
you should now be able to to the following:You should get
Issues/PRs references
#12128 is the first driver to make use of this interface
#12185 implements the interface for
at86rf2xx