-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
No downlinks when using SF>8 and ABP #13
Comments
Hi @MITEL-UNIUD , |
I have 1.1.9; and the gateway is a Lorix One, not far but not even too close. I tested many times, however always with the same device. Not sure why, at this point. |
Ok, I spent some time studying the issue. I added two methods to the MKRWAN.h library to get RX2 data rate and frequency (+RX2FQ and +RX2DR). In ABP SF12, this is what I see: So I also added a setRX2DR method, which solved my issue. However, I do not know why you are receiving downlinks in the same situation. I mean downlinks: by reading again your post, you see packets sent on TTN... uplinks? This is the code I added in MKRWAN.h (so yes, I am not in the right place, but likely the base issue is in firmware and this only a workaround). A call to
|
Sorry, I totally missed the downlink part, my fault. It looks better to fix it in the firmware, would you mind filing a PR to target the issue? Thanks you very much! |
If I have to modify code in the firmware, I do not feel sufficiently confident for doing it (not sure about domino effects).
If you need it, I could file a PR on this (but again I am not totally sure). SF12 was an initial TTN choice, as far as I understood, then they changed mind. |
On a second thought, I checked the official regional parameters specifications, and it seems TTN does not follow the standard, which is indeed correctly implemented in firmware (SF12, 869.525). From this point of view, perhaps is better to expose methods to set DR (and for symmetry, frequency) for RX2 directly from the library. This is done also by LMIC, for example, and allows to comply with any network. On this I can help. |
Sounds good, I'd love to keep the library API slim (since running the stack on the module should automate most of the "boring" stuff) but in this case it's probably a good idea to expose these functionalities that are already there (and properly document them). Wound you mind opening a PR on the library repo? Thanks a lot! |
Ok, actually I have created four methods just for completeness (get and set DR and freq), but the only one really needed is setRX2DR: what do you prefer in the PR? |
All of them, just for completeness 🙂 |
When joining with ABP and using low data rates (SF9-SF12), downlinks do not function; at SF7-SF8 they do. If joining with OTAA downlinks function at any data rate. This using TTN. The difference is that at SF7-8 downlinks are sent at the same frequency and SF as the uplink, while at SF9-SF12 TTN is using 869.525 at SF9.
The following script (derived from the LoraSendAndReceive example) can reproduce the issue, just change the first defines to switch from ABP to OTAA and to change SF:
The text was updated successfully, but these errors were encountered: