Giter VIP home page Giter VIP logo

ble-continuous-rssi-scan's Introduction

BLE-continuous-RSSI-scan

Standalone feature for a continious RSSI capture of a specified MAC address device. Saves the RSSI Data into a Log File.

the code relies on the module "@abandonware/noble" https://github.com/abandonware/noble
tested on Raspberry Pi3A+ and a Raspberry Zero 2. It's based on one of abandonware's examples. Code based on https://github.com/efeuentertainment/BLE-continuous-RSSI-scan

Installation on a Raspberry Pi or Raspberry Zero:

  1. clone Repo
git clone https://github.com/corgan2222/BLE-continuous-RSSI-scan 
cd BLE-continuous-RSSI-scan
  1. if not installed install NodeJS 12
./installNodeJS.sh
  1. Install Bluetooth dependencies
sudo ./install_raspi.sh
  1. Install @abandonware/noble and its dependencies
npm install @abandonware/noble
  1. make sure bluetooth is enabled in /boot/config.txt . the line should look like this:
#dtoverlay=pi3-disable-bt

(bluetooth uses UART for communication)

  1. enable the required service
sudo systemctl enable hciuart.service
  1. reboot (starting the hciuart service manually often fails)

if those requirements are not met, any usage of noble will throw an error

Usage:

Scan the Network for the BLE Device you look for

node scanNetwork.js   

If you have trouble to find your Device, try the findBLE.sh. If you found the Device you are looking for, copy the MAC and run

node scanSingleDevice.js BLE-MAC filename.log  

to continuously output your device's RSSI

ble-continuous-rssi-scan's People

Contributors

corgan2222 avatar

Watchers

 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.