This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

修改2540 发射功率

Other Parts Discussed in Thread: CC2540

TI公司的CC2540为例,它支持4种发射功率选择:4dBm0dBm-6dBm-23dBm,按无线电功率定义:LdBm=10lg(Pwr/1mW),以上4种分贝值换算成瓦特为:2.51mW1mW0.251mW0.005mW,有效通信距离分别为:30米、10米、7米和3米。

 

如何在BLE 中设定外设或集中器的发射功率呢? 默认值是多少?在哪里可以找到

  • /*******************************************************************************
     * @fn          HCI_EXT_SetTxPowerCmd API
     *
     * @brief       This HCI Extension API is used to set the transmit power.
     *
     *              Related Events: HCI_VendorSpecifcCommandCompleteEvent
     *
     * input parameters
     *
     * @param       txPower - LL_EXT_TX_POWER_MINUS_23_DBM,
     *                        LL_EXT_TX_POWER_MINUS_6_DBM,
     *                        LL_EXT_TX_POWER_0_DBM,
     *                        LL_EXT_TX_POWER_4_DBM
     *
     * output parameters
     *
     * @param       None.
     *
     * @return      hciStatus_t
     */
    extern hciStatus_t HCI_EXT_SetTxPowerCmd( uint8 txPower );