guiguitant théo / lorawan-master

Dependencies:   mbed

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 725 of file LoRaMac.h.


Field Documentation

int8_t Datarate

Uplink datarate, if ADR is off

Definition at line 745 of file LoRaMac.h.

void* fBuffer

Pointer to the buffer of the frame payload

Definition at line 737 of file LoRaMac.h.

uint16_t fBufferSize

Size of the frame payload

Definition at line 741 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.1, chapter 4.3.2

Definition at line 733 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.1, chapter 19.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 766 of file LoRaMac.h.