2067015b / HCI4

0 stars 0 forks source link

Who's home sensor #7

Open martin-podlubny opened 7 years ago

martin-podlubny commented 7 years ago

Sensor for detecting how many people are home. This can based on either home residents' phones being detected on the home Wi-Fi network, or possibly detecting phones being around using Bluetooth.

martin-podlubny commented 7 years ago

From http://raspberrypi.stackexchange.com/questions/15454/detect-if-iphone-android-nearby which is about people to do exactly what we're doing in this issues:

Wifi scan might work for some devices, but iOS ones do not connect when screen is off! My iphone 6 could be detected with simple arp command (gives table of ip and mac numbers of connected devices on the same subnet) but this would happen only when phone screen is lighted up. Once the phone screen sleeps - it is out of bounds on wifi! I bet this is in the interest of battery life.

Furthermore, this stackexchange topic also references a few bluetooth solutions that do exactly what we need!

martin-podlubny commented 7 years ago

Another what looks like a simple guide on how to do this.. This one could/should be a copy paste... http://www.instructables.com/id/Raspberry-Pi-Bluetooth-InOut-Board-or-Whos-Hom/?ALLSTEPS

martin-podlubny commented 7 years ago

And this one is ridiculously good tutorial (with code) on how to do detection using wifi: https://github.com/initialstate/pi-sensor-free-presence-detector/wiki

Bluetooth looks simpler, and should be good enough. But combo of both would be ideal :)