Giter Club home page Giter Club logo

dopescope2's Introduction

Setting up your environment

Flashing

  1. Power on your DopeScope2 and connect it to your computer with the provided USB cable.

  2. Double-click on the dopescope2.ino to bring up the Arduino IDE

  3. Select Tools --> Port and select your DopeScope from the list of connected devices

  4. Use the built-in arduino "Upload" command to compile and upload the software (the Arrow at the top left-hand side of the IDE) to the DopeScope.
    -- Wait for the device to reboot.

  5. Upload the BLE Manufacturer DB by selecting Tools --> ESP32 Sketch Data Upload.

  6. Enjoy

BLE Manufacturer Database

BLE devices use a vendor code to specify the manufacturer of a given device. This is very similar to a MAC address OUI. The database is maintained by the Bluetooth Special Interest Group (SIG) and is available here: (https://www.bluetooth.com/specifications/assigned-numbers/company-identifiers/). This list is too large to put in program memory and would take too long for a microcontroller to do a normal lookup, so a utility is included to generate a ready-to-go solution. When complete, a flat DB file is created where the name of each company is truncated to a fixed length and stored in the file at the offset corresponding to it's ID.

To create or update the database:

  • Go to the linked page:
  • Select the option to view all records (Be sure to leave the default sort option of highest ID to lowest)
  • Select and copy the records
  • Paste them into a file, eg. sourcefile.txt

Run the utiltiy, manpacker.py, with the following arguments:

manpacker.py SOURCEFILE MAXLENGTH

SOURCEFILE is the source tx file we created earlier: sourcefile.txt

MAXLENGTH is the size of each name. Any names shorter that this are padded with spaces and any names longer are truncated to this length. Keep in mind that the base display can't show more than ~23 chars, so there isn't much value in exceeding that.

When done, be sure to move the resulting manufacturers.db to the /data folder in the source tree so it can be uploaded to the DopeScope using the "ESP32 Sketch Data Upload" function

dopescope2's People

Contributors

warcollar avatar

Stargazers

John Moore avatar  avatar Fabbri Paolo avatar Win avatar John Feehley avatar  avatar  avatar  avatar Rick avatar MSqueaks avatar  avatar Benjamin M Singleton avatar

Watchers

 avatar Rick avatar  avatar

Forkers

sdshlanta

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.