工具/软件:
8.30 的“SimpleLink SDK cc13xx_cc26xx“和 CC26x2R Launchpad。
将 HOST_TEST 写入 Launchpad 并使用 BTool。
我在 BTool 上看到日志、是否可以在该日志显示上显示任何消息?
例如、我希望每秒在 BTool 日志屏幕上显示 RSSI 值。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具/软件:
8.30 的“SimpleLink SDK cc13xx_cc26xx“和 CC26x2R Launchpad。
将 HOST_TEST 写入 Launchpad 并使用 BTool。
我在 BTool 上看到日志、是否可以在该日志显示上显示任何消息?
例如、我希望每秒在 BTool 日志屏幕上显示 RSSI 值。
您好、Yasukane、
您可以使用 HCI_ReadRssiCmd () 命令来显示 RSSI 消息。
如果您想在每个时间段获得 RSSI 值、我建议查看 BTool 中的 TX 转储、并使用脚本(例如使用 python)通过串行端口传输它。
...
import serial
import time
# === CONFIGURE UART ===
UART_PORT = "COM105" # Adjust based on your system (e.g., COM3 on Windows)
BAUD_RATE = 9600 # High baud rate for fast communication
# Open UART connection
uart = serial.Serial(UART_PORT, BAUD_RATE)
def send_hci_command(command_hex):
"""Send an HCI command to the CC23xx over UART."""
command_bytes = bytes.fromhex(command_hex)
uart.write(command_bytes)
time.sleep(1)
response = uart.read(uart.in_waiting)
print(f"HCI Response: {response.hex()}")
# === SETUP HCI TEST ===
def test_hci_ble():
print("Testing HCI Commands")
send_hci_command("01 3d 20 00")
# === MAIN EXECUTION ===
test_hci_ble()
BR、
David
您好、David、
谢谢你。
这是我认为我们可以做的。
(1) 在恒定周期中将 RSSI 值显示为有符号十进制数
例如 RSSI:–54←在 1 秒的周期内显示此值
(2) 显示固定周期内累积的 CRC 错误数。
(3) 显示从中央器件发送到外设返回响应所用的时间
(如果可能,我希望显示从发送到接收的时间,即使是“空数据包“)
(4) 以固定周期显示连接间隔的设定值。
是否可以在 BTool 上执行上述操作?
此致。
您好、Yasukane、
感谢您的重播。 我建议使用 basic_ble SDK 示例实现这一点(为每个器件配置中心角色和外设角色)。 然后、您可以使用显示模块打印所有这些指标。
我建议您查看我们的一系列培训材料 (SLA): https://dev.ti.com/tirex/explore/node?node=A__AfP13Df4ApG6kvcTvGPrVg__SIMPLELINK-ACADEMY-CC23XX__gsUPh5j__LATEST。
请告诉我您的想法、我们可以从这里开始。
BR、
David。