rssi

how to find Signal Strength of connected bluetooth devices

泄露秘密 提交于 2019-12-21 05:45:27
问题 In one of my applications, I need to display all the wi-fi and Bluetooth devices which are paired to my mobile, and their signal strengths. With wi-fi, it's okay for me to display signal strength (RSSI). But I have a problem with the Bluetooth. I searched for some method which is suitable for this task; I found one method: intent.getShortExtra(BluetoothDevice.EXTRA_RSSI, Short.MIN_VALUE); But it is displaying only the new device RSSI which is not paired to my mobile. Is there any idea for

difference between getConnectionInfo() and getScanResults() to detect signal strength changes

左心房为你撑大大i 提交于 2019-12-21 01:12:24
问题 I'm trying to detect signal strength changes in a wifi connection. I'm confused of which method I should use in my BroadcastReceiver. What is the difference between using getConnectionInfo() and getScanResults() - from which then I can use relevant method to get the rssi value? For example: if I use getConnectionInfo(), then later on I use getRssi(). Or I could use getScanResults() and the "level" property. I display their values using Toast and it doesn't always show same values. When wifi

Issue with WifiManager.calculateSignalLevel(RSSI, 5)

扶醉桌前 提交于 2019-12-18 12:44:07
问题 I am trying to use the Wifimanager to calculate the Signal Level of the access points found during a scan. I am using the following method: WifiManager.calculateSignalLevel(int, int) But it appears to always return the same int no matter what the RSSI level is. Here is my code: public int calculateQoS(int aRSSI){ signalLevel = WifiManager.calculateSignalLevel(RSSI, 5); return signalLevel; } public void testCalculateQoS(){ Log.d("signal", "signal = : " + connMonitor.calculateQoS(-44) + " " +

How to improve Bluetooth distance measuring using RSSI?

≯℡__Kan透↙ 提交于 2019-12-18 12:00:10
问题 For my project I need to estimate the distance between a Smartphone and a bluetooth module. The Estimation doesn't have to be very precise. I only need to determine the distance with a margin of error of about 50cm . I did test the RSSI of two bluetooth modules at distance-steps of 10 cm. I measured the RSSI 5 times for each step and got the average of the 5 measurements. The averages are shown in the graph below: The red and blue lines resemble the two Bluetooth modules. You can see that the

Estimating beacon proximity/distance based on RSSI - Bluetooth LE

为君一笑 提交于 2019-12-17 10:12:13
问题 I've got a simple iOS app which displays the proximity of the Bluetooth LE beacons it detects using such expressions as "immediate", "near" etc. and I need to write something similar on Android. I've followed the tutorial at Android developer and I'm able to list detected devices and now want to estimate the distance/proximity - this is where it's become a problem. According to this SO thread it's just a handful of mathematical calculations. However, they require me to provide a txPower value

Android: Update bluetooth rssi every second

强颜欢笑 提交于 2019-12-13 14:20:06
问题 I'm trying to display the bluetooth signal strength (rssi) evry second ( Timer() ) from detected device but i couldn't call onRecive() multiple times because Receiver Lifecycle. I need a way(idea) to refresh the RSSI, or some other way to measure a signal every second? Is it easier if the device is connected? App gives a constant value always: DeviceName 2b:3c:d5:6c:3x:0X 40 db Part of the app stored in Timer() method: BroadcastReceiver mReceiver = new BroadcastReceiver() { public void

RadBeacon Tag distance calculating

时光怂恿深爱的人放手 提交于 2019-12-13 04:48:52
问题 i am using iBeacon from Radius Networks. At the moment I am trying to calculate the distance between android device and RadBeacon Tag by using RSSI. Like David Young mentioned here the android devices have got different antenna. My experience with the following forumla is not very good in combination with my Nexus 7. protected static double calculateAccuracy(int txPower, double rssi) { if (rssi == 0) { return -1.0; // if we cannot determine accuracy, return -1. } double ratio = rssi*1.0

Android RSSI value of Bluetooth returns -32768 always?

我只是一个虾纸丫 提交于 2019-12-12 09:53:38
问题 I am trying to get the current RSSI value of a connected bluetooth device at the click of a button. However it returns only -32768 always! Don't know what is wrong! However I was able to get the correct RSSI, the first time it got connected. private Button.OnClickListener buttonRSSIOnClickListener = new Button.OnClickListener(){ @Override public void onClick(View arg0) { // TODO Auto-generated method stub Intent intent = new Intent(BluetoothDevice.ACTION_FOUND); short rssi = intent

Get Bluetooth RSSI of Android Wear on an Android phone

依然范特西╮ 提交于 2019-12-12 02:38:14
问题 I would like to determine the distance between an Android phone (Nexus 5X) and an Android Wear device (Samsung Gear live) by means of the Bluetooth RSSI. I found solutions to use the Bluetooth function readRemoteRssi(); as in final Runnable runnable = new Runnable() { @Override public void run() { // TODO Auto-generated method stub mBluetoothLeService.readRemoteRssi(); mHandler.postDelayed(this, 1000); } }; However, when using Android Wear, it is not necessary to use Bluetooth managers,

How to Get bluetooth signal strength (rssi) of connected bluetooth devices?

混江龙づ霸主 提交于 2019-12-11 20:44:32
问题 i want to get the bluetooth rssi of a another device which connected to my phone, how can i get the bluetooth rssi? i tried to search alot over stackoverflow/google and didnt find any answer, i found just the answer to get rssi of devices wich do not have any connection ! (Get bluetooth signal strength). but i need the rssi of the connected devices ! can you help me please. thanks alot 回答1: I was also looking for a solution and found this: You can use the readRemoteRssi() function of