简体   繁体   English

关于蓝牙低功耗API的“接近度配置文件”到底是什么?

[英]What exactly is the 'proximity profile' with respect to the Bluetooth Low-Energy APIs?

I am currently developing an iOS app for a BLE device which will implement the Proximity Profile (which I currently don't have access to yet), but I am at a loss as to what that actually means. 我目前正在开发一个用于BLE设备的iOS应用程序,它将实现Proximity Profile (我目前还没有访问权限),但我对这实际意味着什么感到茫然。

I have read the pdf document from bluetooth , and know that the BLE device would be the proximity reporter and the application the proximity monitor , but what does that mean in terms of the CoreBluetooth framework? 我已经从蓝牙上阅读了pdf文档 ,并且知道BLE设备将是proximity reporter和应用程序proximity monitor ,但这对于CoreBluetooth框架意味着什么?

After connecting to a BLE device, the method I am currently using to measure proximity is through calls to readRSSI on the peripheral device. 连接到BLE设备后,我目前用于测量接近度的方法是通过外围设备上的readRSSI调用。 Does a device which implements the proximity profile behave differently so that I don't need to make that call? 实现邻近配置文件的设备是否表现不同,以便我不需要进行该呼叫? There isn't much documentation around to give a better idea. 没有太多的文档来提供更好的主意。

Here is a description of the GATT services related to the proximity profile: http://developer.bluetooth.org/gatt/profiles/Pages/ProfileViewer.aspx?u=org.bluetooth.profile.proximity.xml 以下是与邻近度资料相关的GATT服务的描述: http//developer.bluetooth.org/gatt/profiles/Pages/ProfileViewer.aspx?u = org.bluetooth.profile.proximity.xml

It looks like it allows for an attribute to read the RSSI from (I think normally you can read that value from a lower level method directly from the transmitter/receiver). 看起来它允许一个属性从中读取RSSI(我想通常你可以直接从发送器/接收器从较低级别的方法读取该值)。 So you should be able to read the RSSI value on both ends of the connection. 因此,您应该能够读取连接两端的RSSI值。

The profile also allows for alerts to happen on both ends and you can control what level of alert occurs. 该配置文件还允许在两端发生警报,​​您可以控制发生的警报级别。

I think essentially, a "profile" is just a collection of attributes in GATT. 我认为,“简介”只是GATT中的一系列属性。 If you have the required attributes you can state that you support that particular profile. 如果您具有必需的属性,则可以声明您支持该特定的配置文件。

Here's a PDF with the little details if you want: https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id=239392 如果您需要,这里有一个带有小细节的PDF: https//www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id = 239392

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM