AmedeeBulle / pyrak811

RAK811 Python 3 library for Raspberry Pi
Apache License 2.0
50 stars 25 forks source link

LoRaWAN adr implementation #6

Closed demetz closed 3 years ago

demetz commented 5 years ago

Hi,

I am confused with regards to the LoRaWAN adr implementation. My sender sits right next to the gateway, hence I would expect a spreading-factor of 7.

I am working on the commandline. After doing a rak811 hard-reset, rak811 set-config [...] and rak811 join-otaa I am able to send messages using rak811 send.

Both JoinRequest from the device as well as the JoinAccept from the gateway are with SF 7. Messages thereafter sent out by the device are sent out with SF 12.

rak811 get-config adr returns on, rak811 get-config dr returns 0. rak811 dr also returns 0.

Even after sending multiple messages, the spreading-factor remains unchanged at 12.

Is there anything else I need to do? Is the ADRACKReq feature implemented?

AmedeeBulle commented 5 years ago

There are a couple of things to look at...

Do not put your node close to the gateway, it has adverse effects on signal quality!

Also it takes quite some time before and ADR packet is sent to the node... Sending a downlink or a confirmed uplink can pass an ADR packet soon. There are some edge cases as well with ADR and SF12...

ryanteck commented 5 years ago

I think as @Amedee said most of those points are right. It can sometimes I think take at least 30 packets for it to decide to reduce down.

On Sat, 13 Jul 2019, 22:12 Philippe Vanhaesendonck, < notifications@github.com> wrote:

There are a couple of things to look at...

Do not put your node close to the gateway, it has adverse effects on signal quality!

Also it takes quite some time before and ADR packet is sent to the node... Sending a downlink or a confirmed uplink can pass an ADR packet soon. There are some edge cases as well with ADR and SF12...

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/AmedeeBulle/pyrak811/issues/6?email_source=notifications&email_token=AAINW2JE3HKCYVSDGVRFZ5LP7JALZA5CNFSM4IC5H4AKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ3ZORY#issuecomment-511153991, or mute the thread https://github.com/notifications/unsubscribe-auth/AAINW2PFSVKB7EDKWRGI6ZTP7JALZANCNFSM4IC5H4AA .

AmedeeBulle commented 3 years ago

As this issue is inactive for quite some time now, I am closing it. If you feel it deserve additional attention, feel free to reopen it.

amedee commented 3 years ago

I'm sorry to comment on an already closed issue, but why was I tagged? I am not involved with this project (as far as I know).

AmedeeBulle commented 3 years ago

@amedee simply because somebody tagged you instead of tagging me ;)

Mvg