-
-
Notifications
You must be signed in to change notification settings - Fork 654
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
Add payload MAC commands parsing + LinkcheckReq/Ans MAC commands #19
Conversation
@@ -1127,7 +1031,7 @@ static bit_t decodeFrame (void) { | |||
} | |||
case MCMD_DEVS_REQ: { | |||
LMIC.devsAns = 1; | |||
oidx += 1; | |||
oidx += 1; |
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.
This is just a pointless whitespace change, please remove it.
Thanks for your PR! However, you've put a few different things in a single commit, whereas I'd rather have different commits for different (logical) changes.
Didn't realize that LMIC did not support this yet, so great change to have. The diff is a bit more invasive then I'd like, but I guess that's not to be helped when splitting a big function like Note that the commit message says you added support for piggybacked MAC commands, but AFAICS you actually added support for dedicated MAC command packets, MAC commands piggybacked on regular packets were already supported, right?
This change makes the library non-standards compliant, so I'd rather not add this. There is already a note about this for the semtech backend in the README, I'll add a note about TTN too. Also, the ttn.ino example should probably default to SF9 in the sketch code. I have some other changes to the sketch code pending, so I'll make that change myself - just leave it out of this PR. Note that this only helps for personalized activation - for OTAA we should really fix LMIC to let its
This change looks good to me. It's a pity it needs to add a few more bytes of static RAM usage, but I guess that's not to be helped with the way LMIC is designed now. Good to have this feature as well - I was thinking of implementing a node-side ADR strategy (since TTN doesn't do server-side ADR yet), and this would help. Any idea if TTN replies to these requests already?
This shouldn't be needed, since git already tracks what changed adequately (in my experience, such comments often get in the way of future changes instead of really helping). Again, thanks for your contribution, the code looks good. If you could split off the first and last changes, and drop the second one, that would be perfect. Note that you can update this PR by doing a force-push to the branch you created this PR from. |
True, I might have been a bit fast this morning
Ok
Yes it is something I want to do, but I need to understand before why OTAA works on 16MHz and 8MHz ATMega. I will open an issue for this discussion.
I agree with you, but I do not see an other way :/
I have no answer from TTN, although it works with 2 other operators.
You are welcome, you already did an amazing job ! I do not master push request so I'll check how to do it. |
Not sure what you mean by that, but I'm sure you'll explain in the new issue you're going to open :-)
I opened #20 to track this issue separately. |
42448cf
to
1201f20
Compare
Ok, it should be good know, hope I didn't messed up anything. |
From a quick glance, it looks good. I'll have a closer look when I have some more time, but thanks already! |
IBM is intending to change the license on the LMIC library to the three-clause BSD license. To simplify incorporating your contribution upstream on the next LMIC release, would you be willing to license it under the same license? If so, please explicitly state this in a comment to this PR? Saying something like "This contribution is licensed under the terms of the three-clause BSD license, as linked above" should be sufficient. |
This contribution is licensed under the terms of the three-clause BSD license, as linked above |
This contribution is licensed under the terms of the three-clause BSD license, as linked above. |
The name might be confusing with LMIC developpers' choice for "LMIC_setLinkCheckMode" but I prefer to avoid changing it for easier adaptation to futur LMIC versions.
1201f20
to
d4b7d68
Compare
Hi Matthijs, if I not messed up with Git, the PR should be updated to your last commit. |
+1 |
Hello! I using LoRaWan Node with Pro mini and RFM96. And When I run code Starting And I waiting, but not change. @matthijskooijman Can you help me? |
@VanXungUIT, posting to a random, unrelated, github pull request is not the way to ask for help. More generally, github issues are meant for bugs and feature requests, not help with your code. I suggest you make a post on the TTN forum, which is probably the best platform for support right now. |
@matthijskooijman Hi Matthijs, any progress on this PR? I see that KPN is sending MAC commands as payload at FPort = 0. If I understand it well, these MACs are currently being ignored by the LMiC library. One of @Oliv4945's commits does implement this, doesn't it? Best, Jeroen |
This repository is now deprecated, see #297 for some more background. I'm grateful for your contribution, but it will no longer be merged. I'm recommending people to use the MCCI version of LMIC instead. If this PR addresses an issue that also exists in that version, I would encourage you to resubmit your contribution there, so it might benefit other users. I'm sorry for the inconvenience... |
LMIC_setLinkCheckRequestOnce
to get info on gateway number and margin from the backendAll modifications are commented with
Changes to LMIC v1.5
in order to help upgrades to LMIC v1.6, if any.