Skip to content

Commit 5f5f963

Browse files
author
Jiang Jiang Jian
committed
Merge branch 'feat/support_esp32c5_cert_test_example' into 'master'
Feat/support esp32c5 cert test example See merge request espressif/esp-idf!42103
2 parents d331400 + 57aa42b commit 5f5f963

File tree

4 files changed

+17
-9
lines changed

4 files changed

+17
-9
lines changed

components/esp_phy/include/esp_phy_cert_test.h

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ typedef enum {
2020
PHY_RATE_2M = 0x1,
2121
PHY_RATE_5M5 = 0x2,
2222
PHY_RATE_11M = 0x3,
23-
//11g
23+
//11g,11a
2424
PHY_RATE_6M = 0xb,
2525
PHY_RATE_9M = 0xf,
2626
PHY_RATE_12M = 0xa,
@@ -38,8 +38,7 @@ typedef enum {
3838
PHY_RATE_MCS5 = 0x15,
3939
PHY_RATE_MCS6 = 0x16,
4040
PHY_RATE_MCS7 = 0x17,
41-
#if CONFIG_SOC_WIFI_HE_SUPPORT
42-
// 11ax
41+
//11ax
4342
PHY_RATE_11AX_MCS0 = 0x20,
4443
PHY_RATE_11AX_MCS1 = 0x21,
4544
PHY_RATE_11AX_MCS2 = 0x22,
@@ -50,7 +49,16 @@ typedef enum {
5049
PHY_RATE_11AX_MCS7 = 0x27,
5150
PHY_RATE_11AX_MCS8 = 0x28,
5251
PHY_RATE_11AX_MCS9 = 0x29,
53-
#endif//CONFIG_SOC_WIFI_HE_SUPPORT
52+
//11ac
53+
PHY_RATE_VHT_MCS0 = 0x30,
54+
PHY_RATE_VHT_MCS1 = 0x31,
55+
PHY_RATE_VHT_MCS2 = 0x32,
56+
PHY_RATE_VHT_MCS3 = 0x33,
57+
PHY_RATE_VHT_MCS4 = 0x34,
58+
PHY_RATE_VHT_MCS5 = 0x35,
59+
PHY_RATE_VHT_MCS6 = 0x36,
60+
PHY_RATE_VHT_MCS7 = 0x37,
61+
PHY_RATE_VHT_MCS8 = 0x38,
5462
PHY_WIFI_RATE_MAX
5563
} esp_phy_wifi_rate_t;
5664

examples/phy/.build-test-rules.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ examples/phy/cert_test:
1111
disable:
1212
- if: IDF_TARGET in ["esp32p4"]
1313
reason: not supported
14-
- if: IDF_TARGET in ["esp32c5", "esp32c61", "esp32h21", "esp32h4"]
14+
- if: IDF_TARGET in ["esp32c61", "esp32h21", "esp32h4"]
1515
temporary: true
1616
reason: not supported yet # TODO: [ESP32C5] IDF-8851, [esp32c61] IDF-9859, [esp32h21] IDF-12041, [ESP32H4] IDF-12716

examples/phy/cert_test/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-S2 | ESP32-S3 |
2-
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
1+
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-H2 | ESP32-S2 | ESP32-S3 |
2+
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |
33

44
# Certification Test Example
55

@@ -99,7 +99,7 @@ phy> cmdstop
9999
I (130260) phy: rx_num: 0 rx_rssi: 0
100100
phy>
101101
phy> get_rx_result
102-
I (139550) cmd_phy: Desired: 0, Correct: 0, RSSI: 0, flag: 2
102+
I (139550) cmd_phy: Correct: 0, Desired: 0, RSSI: 0, flag: 2
103103
phy>
104104
phy> bt_tx_tone -e 1 -n 1 -p 0
105105
I (151900) phy: BT TX TONE START!

examples/phy/cert_test/main/cmd_phy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static int esp_phy_get_rx_result_func(int argc, char **argv)
8282

8383
esp_phy_get_rx_result(&rx_result);
8484

85-
ESP_LOGI(TAG, "Desired: %lu, Correct: %lu, RSSI: %d, flag: %lu", rx_result.phy_rx_total_count,
85+
ESP_LOGI(TAG, "Correct: %lu, Desired: %lu, RSSI: %d, flag: %lu", rx_result.phy_rx_total_count,
8686
rx_result.phy_rx_correct_count, rx_result.phy_rx_rssi, rx_result.phy_rx_result_flag);
8787

8888
return 0;

0 commit comments

Comments
 (0)