Giter VIP home page Giter VIP logo

ubirch-mbed-air-quality-sensor's Introduction

ubirch-mbed-air-quality-sensor

Ubirch Air-Quality Sensor

Measure the quality of the air using Seeed Groove-Air quality sensor v1.3 and send data to backend using UBRIDGE sensor

Also the Environmental sensor on the ubirch#1 board measures the temperature, pressure and humidity asynchronously.

The board first signs these sensor values and sends the signed values to the Ubirch-Backend. Public-key cryptography is implemented to exchange the messages between the board and the backend securely.

The message is sent to the backend in a predefined interval of time, these intervals can also be configured by sending a configuration message to the device from the server. If the sensor temperature is more than the threshold limit then the message is sent more often.

Getting Started

  • Clone the ubirch-mbed-air-quality-sensor

  • Run mbed deploy to find and add missing libraries

  • Run mbed update to update the repo to latest revision/ branch

  • add target mbed target UBRIDGE

  • add toolchain mbed toolchain GCC_ARM

  • The board gets the credentials like Cell APN, username, password, MQTT username, password, host URL and port number from config.h file, which is ignored by git.

    Copy/ rename the config.h.template file as config.h and add the credentials

Building

  • to compile the program using mbed build tool run mbed compile
  • to clean and rebuild the directory again run mbed compile -c

Flashing

You can find the flash script in bin directory

  • run ./bin/flash.sh to flash using NXP blhost tool
  • alternatively, if you have SEGGER tools installed, run ./bin/flash.sh -j

Debugging

  • To compile Debug Release mbed compile --profile mbed-os/tools/profiles/debug.json

  • use -c to recompile everything

  • Create a gdb.init file and add this target extended-remote localhost:2331 monitor halt

  • In terminal start the GDB Server JLinkGDBServer -if SWD -device MK82FN256xxx15

  • run cgdb -d arm-none-eabi-gdb -x /home/user/gdb.init ./BUILD/UBIRCH1/GCC_ARM/mbed-os-porting.elf

ubirch-mbed-air-quality-sensor's People

Contributors

nrjn avatar thinkberg avatar

Watchers

 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.