Mehrad Arashrad / LoRaWAN-lib

Dependents:   mDot_Semtech_LoRaWAN_Stack

Fork of LoRaWAN-lib by Semtech

Embed: (wiki syntax)

« Back to documentation index

sMcpsReqConfirmed Struct Reference

sMcpsReqConfirmed Struct Reference
[LoRa MAC layer implementation]

#include <LoRaMac.h>

Data Fields

uint8_t fPort
void * fBuffer
uint16_t fBufferSize
int8_t Datarate
uint8_t NbTrials

Detailed Description

LoRaMAC MCPS-Request for a confirmed frame

Definition at line 665 of file LoRaMac.h.


Field Documentation

int8_t Datarate

Uplink datarate, if ADR is off

Definition at line 685 of file LoRaMac.h.

void* fBuffer

Pointer to the buffer of the frame payload

Definition at line 677 of file LoRaMac.h.

uint16_t fBufferSize

Size of the frame payload

Definition at line 681 of file LoRaMac.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, chapter 4.3.2

Definition at line 673 of file LoRaMac.h.

uint8_t NbTrials

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, chapter 18.4, according to 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 NbTrials is set to 1 or 2, the MAC will not decrease the datarate, in case the LoRaMAC layer did not receive an acknowledgment

Definition at line 706 of file LoRaMac.h.