Skip to content

Sensor Scanning & Monitoring Technical Overview

Overview

The Sensor Scanning feature is designed to continuously discover and display nearby sensor devices using Bluetooth Low Energy (BLE) technology. It retrieves sensor data in real time, processes key parameters such as tank level and signal strength, and presents this information in an easy-to-read format.

Sensor Scanning

Key Functionalities

Continuous BLE Sensor Discovery

  • Automated Scanning Cycle:
    • The system initiates continuous BLE scanning to discover sensor devices advertising a specific service identifier.
    • Each scanning cycle clears previous sensor data, starts a fresh scan for a fixed duration (approximately 30 seconds), and then automatically restarts after a brief pause.
  • Real-Time Data Acquisition:
    • As sensors are discovered, the system captures service data transmitted over BLE.
    • The received data is processed to calculate key parameters such as tank level (based on sensor payload interpretation) and received signal strength indicator (RSSI).

Data Processing and Calculation

  • Tank Level Calculation:
    • Raw service data from sensors is decoded and processed to compute the current tank level.
    • A dedicated calculation routine interprets the sensor’s payload, applying offsets and mathematical operations to derive an accurate measurement.
  • Signal Strength Monitoring:
    • The RSSI value of each sensor is captured during scanning, providing insight into the connection quality and proximity of the sensor devices.