Giter VIP home page Giter VIP logo

bbtooth's Introduction

bbtooth

Beaglebone Black Bluetooth RSSI scanner

Tested on Linux ubuntu-armhf 3.8.13-bone20 #1 SMP Wed May 29 06:14:59 UTC 2013 armv7l armv7l armv7l GNU/Linux

Installation

Instal bluez and bluetooth dependencies.

sudo apt-get install --no-install-recommends bluez bluez-utils minicom
sudo apt-get install --no-install-recommends bluetooth libbluetooth-dev
sudo apt-get install libncurses5-dev libncursesw5-dev

Build

make

Use it

Usage

ubuntu@ubuntu-armhf:~$ ./rssi -h

Usage: ./rssi [-s] [-r btaddr]

	-h          display this text
	-s          scan
	-r btaddr   get rssi on device at address btaddr

Scanning

ubuntu@ubuntu-armhf:~$ ./rssi -s
Open device
Scan
Start inquiry ...
00:1E:C2:8A:92:89  iMac de JTB
10:9A:DD:CD:EE:2C  MacBook Pro de Jean-Thierry BONHOMME
Program finished

Get rssi

ubuntu@ubuntu-armhf:~$ ./rssi -r 98:F0:AB:4F:C9:98
Open device
EVT_CMD_STATUS - status : 0 - ncmd : 1 - opcode : 1029
RSSI return value: -6
EVT_CMD_STATUS - status : 0 - ncmd : 1 - opcode : 1051
EVT_CMD_STATUS - status : 0 - ncmd : 1 - opcode : 1052
EVT_CMD_STATUS - status : 0 - ncmd : 1 - opcode : 1049
EVT_CMD_STATUS - status : 0 - ncmd : 1 - opcode : 1041
EVT_CMD_COMPLETE - ncmd : 1 - opcode : 1035
RSSI return value: -7
Event: 0x06
EVT_CMD_STATUS - status : 0 - ncmd : 1 - opcode : 1043
EVT_CMD_COMPLETE - ncmd : 1 - opcode : 5125
RSSI return value: -7
EVT_CMD_COMPLETE - ncmd : 1 - opcode : 5125
RSSI return value: -7
EVT_CMD_COMPLETE - ncmd : 1 - opcode : 5125
RSSI return value: -7
EVT_CMD_COMPLETE - ncmd : 1 - opcode : 5125
RSSI return value: -7
EVT_CMD_COMPLETE - ncmd : 1 - opcode : 5125
RSSI return value: -5
EVT_CMD_COMPLETE - ncmd : 1 - opcode : 5125
RSSI return value: -5
EVT_CMD_COMPLETE - ncmd : 1 - opcode : 5125
RSSI return value: -5
EVT_CMD_COMPLETE - ncmd : 1 - opcode : 5125
RSSI return value: -5

Todo

  1. Clean event logs
  2. Handle a dynamic list of bbaddr to get their ssid
  3. Send results to a centralized database
  4. Send email in case a known device appear or desappear (ie kids are at home after school)

Sources

A few links that helped me:

bbtooth's People

Contributors

jtbonhomme avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.