Mbed OS Reference
Loading...
Searching...
No Matches
loramac_tx_message_t Struct Reference

Stack level TX message structure. More...

#include <lorawan_data_structures.h>

Data Fields

bool tx_ongoing
 TX Ongoing flag. More...
 
uint8_t port
 Application Port Number. More...
 
mcps_type_t type
 Message type. More...
 
uint8_t fport
 
int8_t data_rate
 
uint8_t nb_trials
 
uint8_t f_buffer [MBED_CONF_LORA_TX_MAX_SIZE]
 Payload data. More...
 
uint16_t f_buffer_size
 Payload size. More...
 
uint16_t pending_size
 Pending data size. More...
 

Detailed Description

Stack level TX message structure.

Definition at line 855 of file lorawan_data_structures.h.

Field Documentation

◆ tx_ongoing

bool tx_ongoing

TX Ongoing flag.

Definition at line 860 of file lorawan_data_structures.h.

◆ port

uint8_t port

Application Port Number.

Definition at line 865 of file lorawan_data_structures.h.

◆ type

Message type.

Definition at line 870 of file lorawan_data_structures.h.

◆ fport

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 878 of file lorawan_data_structures.h.

◆ data_rate

int8_t data_rate

Uplink datarate, if ADR is off.

Definition at line 883 of file lorawan_data_structures.h.

◆ nb_trials

uint8_t nb_trials

For CONFIRMED Messages:

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.

For UNCONFIRMED Messages:

Provides a certain QOS level set by network server in LinkADRReq MAC command. The device will transmit the given UNCONFIRMED message nb_trials time with the same frame counter OR until a downlink is received. Standard defined range is 1:15. Data rates will NOT be adapted according to chapter 18.4.

Definition at line 914 of file lorawan_data_structures.h.

◆ f_buffer

uint8_t f_buffer[MBED_CONF_LORA_TX_MAX_SIZE]

Payload data.

Base pointer to the buffer

Definition at line 920 of file lorawan_data_structures.h.

◆ f_buffer_size

uint16_t f_buffer_size

Payload size.

The size of the frame payload.

Definition at line 926 of file lorawan_data_structures.h.

◆ pending_size

uint16_t pending_size

Pending data size.

Definition at line 931 of file lorawan_data_structures.h.