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
Consider Rx1 and Rx2 separately for max payload size #866
Comments
|
Node Telit Re866+uC (EU863-870 - lorawan 1.0.2 Class A) RSSI (rx): -80dBm The same settings for Payload length: 62B (binary) |
This happens because the configured Rx2 data rate is SF12BW125(DR0). In class A NS currently schedules downlink such, that it complies with both Rx1 and Rx2 parameters. According to the table from the regional parameters spec, maximum size of FRMPayload in DR0 that can be used for Rx2(in case FOpts are absent) is 51, which is less than what you're trying to do. @johanstokking I think we should change this behavior and NS should in fact separate Rx1 and Rx2 scheduling requests to GS if the payload does not fit in either. |
@rvolosatovs yes, it should definitely do that. Can you file an issue? |
Is there some fast workaround? Can we enforce data rate in downlink json configuration? We need to send hundreds downlink packets for FW upgrade:
We consider to add additional LoRaWAN gateway just for firmware upgrade to establish "good range" and different Network/Application Servers (for production environment). |
You can change the Rx2 parameters for the end device, see |
Thanks @johanstokking this solution fix the issue. Currently I upgrade firmware for LoRaWAN module and have Class C available. |
@ecities this lands in the next release, please star this repository or subscribe to release notifications. |
hi |
Hi @viethoa14
|
Summary
I can't sent downlink with data payload size larger than 54B (binary) / base 64 coded (72B)
With higher size server return message:
WARN Application downlink present, but the payload is too long, Inform Application Server ack=true........
I'm on Telit re866 module which is 1.0.2 ClassA/C certified & check LoRaWAN 1.0.2 for regional parameters.
I'm using Class A
Default settings datarate (sf12/125kHz) - rx2datarate (default as for lora 1.0.2 spec)
Testing conditions: -90dBm
I also set other Datarates eg. (sf7/125) => Kerlink femtocell GW shows in logs (sf7bw125)
As I understood according to lora specs max. payload size is 230/222. I tested other values with the same payload size and sf12 the same results.
...
Steps to Reproduce
... curl http://localhost:1885/api/v3/as/applications/ap2/webhooks/fwup/devices/dv1/down/push -X POST -H 'Authorization: Bearer NNSXS.CLCIYOYY********' --data '{"downlinks":[{"frm_payload":"AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUU=","f_port":15,"priority":"HIGHEST"}]}'
Data 71B (binary) ... Webhook Status (200) - OK
... Server console message after a while: WARN Application downlink present, but the payload is too long, Inform Application Server ack=true........
Data is not received by Node
What do you see now?
WARN Application downlink present, but the payload is too long, Inform Application Server ack=true........
...
What do you want to see instead?
...
Environment
Ubuntu 16.4/FF/Kerlink Femtocell/Telit RE866
...
How do you propose to implement this?
...
Can you do this yourself and submit a Pull Request?
...
The text was updated successfully, but these errors were encountered: