How to change the power for base frequencies?

How to change the power for base frequencies (0, 1, 2), except for additional frequencies (3, 4, 5, 6, 7)? It is necessary to increase the power of the transmitter radio1. Backend for gateway used by Semtech UDP packet-forwarder. Thank you

Why does radio1 need a higher power?

Current gateway configuration:

{
“SX1301_conf”: {
“lorawan_public”: true,
“clksrc”: 1, /* radio_1 provides clock to concentrator /
“antenna_gain”: 0, /
antenna gain, in dBi */
“radio_0”: {
“enable”: true,
“type”: “SX1257”,
“freq”: 864500000,
“rssi_offset”: -166.0,
“tx_enable”: true,
“tx_freq_min”: 863000000,
“tx_freq_max”: 870000000
},
“radio_1”: {
“enable”: true,
“type”: “SX1257”,
“freq”: 869000000,
“rssi_offset”: -166.0,
“tx_enable”: false
},
“chan_multiSF_0”: {
“enable”: true, “radio”: 0, “if”: -400000
},
“chan_multiSF_1”: {
“enable”: true, “radio”: 0, “if”: -200000
},
“chan_multiSF_2”: {
“enable”: true, “radio”: 0, “if”: 0
},
“chan_multiSF_3”: {
“enable”: true, “radio”: 0, “if”: 200000
},
“chan_multiSF_4”: {
“enable”: true, “radio”: 0, “if”: 400000
},
“chan_multiSF_5”: {
“enable”: true, “radio”: 1, “if”: 100000
},
“chan_multiSF_6”: {
“enable”: true, “radio”: 1, “if”: -100000
},
“chan_multiSF_7”: {
“enable”: false, “radio”: 1, “if”: 0
},

}
}

For the frequency range 868.7 - 869.2 MHz, a power of up to 100 mW is allowed, and for the range of 864.0 - 865.0 MHz, a power of up to 25 mW is allowed. radio_0 (864.0 - 865.0 MHz) are extra channels on the network server.

Please note that radio_1 is not used for transmitting, see the tx_enable: false. Note that the frequencies configured are for uplink (thus on which the gateway receives). All downlink transmissions are done by radio_0. What you probably mean is to base the downlink tx power by frequency. For EU868, this is already implemented by:

yes, that’s what I need. For RU864

if 868700000 <= freq && freq < 869200000 {
return 20 //100mW
} else {
return 14 // Default case
}

Please feel free to create a pull-request for this change, together with some source confirming that 20 is indeed valid for that frequency range :slight_smile: