GithubHelp home page GithubHelp logo

jurcag / nb_iot_app Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 3.5 MB

Project utilizes NB-IoT technology to transmit sensory data to the cloud, while simultaneously enabling local communication through BLE mesh.

CMake 0.32% C 89.46% HTML 1.29% JavaScript 8.93%
at-commands aws-iot-core bg96 ble-mesh esp-idf esp32-c3 mqtt nb-iot platformio

nb_iot_app's Introduction

NB-IoT Application

Table of contents:

Introduction:

Project showcases the application of NB-IoT technology for uploading data to the cloud. Hardware involves an NB-IoT concentrator and 6 sensor nodes equipped with different sensors, specifically designed to measure parameters of a photobioreactor.
Simple concept of the application including PBR is available here.

System Architecture:

System Architecture

Web Application

Description:

Simple web application for sensor data visualization and control of NB-IoT concentrator.

External libraries:

  • AWS SDK: to access AWS services
  • JSZip: to manipulate ZIP files
  • Highcharts: data visualization

Firmware and Hardware

Communication overview:

The application uses MQTT protocol to communicate with broker within the AWS IoT Core. MQTT topics and structure of JSON payloads sent in the messages is shown below.

  1. The concentrator provisions new nodes into the BLE mesh network. Nodes provide their descriptors.
  2. The user requests the node measurement period by publishing a message to the topic: BG96_demoThing/mmtPeriods/command.
  3. The concentrator responds with the current measurement period of that node to the topic: BG96_demoThing/mmtPeriods/response.
  4. The user can change the node measurement period (e.g. 10 minutes).
  5. The concentrator confirms the change by repeating the message.
  6. The concentrator stores the measurement period value into the NVS (Non-Volatile Storage) memory.
  7. When the counter reaches the specified period, the concentrator requests data from the sensor node over the BLE mesh.
  8. The sensor node sends measured data.
  9. The concentrator uploads the sensory data to AWS on the MQTT topic: BG96_demoThing/sensors/<nodeName>.
System Architecture

Development tools:

  • VSCode + PlatformIO
  • Framework: ESP-IDF (within platformio project, no need to install separately)

NB-IoT Concentrator

Firmware:

  • The concentrator, acting as a master device, collects measurement data from sensor nodes and uploads it to the AWS IoT Core.
  • The concentrator also establishes a local BLE mesh network and provisions other nodes into the network.
  • BLE mesh models implemented by concentrator:
    • Configuration Server
    • Configuration Client
    • Sensor Client

Hardware:

Custom PCB board with ESP32-C3 controller and Quectel BG96 module.

Component Link
MCU ESP32-C3
NB-IoT module Quectel BG96
NB-IoT module board LTE IoT 2 Click
NB-IoT concentrator NB-IoT_PCB_rev_1_1

System Architecture

Sensor boards

Firmware:

  • Each sensor node incorporates the same BLE mesh models.
  • BLE mesh models implemented by sensor nodes:
    • Configuration Server
    • Sensor Server
    • Sensor Setup Server
  • The drivers are specific to the corresponding sensor they are equipped with.

Hardware:

  • Sensors:
Physical quantities Sensor Connection
temperature,
humidity,
pressure
BME280
pH PH4502C
CO_2 concentration MHZ19B
light intensity GL5528
turbidity TS300B
electric current ACS712

nb_iot_app's People

Contributors

jurcag avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

ichenlife

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.