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> <CVSD>

We can also "ping" Joe's phone (or any other Bluetooth device where we know the bd_address). This can come in handy if you want to know if your spouse or kids have arrived at home safely. Or, at least their phone has!

We can do this using the l2ping command:

root@beaglebone:~# l2ping 00:60:57:10:29:50
Ping: 00:60:57:10:29:50 from 00:18:F8:89:A3:F6 (data size 44) ...
0 bytes from 00:60:57:10:29:50 id 0 time 64.50ms
0 bytes from 00:60:57:10:29:50 id 1 time 13.40ms
0 bytes from 00:60:57:10:29:50 id 2 time 15.84ms
0 bytes from 00:60:57:10:29:50 id 3 time 13.40ms
0 bytes from 00:60:57:10:29:50 id 4 time 15.72ms
0 bytes from 00:60:57:10:29:50 id 5 time 14.48ms
0 bytes from 00:60:57:10:29:50 id 6 time 13.52ms
0 bytes from 00:60:57:10:29:50 id 7 time 13.95ms
0 bytes from 00:60:57:10:29:50 id 8 time 16.66ms
0 bytes from 00:60:57:10:29:50 id 9 time 13.85ms
10 sent, 10 received, 0% loss

In order to find out the bd_address of your family member's phone, you can simply scan for it sometime when you know that they are at home and in range.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.135.200.14