BLE设备可以充当信标吗 [英] Can BLE devices act as beacons

查看:95
本文介绍了BLE设备可以充当信标吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是一个错误的问题,但只需要知道这是否可行对于我们其中一种ble设备,制造商数据来自[noper]软件包使用[ peripheral.advertisement.manufacturerData ]

This could be a wrong question but just need to know whether this is feasible For one of our ble devices the manufcaturer data comes as when scanned using the noble package using the [peripheral.advertisement.manufacturerData]

manufacturerData:<缓冲器59 00 08 8a 00 00 50 f8 c8 f0 6e b9 cd>} .此数据主要包含一些与设备相关的数据,例如电池电量和硬件版本.如果我们更改广告包装,此设备既可以用作信标又可以用作ble设备?

manufacturerData: <Buffer 59 00 08 8a 00 00 50 f8 c8 f0 6e b9 cd> }.This data mainly has some data related to the device like the battery level and hardware versions. Can this device work as a beacon as well as a ble device if we change the advertising package ?

推荐答案

是的,只要您可以控制广告有效负载,任何BLE设备都可以充当信标.信标是BLE设备的子集.根据定义,信标是BLE设备,它们不断/连续地发布与其他远程设备相关的数据,通常包含有关其位置/邻近度的信息.

Yes, any BLE device can act as a beacon as long as you can control the advertisement payload. Beacons are a subset of BLE devices. By definition, beacons are BLE devices that are constantly/continuously advertising data that are relevant to other remote devices, usually containing information about its location/proximity.

因此,正如Mike Petrichenko所建议的那样,要回答您的问题,您所需要做的就是将广告数据更改为与远程设备相关的内容.如果仍然需要发送当前广告,则需要在发送当前广告数据和相关信标数据之间进行切换.您可以根据应用程序控制每个数据的发送频率(例如,对于当前有效负载的每10个广告,如果不需要的话,可以发送信标广告).

So to answer your question, as Mike Petrichenko suggested, all you need to do is alter your advertisement data to something that is relevant to remote devices. If you still need to send your current adverts, then you'll need to alternate between sending the current advert data and the relevant beacon data. You can control the frequency at which each data is sent depending on your application (e.g. For every 10 adverts of your current payload you can send the beacon advert if it's less frequently needed).

一些参考文献:-

什么是信标以及信标如何技术作品

关于信标技术您需要了解的5件事

什么是信标,以及它们如何在物联网应用中使用

我希望这会有所帮助.

这篇关于BLE设备可以充当信标吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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