-
Notifications
You must be signed in to change notification settings - Fork 67
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
Payload size very limited only with AS923 frequency plan #189
Comments
Do you have ADR enabled ? |
Hi and thanks for your quick answer! I didn't set it, so, yes, I guess the ADR was enabled (default state). I tried to disable it and chose the minimum and maximum TxPower for Asia (2 and 16) and dataRate = DR_1 but, sadly, it didn't solve the issue. I added some debug prints in the library in the "_send()" function as followed. The error is always the number 2.
|
Ok, I found a solution. In this file -> RegionAS923.h, we found this :
It seemed that the payload size was limited by those constants. So I had 2 solutions: Disable the ADR and choose a higher DataRate (at least DR_3), or, better, keep ADR enable and choose the Dwell0 tab in place of the Dwell1 tab. I chose the second solution but I didn't want to modify directly the library. So I searched in the LoRaWAN library and found this:
So, in my code, I kept the ADR enable and added this line:
And now it's ok. The payload maximum size is now 51. I'm just not sure about what is the repeater and if I need it or not. Can someone tell me it? |
Interesting. Did you crosscheck that with the region specification ? The repeater was an idea that never seemed to pan out in the practice. It has been removed by the specification now. |
Hello! I have been using this library in the AS923 (jp) region for quite some time with absolutely no problems. The only thing is that the very first message needs to be 11 bytes, the next message can be much higher (230 bytes).
|
Hello everyone!
I have an issue with the LoRaWAN library. My device sends 1 payload every 10 minutes.
When I use the EU868 or the US915 frequency plan, the maximum size of a payload accepted by the LoRaWAN library is about 50 bytes.
When I use the AS923, I cannot send more than 11 bytes per payload.
I tried LoRaWAN.setDutyCycle(false) -> No change
I tried different times between the payloads (from 20sec to 20min) -> No change
I checked also check the air time:
AS923, 11 bytes = 288ms
AS923, 12 bytes = Doesn't work (library error)
EU868, 11 bytes = 1155ms
EU868, 50 bytes = 2302ms -> The air time doesn't seem to be the problem.
Did anyone face the same issue? Or have an idea of what to do to solve it?
Thanks
The text was updated successfully, but these errors were encountered: