蓝牙低功耗广告数据包格式的android [英] Bluetooth low energy advertisment packet format android

查看:1157
本文介绍了蓝牙低功耗广告数据包格式的android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

设备广播广告一包家道包含设备名称和当前温度onLeScan方法的字节数组(知道从iOS应用),但如何字节数组包含BLE设备名称和温度转换。我没有发现广播数据的任何格式,请任何身体知道请告诉我。
在IOS很容易的NSDictionary格式ontain键和值包含十六进制格式的名称和温度。我只是尝试字节数组转换字符串我得到的名字,但其他都是垃圾字符打印所以我怎么从字节数组中提取竹叶提取名称和温度值

device broadcast a advertisement packet consist of byte array in onLeScan method which contain device name and current temperature (know from the ios app) but how to convert byte array which contain ble device name and temperature. i didn't find any format of broadcast data please any body know please tell me. in ios it easy nsdictionary format ontain key and value which contain name and temperature in hex format. i just try to convert byte array in string i get name but other are garbage character are printed so how did i extract ble name and temperature value from byte array

推荐答案

我想我应该让这个常规的答案......

I figured I should make this a regular answer...

一个LE广告数据包的数据部分是在EIR数据格式。不要搜索蓝牙乐扩展查询响应数据格式还是看核心4.0蓝牙规格PG 1690。

The data portion of an LE advertising packet is in the EIR data format. Do search for "bluetooth le extended inquiry response data format" or look at the core 4.0 bluetooth specs pg 1690.

这篇关于蓝牙低功耗广告数据包格式的android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆