Skip to content

Handle non-linear relationship between TX_POWER and output power #887

@trisweb

Description

@trisweb

Currently, it's somewhat unclear what output power we'll actually get when setting a power setting, if the radio has an LNA or amp or is otherwise not directly corresponding to the output power setting.

This issue is a request mainly to solve this in a proper way, since there are reasonable workarounds currently (primarily: document the behavior and the proper setting for each radio, and ensure users know what the actual output will be).

The radio that brings this up is of course the Heltec V4, which despite a setting of 22dBm, will actually output ~28dBm. But other radios are also impacted, such as the common Station G2.

A proper way to handle would be to have a scale of real-output-power::tx-power-setting that maps it, so that the UI can display (and the command line setting can accept) radio power that corresponds to the actual output for that radio.

For ex:

Real Power TX Power Setting
27 22
25 21
24 20
... ...
3 2
2 1

This is how the other app is handling it (their PR #8107), and I think it's kind of convenient for users to be able to think in terms of how much power will actually be output.

Not a huge deal, but it has caused quite a bit of confusion when people see a lower number (especially "10", which is incorrect and should be able to be worked around with #885) and then come asking why they're not able to set their fancy new power amp radio to the power they want. This or something like it would help reduce those questions and the confusion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions