Elevator IoT Remote Monitoring System
WABON Technology Elevator IoT Remote Monitoring System Solution
(Applicable to elevator operation and maintenance in multi‑story buildings such as office towers, residential complexes, shopping malls, hospitals, and more)
Core Objective : Enables real-time acquisition of critical elevator operating parameters, cloud-based storage, visualized monitoring, intelligent early warning, and remote operations and maintenance, thereby enhancing safety, reducing maintenance costs, and extending equipment lifespan.
1️⃣ Project Background and Business Requirements
| Business Requirements | Explanation |
|---|---|
| Security Monitoring | It detects safety events in real time—such as door status, overload, abnormal vibration, emergency stop, and fire—and triggers an immediate alarm. |
| Operating Status | Collects operating speed, landing station position, operating time, energy consumption, fault codes, and more. |
| Predictive Maintenance | Conduct trend analysis, life‑cycle prediction, and proactive dispatching based on historical data. |
| Remote Operations and Maintenance | Supports OTA firmware upgrades, parameter tuning, and fault diagnostics. |
| Multi-platform access | Supports integration with web, mobile (iOS/Android), and third-party systems (SCADA, BIM). |
| Security and Compliance | Data encryption, identity authentication, and audit logging comply with the requirements of the “Elevator Safety Technical Specifications” and the “Information Security Classified Protection” standards. |
2️⃣ System Overall Architecture
┌─────────────────────┐
│ 1. Elevator On-Site Subsystem │
│ ─────────────────── │
│ Sensors/PLC ←→ Edge MCU │
│ (Vibration, Temperature, Doors, Load) │
│ (PLC/Modbus, CAN) │
│ Edge MCU (ESP‑32/STM32)│
│ Local protocol conversion, caching, │
│ MQTT/CoAP client │
└───────│───────────────┘
│
▼ (Secure Tunnel: TLS/DTLS + Certificates)
┌─────────────────────┐
│ 2. Network Access Layer │
│ 4G/5G, NB‑IoT, LoRa │
│ Edge Gateway (Linux) │
│ - MQTT Broker (EMQX)│
│ - Local Caching/Forwarding │
│ - OTA Management Service │
└───────│───────────────┘
▼
┌─────────────────────┐
│ 3. Cloud Platform Layer │
│ - IoT Core (AWS/Azure/Alibaba)│
│ - Message Queue (Kafka) │
│ - Time-Series Database (TimescaleDB/InfluxDB)│
│ - Big Data Analytics (Spark/Flink)│
│ - AI Prediction Models (TensorFlow)│
│ - Business Microservices (Spring Boot)│
│ - Unified Identity Authentication (OAuth2/OIDC)│
└───────│───────────────┘
▼
┌─────────────────────┐
│ 4. Application Layer │
│ - Web Dashboard (React+AntD)│
│ - Mobile App (Flutter)│
│ - Alerts/SMS/Email (Aliyun SMS)│
│ - Work Order System (Flowable)│
│ - API Interfaces (REST+GraphQL)│
└─────────────────────┘
Key points
- Edge computing : At the edge, the MCU/gateway performs protocol adaptation, data cleansing, and local anomaly alerts, thereby reducing network latency.
- Unified Messaging Middleware : Primarily based on MQTT, supporting QoS 1/2; critical security events are handled using QoS 2 + retained 。
- Time-series database : Stores high-frequency sensor data (10–100 Hz), supporting historical playback and trend analysis.
- Safety : TLS mutual authentication, device certificates, the principle of least privilege, and audit logs.
3️⃣ Hardware Selection
| Functional module | Recommended Hardware | Key parameters |
|---|---|---|
| Sensor | - Vibration sensor (MEMS, ±5 g, 100 Hz) - Temperature and humidity sensor (SHT31) - Magnetic door switch (Hall effect) - Load cell (weighing sensor + HX711) - Current sensor (ACS712) |
Low power consumption, industrial-grade protection (IP65) |
| Field Control Unit | ESP‑32 (Wi‑Fi+BLE) or STM32H7 (CAN, Ethernet) |
Supports FreeRTOS, hardware encryption, and OTA. |
| PLC/Fieldbus | Siemens S7‑1200, Mitsubishi FX5U (Modbus RTU / CANopen) | Compatible with the existing elevator control system. |
| Edge Gateway | Raspberry Pi 4 (Linux) or Industrial Gateway (Advantech, HPE Edgeline) |
Supports 4G/5G, NB‑IoT, and LoRaWAN modules. |
| Communication module | - 4G LTE Cat‑4 (SIM7600) - NB‑IoT (Quectel BC95) - LoRa (RAK811) |
Select based on on-site network coverage. |
| Power supply | PoE (802.3af/at) or DC 12 V/24 V power supply | Equipped with UPS backup (30 min) |
Selection Recommendations
- Newly installed elevator : Wiring is performed directly within the elevator control cabinet, using CAN Interact with the PLC and, in conjunction with the ESP‑32, collect sensor data.
- Renovate old elevators : Adopt Non-invasive Sensors (installed in the hoistway and the car) operate by… Wireless (LoRa/NB‑IoT) backhaul, avoiding modifications to the existing control system.
4️⃣ Software Layers and Technology Stack
| Hierarchy | Key technology | Explanation |
|---|---|---|
| Firmware | FreeRTOS + ESP‑IDF / STM32CubeMX MQTT client (paho.mqtt.embedded-c) TLS (mbedTLS) |
Collection, preprocessing, local anomaly alerts, OTA |
| Edge Gateway | Linux (Ubuntu Core) Docker + Docker-Compose EMQX (MQTT Broker) Node-RED (Quick Start) OpenVPN / WireGuard (Secure Tunnels) |
Local caching, protocol conversion, batch OTA, gateway monitoring |
| Cloud platform | - IoT Core : AWS IoT Core / Azure IoT Hub / Alibaba Cloud IoT Platform - Message queue :Kafka / Pulsar - Time-series database : TimescaleDB (PostgreSQL) / InfluxDB 2.x - Big Data : Spark Structured Streaming / Flink - AI : TensorFlow Serving / PyTorch - Microservices : Spring Boot (Java) / FastAPI (Python) - Identity :Keycloak (OAuth2/OIDC) |
High availability, auto scaling, and unified management |
| Frontend | React + Ant Design + Recharts Grafana (time-series data visualization) Flutter (cross-platform mobile) |
Real-time dashboards, historical trend charts, alarm lists, and work order management |
| Operations and maintenance | Prometheus + Alertmanager (Monitoring Gateway/Cloud Service) ELK (Logging) GitLab CI/CD (Firmware OTA) |
Automation, observability, and rollback mechanisms |
5️⃣ Communication Protocols and Security Mechanisms
| Scene | Recommended Protocol | Key Features |
|---|---|---|
| On-site MCU ↔ Edge Gateway | MQTT (QoS 1/2) or CoAP (Confirmable) |
Lightweight, supports offline caching, and features hierarchical theming. |
| Gateway ↔ Cloud Platform | MQTT over TLS (Bilateral Certificate) or HTTPS/REST (JSON) |
End-to-end encryption, identity verification |
| OTA | MQTT + Firmware Update Service (Block signing) or HTTP(S) + SHA256 checksum |
Prevents firmware tampering and supports rollback. |
| Device Identity | X.509 Certificate + PKI (Unique to Each Device) | Revocation upon expiration (CRL/OCSP) |
| Data encryption | TLS 1.3 (recommended) AES‑256‑GCM (local cache) |
Prevent man-in-the-middle attacks and eavesdropping. |
| Access Control | RBAC (Keycloak) Topic-Based ACL (EMQX) |
Least privilege, audit logs |
Security Best Practices
- Hardware Root of Trust : Embed a unique private key (Secure Element) in the MCU, keeping it confidential.
- Regular certificate rotation (90 days) and updated using automated scripts.
- Local Hard Block on Anomaly Threshold : If vibration exceeds the safety threshold, an alarm is immediately triggered locally and the network is disconnected to prevent malicious commands.
- Audit Log All commands, firmware updates, and login activities are logged in an immutable log (cloud-based S3 + CloudTrail).
6️⃣ Data Models and Storage
6.1 Unified Data Structure (JSON)
{
"elevator_id": "ELV-2023-001",
"timestamp": "2025-12-08T14:23:45.123Z",
"metrics": {
"door_status": "closed", // open/closed/abnormal
"load_kg": 620,
"speed_mps": 1.2,
"floor": 12,
"vibration_g": 0.32,
"temperature_c": 38.5,
"current_a": 12.4,
"fault_code": null
},
"alarms": [
{"type":"overload","level":"critical","value":620}
],
"location": {"building":"B1","zone":"East"},
"firmware_version":"v1.3.7"
}
6.2 Time-Series Database Tables (TimescaleDB Example)
CREATE TABLE elevator_data (
time TIMESTAMPTZ NOT NULL,
elevator_id TEXT NOT NULL,
floor SMALLINT,
speed_mps REAL,
load_kg REAL,
vibration_g REAL,
temperature REAL,
current_a REAL,
door_status TEXT,
fault_code TEXT,
PRIMARY KEY (time, elevator_id)
);
SELECT create_hypertable('elevator_data','time');
- Compression Strategy : Retain the raw data for the most recent 90 days; after 30 days, compress it into 1‑minute buckets; after 1 year, compress it into 1‑hour buckets.
- Index :
elevator_id + timeTo query the primary key,fault_codeCreate a GIN index for fast alert retrieval.
6.3 Business Database (PostgreSQL)
| Table name | Explanation |
|---|---|
elevator |
Basic Information (Model, Manufacturer, Installation Date, Maintenance Contract) |
maintenance_plan |
Preventive Maintenance Plan (Frequency and Tasks) |
work_order |
Maintenance Work Order (Status, Assigning Technician, Handling Records) |
alarm_rule |
Alert Threshold Configuration (dynamically modifiable) |
device_cert |
Device certificate metadata (validity period, revocation status) |
7️⃣ Real-time monitoring, alerting, and predictive maintenance
7.1 Real-Time Dashboard (Grafana + React)
- Key Metrics Card : Door status, current floor, load, vibration, temperature, power consumption, fault codes.
- Trend curve : Vibration, temperature, and energy consumption over the past 24 hours.
- Alert List : Real-time push (WebSocket) + color coding (Critical/Warning/Info).
- Map/Floor Plan : Visualization of elevator location and operating status.
7.2 Alert Rule Engine (Based on a Rule Engine or Flink)
| Rules | Trigger Condition | Action |
|---|---|---|
| Door anomaly | door_status == "abnormal" Continues > 5 s |
Send SMS/email + Generate a ticket |
| Overload | load_kg > rated_capacity * 1.1 |
Shut down immediately and trigger an alarm. |
| Vibration anomaly | vibration_g > 0.5 (or based on the historical mean plus 3σ) |
Send alerts and log exceptions. |
| Temperature too high | temperature_c > 60 |
Send an alert and initiate cooling (if applicable) |
| Abnormal power consumption | current_a Sudden jump > 30% |
Send alerts and troubleshoot motor faults. |
| Communication dropped | No heartbeat received in 5 minutes | Send alerts, switch to the backup network |
Implementation method
- Lightweight : Implement critical threshold alerts locally on the Edge MCU (to mitigate network latency).
- Cloud : Use Flink/Beam to perform windowed aggregation and anomaly detection (based on Z‑Score and Isolation Forest) on all streaming data.
- Alert Distribution : Alertmanager → SMS (Alibaba Cloud/Tencent Cloud) + Email + DingTalk/WeCom bots.
7.3 Predictive Maintenance (AI/ML)
Feature Engineering :
- Vibration Spectrum (FFT)
- Energy Consumption Trend (kWh/day)
- Frequency of fault code occurrence
- Mean Time Between Failures (MTBF)
Model :
- Return : Remaining Useful Life (RUL) prediction → XGBoost / LightGBM
- Category : Failure probability → LSTM (time series) or Temporal Convolutional Network
Deployment :
- Offline Training (SageMaker / Azure ML)
- Export as TensorFlow SavedModel → TensorFlow Serving
- Hourly batch processing or real-time inference (Kafka → TensorFlow Serving)
Result Visualization :
- “Health Index” dashboard (0–100)
- Predicted Maintenance Window (Recommended Maintenance Date)
- Automatically generate maintenance work orders and push them to operations and maintenance personnel.
8️⃣ Remote Operations and Maintenance & OTA
| Steps | Explanation |
|---|---|
| Firmware Build | Using PlatformIO / STM32CubeIDE, generate .bin + SHA256 Signature. |
| Version Control | GitLab CI → Docker Image → Artifact Storage (S3) |
| Release | Create on the cloud platform Firmware Update Job , specify the target device (topic) and the chunk size (256 KB). |
| Download | The device communicates via MQTT. $fw/update The topic receive URL uses HTTPS to download and verify the SHA256 hash. |
| Verification | If the signatures do not match, automatically roll back and report an error. |
| Flashing | Using the MCU’s built-in Bootloader (Double partition): After flashing the new firmware, switch partitions and reboot. |
| Rollback | If the new firmware fails to boot (due to a watchdog trigger), it automatically rolls back to the previous partition and reports the event. |
| Safety | The entire OTA process uses TLS, and firmware signing employs ECDSA‑P256 , the private key is stored in an HSM. |
9️⃣ Example Code (ESP‑32 + MQTT)
Dependency :
esp-idf、paho.mqtt.embedded-c、mbedtls
/* main.c */
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "esp_wifi.h"
#include "mqtt_client.h"
#include "cJSON.h"
#include "driver/adc.h"
#include "esp_log.h"
static const char *TAG = "elevator_iot";
static esp_mqtt_client_handle_t client = NULL;
/* Read sensor data (example: ADC reading vibration) */
static float read_vibration(void) {
int raw = adc1_get_raw(ADC1_CHANNEL_0); // 0–4095
return (float)raw / 4095 * 5.0; // Assuming 0–5V corresponds to 0–5g
}
/* Generate JSON payload */
static char *build_payload(void) {
cJSON *root = cJSON_CreateObject();
cJSON_AddStringToObject(root, "elevator_id", "ELV-2023-001");
cJSON_AddNumberToObject(root, "timestamp", (double)esp_timer_get_time() / 1e6);
cJSON *metrics = cJSON_CreateObject();
cJSON_AddNumberToObject(metrics, "vibration_g", read_vibration());
cJSON_AddNumberToObject(metrics, "temperature_c", 36.5); // Assuming a fixed value
cJSON_AddItemToObject(root, "metrics", metrics);
char *payload = cJSON_PrintUnformatted(root);
cJSON_Delete(root);
return payload;
}
/* MQTT event callback */
static esp_err_t mqtt_event_handler_cb(esp_mqtt_event_handle_t event) {
switch (event->event_id) {
case MQTT_EVENT_CONNECTED:
ESP_LOGI(TAG, "MQTT connected");
break;
case MQTT_EVENT_DISCONNECTED:
ESP_LOGW(TAG, "MQTT disconnected");
break;
default:
break;
}
return ESP_OK;
}
/* Main task: report every 5 seconds */
static void telemetry_task(void *arg) {
while (1) {
char *payload = build_payload();
int msg_id = esp_mqtt_client_publish(client, "/elevator/telemetry", payload,
0, 1, 0);
ESP_LOGI(TAG, "publish msg_id=%d payload=%s", msg_id, payload);
free(payload);
vTaskDelay(pdMS_TO_TICKS(5000));
}
}
/* Initialize Wi‑Fi and MQTT */
void app_main(void) {
// 1. Initialize NVS and Wi‑Fi (omitted)
// 2. Configure MQTT
const esp_mqtt_client_config_t mqtt_cfg = {
.uri = "mqtts://iot.example.com:8883",
.client_id = "elevator_001",
.username = "device_user",
.password = "device_pass",
.cert_pem = (const char *)server_cert_pem_start,
.client_cert_pem = (const char *)client_cert_pem_start,
.client_key_pem = (const char *)client_key_pem_start,
.event_handle = mqtt_event_handler_cb,
.keepalive = 60,
.disable_auto_reconnect = false,
};
client = esp_mqtt_client_init(&mqtt_cfg);
esp_mqtt_client_start(client);
// 3. Start the telemetry task
xTaskCreate(&telemetry_task, "telemetry_task", 4096, NULL, 5, NULL);
}
Explanation
- Use TLS Mutual Authentication (
cert_pem、client_cert_pem、client_key_pem).keepalive=60Maintain the heartbeat; if no ACK is received twice, the MQTT client will automatically reconnect.- Through
esp_mqtt_client_publishof QoS=1 Ensure at least one delivery.
10️⃣ Project Implementation Plan (Example: 6 Months)
| Stage | Cycle | Key Milestones | Output |
|---|---|---|---|
| Requirements Research & Feasibility | 1–2 weeks | On-site survey, equipment inventory, network coverage assessment | Requirements Specification Document, Technology Selection Report |
| Prototype validation | 3–6 weeks | Sensor selection, ESP‑32 development board, MQTT connectivity, basic dashboard | PoC Demo (Real-Time Data + Alerts) |
| Hardware customization | 7–10 weeks | On-site MCU PCB and industrial‑grade gateway manufacturing, along with EMC and protection testing. | Hardware BOM, production prototypes |
| Firmware Development | 11–14 weeks | Sensor drivers, protocol stacks, OTA, local alerts | Firmware v1.0 (CI/CD) |
| Cloud platform deployment | 11–14 weeks (parallel) | IoT Core, Time-Series Database, Microservices, Identity Center | Cloud Environment (Terraform Script) |
| Frontend/Mobile端 | 15–18 weeks | Real-time dashboards, alert lists, and ticketing system | Web UI, Flutter App |
| AI prediction model | 19–22 weeks | Data annotation, model training, and production deployment | RUL Prediction API |
| System Integration & Testing | 23–26 weeks | End-to-end functionality, stress testing, penetration testing, and security auditing | Integration Test Report, Compliance Documentation |
| Pilot deployment | 27–30 weeks | Select 2–3 buildings, perform on-site installation, and provide operations and maintenance training. | On-site operation log, user manual |
| Officially launched | 31–34 weeks | Full building deployment, SLA signing, and operations handover | Delivery Report, Operations and Maintenance Manual |
| Operations & Continuous Improvement | From 35 weeks onward | Monitoring, bug fixes, and feature iterations | Continuous Delivery (CI/CD) |
Staffing (Recommendation)
- 1 Project Manager
- 2 hardware engineers
- 2 Embedded Software Engineers
- 2 Cloud Platform/Backend Engineers
- 2 Frontend/Mobile Engineers
- 1 Data Scientist
- Testing/Quality Assurance 1 person
- 1 Operations Engineer
11️⃣ Cost Estimation (based on 100 elevators)
| Project | Unit cost | Quantity | Subtotal (RMB) |
|---|---|---|---|
| Hardware | |||
| ESP‑32 + Sensor Kit | 120 CNY | 100 | 12,000 |
| Edge Gateway (Raspberry Pi 4 + 4G) | 350 CNY | 10 (per 10 shared) | 3,500 |
| Protective enclosure, mounting bracket | 80 CNY | 100 | 8,000 |
| Communication expenses | 30 CNY per device per month (NB‑IoT) | 100 × December | 36,000 |
| Cloud platform | 0.10 CNY per record, per thousand records (Timescale) | Approximately 10 million entries per year | 1,000 |
| Development and Integration | 300 CNY per work hour | Approximately 1,200 man-hours | 360,000 |
| Operations and maintenance | 5 CNY per device per month (monitoring, OTA) | 100 × December | 6,000 |
| Total | ≈ 426,500 CNY |
Note
- The costs are for reference only and may vary depending on the network operator’s plan, the choice of cloud platform (on-premises vs. public cloud), and the project’s scale.
- After scaling up, hardware procurement costs can be reduced by 15–20%.
12️⃣ Reference Resources and Open-Source Projects
| Category | Project/Document | Link |
|---|---|---|
| IoT platform | ThingsBoard (open source) | https://thingsboard.io |
| MQTT Broker | EMQX (Enterprise Edition/Community Edition) | https://www.emqx.io |
| Time-series database | TimescaleDB | https://www.timescale.com |
| Edge computing | EdgeX Foundry | https://www.edgexfoundry.org |
| OTA framework | Mender (open source) | https://mender.io |
| Elevator Standards | GB 7588‑2019 “Safety Technical Code for Elevators” | National Standards Website |
| Safety Guidelines | Information Security Technology: Basic Requirements for Network Security Level Protection | National Standard of the People’s Republic of China |
| AI Prediction | NASA Turbofan Engine Degradation Simulation Data Set (available for RUL examples) | https://ti.arc.nasa.gov/tech/dash/groups/pcoe/prognostic-data-repository/ |
- End-to-end : On-site sensors → Edge MCU → Edge gateway → Cloud platform → Visualization/AI → Remote operations and maintenance.
- Safety : Mutual TLS, device certificates, least privilege, audit logs.
- Reliability : Local threshold alerts + cloud-based streaming analytics + multi‑link redundancy (4G/NB‑IoT).
- Value : Proactively detect faults, reduce downtime, extend equipment lifespan, and achieve digital operations and maintenance.
If you have more specific requirements (such as Only web-side display is required. 、 Budget constraints 、 Specific communication network ), Feel free to contact WABON Technology—we can refine the solution for you or provide detailed implementation specifics. 🚀
Keywords:
Previous post
Previous post