Skip to content

Commit 191d4c2

Browse files
committed
Updated antenna gain documentation to reflect the fact that its value is referenced to the isotropic antenna.
#563
1 parent fa4a54e commit 191d4c2

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/mac/LoRaMac.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1575,13 +1575,21 @@ typedef enum eMib
15751575
* The antenna gain is used to calculate the TX power of the node.
15761576
* The formula is:
15771577
* radioTxPower = ( int8_t )floor( maxEirp - antennaGain )
1578+
*
1579+
* \remark The antenna gain value is referenced to the isotropic antenna.
1580+
* The value is in dBi.
1581+
* MIB_ANTENNA_GAIN[dBi] = measuredAntennaGain[dBd] + 2.15
15781582
*/
15791583
MIB_ANTENNA_GAIN,
15801584
/*!
15811585
* Default antenna gain of the node. Default value is region specific.
15821586
* The antenna gain is used to calculate the TX power of the node.
15831587
* The formula is:
15841588
* radioTxPower = ( int8_t )floor( maxEirp - antennaGain )
1589+
*
1590+
* \remark The antenna gain value is referenced to the isotropic antenna.
1591+
* The value is in dBi.
1592+
* MIB_DEFAULT_ANTENNA_GAIN[dBi] = measuredAntennaGain[dBd] + 2.15
15851593
*/
15861594
MIB_DEFAULT_ANTENNA_GAIN,
15871595
/*!

src/mac/region/RegionCommon.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,12 +385,16 @@ void RegionCommonComputeRxWindowParameters( double tSymbol, uint8_t minRxSymbols
385385

386386
/*!
387387
* \brief Computes the txPower, based on the max EIRP and the antenna gain.
388+
*
389+
* \remark US915 region uses a conducted power as input value for maxEirp.
390+
* Thus, the antennaGain parameter must be set to 0.
388391
*
389392
* \param [IN] txPower TX power index.
390393
*
391394
* \param [IN] maxEirp Maximum EIRP.
392395
*
393-
* \param [IN] antennaGain Antenna gain.
396+
* \param [IN] antennaGain Antenna gain. Referenced to the isotropic antenna.
397+
* Value is in dBi. ( antennaGain[dBi] = measuredAntennaGain[dBd] + 2.15 )
394398
*
395399
* \retval Returns the physical TX power.
396400
*/

0 commit comments

Comments
 (0)