TI中文支持网
TI专业的中文技术问题搜集分享网站

CC2650的UUID 默认是16位的,但是nrf connect 识别的是128位,怎样修改128位后面的112位,前面的不变

例如某服务的UUID是180D, 用nrf connect 打开就是 0000180d-0000-1000-8000-00805f9b34fb,

现在的需求是前面2个字节不变,想要修改后面的14个字节,怎么操作

Kevin Qiu1:

例程中的UUID是使用2字节16位的,后面14字节的是自动填充的

user1388075:

回复 Kevin Qiu1:

这个自动填充的内容能人为设定么?

Kevin Qiu1:

回复 user1388075:

这个不能改,使用128位uuid看下
gattAttrType_t type
type is the UUID associated with the attribute being placed into the table. gattAttrType_t itself is defined as:

typedef struct
{uint8 len;//!< Length of UUID (2 or 16)const uint8 *uuid; //!<Pointer to UUID
} gattAttrType_t;
Where length can be either ATT_BT_UUID_SIZE (2 bytes), or ATT_UUID_SIZE (16 bytes). The *uuid is a pointer to a number either reserved by Bluetooth SIG (defined in gatt_uuid.c) or a custom UUID defined in the profile.
和Example Service Generator:dev.ti.com/…/node

user1388075:

回复 Kevin Qiu1:

如果把2字节的UUID 整体改动成16字节的,具体怎样操作

Kevin Qiu1:

回复 user1388075:

看下e2e.ti.com/…/3195607

赞(0)
未经允许不得转载:TI中文支持网 » CC2650的UUID 默认是16位的,但是nrf connect 识别的是128位,怎样修改128位后面的112位,前面的不变
分享到: 更多 (0)