Bluetooth presence and proximity
Posted: Wed Jun 18, 2008 9:27 pm
Hi,
Bluetooth under linux ou can easy make presense so you can switch something by just having you gsm with you
here a simple script
#!/bin/bash
deviceid=00:18:8D:69:12:C7
devicename=User
count=0
while [ $count -lt 1 ] ; do
hcitool name $deviceid > /tmp/$devicename
if [ -s /tmp/$devicename ] ; then
echo $devicename in de buurt ;
date
else
echo $devicename niet in de buurt ;
date
fi
sleep 7
Here a link with also you can do proximity, so you can do with more bluetooth devices (receivers) get a correct location where people are in the house for example
http://snippets.dzone.com/user/jrobertson/tag/hcitool
Bluetooth under linux ou can easy make presense so you can switch something by just having you gsm with you
here a simple script
#!/bin/bash
deviceid=00:18:8D:69:12:C7
devicename=User
count=0
while [ $count -lt 1 ] ; do
hcitool name $deviceid > /tmp/$devicename
if [ -s /tmp/$devicename ] ; then
echo $devicename in de buurt ;
date
else
echo $devicename niet in de buurt ;
date
fi
sleep 7
Here a link with also you can do proximity, so you can do with more bluetooth devices (receivers) get a correct location where people are in the house for example
http://snippets.dzone.com/user/jrobertson/tag/hcitool