bluetooth lowjack

using passive bluetooth as a proximity detector

Similar projects worth following
You want proximity detector but you also want to know who is in the area. Lets use bluetooth. Bluetooth is everywhere and with bluetooth LE its just showing up in more places than ever.

Lets use it. the setup is just a raspberrypi or any linux box with a bluetooth usb adapter plugged in

<linux terminal>

$ sudo apt-get update

$ sudo apt-get install bluetooth bluez-utils blueman

$ easy_install PyBluez <this is the python library you are going to need>

$hcitool scan

<end linux terminal>

the hcitool scan will return a mac address then you can use or pass the mac address in python and find out if the device is in the area.

<python stuff starts here>

import bluetooth

result = bluetooth.lookup_name('11:22:33:44:55:66', timeout=5)

if (result != None):

output = "locator=mike location=1"


output = "locator=mike location=0"

print output

<end python stuff >

this will print out the locator and 0 or 1 depending on whether or not the device was found.

!!! the end user doesn't need to have discovery enable after you found out what the mac address is.

  • 1 × bluetooth usb adapter
  • 1 × raspbian worked on raspbian should work for any other linux distro
  • 1 × raspberryPi

View project log

Enjoy this project?



Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates