Skip to content

add testmode and cca mode option to netdev#5485

Merged
miri64 merged 3 commits intoRIOT-OS:masterfrom
jfischer-no:pr@add-opt-netdev
Aug 5, 2016
Merged

add testmode and cca mode option to netdev#5485
miri64 merged 3 commits intoRIOT-OS:masterfrom
jfischer-no:pr@add-opt-netdev

Conversation

@jfischer-no
Copy link
Copy Markdown
Contributor

This PR adds a Testmode option and CCA Mode option to netdev (netopt).
Picked from #5469

@jfischer-no jfischer-no added the Area: network Area: Networking label May 31, 2016
* @brief get/set the CCA mode for the radio transceiver
*
* Set the type corresponding to the respective PHY standard,
* e.g Std 802.15.4
Copy link
Copy Markdown
Member

@miri64 miri64 Jun 1, 2016

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packet loss? ;-)

Copy link
Copy Markdown
Member

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 ;)

@jfischer-no
Copy link
Copy Markdown
Contributor Author

@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,
Copy link
Copy Markdown
Member

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 ;-)

@jfischer-no
Copy link
Copy Markdown
Contributor Author

@miri64 updated

@jfischer-no jfischer-no added the CI: needs squashing Commits in this PR need to be squashed; If set, CI systems will mark this PR as unmergable label Jun 8, 2016
@miri64
Copy link
Copy Markdown
Member

miri64 commented Jun 8, 2016

ACK, please squash.

@jfischer-no jfischer-no added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: needs squashing Commits in this PR need to be squashed; If set, CI systems will mark this PR as unmergable labels Jun 9, 2016
@miri64
Copy link
Copy Markdown
Member

miri64 commented Jul 18, 2016

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
Copy link
Copy Markdown
Member

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.

@miri64
Copy link
Copy Markdown
Member

miri64 commented Jul 18, 2016

I think netopt2str() needs some adaption, too.

@jfischer-no
Copy link
Copy Markdown
Contributor Author

@miri64 I'm just on it, what do you mean about netopt2str()?

@jfischer-no jfischer-no added CI: needs squashing Commits in this PR need to be squashed; If set, CI systems will mark this PR as unmergable and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Jul 18, 2016
@miri64
Copy link
Copy Markdown
Member

miri64 commented Jul 18, 2016

what do you mean about netopt2str()?

You probably just have to extend the _netopt_strmap.

@jfischer-no
Copy link
Copy Markdown
Contributor Author

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.
@miri64 miri64 added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: needs squashing Commits in this PR need to be squashed; If set, CI systems will mark this PR as unmergable labels Aug 5, 2016
@miri64
Copy link
Copy Markdown
Member

miri64 commented Aug 5, 2016

Sorry again for forgetting >.<. Let's see what Murdock thinks.

@miri64 miri64 merged commit cf11a0d into RIOT-OS:master Aug 5, 2016
*/
typedef enum {
NETDEV2_IEEE802154_CCA_MODE_1 = 1, /**< Energy above threshold */
NETDEV2_IEEE802154_CCA_MODE_2, /**< Carrier sense only */
Copy link
Copy Markdown

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.

Copy link
Copy Markdown
Member

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?

Copy link
Copy Markdown
Contributor Author

@jfischer-no jfischer-no Aug 15, 2016

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 ?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this resolved?

@miri64 miri64 added this to the Release 2016.10 milestone Oct 14, 2016
@jfischer-no jfischer-no deleted the pr@add-opt-netdev branch January 23, 2017 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: network Area: Networking CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants