Skip to content
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

pkg/semtech-loramac: provide a way to disable dutycycle #11241

Merged
merged 2 commits into from
Mar 27, 2019

Conversation

aabadie
Copy link
Contributor

@aabadie aabadie commented Mar 23, 2019

Contribution description

This PR provides an hidden way to disable the loramac duty-cycle restriction.
See problems with OTAA and STOP mode explained in #11237 for details.

I want this change to remain hidden (not in the public API) because this is only for testing purpose normally, as explained in loramac-node code. But maybe it's worth to document it somewhere ? suggestions are welcome.

Testing procedure

  • Build and flash tests/pkg_semtech-loramac with CFLAGS=-DDISABLE_LORAMAC_DUTYCYCLE
  • Join a lorawan network using a low datarate (let's say 0)
  • Verify that messages can be sent without having to wait for the duty-cycle to complete

Issues/PRs references

This PR provides a fix for OTAA + STOP deep-sleep mode that was raised in #11237

Duty cycle can be disabled by building the application using CFLAGS=-DDISABLE_LORAMAC_DUTYCYCLE
@aabadie aabadie added Area: pkg Area: External package ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Area: LoRa Area: LoRa radio support labels Mar 23, 2019
@aabadie aabadie requested a review from jia200x March 23, 2019 06:39
@fjmolinas
Copy link
Contributor

@aabadie Maybe some documentarion in tests/pkg_semtech_loramac? That way it isn't in the public examples but only in the tests. And is properly documented for running CI test or stuff like that.

@aabadie
Copy link
Contributor Author

aabadie commented Mar 23, 2019

Maybe some documentarion in tests/pkg_semtech_loramac?

Good idea, I pushed e5831cf that contains this.

@fjmolinas
Copy link
Contributor

@aabadie like it!

@aabadie
Copy link
Contributor Author

aabadie commented Mar 23, 2019

Thanks @fjmolinas, now I just need an ACK. Maybe @jia200x ?

@aabadie
Copy link
Contributor Author

aabadie commented Mar 27, 2019

ping @jia200x

@jia200x
Copy link
Member

jia200x commented Mar 27, 2019

the change makes sense. I will test it now

@jia200x
Copy link
Member

jia200x commented Mar 27, 2019

it works

Copy link
Member

@jia200x jia200x left a comment

Choose a reason for hiding this comment

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

ACK

@jia200x jia200x merged commit 61d7b20 into RIOT-OS:master Mar 27, 2019
@aabadie aabadie deleted the pr/pkg/loramac_duty_cycle branch April 10, 2019 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: LoRa Area: LoRa radio support Area: pkg Area: External package ports 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.

3 participants