1 of 9

Cortex Milestone #2

Jason Smith & Noah Hendershott

2 of 9

Task Matrix

Task

Noah

Jason

1. Implement, test & demo GUI functionality

Implement: database schema design

Test: schema efficiency

Demo: an effective database that will store necessary data

Implement: API calls through Flask to send/receive data from database

Test: manipulation of database through API calls

Demo: functionality of database reading / manipulation using API

2. Implement, test & demo hub/beacon communication

Implement: beacon-database communication

Test: manipulation of database based on data sent from beacon

Demo: functionality between data received by beacon device and data sent to database

Implement: hub-device communication

Test: manipulation of device states based on database data

Demo: functionality between input from user through GUI and the smart device based on data from the database

3 of 9

Task 1

Database

  • For smart device storage, deciding to go with json
    • Lightweight
    • Still dynamic
  • Only need a few Beacon Variables
    • RSSI
    • Device ID

GUI/Backend

  • API calls will be used for:
    • Turning on/off lights/speakers, unlocking locks, etc
  • Either Javascript or Flask doing the backend processing

4 of 9

Task 2

Beacon-Hub Communication

  • Provides accurate rssi values continuously
  • Communicates using BLE protocols saving power and being more capable at servicing multiple nodes or devices “simultaneously”
    • Need to reconfigure sending of information to the HUB as server and client protocols are different

Hub-Device Communication

  • Initial focus will be on Phillips Hue
    • Found python library for Philips Hue manipulation
    • Popular brand
    • Have product already on hand
  • Switching to json should make getting data from website, processing in python, then sending commands to smart-devices rather straightforward and efficient

5 of 9

Difficulties

Beacon Device

  • Originally configured as a client
  • Register level storage diagrams are different between manufacturers

Hub Device

  • Communicating with smart-lights
  • Database -> json
  • API calls

6 of 9

Milestone 3 Task Matrix

Task

Noah

Jason

1. Implement, test & demo

Hub Device Integration

Implement: node-hub communication

Test: database/json manipulation

Demo: display data from beacon on hub device

Implement: Establish connection with smart devices

Test: Toggling a light

Demo: Display button that turns on and off a light

2. Implement, test & demo

Node Device Integration

Implement: Multi node communication

Test: Multiple nodes connected to the hub attempt to send data about the same device.

Demo: Functionality of hub communications and responses

Implement: establish receiving function to add nodes to database

Test: changes on beacon-related database are able to be used

Demo: show changes to database (beacon-related) on webapp

7 of 9

Demo - Flask Functionality / Grabbing Button States

8 of 9

Demo - Bluetooth Connection

9 of 9

Questions?