Git Product home page Git Product logo

esp32-blecollector's Introduction

ESP32-BLECollector

Like a BLE Scanner but with persistence.

ESP32 BLECollector running on Wrover-Kit

All BLE data found by the BLE Scanner is collected into a sqlite3 format on the SD Card.

Public Mac addresses are compared against OUI list, while Vendor names are compared against BLE Device list.

Two databases are provided in a db format (mac-oui-light.db and ble-oui.db).

The blemacs.db file is created on first run. When a BLE device is found, it is populated with the vendor name (if any) and inserted in the blemasc.db file.

/!\ Use the "No OTA (Large Apps)" partition scheme to compile this sketch. As a result a SD Card is required and you can't use SPIFFS.

Known issues / Roadmap

Because sqlite3 and BLE library already use a fair amount of RAM, there isn't much room left for additional tools such as Web Server, db parser, NTP sync or data logging over network.

Also the code is far from optimized (pull requests accepted!).

More memory errors occur when adding any of the following features:

  • WiFi
  • ArduinoJSON
  • FOTA Update from SD
  • GPS+NMEA
  • OLED / TFT

Some ideas I'll try to implement in the upcoming changes:

  • implement GATT services
  • add timestamps + GPS Coords to entries for better pruning as suggested by /u/playaspect
  • move the ble-oui query outside the devicecallback (this is causing watchdog messages) and populate between scans
  • reduce the memory problems to avoid restarting the ESP too often (currently restarts when heap is under 120k)
  • have the data easily exported without removing the sd card (wifi, ble, serial)

Credits/requirements:

esp32-blecollector's People

Contributors

tobozo 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.