wifi

Wifi position triangulation

╄→гoц情女王★ 提交于 2019-11-28 15:16:45
I need to understand how Wifi triangulation basically works. The scene is as portrayed in above diagram. Inorder to implement wifi triangulation, I need a minimum of 3 Wifi hotspots and their positions. The setup: 1. For simplicity, let's assume I have a 1 sq-Km by 1 sq-Km area, and I have 3 Wifi hotspots in this area. The coordinate system is as follows: 1 corner of the square area is (0,0,0), and the diagonally furthest corner will have coordinates (1,1,1). All position determination is to be done relative to this coordinate system alone (for simplicity, I don't want global xyz coordinates).

Ad Hoc Wifi Connection Between iPhone & Mac - Possible?

六月ゝ 毕业季﹏ 提交于 2019-11-28 14:09:12
I was just wondering if it is possible to set up a data transfer tunnel between an iPhone and a Mac using the Wifi hardware present on both devices? My main objective is to transfer data from my iPhone to my Mac through an app along an ad hoc wifi connection. If there are any other methods you would like to suggest, then please do. Looking forward to your replies. Thanks! A.K. You can make use of Bonjour, via NSNetServices and CFNetServices APIs. Basically: Create a server on the Mac Announce the server via Bonjour Browse Bonjour on the phone and resolve the bonjour service. Establish

How nl80211 library & cfg80211 work?

别来无恙 提交于 2019-11-28 13:50:30
问题 I want to learn about how nl80211 and cfg80211 works in detail. Function flow, how nl80211 interact with network tools like wpa_supplicant , iw . Plz suggest me some useful links or books to refer. 回答1: To be able to control wireless drivers from userspace, some IPC communication processes between kernel and userspace are used. At first ioctl with vendor dependent APIs was used. In 1996, Jean Tourrilhes creates wireless extensions (WE or WEXT). The Wireless Extension (WE) is a generic API

How Android application decide if they want to use network proxy or not

梦想与她 提交于 2019-11-28 13:07:48
I have been running some testing with wifi proxy settings on a Motorola Xoom with Android 3.2. So first of all, it is a big step forward comparing to 2.x releases. now if you set proxy, most of the apps automatically get it (in 2.x, only builtin browser uses it). So I tried things like yahoo finance, bloomberg, etc. and they all going through proxy fine. What I don't get is some browsers like firefox, Opera, will not go through proxy. Any idea how they did that. Basically in my app, how can I decide if I want to use proxy or try to connect directly. Based on my testing, if we don't do anything

iPhone notification when wifi network changes

孤街醉人 提交于 2019-11-28 12:12:34
This is for a tweak , so the target is jailbroken devices, and not the app store. I have tried hooking different methods in the SBWiFiManager but they either are called when the wifi strength changes (so continuously) or after quite delay after the network has changed. Is there any other way to get a notification (or another method to hook) went the wifi network changes? I know you can get the current SSID with public APIs now, but I need to be told when it changes. Nate One way to do this is to listen for the com.apple.system.config.network_change event from the Core Foundation Darwin

How to check the network availability?

空扰寡人 提交于 2019-11-28 11:50:05
I have to connect my app with server using either wifi (if it is available), or gprs (if wifi is not available). Here is my code to check the connection availability public static final boolean isConnectionAvailable(Activity a) { ConnectivityManager cm = (ConnectivityManager)a.getSystemService(Context.CONNECTIVITY_SERVICE); State mobile = cm.getNetworkInfo(0).getState(); State wifi = cm.getNetworkInfo(1).getState(); if (wifi == NetworkInfo.State.CONNECTED || wifi == NetworkInfo.State.CONNECTING) { return true; } if (mobile == NetworkInfo.State.CONNECTED || mobile == NetworkInfo.State

how to get wifi hotspot's location?

落爺英雄遲暮 提交于 2019-11-28 11:45:54
I want to write an application that it can record the wifi hotspot's location we are accessing and display them in map. But the problem is - how do I get wifi hotspot's location? I think I can use the wifi signal to get the wifi hotspot's location, but it may not be very accuracy at first time. And if there is no other solution, I could record the location of GPS when access wifi hotspot at the first time. You'll not be able to find the hotspots location and you'll not be able to determine the direction and distance from your current position to the actual hotspot. The hotspots don't report

connect wifi with python or linux terminal [closed]

别来无恙 提交于 2019-11-28 11:45:42
I am trying to connect to wifi through python and linux terminal but in both cases it is not working with me. For python, I am using this library https://wifi.readthedocs.org/en/latest/scanning.html scanning and saving the scheme is working fine but whenever I type this line of code scheme.activate() and I get no output Any ideas what is wrong with the library and if you have used it before or not?? I tried also to connect to WiFi networks using the CLI. I Googled and found that I should do these three statements 1- iwlist wlan0 scan // to scan the wireess networks 2- iwconfig wlan0 essid

List All Wireless Networks Python for PC

半城伤御伤魂 提交于 2019-11-28 10:33:18
I am trying to find out how I can list all of the available wireless networks in Python. I am using Windows 8.1. Is there a built-in function I can call, or through a library? Please kindly show me the code which prints the list. You'll want the subprocess module and a windows command: import subprocess results = subprocess.check_output(["netsh", "wlan", "show", "network"]) A little extra to just get SSID's. results = results.decode("ascii") # needed in python 3 results = results.replace("\r","") ls = results.split("\n") ls = ls[4:] ssids = [] x = 0 while x < len(ls): if x % 5 == 0: ssids

java.net.ConnectException: failed to connect to /192.168.253.3 (port 2468): connect failed: ECONNREFUSED (Connection refused)

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 09:40:51
I want to transfer some data between PC and a mobile phone with WiFi. This is how I get the WiFi IP address: String ip = String.format( "%d.%d.%d.%d", (wifiInfo.getIpAddress() & 0xff), (wifiInfo.getIpAddress() >> 8 & 0xff), (wifiInfo.getIpAddress() >> 16 & 0xff), (wifiInfo.getIpAddress() >> 24 & 0xff)); new Recive().execute(ip); This is the code about sending a message to the PC: Socket socket = null; String message = "test\r\n"; protected Void doInBackground(String... urls) { try { Log.i("ip", urls[0]); socket = new Socket(urls[0], 2468); toserver = new DataOutputStream(socket.getOutputStream