-
-
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
Cannot set DataRate when ADR is not set #6
Comments
Hi @AmedeeBulle Would you be willing to share your sketch for command mode? That looks very useful. |
It is very simple, but if it can help I just uploaded it: AmedeeBulle/TtnModemTest |
@AmedeeBulle Indeed you are correct, quite simple!!! Thanks for posting! This will help me debug the MKR WAN a bit better. Have you had any success with low power consumption? I am unable to get the MKR WAN 1300 below 1.16mA during sleep and would appreciate to know if you have been able to reduce the power further than that? |
@AmedeeBulle fixed with f849548 (#35) The data rate used in non-ADR was always overwritten with an Init value at firmware startup. The changes patch this by updating the init parameter and set also the channel default DR. The latter must happen, as internally the send function checks for max length against the default if ADR is turned off. |
@flhofer should this fix already be available? I'm testing the MKR WAN 1300 for The Things Summer Academy, and this bug is causing issues for my workshop. |
I actually found a workaround that seems to work. Enable ADR, but force the DR to the preferred one before every transmit.
|
@jpmeijers sorry for the late reply |
any update on this please? facing the same issue... thank you |
Hi, @rqg0717 It is fixed in not yet released v1.2.4 of my pull request. It includes the necessary modem firmware update in the MKRWAN standalone sketch. (click on the link to the repo next to the title) |
It seems that the DataRate gets overwritten and forced to DR0 (SF12BW125) when ADR is not set.
I have a small sketch which sends console input to the modem to illustrate the problem:
One can see that after the
send
the DataRate is reset to 0, and I can confirm from the TTN console where the packet is sent to that packet was sent with DR0 (SF12BW125).When ADR is enabled, DataRate selection is working well -- e.g.:
DataRate stays at 5 and the TTN console reports DR5 (SF7BM125)
The text was updated successfully, but these errors were encountered: