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.

[参考译文] CC2340R5:如何修改 CC2340上自定义服务 UUID 的16字节数据

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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1437631/cc2340r5-how-to-modify-16-bytes-of-data-in-custom-service-uuid-on-cc2340

器件型号:CC2340R5

工具与软件:

您好!

我有一块 CC2340 Launchpad 板、正在将其用作外设。 我想使用添加一个自定义服务 UUID  6e400001-b5a3-f393-e0a9-e50e24dcca9e、目前只允许修改2字节的数据。 我的目标是修改它、以便可以更改服务 UUID 以及自定义 Characteristic UUID 中的所有16字节数据。

我附上了供参考的屏幕截图。

这里我们只能更改2字节的数据、但我想更改16字节服务 ID。

 我们想要更改标记的区域

Code Composer Studio 版本:12.7.1

SDK:simplelink_lowpower_f3_sdk_8_10_00_23_eng  

可以有人来指导我在实现代码中需要更改的地方吗?  

谢谢、此致

Ratan Dalei

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

    尊敬的 Ratan:

    感谢您联系我们。 我们将仔细研究您的问题、并尽快与您联系。

    此致、

    1月

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

    您好、Ratan:

    您能否确认这是否适用于汽车应用(您是否正在使用 CC2340R5-Q1器件版本)?

    要修改自定义128 Characteristic UUID、我所做的操作如下所示:

    //Base for 128-bit UUID: modify this as needed
    #define XXX_BASE_UUID_128( uuid )  0x11, 0x11, 0x11, 0xF6, 0x01, 0xAF, 0x7D, 0xBC, \
                                      0x05, 0x4F, 0x21, 0x5A, LO_UINT16( uuid ), HI_UINT16( uuid ), 0x5E, 0xAB
                                      
    // GATT Profile Service UUI
    static const uint8 xxxProfileServUUID[ATT_UUID_SIZE] =
    {
     XXX_BASE_UUID_128(MY_UUID)
    };

    BR、

    David。