.. | ||
main | ||
CMakeLists.txt | ||
README.md | ||
sdkconfig.ci | ||
sdkconfig.defaults |
Supported Targets | ESP32-C3 | ESP32-S3 |
---|
Certification Test Example
(See the README.md file in the upper level 'examples' directory for more information about examples.)
This example shows how to use the Certification test APIS.
How to use example
Before project configuration and build, be sure to set the correct chip target using idf.py set-target <chip_name>
.
Hardware Required
- A development board with ESP32-C3/ESP32-S3/ SoC.
- A USB cable for Power supply and programming
Configure the project
Open the project configuration menu (idf.py menuconfig
).
In the Example Configuration
menu:
- Enable RF certification test functions.
- Disable Interrupt Watchdog.
- Disable Task Watchdog Timer.
Build and Flash
Build the project and flash it to the board, then run the monitor tool to view the serial output:
Run idf.py -p PORT flash monitor
to build, flash and monitor the project.
(To exit the serial monitor, type Ctrl-]
.)
See the Getting Started Guide for all the steps to configure and use the ESP-IDF to build projects.
Example Output
The command and output logs for each test are as follows:
==================================================
| RF certification test |
| |
| 1. Print 'help' to gain overview of commands |
| 2. Wi-Fi certification test |
| 3. Bluetooth certification test |
| |
=================================================
Type 'help' to get the list of commands.
Use UP/DOWN arrows to navigate through command history.
Press TAB when typing command name to auto-complete.
I (598) main_task: Returned from app_main()
phy>
phy> tx_contin_en 1
I (4788) phy: Tx continuous test!
phy>
phy> tx_contin_en 0
I (7518) phy: Tx packet test!
phy>
phy> cbw40m_en 1
I (10668) phy: cbw40m_en: 1
phy>
phy> cbw40m_en 0
I (13238) phy: cbw40m_en: 0
phy>
phy> cmdstop
I (8828) phy: Tx Over 0x0
phy>
phy> esp_rx -n 1 -r 0
I (19348) phy: wifi rx start: channel is 1, rate is 0x0
phy>
phy> cmdstop
I (24248) phy: Correct: 1112 Desired: 773 RSSI: -633 noise: -960 gain: 629 para1: 12198 para2
phy>
phy> wifiscwout -e 1 -c 1 -p 0
I (98308) phy: wifi single carrier tx out, single carrier is in 1 channel, power is about (2
phy>
phy> esp_ble_tx -p 8 -n 1 -l 37 -t 2 -s 0x71764129 -r 0 -m 0
I (319138) phy: fcc_le_tx_syncw: txpwr=8,chan=1,len=37,data_type=2,syncw=0x71764129,rate=0,tx_
phy>
phy> cmdstop
I (321208) phy: rw done! ce9
phy>
phy> esp_ble_rx -n 1 -s 0x71764129 -r 0
I (2898) phy: RW LE V9 RX PER
phy>
phy> cmdstop
I (7678) phy: 144 0 0 5 13f 0 0 0 0 0 p 0 0 0 0 0 0
phy>
phy> bt_tx_tone -e 1 -n 1 -p 0
I (56008) phy: BT TX TONE START!
phy>
Troubleshooting
For any technical queries, please open an issue on GitHub. We will get back to you soon.