mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
Merge branch 'feat/ot_rx_sensitivity_v5.5' into 'release/v5.5'
feat(openthread): use the actual receive sensitivity for link quality evaluation (v5.5) See merge request espressif/esp-idf!51482
This commit is contained in:
@@ -9,3 +9,4 @@
|
||||
#include "hal/ieee802154_common_ll.h"
|
||||
|
||||
#define IEEE802154_RSSI_COMPENSATION_VALUE 0
|
||||
#define IEEE802154_RX_SENSITIVITY -104
|
||||
|
||||
@@ -9,3 +9,4 @@
|
||||
#include "hal/ieee802154_common_ll.h"
|
||||
|
||||
#define IEEE802154_RSSI_COMPENSATION_VALUE 0
|
||||
#define IEEE802154_RX_SENSITIVITY -104
|
||||
|
||||
@@ -12,9 +12,10 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern uint32_t bt_bb_get_rssi_comp(void);
|
||||
|
||||
#define IEEE802154_RSSI_COMPENSATION_VALUE bt_bb_get_rssi_comp()
|
||||
#define IEEE802154_RX_SENSITIVITY -102
|
||||
|
||||
extern uint32_t bt_bb_get_rssi_comp(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include "hal/ieee802154_ll.h"
|
||||
#include "esp_attr.h"
|
||||
#include "esp_err.h"
|
||||
#include "esp_ieee802154_ack.h"
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "hal/ieee802154_ll.h"
|
||||
#include "esp_ieee802154_util.h"
|
||||
#include "esp_log.h"
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
#include "esp_ieee802154_sec.h"
|
||||
#include "esp_ieee802154_util.h"
|
||||
#include "esp_ieee802154_timer.h"
|
||||
#include "hal/ieee802154_ll.h"
|
||||
#include "esp_attr.h"
|
||||
#include "esp_phy_init.h"
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include "sdkconfig.h"
|
||||
#include "hal/ieee802154_ll.h"
|
||||
#include "esp_check.h"
|
||||
#include "esp_ieee802154_pib.h"
|
||||
#include "esp_ieee802154_util.h"
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#include "sdkconfig.h"
|
||||
#include <string.h>
|
||||
#include "esp_err.h"
|
||||
#include "hal/ieee802154_ll.h"
|
||||
#include "esp_ieee802154_frame.h"
|
||||
#include "esp_ieee802154_sec.h"
|
||||
#include "esp_ieee802154_util.h"
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
*/
|
||||
|
||||
#include "soc/soc.h"
|
||||
#include "hal/ieee802154_ll.h"
|
||||
#include "esp_check.h"
|
||||
#include "esp_ieee802154_timer.h"
|
||||
#include "esp_ieee802154_util.h"
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#include "esp_private/esp_modem_clock.h"
|
||||
#include "soc/soc.h"
|
||||
#include "soc/periph_defs.h"
|
||||
#include "hal/ieee802154_ll.h"
|
||||
#include "esp_check.h"
|
||||
#include "esp_coex_i154.h"
|
||||
#include "esp_ieee802154_util.h"
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
#include "esp_ieee802154_util.h"
|
||||
#include "esp_log.h"
|
||||
#include "esp_coex_i154.h"
|
||||
#include "hal/ieee802154_ll.h"
|
||||
#include "hal/ieee802154_common_ll.h"
|
||||
|
||||
esp_err_t esp_ieee802154_event_callback_list_register(esp_ieee802154_event_cb_list_t cb_list)
|
||||
@@ -49,6 +48,11 @@ esp_err_t esp_ieee802154_disable(void)
|
||||
return ieee802154_mac_deinit();
|
||||
}
|
||||
|
||||
int8_t esp_ieee802154_get_receive_sensitivity(void)
|
||||
{
|
||||
return IEEE802154_RX_SENSITIVITY;
|
||||
}
|
||||
|
||||
uint8_t esp_ieee802154_get_channel(void)
|
||||
{
|
||||
return ieee802154_pib_get_channel();
|
||||
|
||||
@@ -39,6 +39,14 @@ esp_err_t esp_ieee802154_enable(void);
|
||||
*/
|
||||
esp_err_t esp_ieee802154_disable(void);
|
||||
|
||||
/**
|
||||
* @brief Get the receive sensitivity.
|
||||
*
|
||||
* @return The receive sensitivity in dBm.
|
||||
*
|
||||
*/
|
||||
int8_t esp_ieee802154_get_receive_sensitivity(void);
|
||||
|
||||
/**
|
||||
* @brief Get the operational channel.
|
||||
*
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#include "sdkconfig.h"
|
||||
#include "esp_check.h"
|
||||
#include "esp_ieee802154.h"
|
||||
#include "esp_ieee802154_types.h"
|
||||
#include "esp_mac.h"
|
||||
#include "esp_openthread_common.h"
|
||||
#include "esp_openthread_common_macro.h"
|
||||
@@ -36,7 +35,6 @@
|
||||
#include "esp_coex_i154.h"
|
||||
#endif
|
||||
|
||||
#define ESP_RECEIVE_SENSITIVITY -120
|
||||
#define ESP_OPENTHREAD_XTAL_ACCURACY CONFIG_OPENTHREAD_XTAL_ACCURACY
|
||||
#define ESP_OPENTHREAD_CSL_ACCURACY CONFIG_OPENTHREAD_CSL_ACCURACY
|
||||
#define ESP_OPENTHREAD_CSL_UNCERTAIN CONFIG_OPENTHREAD_CSL_UNCERTAIN
|
||||
@@ -459,7 +457,7 @@ otError otPlatRadioSetCcaEnergyDetectThreshold(otInstance *aInstance, int8_t aTh
|
||||
|
||||
int8_t otPlatRadioGetReceiveSensitivity(otInstance *aInstance)
|
||||
{
|
||||
return ESP_RECEIVE_SENSITIVITY;
|
||||
return esp_ieee802154_get_receive_sensitivity();
|
||||
}
|
||||
|
||||
#if CONFIG_OPENTHREAD_DIAG
|
||||
|
||||
Reference in New Issue
Block a user