唤醒Android SDK中的深度睡眠BLE设备是否可行? [英] Is it Possibile to wake up a Deep sleep BLE device in Android SDK?

查看:105
本文介绍了唤醒Android SDK中的深度睡眠BLE设备是否可行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些BLE信标会进入深度睡眠模式以节省电池策略.是否有可能在Android SDK中直接连接(或只是发现)这些信标并唤醒它们?我只需要它们的存在和信号强度即可.

I have some BLE beacons that go on deep sleep mode for saving battery policy. Is it possibile, in Android SDK, directly connect (or simply discover) these beacons and wake them up? I need just their presence and Signal Strength.

推荐答案

如果BLE设备处于深度睡眠状态,则通常意味着其无线电已完全关闭,因为无线电通常是非常消耗电流的部分.

If a BLE device is in deep sleep, that usually means its radio is completely shut down, since the radio usually is a very current consuming part.

要使中央设备(电话)能够发现和/或能够连接到外围设备(标签),外围设备必须进行广告宣传.在此处做广告意味着会不时发送一次(小型)无线电数据包,中央设备将监听这些数据包.然后,接收到的数据包可以用作正在运行的任何电话应用程序的指示符,说明该标签是否在附近,并且通过检查RSSI(可能在多个广告中显示),可以估算距离.您可以看一下这张图片(取自

For a Central device (phone) to discover, and/or being able to connect to a Peripheral (a tag), the Peripheral has got to be advertising. Advertising here means to be sending (small) radio packets once in a while, which the Central device will listen for. Receiving such packets can then be used as a indicator for whatever phone app is running that the tag is nearby, and by checking the RSSI (possible on multiple advertisements), an estimation of distance can be made. You can take a look at this picture (taken from here), to better understand how advertising and scanning works in BLE:

如果标签在不发送此类广告数据包的模式下处于休眠状态,则无法通过无线方式唤醒它.

If the tag is sleeping in a mode in which it doesn't send such advertisement packets, there is no way to wake it up over the air.

这篇关于唤醒Android SDK中的深度睡眠BLE设备是否可行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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