Infineon AIROC™ Wi-Fi and Wi-Fi Bluetooth Combos系列產品晶片是藍芽和WiFi雙功能的無線解決方案
在開發產品時候常常會需要驗證藍芽效能,英飛凌提供了一個功能強大的藍芽cyBluetool工具
可以用來透過UART直接執行HCI標準指令集而達到驗證BT/BLE的功能
下面介紹cyBluetool工具
1)可以先透過reset指令,確認晶片是否正常運作
HCI指令為03 0C 00
如下圖所示
可讀出BD位址"BCM4373A0"
usb0 <c Read_Local_Name HCI Command Complete Event usb0
[0E FC ]: 01 14 0C 00 42 43 4D 34 33 37 33 41 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 event = 0x0E (14,"Command Complete")
Num_HCI_Command_Packets = 0x1 (1)
Command_Opcode = 0xC14 (3092, "Read_Local_Name")
Status = 0x0 (0, "Success")
Name = "BCM4373A0"
2)接下來就可以進行BLE TX測試
選擇LE_Transmitter_Test(V1),即可成功執行HCI指令,進行藍芽驗證
詳細HCI指令log
usb0 c> LE_Transmitter_Test_[v1] HCI Command usb0
[1E 20 03 ]: 00 25 00
opcode = 0x201E (8222, "LE_Transmitter_Test_[v1]")
TX_Channel = 0x0 (0, (F = 2402 + [k * 2 MHz]))
Length_of_Test_Data = 0x25 (37)
Packet_Payload = 0x0 (0, "Pseudo-Random bit sequence 9")