I know the code now caps the transmit power for the region it operates in, but what are those limits and where are those defined?
They are in regions[] in RadioInterface.cpp
Just circling back on this one as I’m trying to understand whether I can define that tx_power or whether the regional limits are overriding that (my assumption was the latter).
If I do a: meshtastic --ch-set tx_power 20
then follow with a: meshtastic --info
I can see that under my channels section of the info, the following:
PRIMARY psk=default { “txPower”: 20, “modemConfig”: “Bw125Cr48Sf4096”, “psk”: “*****” }
This seems to imply my radio has been set at 20 and not overridden by the regional limits.
So, am I interpreting the tx_power correctly and that the value I’m passing it to set to is in dBm, or could it be a percentage of the max power of the radio?
Looking at the code in radiointerface.cpp, it looks to me to be a value in the range 0-255, but that could also me this non-developer misreading the code…
In the software code, you can set more numbers, but the hardware on most modules does not exceed the output power of 17 … 18 dBm. (I measured)