Skip to content

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

Notifications You must be signed in to change notification settings

JurCag/NB_IoT_app

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published