Downlink payload format

On downlink, the Border Gateway creates and re-transmits a Relay encapsulated to the Relay Gateway in the following format. The Relay encapsulation overhead is 15 bytes.

Bytes:

1 byte6 bytes4 bytesn bytes4 bytes
Downlink MHDRDownlink MetadataRelay IDLoRaWAN PHYPayloadMIC

Bits:

7..54..32..0
MTypePayload typeHop count
  • MType = 111 (= Proprietary LoRaWAN MType)
  • Payload type = 01 (Relayed downlink)
  • Hop count = 000

Note: The hop count is incremented each time the downlink payload is relayed by an other Relay Gateway. As this changes the downlink payload, the MIC must be re-calculated.

Bytes:

2 bytes3 bytes1 byte
Uplink ID + Downlink data-rateDownlink FrequencyDelay + TX Power

Bits:

15..43..0
Uplink IDDownlink data-rate

Unique identifier (to the Relay Gateway) identifying the uplink to which this downlink relates. E.g. the Relay Gateway uses this to retrieve the uplink counter value.

Data-rate

Downlink data-rate, unsigned integer with a minimum value of 0 and a maximum value of 15.

Encoded as FrequencyHz = Downlink Frequency x 100.

Delay + TX Power

Bits:

7..43..0
TX PowerDelay

TX Power

The TX Power which must be used for sending the downlink.

Delay

The relative delay in seconds to the Uplink ID which must be used for the downlink transmission. Delay is an unsigned integer, encoded as:

DelaySeconds = Delay + 1.

Relay ID

This contains the Relay ID that must relay the downlink to the End Device using the provided Downlink metadata.

LoRaWAN PHYPayload

The LoRaWAN PHYPayload that must be sent to the End-Device.

MIC

Message integrity code, used by other Relay gateways to check the data integrity of the packet. This is obtained by calculating the CMAC over the downlink payload (- MIC bytes), and using the first 4 bytes of the calculated CMAC as MIC.