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.

[参考译文] LAUNCHXL-CC26X2R1:如何订阅 BLE 特性+在接收到 UART 数据后发送 BLE 通知

Guru**** 2644745 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1580645/launchxl-cc26x2r1-how-to-subscribe-to-ble-characteristic-send-ble-notification-after-uart-data-is-received

器件型号: LAUNCHXL-CC26X2R1

您好:

我正在使用 SimpleLink CC13xx CC26xx SDK (8.31.00.11) 示例。

我有两个 LaunchPad CC26x2R1 器件、 一个具有使用具有可下标特性的自定义 project_zero 示例刷写的外设角色、另一个具有使用自定义 simple_central 示例刷写的中心角色。

  1. 我设法扫描并连接中央设备和外围设备、但我不知道如何订阅通知。 AFAIK 我想我应该首先开始 GATT 服务发现以获取句柄、然后将 0x01 写入该句柄? 是否有此过程的示例?
  2. 另一方面、我要搜索一些示例、了解如何从 UART 接收数据并触发 BLE 通知。 我找到了一个 UART BLE 桥接器示例、但我对串行双向通信不感兴趣、我想要的只是在收到带有一些外部测量值的 UART 数据时发送 BLE 通知。

谢谢!