ESP32H2_BLE_DTM_823e7f8_20250319， 用于 DTM/BLE信令测试，统一测试接口
======================================================

Download Bin and Address（烧录固件地址）
ESP32H2_BLE_DTM_823e7f8_20250319.bin	0x0
-------------------------------------------------------------------------------


按照下面 UART1 接线后上电即可测试，无需额外输入指令。
-------------------------------------------
ESP Launcher UART1 Connections （如果使用 ESP 串口板）:
UART1 RX - GPIO5
UART1 TX - GPIO4
GND - GND
------------------------------------------

RS232 UART1 Connections （如果使用通用 RS232 串口板）:
UART1 RX - GPIO4
UART1 TX - GPIO5
GND - GND
-----------------------------------------
UART1 接 CMW500
上电以上述 GPIO 作为 UART1 测试管脚自动初始化完成，默认 BLE 功率 12dBm， CMW500 测试需要调整 auto 参考电平(仪器默认为10dBm)

CMW500 等仪器设置如下： 
RF Test -- EUT Control
HW Interface: USB to RS232 adapter
EUT Comm Protocol: HCI
Virtual COM Port: The comport of UART1(USB Cable Connect to CMW500)
Baud Rate: 115200
Protocol:	None
Auto Ranging: Selected

-------------------------------------------------------------------------------
UART0 接 PC，上电查看打印log，输入 help 可查看当前可用测试指令：

Power On Log（上电打印log）:
..............................
esp32h2> I (902) BLE_INIT: Using main XTAL as clock source
I (932) BLE_INIT: ble controller commit:[82a8be7]
I (932) BLE_INIT: Bluetooth MAC: 60:55:f9:f7:3b:ac
I (942) hci_uart_config: set uart pin tx:4, rx:5.

I (942) hci_uart_config: set rts:-1, cts:-1.

I (942) hci_uart_config: set baud_rate:115200.

I (952) hci_uart_config: set flow_ctrl:0.

I (952) uart: ALREADY NULL
I (952) uart: queue free spaces: 1
I (952) hci_uart: hci transport task create successfully, prio:23, stack size: 2048
I (972) phy: phy_version: 322,5, 823e7f8, Mar  3 2025, 16:09:11

I (992) phy: libbtbb version: e9c8b26, Mar  3 2025, 16:09:24
I (992) main_task: Returned from app_main()


esp32h2> help

set_ble_tx_power  -i <index>
  Set ble tx power during DTM
  -i, --index=<index>  tx power level index

get_ble_tx_power 
  Get ble tx power during DTM

reconfig_dtm_uart_pin  -t <tx_pin> -r <rx_pin>
  Reconfig dtm uart pins during DTM
  -t, --tx=<tx_pin>  tx pin index
  -r, --rx=<rx_pin>  rx pin index

help  [<string>] [-v <0|1>]
  Print the summary of all registered commands if no arguments are given,
  otherwise print summary of given command.
      <string>  Name of command
  -v, --verbose=<0|1>  If specified, list console commands with given verbose level

