Message Boards Message Boards

WiFi Signal Monitor in WL

Posted 10 years ago

Inspired by this Stack Exchange answer from @rm-rf, and question of @dmurta , I created this simple WiFi signal monitor with Wolfram Language. It works just for MAC, but I believe that a Windows version would be not too hard to implement. It's a cool way to test your WiFi signal in different places of your house or office.

In this gif, I have moved to far and then to near from my WiFi base station. The Notebook is available below. Code suggestions/improvement are always welcome.

WiFi Signal Animation

Here is the code:

    data=ReadList["!/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I","String"];
    data=Rule@@StringSplit[StringReplace[StringTrim@#," "-> ""],":",2]&/@data;

       ,BaseStyle->{FontFamily-> "Helvetica"}
       ,PlotLegends->(Style[#,White,FontFamily->"Helvetica"]&/@{"Signal Strength (dBm)","Signal Noise (dBm)"})
       ,PlotLabel->Style["Measuring WiFi Signal Strength",14,White]

        If[runQ,data=Most@Prepend[data,{"agrCtlRSSI","agrCtlNoise"}/.getSignal[]]] (*RSSI - Received Signal Strength Indication*)
POSTED BY: Rodrigo Murta
5 Replies

Very cool.

POSTED BY: David Reiss
Posted 10 years ago

Importing a map of your place (probably as a picture), and devising a tour on it on a specified speed, with an interactive indicator of where you should be on a specific moment, and then collecting data tied to interpolated locations may provide you enough data to generate an interpolated map of base station signal strenght(s).

I did this with a mishmash of Unix tools on a big university faculty roughly a decade ago; it was somewhat tedious to put the data together (should be much easier with Mathematica!), but with multiple base station signal strengths, it was possible to also identify locations of attentuating materials, such as load-bearing walls, concrete columns and elevator shafts.

POSTED BY: Jari Kirma

Very nice post!

Thanks, M.

POSTED BY: Marco Thiel

Very nice work, thanks for sharing!

POSTED BY: Sander Huisman

On Windows you can use

data = ReadList["!netsh wlan show networks mode=bssid", "String"];

The tidying up will be slightly different however.

POSTED BY: Danny Finn
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract