Skip to content

pkg/semtech_loramac: handle non OK mcps confirm messages#8982

Merged
jia200x merged 2 commits intoRIOT-OS:masterfrom
aabadie:pr/pkg/semtech_loramac_mcps_fail
May 8, 2018
Merged

pkg/semtech_loramac: handle non OK mcps confirm messages#8982
jia200x merged 2 commits intoRIOT-OS:masterfrom
aabadie:pr/pkg/semtech_loramac_mcps_fail

Conversation

@aabadie
Copy link
Copy Markdown
Contributor

@aabadie aabadie commented Apr 19, 2018

Contribution description

This PR is built on top of #8798 and #8639 and provides a fallback when no OK MCPS confirm message is received from the network after a TX.

It doesn't solve the fact that no message can be received when using ABP activation but at least it prevents the mac thread from being stuck forever.

For simplicity, non OK status are all treated as error (so we don't distinguish all the cases). See here for more information.

Issues/PRs references

Based on #8798 and #8639

@aabadie aabadie added Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation Area: LoRa Area: LoRa radio support labels Apr 19, 2018
@aabadie aabadie requested a review from dylad April 19, 2018 10:31
@aabadie aabadie added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Apr 19, 2018
@aabadie aabadie changed the title pkg/semtech loramac mcps fail pkg/semtech_loramac: handle non OK mcps indication Apr 19, 2018
@aabadie aabadie changed the title pkg/semtech_loramac: handle non OK mcps indication pkg/semtech_loramac: handle non OK mcps indication event Apr 19, 2018
@aabadie aabadie changed the title pkg/semtech_loramac: handle non OK mcps indication event pkg/semtech_loramac: handle non OK mcps indication events Apr 19, 2018
@aabadie aabadie changed the title pkg/semtech_loramac: handle non OK mcps indication events pkg/semtech_loramac: handle non OK mcps confirm events Apr 19, 2018
@aabadie aabadie changed the title pkg/semtech_loramac: handle non OK mcps confirm events pkg/semtech_loramac: handle non OK mcps confirm messages Apr 19, 2018
@dylad
Copy link
Copy Markdown
Member

dylad commented Apr 19, 2018

Ran some tests on my side, OTAA still works as expected and it also fix some issues I encounter before like shell stucks after sending a message if public : off or class : C. Now I cannot block the shell (at least in OTAA, no clue about ABP).
I'll take a deeper look at the changes. If I can I'll also try ABP activation.

@dylad
Copy link
Copy Markdown
Member

dylad commented Apr 19, 2018

Seems like I have the same issue as @jia200x with ABP :

INFO #  loramac tx "BCDA"
INFO # Failed: mac is busy

@aabadie aabadie force-pushed the pr/pkg/semtech_loramac_mcps_fail branch from 70fa6c1 to ef76c3e Compare April 19, 2018 13:53
@aabadie
Copy link
Copy Markdown
Contributor Author

aabadie commented Apr 19, 2018

@dylad can you try again ? I rebased the branch on the latest master which should contain the fix for "mac is busy".

@dylad
Copy link
Copy Markdown
Member

dylad commented Apr 19, 2018

Indeed now it works with ABP too ! @jia200x does it solve your issue too ?

@jia200x
Copy link
Copy Markdown
Member

jia200x commented Apr 23, 2018

This solves the blocked shell issue for me. Good!

@aabadie aabadie added State: waiting for other PR State: The PR requires another PR to be merged first CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR State: waiting for other PR State: The PR requires another PR to be merged first labels May 7, 2018
@aabadie aabadie force-pushed the pr/pkg/semtech_loramac_mcps_fail branch from ef76c3e to 7e2f5cf Compare May 8, 2018 09:17
@aabadie
Copy link
Copy Markdown
Contributor Author

aabadie commented May 8, 2018

@jia200x, I rebased this one, now that #8639 has been merged

@jia200x
Copy link
Copy Markdown
Member

jia200x commented May 8, 2018

Perfect! Let's wait Murdock

@aabadie
Copy link
Copy Markdown
Contributor Author

aabadie commented May 8, 2018

@jia200x, all checks have passed :)

@jia200x
Copy link
Copy Markdown
Member

jia200x commented May 8, 2018

@dylad are you OK with this PR?

@dylad
Copy link
Copy Markdown
Member

dylad commented May 8, 2018

@jia200x I'm fine with this PR.

@jia200x
Copy link
Copy Markdown
Member

jia200x commented May 8, 2018

Great! Then ACK&GO

@jia200x jia200x merged commit 157238b into RIOT-OS:master May 8, 2018
@aabadie aabadie deleted the pr/pkg/semtech_loramac_mcps_fail branch June 1, 2018 19:03
@cladmi cladmi added this to the Release 2018.07 milestone Jul 10, 2018
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 CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants