CC2541 AirSync(2)——广播包
2015-10-20 16:13
453 查看
普通包:我们把设备正常情况下无时无刻广播的包成称为普通包。
确认包:当用户进行设备确认时(如双击手环,或者按按钮),广播的特殊的包称为确认包。微信规定了微信认识的普通包和确认包的格式:通过 manufature data来区别。
普通广播包:manufature specific data 需以MAC 地址(6 字节)结尾。并且 manufature specific data 长度需大于等于8 字节(最前两个字节为 company id,没有的话随便填)。
确认广播包:manufature specific data 需以下面格式结尾,0xfe 0x01 0x01 + MAC 地址(6 字节)。并且manufature specific data 长度需大于等于8 字节(最前两个字节为 company id,没有的话随便填)。
我们一般用的是普通包,至今还未用过确认包。
确认包:当用户进行设备确认时(如双击手环,或者按按钮),广播的特殊的包称为确认包。微信规定了微信认识的普通包和确认包的格式:通过 manufature data来区别。
普通广播包:manufature specific data 需以MAC 地址(6 字节)结尾。并且 manufature specific data 长度需大于等于8 字节(最前两个字节为 company id,没有的话随便填)。
确认广播包:manufature specific data 需以下面格式结尾,0xfe 0x01 0x01 + MAC 地址(6 字节)。并且manufature specific data 长度需大于等于8 字节(最前两个字节为 company id,没有的话随便填)。
我们一般用的是普通包,至今还未用过确认包。
相关文章推荐
- Cordys 不同 containner 利用 WebService 调用数据
- could not find the main class,program will exit
- Container With Most Water - Leetcode
- [转] 出现( linker command failed with exit code 1)错误总结
- HDOJ 2473 Junk-Mail Filter(并查集集合删点+虚拟父节点)
- RAC Wait Event: gcs log flush sync
- 慎用ArrayList的contains方法,使用HashSet的contains方法代替
- 传统存储系统发展史调研
- 出现( linker command failed with exit code 1)错误总结
- ls --color的使用
- rails中的正则表达式的相关错误提示
- HDU 3487 Play with Chain [splay]
- Email-Ext Plugin install ------ Jenkins Plugins
- BitLocker Repair Tool - Recover Drive in Windows 7 and 8
- Leetcode Paint House
- cordys Service containner ,service group, dataBase, interface 理解
- Tsinghua OJ:列车调度(Train)
- int main(int argc,char* argv[])详解
- QPainter画图
- Daily Scrum 10.20