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

Download Bin and Address（烧录固件地址）
ESP32C6_DTM_HCI_4af1121_20250228.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，输入 help 可查看当前可用测试指令：

Power On Log（上电打印log）:
..............................
esp32c6> I (841) BLE_INIT: Using main XTAL as clock source
I (871) BLE_INIT: ble controller commit:[7ead2d2]
I (871) BLE_INIT: Bluetooth MAC: 60:55:f9:f6:03:5e
I (871) hci_uart_config: set uart pin tx:4, rx:5.

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

I (881) hci_uart_config: set baud_rate:115200.

I (881) hci_uart_config: set flow_ctrl:0.

I (891) uart: ALREADY NULL
I (901) uart: queue free spaces: 1
I (901) hci_uart: hci transport task create successfully, prio:23, stack size: 1024
I (911) phy_init: phy_version 330,4af1121,Feb  6 2025,14:39:13
I (941) phy_init: Saving new calibration data due to checksum failure or outdated calibration data, mode(0)
I (1011) phy: libbtbb version: 99f6adc, Feb  6 2025, 14:39:27
I (1011) main_task: Returned from app_main()

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

