wireless

How to get signal strength of connected WiFi android?

白昼怎懂夜的黑 提交于 2019-11-27 15:22:46
问题 I want to get signal strength of this wifi which is connected with my device. This is probably easy. But I am beginner. And It's homework. How to get it? I tried this code. But it doesn't work. registerReceiver(new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { final WifiManager wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE); int state = wifi.getWifiState(); if(state == WifiManager.WIFI_STATE_ENABLED) { List<ScanResult> results = wifi

Reading from a promiscuous network device

放肆的年华 提交于 2019-11-27 14:04:33
问题 I want to write a real-time analysis tool for wireless traffic. Does anyone know how to read from a promiscuous (or sniffing) device in C? I know that you need to have root access to do it. I was wondering if anyone knows what functions are necessary to do this. Normal sockets don't seem to make sense here. 回答1: On Linux you use a PF_PACKET socket to read data from a raw device, such as an ethernet interface running in promiscuous mode: s = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)) This

Google Android - how to figure out if 3g and 2g is turned on

泄露秘密 提交于 2019-11-27 13:13:58
问题 I'm developing a simple application for the Google Android to turn on and off the wifi or 3g or 2g. I see http://developer.android.com/reference/android/net/wifi/WifiManager.html#isWifiEnabled() that you can see if the wifi is enabled or disabled and also us http://developer.android.com/reference/android/net/wifi/WifiManager.html#setWifiEnabled(boolean) to turn on and off the wifi. I'm wondering if it's possible to do the same for 3G and for 2G/GPRS? I know it's possible because you can turn

How to allow remote access to my WAMP server for Mobile(Android) [closed]

这一生的挚爱 提交于 2019-11-27 12:50:45
I have created a website for mobile using PHP and jQuery. It works on my PC but now I want to test it with my Android device. How can I do that? How can I access a WAMP server's IP from my Android device? My mobile and PC are connected within the same router. Should I directly connect to my PC or can I do that through the router? I have searched about it and found that I have to change permissions in phpmyadmin.conf but still it does not work. Any ideas why doesn't it work? My httpd.config has something like this. <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny

Is there a standard that defines what is a valid SSID and password?

徘徊边缘 提交于 2019-11-27 11:29:26
问题 We are developing a wireless n/w configuration UI and need to check if a SSID is a valid one? Are there any restrictions on the character set? length ? anything more.. 回答1: Section 7.3.2.1 of the 802.11-2007 specification (http://standards.ieee.org/getieee802/download/802.11-2007.pdf) defines SSIDs. A valid SSID is 0-32 octets with arbitrary contents. A 0-length SSID indicates the wildcard SSID (in probe request frames for instance). There's no character set associated with the SSID - a 32

How to update ios6 enterprise apps over the air

馋奶兔 提交于 2019-11-27 10:10:53
问题 Hello we have developed our first enterprise app recently. We are using the "In-House" option to create the distribution certificate. Client is not using the app yet. But he will be using it soon. Meanwhile i got a question. He will use the app and in future if there are any updates to the app from our side, we want the client to have it updated on his side as well . Like right now I have apps installed on my iPhone. I get update from AppStore saying the XYZ app has been updated. So i install

iOS 4: wireless app distribution for in-house applications [closed]

烈酒焚心 提交于 2019-11-27 10:06:45
According to the apple website iOS 4 should support wireless app distribution. I have been unable to find any documentation at all on how to host your applications for users to download them over wifi/3g. We are currently enrolled in the standard iPhone dev program, as we don't have over 500 employees. Is this limited feature limited to the enterprise program only? If you don't have an entreprise account. You won't have the unlimited or very large pool of devices you can add to your account distribution profiles. BUT, even with normal accounts you can definitely create an Ad Hoc distribution

Wifi Triangulation

浪子不回头ぞ 提交于 2019-11-27 09:29:18
问题 What would be the best way to triangulate a wireless network passively. Are there tools available? Algorithms? Libraries? My goal would be to create a relative map of various objects that sends or receive signals using signal strength (DB's), signal/noise ratio, signal phase, etc. from a few location points. With enough sampling, i'm guessing it would be possible to create a good 2d/3d map. I'm searching for stuff in any language / platform. Some keywords: wi-fi site survey, visualization,

Get BSSID (MAC address) of wireless access point from C#

僤鯓⒐⒋嵵緔 提交于 2019-11-27 05:15:42
问题 How can I get the BSSID / MAC (Media Access Control) address of the wireless access point my system is connected to using C#? Note that I'm interested in the BSSID of the WAP. This is different from the MAC address of the networking portion of the WAP. 回答1: The following needs to be executed programmatically: netsh wlan show networks mode=Bssid | findstr "BSSID" The above shows the access point's wireless MAC addresses which is different from: arp -a | findstr 192.168.1.254 This is because

Want to know the ESSID of wireless network via C++ in UBUNTU

本秂侑毒 提交于 2019-11-27 04:46:37
问题 This question was migrated from Unix & Linux Stack Exchange because it can be answered on Stack Overflow. Migrated 8 years ago . I have written the following program to get the ESSID of the wireless network to which my Desktop is currently connected, but it is giving me errors. Can anyone help me correct the bugs? Code: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/ioctl.h> #include <sys/stat.h> #include <sys/socket.h> #include <sys/types.h> #include <fcntl.h>