如何在上电后把DA14580 OTP的BD地址的6字节数据倒序后添加到USER_ADVERTISE_DATA中

5 posts / 0 new
Last post
Tony Poon
Offline
Last seen:1 year 1 week ago
Joined:2017-04-12 15:25
如何在上电后把DA14580 OTP的BD地址的6字节数据倒序后添加到USER_ADVERTISE_DATA中

你好,
本公司在开发与微信连接传输数据的产品,微信 BLE 广播数据格式中规定: Customer specification: 0x09 + 0xFF + BLE core vendor (2 字节) + BD 地址的倒序 (6 字节)
请问如何在上电后把DA14580 OTP 的BD地址的6字节数据倒序,并添加到USER_ADVERTISE_DATA中。

谢谢。

Device:
MT_dialog
Offline
Last seen:5 days 3 hours ago
Staff
Joined:2015-06-08 11:34
Hi Tony Poon,

Hi Tony Poon,

This post has been moved in the Chinese forum, please dont post in Chinese on the English forum.

Thanks MT_dialog

Qinjiny_Dialog
Offline
Last seen:3 weeks 4 days ago
Staff
Joined:2016-11-01 05:47
OTP中蓝牙地址的储存位置是已知固定的

OTP中蓝牙地址的储存位置是已知固定的,程序里读出来自己处理一下放进广播信息就可以了。

nvds_read_bdaddr_from_otp()这个函数是从OTP拿蓝牙地址的,你可以看一下

Tony Poon
Offline
Last seen:1 year 1 week ago
Joined:2017-04-12 15:25
可以了, 非常感谢。

可以了, 非常感谢。

小螃蟹
Offline
Last seen:2 years 3 months ago
Joined:2017-03-05 01:59
我也遇到同样问题,MAC能读到,就是不知道怎么加到USER

我司现在也遇到同样问题,MAC能读到,就是不知道怎么加到USER_ADVERTISE_DATA,可否提供下相关操作代码?