Android IRC办公时间关于Android蓝牙RSSI的问题 [英] Android IRC Office Hours Question About Android Bluetooth RSSI

查看:22
本文介绍了Android IRC办公时间关于Android蓝牙RSSI的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对 Android(2.0 或 2.1)上的蓝牙 RSSI 功能有疑问:

I have a question about bluetooth RSSI functionality on the Android (either 2.0 or 2.1):

在创建蓝牙连接时获取 RSSI 值很容易,但是如何重复获取已激活连接的 RSSI 值呢?能够做到这一点非常重要,因为这可以让您确定蓝牙设备是彼此靠近还是远离,但我在 Android API 中找不到任何合适的函数调用.

It's easy enough to get the RSSI value when a bluetooth connection is created, but how can you repeatedly get the RSSI value of a connection that is already active? It's really important to be able to do this, because this lets you determine if bluetooth devices are close to each other or far away, but I can't find any appropriate function calls in the Android API.

了解 Android RSSI 的人可以帮我解决这个问题吗?

Could someone who understands Android RSSI please help me with this problem?

谢谢!

亚历克斯

推荐答案

在 HCI 级别,有一个命令可以从蓝牙芯片组读取蓝牙链路 RSSI(Read_RSSI_Command).然而,它的实现可能因蓝牙芯片组而异.并且返回的值并不总是有用的,例如如果最近几分钟没有数据包传输,则蓝牙芯片组无法知道当前的RSSI.

At the HCI level, there is a command to read a Bluetooth link RSSI from the Bluetooth chipset (Read_RSSI_Command). However its implementation can vary from Bluetooth chipset to Bluetooth chipset. And the value returned is not always useful, for example if there are no packets transmitted in the last few minutes, the Bluetooth chipset has no way to know the current RSSI.

所以我们目前不会在任何 Android Java API 中公开它.

So we don't expose this in any Android Java API at this time.

尼克·佩利安卓蓝牙团队

Nick Pelly Android Bluetooth Team

这篇关于Android IRC办公时间关于Android蓝牙RSSI的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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