wifi

Location and distance calculation using Wifi in android

核能气质少年 提交于 2019-12-06 05:52:49
问题 How to get the distance of our mobile device from a wifi hotspot kept inside a building? This is basically for navigational purposes inside the building.. Any help would be appreciated. 回答1: If you want to use WiFi for indoor location (step 1 before navigation), then distance to the WiFi Access Points is not the correct approach. Instead use RSSI. With Android you would need to take WiFi fingerprint of a building by moving around every few meters and sample the RSSI strength. You need to

connect wpa2 enterprise wifi connection programmatically in android

吃可爱长大的小学妹 提交于 2019-12-06 05:20:59
问题 I just tried few codes for wpa2 enterprise connection in android but nothing is connecting i want a right code to connect the right network. right now i have used this answer but i need few clarification because this answer is very old one. here i am attaching some screenshot about connection clarification. In this you can see identity and password WifiConfiguration wifiConfiguration = new WifiConfiguration(); wifiConfiguration.SSID = "\"" + networkSSID + "\""; wifiConfiguration.BSSID = Bssid

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

不羁的心 提交于 2019-12-06 05:04:04
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 same room or there's a line of sight to the AP, the accuracy is about a foot. But now, I want to take

Android - connect to known hidden Wi-Fi network

99封情书 提交于 2019-12-06 05:00:36
问题 I need to connect to hidden Wi-Fi network programmatically. I know it's SSID, security type and password. For some reason I can't connect it. I can connect to the same network if it's not hidden. Here's my code: // configure the network private void saveWPANetwork(WiFiNetwork network){ WifiConfiguration conf = new WifiConfiguration(); conf.SSID =network.getSSID(); conf.hiddenSSID = true; conf.status = WifiConfiguration.Status.ENABLED; conf.preSharedKey =network.getPassword(); conf.priority =

How to set system wide proxy in ICS

北战南征 提交于 2019-12-06 04:45:50
For Android 3.x and before, you can bring up a hidden UI called com.android.settings.ProxySelector. It is set in Settings.Secure.HTTP_PROXY and used by Mobile network (WiFi network does not always work). However for ICS, I can still bring up this hidden UI, but it does not seem to set proxy anymore. When I click "Done", then I check Settings.Secure.HTTP_PROXY or system property http.proxyHost, neither is set. So is there a way in ICS that would allow me to set global proxy much like what I can do before with the com.android.settings.ProxySelector UI? Thanks! Unfortunately the hidden activity

Print from android without system dialog

大兔子大兔子 提交于 2019-12-06 03:49:56
问题 i would like to print an image from my android application (printer: canon selphy cp910, with wifi direct). I tried the Google API with the android.support.v4.print.PrintHelper class. It work but i have no way to bypass the system dialog. I would like the the application do not interact with the system UI. user just print the button and start printing on the default connect printer. Is that possible ? thank 回答1: Short answer is unfortunately: no. The only way to use the Android provided print

Get current position with GPS AND WIFI

纵饮孤独 提交于 2019-12-06 03:35:34
I'm currently using GPS only to get current location of the user to return certain results. As in Belgium, if you're inside, most of the time you can't get GPS-connection. So I want to get the current location with the wifi-connection. I've found this example: get the current location (gps/wifi) But I'm not sure which lines tell the device which connection to choose. I'm guessing it's this one: String provider = myLocationManager.getBestProvider(criteria,true); That I've to add to my code. When I check what's inside of this, I always get a null-value, I don't quite understand why. My code

Measuring Signal Strength from wifi to Iphone/Ipad

孤街浪徒 提交于 2019-12-06 03:33:39
问题 I want to get the current Wifi signal strength from an iOS device. A Google search reveals only solutions for Android devices. From the literature I gather that Apple does not allow to access hardware and so nobody can retrieve the device's signal strength in dbm through their app. Is this correct? 回答1: As you say, there is no way to do this as Apple doesn't allow apps access to the necessary hardware. (There seems to have been a way to do it in iOS 5 but only using private APIs.) What you

Is there a good framework/sdk on wifi positioning with c#? [closed]

守給你的承諾、 提交于 2019-12-06 03:20:52
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'm just searching a framework for wifi positioning in c#. actually i found nearly everything that i need for a robot project in form of a framework. even primitive object recoginition!!! now i wonder if some of you know if there is one, or whether i have to do it by myself. 回答1: So finally if someone is also

Android wifi power question

半腔热情 提交于 2019-12-06 03:12:00
I have observed that by default the wifi adaptor goes into (power saving mode) PSM mode. When Certain applications such as youtube appear to buffer video, the adaptor leaves PSM mode into CAM state or full power mode. Once the buffering is done, the wifi adaptor goes back into PSM mode. I have observed this behavior with other applications as well. Is there an API call that supports this kind of behavior? It's not clear from the documentation how to switch the WIFI adapator in and out of PSM mode. WiFi goes PSM or CAM not under Application's control, it's the 802.11 Power Management Mode --