128位uuid的添加参考wiki
http://processors.wiki.ti.com/index.php/128_Bit_UUID_SimpleBLE
但是这个里面有点小问题 ,解决办法见
http://e2e.ti.com/support/low_power_rf/f/538/p/309092/1138538.aspx#1138538
In SimpleGATTProfile.C:
in simpleProfile_WriteAttrCB:
// 128-bit UUID
const uint8 uuid[ATT_UUID_SIZE] =
{
TI_UUID(BUILD_UINT16( pAttr->type.uuid[0], pAttr->type.uuid[1]))
};
if ( osal_memcmp(uuid, simpleProfilechar1UUID, ATT_UUID_SIZE) || osal_memcmp(uuid, simpleProfilechar3UUID, ATT_UUID_SIZE))
{
//Validate the value
This code is using the wrong bytes of the 128 bit UUID which is sent, to do the validation. The bytes which are specific to the characteristic are only bytes 0 and 1 if a 16-bit UUID is being used. For 128 bit UUID it should be bytes 12 and 13:
TI_UUID(BUILD_UINT16( pAttr->type.uuid[12], pAttr->type.uuid[13]))
oad功能参考官方提供的oad开发pdf文档,更新软件可使用multitool, 但是profiles不能发现oad,要用UPgrade FW 实现。
128位UUID在BLE中的正确验证方法及oad功能实现
本文详细介绍了在Bluetooth Low Energy (BLE)中正确使用128位UUID进行特征验证的方法,并指出了一段代码中的错误部分。同时,还讨论了如何通过upgrade FW实现oad功能,提供了oad开发的官方指导文档链接。

1443

被折叠的 条评论
为什么被折叠?



