rssi

Sleep command for Android

梦想与她 提交于 2019-12-25 03:13:34
问题 I am writing a small program to periodically poll the RSSI of the WIFI connection. I am using SystemClock.Sleep(2000) in the program. The problem, I would like to display the RSSI every 2 seconds. But, currently, even though it polls every 2 seconds, the result is displayed only at the end of the loop. Here is the code snippet: for(int i=0;i<10;i++) { Date dt=new Date(); WifiInfo info = wifi.getConnectionInfo(); int rssi = info.getRssi(); textStatus.append("\n\nRSSI :" +Integer.toString(rssi)

Sleep command for Android

谁说胖子不能爱 提交于 2019-12-25 03:13:27
问题 I am writing a small program to periodically poll the RSSI of the WIFI connection. I am using SystemClock.Sleep(2000) in the program. The problem, I would like to display the RSSI every 2 seconds. But, currently, even though it polls every 2 seconds, the result is displayed only at the end of the loop. Here is the code snippet: for(int i=0;i<10;i++) { Date dt=new Date(); WifiInfo info = wifi.getConnectionInfo(); int rssi = info.getRssi(); textStatus.append("\n\nRSSI :" +Integer.toString(rssi)

RSSI from Bluetooth Low Energy (BLE) Tags?

元气小坏坏 提交于 2019-12-23 05:17:42
问题 I'm writing an app (on android) to read RSSI from bluetooth devices, for location recognition using rssi fingerprinting. I have working code for reading RSSI from non-paired and discoverable bluetooth devices that are not BT4.0/BLE. I would like to know if I get some BLE-based tags (such as stick-n-find) would I be able to read their RSSI only by putting myself (my android phone to be precise), into bt-discovery mode. 回答1: In BT Low Energy the roles are switched. The Stick-n-find would be

RadioTap headers in scapy

牧云@^-^@ 提交于 2019-12-23 03:46:11
问题 I'm trying to send and receive packets with scapy and read the RadioTap Header. The wireless adapter (and driver) is able to handle those headers, but I can't seem to get them. Whenever I send a normal packet in scapy, is does not contain such a header (thus, sniffing packets and checking one with pkt.haslayer(RadioTap) returns "0", and I am not able to display the header like with pkt[RadioTap].show() ). If I explicitely construct my packets with a RadioTap header (like in a pkt = RadioTap()

xcode - how use MobileWiFi.framework

穿精又带淫゛_ 提交于 2019-12-23 01:22:10
问题 In my private app (not jailbroken), I need to read wifi RSSI values of enterprise hotspots. I read about MobileWiFi.framework. I am trying to use the example code "Getting the WiFi signal strength" found here but without lucky. Probably, I am not properly use the framework. Anyone could tell me the steps to do that? 回答1: visit : // http://iphonedevwiki.net/index.php/MobileWiFi.framework <key>com.apple.wifi.manager-access</key> </true> Your custom entitlements file should finally look

Calculating distance of an AP including signal-to-noise ratio

与世无争的帅哥 提交于 2019-12-22 11:35:11
问题 For some reason a friend and myself were talking about calculating the distance between yourself (laptop, phone, etc.) and an AP based of the info you get from the devices (RSSI, freq, SNR, etc...). So, after spending sometime researching about trilateration, triangulation, and free-space path loss. (with the help of some blog posts and wiki) I was able to get a distance in meters from the AP to my laptop and the results were a lot better then what I thought they would be. Whenever I'm in the

Is there an explanation for the regular oscillation experienced in Bluetooth RSSI

主宰稳场 提交于 2019-12-22 11:03:57
问题 I am working with kontakt.io Bluetooth eddystone UID beacons and an android application using the alt-beacon library (running on a Samsung Galaxy S5, although I doubt that is relevant). I've done a bunch of trials under different conditions and am working towards determining the feasibility of high-accuracy tracking via trilateration of multiple beacon signals. On multiple occasions I have noticed a regular oscillation of the beacon's RSSI being detected by the android device. Here is one of

Reading RSSI value of connected Bluetooth Low Energy device in Android Studio

爷,独闯天下 提交于 2019-12-22 10:09:03
问题 I am working on a BLE project in Android Studio and would like to read the RSSI value of a device which I have already connected to. So far I was able to discover new devices via LE Scan and get their RSSI from there. However, once I connect to a device I can no longer run a scan and get the RSSI. This is the code for discovering new devices before connecting to one of them. Not sure how relevant it is to my question though: private BluetoothAdapter.LeScanCallback mLeScanCallback = new

Android Getting WiFi signal strength as it changes

主宰稳场 提交于 2019-12-21 21:35:55
问题 I want to get the Signal strength of the WiFi network I am connected to , as it changes . This is my broadcast receiver registerReceiver(new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { int info = Wifi.getConnectionInfo().getRssi(); textStatus.append("\n\n : " + Integer.toString(info)); } }, new IntentFilter(WifiManager.RSSI_CHANGED_ACTION)); I am getting it only once . How do i get it as it changes ? 回答1: Update : From tests in Android 4.4 and 5.0

Reading Bluetooth RSSI for BLE proximity profile in Android

半世苍凉 提交于 2019-12-21 18:29:55
问题 I am currently developing Bluetooth Low Energy proximity profile for Android and I have stumbled upon an issue regarding RSSI. In order to make proximity profile work I have to receive RSSI data with already connected device every short period. As I did some research I understand it is possible to get Bluetooth RSSI during device discovery. That doesn't work for me as the slave device doesn't advertise after connection. The other way round is digging down to HCI level and using BlueZ. It