5.1.2 Confirmed uplink
The device can be configured to request LoRa confirmation for a collection of uplink message types. The
parameter confirmed_ul_bitmap is used to select the message types that requires a confirmation. Only
message types in the range 0x00 to 0x0F can be selected.
Example:
Confirmed uplink of message types 0x0 and 0x3:
bitmap = 2
0
+ 2
3
= 1 + 8 = 9.
The parameter confirmed_ul_retry gives the number of retransmissions that the tracker should do in the case
where the LoRa confirmation is not received.
A value 0 means that the uplink will request the LoRa confirmation but will not retry in a case of a failure.
5.2 Encoded form
Some parameters are encoded with the following algorithms:
static float _step_size (float lo, float hi, unsigned nbits, unsigned nresv)
{ return 1.0/((((1 << nbits) -1) -nresv)/(hi -lo)); }
float mt_value_decode(uint32_t value, float lo, float hi, unsigned nbits, unsigned nresv)
{ return ((value -nresv /2) * _step_size(lo, hi, nbits , nresv) + lo);}
Where:
✓ nbits: number of bits used to encode.:
✓ lo: min value that can be encoded
✓ hi: max value that can be encoded
✓ nresv: number of reserved values, not used for the encoding.
5.3 Common message header