ESP32-S3&C3 BLE DTM Test Guide
ESP32-S3&C3 BLE DTM Test Guide
Related Product
ESP32-S3
ESP32-C3
Version 1.0
Espressif Systems
Copyright © 2022
Table of Content
1. Introduction...........................................................................................................................................3
2. Test Structure........................................................................................................................................ 3
This guide will introduce how to conduct BLE DTM Test based on ESP32-S3&ESP32-C3
products, by using related software and equipment.
Details about product can be found in data sheet, please enter espressif official website.
2. Test Structure
PC: When testing, run serial port tool on PC. PC and DUT communicate through UART, to set
configurations for different test purposes.
www.espressif.com 1
3. Preparation before Test
PC - 1 Run EspTestTool
www.espressif.com 2
3.2 Software Preparation
Name Introduction
SecureCRT or other serial port tools DUT receives commands from PC to set up
test configurations.
(1) UART 0
This UART is used to communication between PC and DUT. DUT receive commands from PC
to set up test configurations and download bin file. Here is the connection details:
DUT TXD0:Connected to Serial port board TX0.
(2) UART 1
HCI Serial port, used for connection between DUT and Tester. Here is the connection details:
Note: If you are not using ESP serial port board, connection may be different.(IO4 - RX0, IO5
- TX0)
www.espressif.com 3
4.2 Test Execution
(1) Connect DUT with PC by UART0, and connect DUT with Tester by UART1.
(2) Open serial port tool, open the serial port of UART0 and set baud rate as 115200. After
DUT being powered on (connect RF cable between DUT and tester before electrifying DUT),
bqb -z set_ble_tx_power -i 9
bqb -z init
After sending every command , serial port interface will print “BT: OK”, which
represents the command has taken effect. After sending the last command, the serial
port interface will show as the following:
www.espressif.com 4
Figure 3. Log of BLE DTM successfully set up
(4) Now, the BLE DTM HCI configuration is finished. You are able to conduct BLE tests by
operating the tester.
www.espressif.com 5
(1) UART1
This UART is used to communication between Tester and DUT. Here is the connection details:
The initialization of 2-wire UART DTM function will be conducted after power on
automatically.
www.espressif.com 6
Appendix A - Bin Download
1. Hardware Connection
Besides connect DUT with PC through UART0 as following, lower ESP32-S3_IO0 (For ESP32-C3,
lower IO9 and pull up IO8). Then electrify DUT. In this way , the chip will enter bin download
mode.
You may check serial port log to verify that chip has successfully entered bin download
mode. If chip enters bin download mode, the log will be like this:
For ESP32-S3, keep IO0 floating or pull it up(for ESP32-C3, keep IO8&IO9 floating) and re-electrify
the DUT, chip will enter work mode, in which the chip realizes its functions.
You can use EspRFTestTool to download related bin. Here are the operation steps.
www.espressif.com 7
(1) Select Tool - Download Tool.
(2) Choose correct Chip Type, Com Port and Baud Rate. Click Open.
(3) Choose Flash. Check the checkbox in first row. Click “ ” to select bin file.Fill in 0x0 as bin
download address.
When “SUCC” with yellow background appears, it means the bin has been successfully
downloaded.
Note:The download address may vary from different chip types and bin files.
www.espressif.com 8
Appendix B - UART0 Commands Introduction
1. Set up BLE TX Power
Introduction: If GPIO7\GPIO4\GPIO18\GPIO10 can not be the pins for UART1, you can use
www.espressif.com 9
For instance, command bqb -z set_uart_pin -t 7 -r 8 -q 9 -c 10 will set GPIO7 as UART1 TX pin,
GPIO8 as UART1 RX pin, GPIO9 as UART1 RTS pin, GPIO10 as UART1 CTS pin.
Note: If you choose not to use flow control(RTS & CTS), you still need to configure the two
pins using above command in DTM HCI test. Though, do not connect GPIOs with RTS and CTS
www.espressif.com 10