DA14580 transmit power problems

Did not find the relevant description in the official documents; the Internet to find a circle finalized: DA14580 default transmit power is 0dBm, which is normal mode; there is a near-field transmission power mode is -20dBm; currently only in these two switching between levels.

How to set -20dBm?

In SDK5.0.4 in the rf_580.c

402 can exercise

/**
 ****************************************************************************************
 * @brief Enables Near Field mode for all connections.
 *
 * @return void
 ****************************************************************************************
 */
void rf_nfm_enable(void)
{
    near_field_mode = true;
    SetWord16(RF_ENABLE_CONFIG13_REG, 0x0030);
}

232 line open

    //  Near Field Mode Enable
    if(rf_nfm_is_enabled())
    {
        SetWord16( RF_ENABLE_CONFIG13_REG, 0x0030);
    }

another:

In SDK5.0.4, the direct return 0 when acquired transmission power, it can be seen from a default power level only 0dBm

/**
 *****************************************************************************************
 * @brief Get TX power in dBm from the index in the control structure
 *
 * @param[in] txpwr_idx  Index of the TX power in the control structure
 * @param[in] modulation Modulation: 1 or 2 or 3 MBPS
 *
 * @return The TX power in dBm
 *
 *****************************************************************************************
 */
uint8_t rf_txpwr_dbm_get(uint8_t txpwr_idx, uint8_t modulation)
{
    return 0;
}
 

Released two original articles · won praise 2 · Views 4284

Guess you like

Origin blog.csdn.net/chuxiaobobo/article/details/105135334
Recommended