Denislam Valeev / Mbed OS Nucleo_rtos_basic
Embed: (wiki syntax)

« Back to documentation index

mcps_req_confirmed_t Struct Reference

mcps_req_confirmed_t Struct Reference

#include <lorawan_data_structures.h>

Data Fields

uint8_t fport
int8_t data_rate
uint8_t nb_trials

Detailed Description

LoRaMAC MCPS-Request for a confirmed frame.

Definition at line 786 of file lorawan_data_structures.h.


Field Documentation

int8_t data_rate

Uplink datarate, if ADR is off.

Definition at line 798 of file lorawan_data_structures.h.

uint8_t fport

Frame port field. Must be set if the payload is not empty. Use the application-specific frame port values: [1...223].

LoRaWAN Specification V1.0.2, chapter 4.3.2.

Definition at line 793 of file lorawan_data_structures.h.

uint8_t nb_trials

The number of trials to transmit the frame, if the LoRaMAC layer did not receive an acknowledgment. The MAC performs a datarate adaptation according to the LoRaWAN Specification V1.0.2, chapter 18.4, as in the following table:

Transmission nb | Data Rate ----------------|----------- 1 (first) | DR 2 | DR 3 | max(DR-1,0) 4 | max(DR-1,0) 5 | max(DR-2,0) 6 | max(DR-2,0) 7 | max(DR-3,0) 8 | max(DR-3,0)

Note that if nb_trials is set to 1 or 2, the MAC will not decrease the datarate, if the LoRaMAC layer did not receive an acknowledgment.

Definition at line 819 of file lorawan_data_structures.h.