Git Product home page Git Product logo

exodemo's Introduction

Exosense Device Template Application Build

(C) 2013 Feuerlabs, Inc - All Rights Reserved

Documentaion Locations

  1. Building flashable Exosense Device Demo application image
    Please see the README.md file at https://github.com/Feuerlabs/exosense_specs .
    This repo contains the exosense_demo_tutorial.pdf file with complete instructions on setting up a build system, creating an Exosense Device image, deploying and testing it on target hardware.

  2. Building Exosense Device Demo application for desktop use
    This document.

  3. Exosense Server Usage
    Please see the README.md file at https://github.com/Feuerlabs/exosense_specs .
    This repo contains an Exosnese Server User Manual, a JSON-RPC Reference Manual, and sample shell scripts using curl(1) to interface the server.

Introduction

This repository contains the Yocto recipes to build the demo application running on top of the Exosense Device software stack.

Please note that the demo application source code is checked out from

git://github.com/Feuerlabs/exodemo.git

by the recipe found under recpies-exodemo/exodemo/erlang-exodemo_git.bb

Creating target-specific, flashable images

Please see:

https://github.com/Feuerlabs/exosense_specs.git

and its doc/exosense_demo_tutorial.pdf file for detailed instructions on how to build and flash an image with the demo application on target hardware.

Building demo application on a local machine

Install Erlang R15B1 or on the machine that is to run the demo. If precompiled packages are not available for the target environment, the source code is available at http://www.erlang.org.

Install rebar from https://github.com/basho/rebar. Once built, copy the target rebar binary to /usr/local/bin or another directory in the search path of the shell.

Compiling the code

The demo application can be built with a simple make command:

make

Before running the demo, create a setup directory with the relevant Erlang boot and configuraiton files:

make setup

Setup a Device Identity

Edit the local_start_demo.sh script and set the device identity in the exo_xxx environment variables as described in the exosense_demo_tutorial.pdf document's "Setting Device Identity" chapter.

Provision the Exosense Server

Follow the instructions in the demo tutorial's "Adding Device to Exosense Server through JSON-RPC" chapter.

Run the demo application

sh local_start_demo.sh

See the demo tutorial's chapter "Invoking Device RPC through Exosense Server JSON-RPC commands" for details.

Changing the code

A simple make and restart of the local_start_demo.sh will compile and restart the demo applica tion.

Please see "Installing recompiled Erlang beam files on Device" chapter of the demo tutorial for instructions on how to copy beam files to the target hardware.

exodemo's People

Contributors

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