-
Notifications
You must be signed in to change notification settings - Fork 32
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
Fix freertos_lorawan downlink #187
Comments
@marnixcro I think this issue is a good start for you on the FreeRTOS side, can you undertake this one? |
This is a medium priority |
The issue seems to be a bit easier than queue allocation. I was able to have downlinks working by simply multiplying the wait time of the downlink task receive window (and by having a breakpoint during debugging which lenghtened the downlink time). I'll try to find if improper timing was indeed the cause and, if so, why this occurs. For reference, the dirty fix:
Unrelated but may be good to know: downlinks can be retrieved during the join procedure and the power consumption shows that the windows were opened (as the device would temporarily consume more twice after transmitting). So downlink does seem to 'run' even if it didn't function properly. |
@marnixcro great finding, feel free to open a PR with the fix and glad it's a simple fix |
What is the status on this? |
The dirty fix seemed to have fixed it differently than I thought initially. At first I thought that editing this line would be sufficient:
But that did not solve the issue. I debugged it further and it seems that it always jumps into RX timeout (instaed of RX done, or RX error) so I would need to look into why these are triggered occasionally (as it seems that even the regular configuration will sometimes work normally for some time). |
Rx windows are always timed out, a test should be made if the correct timing is reached in the freertos, this can be compared to the timing on the basic_lorawan application to see if the downlink receive time is off. |
@marnixcro yes indeed, as we discussed, we can adjust the window offsets and timings to ensure the FreeRTOS layer downlink handling is correct. We need: we can align theses snapshots and see if we can find the root cause of the issue |
Blocked by #203 |
Moved this to Q3 |
is this still relevant? |
Summary:
The downlink handling of freertos_lorawan app is broken.
Steps to Reproduce:
What do you see now?
The received downlinks is not passed correctly from the mac layer to the application layer
What do you want to see instead?
A functional application that is able to receive downlinks
How do you propose to implement this?
Environment:
FreeRTOS
What can you do yourself and what do you need help with?
ALL
The text was updated successfully, but these errors were encountered: