pycom / pycom-micropython-sigfox

A fork of MicroPython with the ESP32 port customized to run on Pycom's IoT multi-network modules.
MIT License
199 stars 167 forks source link

LoRaWan TX power control during AdrAck request #331

Open t0000899 opened 5 years ago

t0000899 commented 5 years ago

Hello, I observed this behaviour during AdrAck request which I think is incorrect.

Could this behaviour be changed so that the first AdrAck request is made using the current TX power setting and increase it for the following requests if no packet from the network is received?

If I am not mistaken the code for this is located in funktion bool RegionEU868AdrNext() (RegionEU868.c, line 505).

Used hardware and configuration: LoPy4 board. Latest stable firmware. LoRaWan connection to commercial network with OTAA, ADR and EU868 frequency band.

Juho

t0000899 commented 5 years ago

This behavior has not changed in the latest firmware: Pycom MicroPython 1.20.1.r1 [v1.11-3138a13] on 2019-10-08; LoPy4 with ESP32 Pybytes Version: 1.1.3

The LoRa TX-power is stuck at maximum because the ADR-engine at network side does not know that the node has changed output power on its own. Is there a way to inform the network that power has been increased?

Hope this will be looked at.