wifi

Service discovery using dns-sd

二次信任 提交于 2019-12-24 08:55:14
问题 I have a device which is configured in station mode. Device is connected to a smart phone over hotspot provided by smartphone. Device needs to search for a service published by an application on smartphone say _abc._tcp. I am using the command dns-sd -B _abc._tcp but no output. Please guide me what I may be missing. The application publishes the service. I verified it using Bonjour application on android. Also please clarify Is it possible to discover the services while in station mode. While

Connect to wifi using Python on Raspberry Pi

冷暖自知 提交于 2019-12-24 04:56:12
问题 I am using Python 2.7 and wifi library (https://wifi.readthedocs.org/en/latest/) on a Raspberry Pi. I have managed to install wifi library using: sudo pip install wifi on the terminal. The library seems to work but I can't figure out the way to connect to a wifi using a password. The documentation on the website is a bit difficult to understand, especially if you are a Python noob like me. I used this: >>> from wifi import Cell, Scheme >>> Cell.all('wlan0') and I got all the wifi networks

How to know the security type like OPEN, WPA, WPA2, WEP, when using Apple80211 api?

不羁岁月 提交于 2019-12-24 00:44:19
问题 The wifi scanning apps like eWifi, WiFiFoFum and so on in Cydia can know the security type. How the apps know the security type like OPEN, WPA, WPA2, WEP, when using Apple80211 api? The value of CAPABILITIES is 1057, 1025,34,33,2,1073,1041 and 3121, etc... It is too various. I don't know what it represents. I am using "WEP" and "WPA_IE" key to obtain Boolean for NSDictionary, but It is not enough. Some access points is OPEN, but it is definally WPA2. Anyone have an ideas? Please. 回答1: I have

Connect to strongest access point (access point with the strongest signal) with the same SSID

◇◆丶佛笑我妖孽 提交于 2019-12-24 00:37:54
问题 I am writing a program to always connect to the strongest access point. I mean the access point with the strongest signal. First I scan all the available WiFi networks and then I restrict them to see just the ones with the same SSID. So I can see all the APs of one network. When I connect to that network it doesn't connect to the strongest signal but I want it to switch to the strongest AP signal. By WifiManager.compareSignalLevel(bestSignal.level, connectedAP.level) <0 I understand the best

how to disable wifi assist without user interaction

十年热恋 提交于 2019-12-23 15:17:14
问题 I have couple of URLs that has to be called(programatically) through wifi not with mobile data. As WIFI ASSIST is on , whenever the wifi is weak ,packets get transferred through Mobile data. I would like to stop this from happening. As far as I have researched, there is no API to toggle wifi assist switch on and off programatically I can find if the user has mobile data and wifi on with the help of Reachability Class I believe and I can alert the user to keep wifi assist off but this is a

Android FATAL EXCEPTION MAIN: java.lang.RuntimeException: Unable to start activity ComponentInfo

人走茶凉 提交于 2019-12-23 13:33:00
问题 I am nubie at programming android and I know here on fourm is a lot of pages discrabing solution for my problem, but now I lose 2 days in still don't get the solution. Please help me! First of all my errors: 01-02 11:08:27.314: D/AndroidRuntime(1045): Shutting down VM 01-02 11:08:27.314: W/dalvikvm(1045): threadid=1: thread exiting with uncaught exception (group=0x409e61f8) 01-02 11:08:27.324: E/AndroidRuntime(1045): FATAL EXCEPTION: main 01-02 11:08:27.324: E/AndroidRuntime(1045): java.lang

Battery consumption while TCP is open for ADB via wifi can connect

。_饼干妹妹 提交于 2019-12-23 10:00:05
问题 My question is related to ADB over Wifi. I've found an article: http://stuffandtech.blogspot.de/2012/03/android-quick-tip-adb-over-wifi.html and that works for me, but I would like to know if keeping TCP open all the time actually will cause any significant battery drain. Of course I am talking about opened, but not used. After some time connection seems to die by timeout: device, that used to be connected remotely #adb devices List of devices attached 192.168.2.2:5555 device disappears from

Android WifiManager and Scanning Battery Performance

僤鯓⒐⒋嵵緔 提交于 2019-12-23 08:25:14
问题 To my understanding, one can request the WifiManager to start an AP scan, which is great and you get scan results back, but my question is regarding the continuous wifi scan that happens under the hood. Aside from unregistering the wifi listener for scan callback, is disabling the wifi the only way to stop the hardware from scanning? So if my device is connected to some Wifi BSSID/SSID it's ALSO constantly scanning? (Yes http://www.androidauthority.com/community/threads/how-to-get-wifi-to

How do i create a connection between my iPhone app with my mac app? [duplicate]

和自甴很熟 提交于 2019-12-23 06:11:09
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Ad Hoc Wifi Connection Between iPhone & Mac - Possible? How can I create a small Mac app that receives data over the WiFi network from an iOS app? Connect iOS app to Mac app over wifi? Similar to iTunes Remote? I want to create a connection between my iPhone app and my mac app over wifi. What ways are there of doing this? Are there any open source projects which work on this? 回答1: You could use Bonjour. There

Get nearby BSSID and signal strength in Java

无人久伴 提交于 2019-12-23 04:48:16
问题 I need to get nearby BSSID's with their signal strength using Java. Something like the output of netsh wlan show networks mode=BSSID . Is it possible? 回答1: Try implementing a method like this: (of course the command held in the cmd string is for window operating systems only). The "wlanResults.append("...");" is simply writing the results to a jTextArea in a gui (it's a part of a program i'm working on). public void getWLANbssidInfo(){ String cmd = "netsh wlan show network mode=bssid"; try {