很抱歉这个问题
我已经通过使用16位 UUID 手动创建了定制服务
现在、我正在尝试使用服务生成 器 https://dev.ti.com/tirex/explore/content/simplelink_academy_cc13x2_26x2sdk_5_10_00_00/modules/ble5stack/ble_01_custom_profile/ble_01_custom_profile.html#example-service-generator 创建符合北欧半导体 UART 服务(NUS) https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v14.0.0%2Fble_sdk_app_nus_eval.html 的服务
看起来不是很难、但 UUID 超过16位 (也超过128位)
NUS UUID: 6E400001-B5A3-F393-E0A9-E50E24DCCA9E (16位偏移:0x0001)。
Nordic 的 UART 服务包括以下特性:
名称 |
必填项 |
UUID |
类型 |
R |
W |
N |
一 |
RX Characteristic UUID:6E400002-B5A3-F393-E0A9-E50E24DCCA9E (16位偏移:0x0002)。
TX 特征 UUID:6E400003-B5A3-F393-E0A9-E50E24DCCA9E (16位偏移:0x0003)。
如果我仅保留16位偏移 uuid、则我的 NUS_SERV_UUID (0x0001)与 ProjectZero_processApplicationMessage 中的 PZ_SERVICE_CFG_EVT 发生冲突