恰好与BLE设备连接时什么去的Andr​​oid睡眠模式 [英] What happens to connection with BLE device when Android goes in sleep mode

本文介绍了恰好与BLE设备连接时什么去的Andr​​oid睡眠模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当Android的进入睡眠模式正好与BLE装置连接的连接是什么?因此,如果应用程序建立与BLE设备的连接,然后进入Android的睡眠,将连接维护呢?将应用程序有关断开或重新连接被告知?

What happens to connection with BLE device connection when Android goes in sleep mode? So if application establishes a connection with BLE device and then Android goes sleep, will the connection be maintained? Will the application be informed about disconnects or re-connection?

推荐答案

BLE两部分devided,

BLE is devided in two parts,


  • 物理层和在BLE控制器实现链路层(前端)

  • 在主机端实现上层(Android系统)

两部分通过HCI接口连接。 (顺便说一下,你可以sniff使用开发人员选项)。

both parts connect via the HCI interface. (Which you by the way can sniff using the developer options).

因此​​,这意味着,当主机处于睡眠模式BLE前端仍能保持连接和唤醒的情况下,它需要从它(例如,连接已下降或更高层的一些数据包进来了)一些反应的主机。

So that means that while the host is in sleep mode the BLE frontend can still maintain connections and wake the host in case it needs some reactions from it (e.g. connection has dropped or some data packet for higher layers came in).

这允许一个非常节能的实现。

This allows a very energy efficient implementation.

这篇关于恰好与BLE设备连接时什么去的Andr​​oid睡眠模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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