This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
projects:wifi_scanner [2020/01/06 23:44] neil |
projects:wifi_scanner [2020/08/03 16:11] (current) admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Wifi Scanner ====== | ====== Wifi Scanner ====== | ||
+ | **Goals:** Two goals for this project. I wanted to detect who was in the flat at any given time (see my [[Dynamic photo frame]] project) and I also wanted to see if I could detect spikes of activity near by (like a protest walking past the building etc). | ||
- | Basic steps. Identify your wifi device (in my case wlp3s0), the enter monitor mode, use tcpdump to capture mac addresses and a short php script to switch between available channels: | + | ==== Data ==== |
+ | * [[Projects/Wifi/Scan 1]]: First preliminary results from a full week wifi scan of my local area (11th Sep 2019 to 19th Sep 2019) | ||
+ | * [[Projects/Wifi/Scan 2]]: Full two-month scan from 1st Nov 2019 to 6th Jan 2020. Looking for general daily activity | ||
+ | * [[Projects/Wifi/Scan 3]] - COVID-19: Are people self isolating. Wifi activity for March 2020 | ||
+ | |||
+ | ==== Setting up the hardware ==== | ||
+ | I have a dedicated mini PC for this. It's sitting on the window ledge of my living room with a PCI-e 5G wifi card and multiple external antennas. | ||
+ | |||
+ | **Basic steps:** Identify your wifi device (in my case wlp3s0), the enter monitor mode, use tcpdump to capture mac addresses and a short php script to switch between available channels: | ||
<code bash> | <code bash> | ||
sudo ip link set wlp3s0 down | sudo ip link set wlp3s0 down | ||
Line 50: | Line 59: | ||
<code sql> | <code sql> | ||
load data infile 'trimmed_tcpdump.log' into table wifi_data; | load data infile 'trimmed_tcpdump.log' into table wifi_data; | ||
+ | </code> | ||
+ | |||
+ | Once I imported all the data I added an index to the mac address column: | ||
+ | <code sql> | ||
+ | alter table simple_data add index idx_mac(mac); | ||
</code> | </code> | ||