Microchip
直播中

张霞

7年用户 1027经验值
私信 关注
[问答]

如何分配RN4020专用特征句柄?

刚开始修补RN4020,还没有发现任何显示16位句柄如何分配给128位UUID用于私有特性的东西。我需要这个是因为UART通知只显示远程设备修改了什么句柄,而不是UUID。有?谢谢。

以上来自于百度翻译


      以下为原文

    Just started tinkering with an RN4020, and have not yet found anything that shows how a 16-bit handle is assigned to a 128-bit UUID for a private characteristic.  I need this because the UART notifications only show what handle was modified by a remote device, not the UUID.  I'd think/hope there would be an easy way rather than having to parse through the LS output... is there?

Thanks.

回帖(3)

李蕊

2019-7-15 08:18:18
从https://www.blue..com...bers/service-discoveryService Discovery Protocol(SDP)UniversalUnique.er(UUID)短表单Blue.∈Service Discovery Protocol(SDP)规范定义了一种以更短的形式表示一系列UUID(名义上是128位)的方法。232个值的保留范围可以用32位(表示UUID32)表示。其中,216个值的子范围只能用16位(表示为uuid16)表示。本文档中未分配的232个范围内的所有值都保留,以待本文档今后的修订。换句话说,除了在本文档的这个或将来修订中所指定的以外,可以使用该范围内的任何值。超出此范围的UUID值可按[ISO-11578]中描述的任何分配器希望的用途分配。基本通用唯一标识符(UUID)基本UUID用于根据SDP规范中描述的“短UUID”(uuid16和uuid32)计算128位UUID。请参阅蓝牙核心规范中的服务发现协议(SDP)。注意:当前所有分配的短UUID都是uuid16类型。UUID NameUUIDBASE_UUID00000000-0000-1000-8000-00805F9B34FB

以上来自于百度翻译


      以下为原文

    From
https://www.bluetooth.com...bers/service-discovery
Service Discovery Protocol (SDP)

Universally Unique Identifier (UUID) short forms

The Bluetooth® Service Discovery Protocol (SDP) specification defines a way to represent a range of UUIDs (which are nominally 128 bits) in a shorter form. A reserved range of 232 values can be represented using 32 bits (denoted uuid32). Of these, a sub-range of 216 values can be represented using only 16 bits (denoted uuid16).
All values in the 232 range that are not assigned in this document are reserved pending future revisions of this document. In other words, no value in this range may be used except as specified in this or future revisions of this document. UUID values outside of this range can be allocated as described in [ISO-11578] for any purpose the allocator desires.
Base Universally Unique Identifier (UUID)

The Base UUID is used for calculating 128-bit UUIDs from "short UUIDs" (uuid16 and uuid32) as described in the SDP Specification. See Service Discovery Protocol (SDP) in the Bluetooth Core Specification.
NOTE: Currently all assigned short UUIDs are uuid16 types.
UUID NameUUIDBASE_UUID00000000-0000-1000-8000-00805F9B34FB
举报

欧建杭

2019-7-15 08:32:05
我会看这个医生,但这是我私人的UUID的吗?

以上来自于百度翻译


      以下为原文

    I'll read though this doc, but is this for my private UUID's?
 
举报

欧建杭

2019-7-15 09:18:20
是的,“ls”显示了128位UUID和句柄。我可以解析它,但我希望有更好的方式来关联这两个。支持传统蓝牙将是很好的。我得试验一个。谢谢。

以上来自于百度翻译


      以下为原文

    Yes, "LS" shows the 128-bit UUIDs and the handles.  I can parse it, but I'm hoping there's a better way to correlate the two.
 
LS
010203040506070809000A0B0C0D0E0F
000102030405060708090A0B0C0D0E0F,000B,0A,02
000102030405060708090A0B0C0D0E0F,000C,10,02
000102030405060708090A0B0C0D0E0C,000E,0A,02
000102030405060708090A0B0C0D0E0C,000F,10,02
000102030405060708090A0B0C0D0E12,0011,0A,02
000102030405060708090A0B0C0D0E12,0012,10,02
END 
Was not aware of the RN4677... it would be great to support legacy Bluetooth.  I'll have to experiment with one.
 
Thanks
 
举报

更多回帖

发帖
×
20
完善资料,
赚取积分