O'Reilly logo

Building a Home Security System with BeagleBone by Bill Pretty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Bluetooth monitoring

Bluetooth monitoring can be done in much the same way as WiFi monitoring, with a few simple terminal commands.

To scan for Bluetooth devices within range, we use the scan command:

hcitool scan
Scanning ...
        00:60:57:10:29:50       Joe's 6310i

By running the previous command, we have found Joe's phone and now we can ask some basic questions:

root@beaglebone:~# hcitool  info  00:60:57:10:29:50
Requesting information ...
        BD Address:  00:60:57:10:29:50
        Device Name: Joe's 6310i
        LMP Version: 1.1 (0x1) LMP Subversion: 0x22c
        Manufacturer: Nokia Mobile Phones (1)
        Features: 0xbf 0x28 0x21 0x00 0x00 0x00 0x00 0x00
                <3-slot packets> <5-slot packets> <encryption> <slot offset>
                <timing accuracy> <role switch> <sniff mode> <SCO link>
 <HV3 packets> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required