7

Company http://renewlondon.com/ have the terminal stations that collect all near by mac addresses

enter image description here

Can I via iOS SDK, and Android SDK,do the same thing?

tshepang
  • 12,111
  • 21
  • 91
  • 136
Ulle Tad
  • 345
  • 1
  • 4
  • 15

2 Answers2

10

You can access the wifi data using 'WifiManager' and after the scanning the scanresult contain all the data like

BSSID The address of the access point.

SSID The network name.

capabilities Describes the authentication, key management, and encryption schemes supported by the access point.

frequency The frequency in MHz of the channel over which the client is communicating with the access point.

level The detected signal level in dBm.

timestamp Time Synchronization Function (tsf) timestamp in microseconds when this result was last seen.

about the wifi devices. if you need more related to coding, I think I can help you...

Sample code

WifiManager wManager;
List<ScanResult> wifiList; 

wManager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
// Inside BroadcastReceiver()
wifiList = wManager.getScanResults();
for (int i=0; i<wifiList.size(); i++){
     ScanResult scanresult = wifiList.get(i);                        
     System.out.println("SSID: "+ssid);
     System.out.println("RSSI: "+scanresult.level);
     System.out.println("Frequency: "+scanresult.frequency);
     System.out.println("BSSID: "+scanresult.BSSID);
     System.out.println("Capability: "+scanresult.capabilities);
}

Also checkout the BroadcastReceiver().

Malte R
  • 468
  • 5
  • 16
Ciril
  • 420
  • 3
  • 9
  • Ciril how can I contact you? my skype is soulfreebek – Ulle Tad Oct 19 '13 at 08:39
  • @ UIugbek, you can contact me through the mail, cirilmannoor@gmail.com, Also I'm litle confused with your problem. If you explain your needs the solution may more accurate. – Ciril Oct 20 '13 at 10:22
  • 8
    Let me play off of this, I think Ulgbek wanted to be able to track WiFi _devices_ rather than access points. Is it possible with a router or Android device to capture MAC Addresses of nearby devices with their WiFi radio turned on? – Jared Dec 04 '13 at 06:11
  • 1
    With this solution, we can detect WiFi Access Points (like routers or devices, which are proxies to other networks) - not devices around like phones, tablets, etc. – Piotr Wittchen May 15 '17 at 10:10
3

One way i can think of doing this is making your device as wifi hotspot and use some hidden api to discover devices.You are basically trying to mimic an access point.

Otherwise each device would need some p2p framework on them-either wifi direct on or some other framework like alljoyn or samsung chord which helps in peer to peer discovery

rupesh jain
  • 3,410
  • 1
  • 14
  • 22