hardwario/lora-modem

Uplink retransmission control

janakj opened this issue · 0 comments

The firmware provides two AT commands to control the number of confirmed and unconfirmed uplink retransmissions: AT+RTYNUM and AT+REP. When the application sends an uplink, one of these values is copied into the ChannelsNbTrans MIB variable in LoRaMac-node. When ADR is enabled, the LoRaWAN network server can override the ChannelsNbTrans MIB value remotely. Since the modem always overrides the MIB value with one of the ATCI values, the ADR-configured value will be overridden (lost).

Resolve the conflict in a manner so that the ADR-configure value wouldn't get lost, while remaining backwards compatible with AT+RTYNUM and AT+REP.

Related to #35