Skip to content

LoRaWAN: Adding TOA and Channel info in RX metadata #10214

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

Merged
merged 2 commits into from
Mar 28, 2019

Conversation

hasnainvirk
Copy link
Contributor

Description

We provide now downlink channel frequency and time on air for the
received frame in the RX metadata.
Previously the channel information in both TX and RX metada contained
the index number of the channel. That information wasn't very useful
except the index numbers of default channels. To make more sense of the
meta data, we now store the channel frequency in the channel parameter
rather than the index number of the channel.

RX time on air is collected from the radio driver and it is assumed that
the downlink frame had 8 downlink preamble symbols (plus 4.25 of the
preambles added by the chip) for LoRa modulation.

This commit also include a bit of tidying of RX frequency storage in rx
configuration parameters storage. Previously we were missing filling in
the RX1 frequency correctly.

Pull request type

[X] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

@AnttiKauppila @kjbracey-arm @cmonr

Release Notes

@hasnainvirk hasnainvirk changed the title Adding TOA and Channel info in RX metadata LoRaWAN: Adding TOA and Channel info in RX metadata Mar 25, 2019
@ciarmcom ciarmcom requested review from AnttiKauppila, cmonr, kjbracey and a team March 25, 2019 16:00
@ciarmcom
Copy link
Member

@hasnainvirk, thank you for your changes.
@AnttiKauppila @cmonr @kjbracey-arm @ARMmbed/mbed-os-wan @ARMmbed/mbed-os-maintainers please review.

Copy link
Contributor

@cmonr cmonr left a comment

Choose a reason for hiding this comment

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

Even though a new function was added, the addition makes enough sense to still come into a patch release.

@cmonr
Copy link
Contributor

cmonr commented Mar 26, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Mar 26, 2019

Test run: FAILED

Summary: 1 of 1 test jobs failed
Build number : 1
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_unittests

@AnttiKauppila
Copy link

@cmonr Added function is for internal use only, so public API is untouched

Hasnain Virk added 2 commits March 27, 2019 10:23
We provide now downlink channel frequency and time on air for the
received frame in the RX metadata.
Previously the channel information in both TX and RX metada contained
the index number of the channel. That information wasn't very useful
except the index numbers of default channels. To make more sense of the
meta data, we now store the channel frequency in the channel parameter
rather than the index number of the channel.

RX time on air is collected from the radio driver and it is assumed that
the downlink frame had 8 downlink preamble symbols (plus 4.25 of the
preambles added by the chip) for LoRa modulation.

This commit also include a bit of tidying of RX frequency storage in rx
configuration parameters storage. Previously we were missing filling in
the RX1 frequency correctly.
The change had an impact on unittests and we needed to adjust the test
cases a little to accomodate the change.
@hasnainvirk
Copy link
Contributor Author

@AnttiKauppila @cmonr Unit tests are patched.

@adbridge
Copy link
Contributor

@hasnainvirk is this ready for re-review ?

@cmonr
Copy link
Contributor

cmonr commented Mar 27, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Mar 28, 2019

Test run: SUCCESS

Summary: 13 of 13 test jobs passed
Build number : 2
Build artifacts

@hasnainvirk
Copy link
Contributor Author

@adbridge It's already reviewed. Ready for merge.

cmonr pushed a commit to cmonr/mbed-os that referenced this pull request Mar 28, 2019
LoRaWAN: Adding TOA and Channel info in RX metadata
@cmonr cmonr merged commit 716beb9 into ARMmbed:master Mar 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants