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

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

问题描述

我有一个关于Android的蓝牙RSSI功能(无论是2.0或2.1)问题:

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.

可能有人谁明白的Andr​​oid RSSI请帮我解决这个问题?

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

谢谢!

亚历

推荐答案

在人机交互层面,有一个命令来读取蓝牙芯片组(Read_RSSI_Command)蓝牙链路的RSSI。但是它的实现可以从蓝牙芯片蓝牙芯片组的不同而不同。和返回的值并不总是有用的,例如,如果有在最后几分钟发送没有包,蓝牙芯片组没有办法知道当前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.

所以,我们不要在这个时候任何的Andr​​oid的Java API暴露这一点。

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

尼克·佩利 Android的蓝牙团队

Nick Pelly Android Bluetooth Team

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

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