"Power" field in "txInfo" (downlink)

Hi,
We are having some troubles with ACK and downlink transmissions with out Kerlink Wirnet iBTS gateway.

While trying to find some information about the TX power of the gateway we realized that the gateway/[mac]/tx topic has a “power” field inside “txInfo”. The current value is 20, we were wondering what that means. Is that too low? Can it get higher? Is that ok? Could we eventually change that value?

Thank you.

This value comes from the lorawan/band package and is set to the default TX power for your region (as specified by the LoRaWAN Regional Parameters). See the DefaultTXPower field for each region definition in: https://github.com/brocaar/lorawan/tree/master/band

Thank you for your reply. Is there any documentation on what values the “DefaultTXPower” can take?

See the LoRaWAN Regional Parameters specification: https://www.lora-alliance.org/lorawan-for-developers :slight_smile:

Great! Thank you very much for your time.

@brocaar @leandrolanzieri

Hi,

I set downlink_tx_power=14 and data rate = 5, in loraserver config file ,but still whenever my node is very near to gateway(less than 5 meters,i could get my downlink data to my node).Do we need some more specific configuration in loraserver config file.

But from longer distance more than 15 meters also i could send uplink data properly to my loraserver with the same node and loraserver config.

My node config:

data rate  : 5
sf : 7
region : 868

Hi.
I have seen that the default tx power for my region is 27. This is the same as what can be seen when subscribing to the gateway tx topic. However I am getting this error: gateway/b827ebfffecb2e32/ack {“mac”:“b827ebfffecb2e32”,“token”:5906,“error”:“TX_POWER”}

I have not found much information on this error. What is causing this?
Thanks

This error is sent by the packet-forwarder. https://github.com/Lora-net/packet_forwarder/blob/master/PROTOCOL.TXT#L428

What do I need to do to fix this? I am using an RAK831 with gateway-bridge-os-base installed that is found on the Loraserver.io. I have tried changing the tx_power in loraserver.toml to 27 but I still get the error.
I am trying to send mqtt downlinks to a node. Will this TX_POWER stop downlinks bring transmitted from the gateway?
Thankyou

Sir, I checked the latest LoRaWAN Regional Parameters specification version, and can not find the DefaultTXPower 14 defined in the https://github.com/brocaar/lorawan/blob/f23da2d4a303a41bcb7b4519692b0e7a7a022a4c/band/band_cn470_510.go#L29.

Is this item deleted in the revision of the specification or I didn’t find it?

Hi,
If you are facing problems with downlink and receiving this error:

  * applicationID:"??"
  * applicationName:"Application"
  * deviceName:"????"
  * devEUI:"????????????????"
  * type:"DOWNLINK_GATEWAY"
  * error:"TX_POWER"
  * fCnt:19
  * tags:{} 0 keys
  * publishedAt:"2022-05-04T09:38:24.145558333Z"

You need to fix some configurations in the global_conf.json.
You need to enable all the TX power plans like bellow:

    "tx_lut_0": {
        /* TX gain table, index 0 */
        "pa_gain": 0,
        "mix_gain": 8,
        "rf_power": -6,
        "dig_gain": 0
    },
    "tx_lut_1": {
        /* TX gain table, index 1 */
        "pa_gain": 0,
        "mix_gain": 10,
        "rf_power": -3,
        "dig_gain": 0
    },
    "tx_lut_2": {
        /* TX gain table, index 2 */
        "pa_gain": 0,
        "mix_gain": 12,
        "rf_power": 0,
        "dig_gain": 0
    },
    "tx_lut_3": {
        /* TX gain table, index 3 */
        "pa_gain": 1,
        "mix_gain": 8,
        "rf_power": 3,
        "dig_gain": 0
    },
    "tx_lut_4": {
        /* TX gain table, index 4 */
        "pa_gain": 1,
        "mix_gain": 10,
        "rf_power": 6,
        "dig_gain": 0
    },
    "tx_lut_5": {
        /* TX gain table, index 5 */
        "pa_gain": 1,
        "mix_gain": 12,
        "rf_power": 10,
        "dig_gain": 0
    },
    "tx_lut_6": {
        /* TX gain table, index 6 */
        "pa_gain": 1,
        "mix_gain": 13,
        "rf_power": 11,
        "dig_gain": 0
    },
    "tx_lut_7": {
        /* TX gain table, index 7 */
        "pa_gain": 2,
        "mix_gain": 9,
        "rf_power": 12,
        "dig_gain": 0
    },
    "tx_lut_8": {
        /* TX gain table, index 8 */
        "pa_gain": 1,
        "mix_gain": 15,
        "rf_power": 13,
        "dig_gain": 0
    },
    "tx_lut_9": {
        /* TX gain table, index 9 */
        "pa_gain": 2,
        "mix_gain": 10,
        "rf_power": 14,
        "dig_gain": 0
    },
    "tx_lut_10": {
        /* TX gain table, index 10 */
        "pa_gain": 2,
        "mix_gain": 11,
        "rf_power": 16,
        "dig_gain": 0
    },
    "tx_lut_11": {
        /* TX gain table, index 11 */
        "pa_gain": 3,
        "mix_gain": 9,
        "rf_power": 20,
        "dig_gain": 0
    },
    "tx_lut_12": {
        /* TX gain table, index 12 */
        "pa_gain": 3,
        "mix_gain": 10,
        "rf_power": 23,
        "dig_gain": 0
    },
    "tx_lut_13": {
        /* TX gain table, index 13 */
        "pa_gain": 3,
        "mix_gain": 11,
        "rf_power": 25,
        "dig_gain": 0
    },
    "tx_lut_14": {
        /* TX gain table, index 14 */
        "pa_gain": 3,
        "mix_gain": 12,
        "rf_power": 26,
        "dig_gain": 0
    },
    "tx_lut_15": {
        /* TX gain table, index 15 */
        "pa_gain": 3,
        "mix_gain": 14,
        "rf_power": 27,
        "dig_gain": 0
    }

This is part of the configuration file for the EU868 region. You need to take care of your region’s regulations.