wireless

Set or View “Advanced Wi-fi” Settings programatically

梦想与她 提交于 2019-12-19 02:54:28
问题 I need a way to open the "Advanced wifi" settings programatically to let the user change some of the settings, or, preferably, to change these advanced wireless settings programatically. I can only access the wi-fi settings so far via startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS)) but not the advanced settings. Is there a way to open the "Advanced wifi" settings? 回答1: There are two more settings that might work for you: From the API documentation: Settings.ACTION_WIRELESS_SETTINGS

Using nl80211.h to scan access points

♀尐吖头ヾ 提交于 2019-12-18 11:13:57
问题 I'm trying to use nl80211.h for scanning access points for a simple WLAN manager. I can't find any example code and only documentation I can find is kerneldoc. I have been trying to study from iw and wpa_supplicant source but it's rather complex. This is only documentation I can find: NL80211_CMD_GET_SCAN get scan results NL80211_CMD_TRIGGER_SCAN trigger a new scan with the given parameters NL80211_ATTR_TX_NO_CCK_RATE is used to decide whether to send the probe requests at CCK rate or not.

List All Wireless Networks Python for PC

早过忘川 提交于 2019-12-17 19:00:00
问题 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. 回答1: 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

Managing wireless network connection in C#

一曲冷凌霜 提交于 2019-12-17 15:42:38
问题 We've got a WinForms app written in C# that has a very custom GUI. The user is not allowed to run any other applications and the user cannot go into the OS (WinXP Pro) at all. We're planning on allowing the user to connect to available wireless networks. We're going to have to create a configuration screen that displays available networks (by SSID) and allows the user to connect. While connected we want to display signal strength. Are there any existing components that provide this capability

Google static maps via iPhone connected to AT&T wireless network not working [closed]

不羁的心 提交于 2019-12-13 14:56:26
问题 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 7 years ago . Recently I've been having issues retrieving static maps on my iPhone when connected to the AT&T wireless network. But, when I connect to a local WiFi is works fine. For several hours last Sunday is stopped working and then it started to work for the rest of the evening, then today I see that it has stopped

Calculating sensing range from sensing sensitivity of the device in Castalia?

人走茶凉 提交于 2019-12-13 08:47:49
问题 I am implementing a WSN algorithm in Castalia. I need to calculate sensing range of the sensing device. I know I will need to use the sensing sensitivity parameter but what will be the exact equation? 回答1: The answer will vary depending on the behaviour specified by the PhysicalProcess module used. Since you say in your comment that you may be using the CarsPhysicalProcess let's use that as an example. A sensor reading request initiated by the application is first sent to the SensorManager

including wpa_ctrl.h in a C code

瘦欲@ 提交于 2019-12-13 05:11:09
问题 I would like to add wpa_ctrl.h on a C code, and the source code has the following header files: #include "includes.h" #include "common.h" how do I suppose to have them? Do I need to install any package or do they suppose to be at the kernel header files or in the include path? If I need to include it manually, then each file depends on some many header files that needs to be added manually, is there a convenient way to add the files that are needed 回答1: These files are part of the hostapd

How can I calculate number of hops to reach destination ( NS2 )?

偶尔善良 提交于 2019-12-13 04:37:12
问题 In NS2 ..in TCL file, how can I calculate number of Hops in one path to reach the destination in wireless Network? I need your help. 回答1: You must do that in the protocol's codes... First of all i don't know which protocol you want to use, but fortunately the protocols in ns2 are very similar to each other... So i will c guide you to how to do it. I will use AODV protocol as a sample... In theory : We'll say when a RREQ packet has arrived, increment the packet hop count for current rout...

Send CTS frames in Python

混江龙づ霸主 提交于 2019-12-13 00:08:55
问题 I was wondering if it was possible to send CTS frames in python3 with modules such as scapy. If not, how would I do it with the sockets module? Thanks in advance. 回答1: I can't say for scapy, but CTS frames and 802.11 in general seems to be too deep for the python socket module. This is OSI Level 2, while socket have limited capabilities below OSI Level 3. Some possible starting points are: People already tried to work with 802.11 via sockets. You may try to modify this code for Ethernet

How to check/switch the airplane mode programmatically in Windows 8?

余生长醉 提交于 2019-12-12 13:19:17
问题 I have to check if the Airplane Mode is enabled in Windows 8 and maybe switch its state. I am currently working on a C# .NET 4.0 Windows Forms application but the answers in this question shouldn't be limited by that. 回答1: Unfortunately, there isn't a programmatic way for Metro apps to change the airplane mode in Windows 8. It is against the Metro guidelines for an application to go outside its sandbox and modify system settings like this without user permission (see the discussion at http:/