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.

[参考译文] CC2652R7:SDK 示例中的 simple_central 例程从16位 UUID 更改为128位 UUID。

Guru**** 2595770 points


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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1358058/cc2652r7-the-simple_central-routine-in-the-sdk-examples-changes-from-16-bit-uuid-to-128-bit-uuid

器件型号:CC2652R7

您好,

我有三个问题要问:

1.在 SimpleCentral_processGATTDiscEvent 中、可以根据 UUID 找到 charHandle。 在 UUID 更改为128位后、此 charHandle 是否仍保存为2个字节? 还是要保存16个字节? 如果仍然保存了2个字节、则应该保存哪两个字节?

2.应在 GATT_ReadCharValue (scConnHandle、&req、selfEntity)中请求.handle;以及 GATT_WriteCharValue (scConnHandle、&req、 自实体);是否将其修改为16字节?

3.有一个要求启用 Notify 函数的特征值。 我需要调用哪些接口来实现它?

如果您可以向我发送中央例程代码、并将 UUID 修改为128位以供参考、则会更好。

谢谢!

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

    您好!

    感谢您与我们联系。 我们将查看您的问题、并尽快与您联系。

    此致、

    1月

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

    您好!

    charHandle 和 req.handle 都是16个字节。 请考虑 pDataList[3]和 pDataList[4]是 uint8指针的地址值。 请查看此主题、其中提供了有关该主题的更多详细信息: https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1341269/cc2642r-doubts-about-the-eigenvalue-discovery-process

    关于通知、 0x0028是 SimpleProfileChar4客户端特征配置 。 此配置的 UUID 为0x2902 (蓝牙定义)。 作者 正在写入 对于此属性、GATT 服务器可以为通知配置 SimpleProfileChar4。 有关此方面的更多信息、请参阅用户指南的 GATT 部分。

    Unknown 说:
    最好发送给我中央例程代码、将 UUID 修改为128位以供参考。

    "你说什么?"文龙不解地问道。 可在代码上定义为16位的自定义 UUID 可使用宏(TI_BASE_UUID_128)扩展至128位

    TI Base 128-bit UUID: F000XXXX-0451-4000-B000-000000000000
    #define TI_BASE_UUID_128( uuid )  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xB0, \
                                      0x00, 0x40, 0x51, 0x04, LO_UINT16( uuid ), HI_UINT16( uuid ), 0x00, 0xF0

    Br、

    大卫。