Giter Club home page Giter Club logo

networked-ibeacons's Introduction

Networked-iBeacons

iBeacons whose values can be updated remotely by a controller

The beacon.py code has been tested simultaneously on a Pi and Edison being updated by controller.py, but it should work on any system that implements BlueZ.

Video Demonstration

Setup

To install BlueZ on the Pi and most Linux distros, follow this guide at Adafruit. You'll also need a generic BLE USB dongle.

The Intel Edison comes with BlueZ installed and an onboard BLE antena, so the only setup is turning BLE on. However, you will need to remove 'sudo' from the commands in beacon.py.

Usage

On the beacon side, run beacon.py on a network-enabled machine. You'll want to know its IP. It starts with default beacon values. When the beacon recieves new values from the controller, it saves those values to a storage csv which will be loaded next time instead of the defaults. You can also change 'listenIP' so that it will only accept updates from a single IP address for security reasons. By default, it will accept connections from any IP.

On the controller side, it sends updates to beacons based on the contents of a csv file. Each row contains the following fields (in order, comma-seperated, no header):

  • IP address
  • Company ID (hex)
  • Area ID (int or hex)
  • Unit ID (int or hex)
  • Power (int or hex)

An example csv file is included. After going through the list, it displays an update report including the IP address of any beacons that failed in some way.

networked-ibeacons's People

Contributors

devdupont avatar

Watchers

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