wifi

Creating an NDEF WiFi record using application/vnd.wfa.wsc in Android

試著忘記壹切 提交于 2019-12-21 07:08:13
问题 As of Android 5.0.0 you can long tap on a WiFi connection and write that connection to a tag ("Write to NFC tag"). You can find the source for that operation here: WriteWifiConfigToNfcDialog.java. The relevant line that takes a WiFi connection and creates an NDEF payload appears to be here: String wpsNfcConfigurationToken = mWifiManager.getWpsNfcConfigurationToken(mAccessPoint.networkId); mWifiManager is an instance of WifiManager , however getWpsNfcConfigurationToken is not part of the API.

Creating an NDEF WiFi record using application/vnd.wfa.wsc in Android

做~自己de王妃 提交于 2019-12-21 07:08:06
问题 As of Android 5.0.0 you can long tap on a WiFi connection and write that connection to a tag ("Write to NFC tag"). You can find the source for that operation here: WriteWifiConfigToNfcDialog.java. The relevant line that takes a WiFi connection and creates an NDEF payload appears to be here: String wpsNfcConfigurationToken = mWifiManager.getWpsNfcConfigurationToken(mAccessPoint.networkId); mWifiManager is an instance of WifiManager , however getWpsNfcConfigurationToken is not part of the API.

Android, detect local IP and subnet mask for WiFi, both while tethering and connected to access point

你离开我真会死。 提交于 2019-12-21 05:49:34
问题 I need to detect the local IP address and subnet mask on the WiFi network, on an Android device (in order to proper calculate the UDP broadcast address strictly for the local subnet). When the device is connected to an Access Point, the following is properly working: // Only works when NOT tethering WifiManager wifi = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); DhcpInfo dhcp = wifi.getDhcpInfo(); if (dhcp == null) throw new IOException("No DHCPInfo on WiFi side."); foo(dhcp

How to detect and disable Windows 7 virtual wifi adapter

孤街醉人 提交于 2019-12-21 05:17:33
问题 Windows 7 has a (neat?) new feature called a 'virtual wireless adapter'. Read about it here: http://www.istartedsomething.com/20090516/windows-7-native-virtual-wifi-technology-microsoft-research/ I have an application that directly controls the windows wifi interface card using the Native Wifi API ( http://msdn.microsoft.com/en-us/library/ms706556%28VS.85%29.aspx ). Please take as a given for this question that I need to directly control the wifi adapter using this documented api and can't

How to connect to a wifi in powershell knowing the SSID and password?

二次信任 提交于 2019-12-21 04:07:14
问题 How can I connect to a wifi in powershell just like through GUI but by using code? what commands do I use? I know the SSID and the password. EDIT: I have never connected to it before so it is a new wifi. 回答1: netsh wlan connect ssid=YOURSSID name=PROFILENAME this should be it... EDIT: Try this, just worked for me :) netsh wlan connect ssid="YOURSSID" key="YOURPW" 回答2: This isn't Powershell, but it works in every version of 10 so far (currently on 1903). I have the batch and XML on a flash

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

range of distances in which Wi-Fi direct works

醉酒当歌 提交于 2019-12-20 23:30:05
问题 I'm developing an android app which is based on WiFi Direct technology(P2P), so I really need to know how many meters is the range of android WiFi direct performance.based on Android API Guides: you can discover and connect to other devices when each device supports Wi-Fi P2P, then communicate over a speedy connection across distances much longer than a Bluetooth connection. but knowing that is not enough for me. because of my aim I need numbers! I mean a range of distances in which Wi-Fi P2P

Getting wifi broadcast address in Android wifi hotspot

余生颓废 提交于 2019-12-20 12:41:08
问题 I'm developing an app that uses wifi to broadcast UDP messages between all the mobiles that are in the same network that have my app. I managed to send/receive packets from many cellphones having an external AP, that's my router. But given the case that there's no AP, I want users to be able to use their phone's Wifi Hotspot feature so they can still use my aplication. So one of the cellphones would be the wifi hotspot, and all the others would connect to that. I require users to connect to a

Interpreting Frame Control bytes in 802.11 Wireshark trace

谁都会走 提交于 2019-12-20 12:21:52
问题 I have a Wi-Fi capture ( .pcap ) that I'm analysing and have run across what appear to me to be inconsistencies between the 802.11 spec and Wireshark's interpretation of the data. Specifically what I'm trying to pull apart is the 2-byte 802.11 Frame Control field. Taken from http://www4.ncsu.edu/~aliu3/802.bmp, the format of the Frame Control field's subfields are as follows: And below is a Wireshark screen cap of the packet that has me confused: So as per the Wireshark screenshot, the flags

Indoor Custom Maps Application

醉酒当歌 提交于 2019-12-20 10:12:07
问题 I am currently in the research phase of my project on Android. I am interested in developing indoor custom maps application. There are 2 problems I am currently facing in this: I can't use GPS as it won't work in the indoor settings like a building or a mall I can't use Google Maps API as I need to show my location on a indoor custom map(like a floor-plan of a building). I'm assuming here that I have the custom map of the building or mall. Now my goal is to find location of the Android phone