ImperialSpaceSociety / picotracker-Lora

This is the code base and hardware design files for the Lora pico tracker to be flown around the world
12 stars 3 forks source link

Check what is the max payload size when using DR4 over rest of world. #95

Closed MedadRufus closed 3 years ago

MedadRufus commented 3 years ago

Over EU, we use DR5, but over US915, AU915, AS923, we use DR4.

MedadRufus commented 3 years ago

For US915 = 242 when DR4

static const uint8_t MaxPayloadOfDatarateUS915[] = { 11, 53, 125, 242, 242, 0, 0, 0, 53, 129, 242, 242, 242, 242, 0, 0 };

For EU868 = 242 when DR5

static const uint8_t MaxPayloadOfDatarateEU868[] = { 51, 51, 51, 115, 242, 242, 242, 242 };

For AU915 = 242 when DR4

/*!
 * Maximum payload with respect to the datarate index. Cannot operate with repeater.
 * The table is valid for the dwell time configuration of 0 for uplinks.
 */
static const uint8_t MaxPayloadOfDatarateDwell0AU915[] = { 51, 51, 51, 115, 242, 242, 242, 242, 0, 53, 129, 242, 242, 242, 242 };

For AS923 = 242 when DR4

/*!
 * Maximum payload with respect to the datarate index. Cannot operate with repeater.
 * The table is valid for the dwell time configuration of 0 for uplinks and downlinks.
 */
static const uint8_t MaxPayloadOfDatarateDwell0AS923[] = { 51, 51, 51, 115, 242, 242, 242, 242 };
MedadRufus commented 3 years ago

So it looks like we are well covered here; max payload size is under 242 bytes.