-
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
add testmode and cca mode option to netdev #5485
Conversation
* | ||
* Set the type corresponding to the respective PHY standard, | ||
* e.g Std 802.15.4 | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please document required type of value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Packet loss? ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, just trigger happy auto-correction ;)
@miri64 ping |
* @brief Test mode for the radio, e.g. for CE or FCC certification | ||
* | ||
* @note Setting this option should always return -ENOTSUP, | ||
* unless it was explicitly allowed to build time, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"at build time", unless you really require the option to construct time ;-)
@miri64 updated |
ACK, please squash. |
Ooops, sorry for forgetting about this one. |
* unless it was explicitly allowed at build time, | ||
* therefore it should be secured with an additional macro in the device driver. | ||
* For development and certification purposes only, this test modes can disturb | ||
* normal radio communications and exceed the limits, established by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a trailing whitespace here.
I think |
@miri64 I'm just on it, what do you mean about |
You probably just have to extend the _netopt_strmap. |
@miri64 finished |
This patch adds two new options to netopt. NETOPT_CCA_MODE to set the CCA mode corresponding to the respective PHY standard and NETOPT_RF_TESTMODE to set the test mode for the radio.
Sorry again for forgetting >.<. Let's see what Murdock thinks. |
typedef enum { | ||
NETDEV2_IEEE802154_CCA_MODE_1 = 1, /**< Energy above threshold */ | ||
NETDEV2_IEEE802154_CCA_MODE_2, /**< Carrier sense only */ | ||
NETDEV2_IEEE802154_CCA_MODE_3, /**< Carrier sense with energy above threshold */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This mode need more information if it's logical OR "or" AND mode.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jfischer-phytec-iot could you provide another PR for this, please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexaring you mean NETDEV2_IEEE802154_CCA_MODE_3
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this resolved?
This PR adds a Testmode option and CCA Mode option to netdev (netopt).
Picked from #5469