ESP32C2_DTM_HCI_1babaa3_40M_20250319.bin， 用于 DTM/BLE信令测试，统一测试接口
======================================================

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


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

RS232 UART1 Connections （如果使用通用 RS232/TTL 串口板）:
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 (波特率115200)，输入 help 可查看当前可用测试指令：

Power On Log（上电打印log）:
..............................
esp32c2> I (802) BLE_INIT: Using main XTAL as clock source
I (832) BLE_INIT: ble controller commit:[5d9a666]
I (832) BLE_INIT: ble rom commit:[3314f9d]
I (832) BLE_INIT: Bluetooth MAC: 80:64:6f:40:85:2a
I (842) hci_uart_config: set uart pin tx:4, rx:5.

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

I (842) hci_uart_config: set baud_rate:115200.

I (852) hci_uart_config: set flow_ctrl:0.

I (852) uart: ALREADY NULL
I (852) uart: queue free spaces: 1
I (852) hci_uart: hci transport task create successfully, prio:23, stack size: 2048
I (872) phy_init: phy_version 361,1babaa3,Mar  3 2025,15:56:12
I (902) phy: libbtbb version: bcd6f84, Mar  3 2025, 15:56:26
I (912) main_task: Returned from app_main()


esp32c2> 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

