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
sys/shell: add loramac shell command #8855
sys/shell: add loramac shell command #8855
Conversation
691fff7
to
bbb0116
Compare
#8639 got merged some time ago so I'm removing the dependency. |
@aabadie Couldn't you split this in to two PR's? For me the application refactor and to make it thread safe and adding the shell should be in different PR's. |
bbb0116
to
567eee6
Compare
Well, it's just that this PR hasn't been rebased for a long time. It's done now. |
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.
Some minor comments, they where present in the PR before the Rebase, you can address them here or in a separate PR.
Also see travis complaints about blank line.
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.
Some other comments.
Also your latest commit seems like a different subject unrelated to the PR title, please change it to reflect although IMO it should be a separate PR.
sys/auto_init/auto_init.c
Outdated
@@ -277,9 +277,14 @@ void auto_init(void) | |||
#endif | |||
|
|||
#ifdef MODULE_SX127X | |||
#ifdef MODULE_SEMTECH_LORAMAC |
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.
IMO subordinate auto_init_loramac() to MODULE_SX127X is wrong, you are mixing up the mac layer and the network interface
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.
I don't see why this should be in GRNC_NETIF, it has nothing to do with GNRC.
@fjmolinas regarding the application README, I prefer the separate PR: see #11426 |
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.
@aabadie I still have a couple of un-addressed comments, also could you split the PR in two the auto_init part and the shell part. Otherwise I tested that it works.
sys/auto_init/auto_init.c
Outdated
@@ -277,9 +277,14 @@ void auto_init(void) | |||
#endif | |||
|
|||
#ifdef MODULE_SX127X | |||
#ifdef MODULE_SEMTECH_LORAMAC |
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.
I don't see why this should be in GRNC_NETIF, it has nothing to do with GNRC.
e82549a
to
45bf5cc
Compare
0d3c6b1
to
dc4d0af
Compare
Tested and its working except for the fact that |
nope, this is not supposed to work anymore with exemples/default. This is because |
ACK then! :) |
It's all green @fjmolinas :) |
dc4d0af
to
fd9b3c7
Compare
Rebased (and still works hopefully) |
Still works, RE-ACK and GO! |
Contribution description
This PR moves the
loramac
shell command implemented in thetests/pkg_semtech-loramac
application to a more central place insys/shell
.If one imports and sets the right variable/CFLAGS, it's possible to also get them with any application importing
shell_commands
module. For example, withdefault
:Note that
default
automatically imports the sx1276 module when using the B-L072Z-LRWAN1 board (via auto_init). For other application, one would have to also passUSEMODULE=sx1276
.Issues/PRs references
This PR is based on #8639Now based on #11583