Skip to content
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

Radio RX timeout when data rate is greater than 2. #1624

Open
maivananh111 opened this issue Oct 27, 2024 · 2 comments
Open

Radio RX timeout when data rate is greater than 2. #1624

maivananh111 opened this issue Oct 27, 2024 · 2 comments

Comments

@maivananh111
Copy link

maivananh111 commented Oct 27, 2024

I am using sx1262 and source code from this repository to implement a LoRaWAN end device class A 1.0.3, region AS923 with ADR enabled, join and uplink process is ok, however it cannot receive downlink or confirm every time ADR is enabled and DR is greater than 2, like 3, 4, 5. After DR is decremented each time even DR2 cannot receive downlink, however if ADR is disabled and everything happens only at DR2 then there is no problem. I think the problem is not in the hardware, because the normal transmission and reception tests are normal. LoRaWAN 1.0.2 uses a different code on this hardware and it works fine and can receive downlinks at DR3, 4, 5. I noticed that every time the RadioSetRxConfig function is called with DR greater than 2, then RadioRx is called, the SX1262 immediately generates a TX_RX_TIMEOUT interrupt, which is not the RX timeout timer. This Radio library for version 1.0.3 was used for version 1.0.2 but did not have this problem. I checked on the gateway as a server, it does send downlinks to the terminal. What is the cause of this problem? Thanks.
Screenshot from 2024-10-27 16-28-06
image
image

@maivananh111
Copy link
Author

And this is with ADR turned off, all processes are done with DR2 from the start, I actually tested longer and they had no problems at all.
image

@maivananh111
Copy link
Author

I found this rxConfig->WindowTimeout value in RegionAS923.c, in LoRaWAN source code version 1.0.2 this value is replaced with 0. However in version 1.0.3, if I fix this value to 0, SX1262 does not generate TX_RX_TIMEOUT interrupt anymore, but RX timeout timer overflows after 3000ms.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant