Documentation sections
RF Link Margin Calculator
POSThttps://rftools.io/ api/ py/ v1/ calculate
Slug link-margin. Calculate RF link margin from TX power, antenna gains, path loss, and receiver sensitivity. Determine max range and fade margin for wireless links. Free, instant results.
Inputs
Send every one of these in inputs, in the units shown. Most are required: a call without one is refused (400) and costs nothing; one the calculator can do without takes the default shown. An input outside its range is still computed and flagged in the provenance.
| Name | Unit | Range | Default | Description |
|---|---|---|---|---|
| txPowernumber | dBm | −30 … 60 | 20 | Transmitter output power |
| txGainnumber | dBi | −10 … 50 | 3 | Transmit antenna gain in dBi |
| rxGainnumber | dBi | −10 … 50 | 3 | Receive antenna gain in dBi |
| distancenumber | km | at least 0.001 | 1 | Distance between transmitter and receiver |
| frequencynumber | GHz | at least 0.001 | 2.4 | Operating frequency in GHz |
| sensitivitynumber | dBm | −150 … 0 | -90 | Receiver minimum sensitivity from datasheet |
| cableLossnumber | dB | at least 0 | 1 | Total cable and connector losses on TX and RX sides combined |
| extraLossCountnumber | none | 0 … 4 | 0 | How many extra loss terms the budget includes, such as polarisation mismatch, body loss or foliage |
| extraLoss1number | dB | 0 … 50 | 0 | An extra loss in the path, such as polarisation mismatch, body loss, foliage or a wall |
| extraLoss2number | dB | 0 … 50 | 0 | An extra loss in the path, such as polarisation mismatch, body loss, foliage or a wall |
| extraLoss3number | dB | 0 … 50 | 0 | An extra loss in the path, such as polarisation mismatch, body loss, foliage or a wall |
| extraLoss4number | dB | 0 … 50 | 0 | An extra loss in the path, such as polarisation mismatch, body loss, foliage or a wall |
| targetMarginnumber | dB | 0 … 60 | 10 | The fade margin the link must keep above the receiver sensitivity. The status passes at or above it and fails below 0 dB. |
Outputs
Returned in values, by key. A value that is unbounded or undefined is null.
| Field | Unit | Description |
|---|---|---|
| fspl | dB | Free-space path loss at specified frequency and distance |
| receivedPower | dBm | Received signal power level at receiver input |
| linkMarginheadline | dB | Margin above receiver sensitivity. Positive = link will work. >10 dB recommended. |
| maxRange | km | Maximum range where link still has positive margin |
Calling it
- Calculate: one call, the request and response in full, and its errors.
- Batch: this calculator with others, or a sweep, in one request.
- Solve for a target: the value of one input that brings an output to a target.