IOT Internet of Things Platform
Based on the latest RuoyiPlus backend architecture, covering device management, device grouping, alert configuration and alert records, building a device connectivity, data collection and intelligent operations system
1. Enhancement Positioning and Architecture
1.1 Product Positioning
RuoYiPlus IOT centers around three core pillars—Multi-Protocol Device Access, Real-Time Data Processing, and Device Security Control—to deliver enterprise-level enhancement, achieving a complete IoT solution from device access to intelligent operations.
1.2 Module Scale
| Metric | Value |
|---|---|
| Maven Module | yudao-module-iot |
1.3 Core Data Tables
| Table Name | Description |
|---|---|
iot_device | Device Management |
iot_device_group | Device Grouping |
iot_alert_config | Alert Configuration |
iot_alert_record | Alert Records |
graph TB
subgraph "RuoYiPlus IOT Enhanced Architecture"
subgraph "Device Access Layer"
A1[MQTT Protocol]
A2[CoAP Protocol]
A3[HTTP/HTTPS]
A4[Modbus]
A5[OPC-UA]
A6[LoRaWAN]
end
subgraph "Gateway Layer"
B1[Edge Gateway]
B2[Protocol Gateway]
B3[Security Gateway]
end
subgraph "Platform Layer"
C1[Device Management]
C2[Data Collection]
C3[Rule Engine]
C4[Alert Management]
end
subgraph "Application Layer"
D1[Real-Time Monitoring]
D2[Predictive Maintenance]
D3[Data Analysis]
end
subgraph "Security Layer"
E1[Device Authentication]
E2[Permission Control]
E3[Operation Audit]
E4[Data Encryption]
end
end
A1 --> B1
A2 --> B1
A3 --> B1
A4 --> B2
A5 --> B2
A6 --> B2
B1 --> C1
B2 --> C1
B3 --> C1
C1 --> C2
C2 --> C3
C3 --> C4
C4 --> D1
D1 --> D2
D2 --> D3
C1 --> E1
C2 --> E2
C3 --> E3
C4 --> E4
1.4 Capability Comparison
| Dimension | Traditional Solution | RuoYiPlus IOT Enhanced |
|---|---|---|
| Device Access | Single protocol access | Multi-protocol multi-gateway access |
| Data Collection | Manual collection | Automatic collection with real-time reporting |
| Data Processing | Simple storage | Stream processing + rule engine |
| Device Management | Device ledger | Device lifecycle management |
| Operations Monitoring | Offline monitoring | Real-time monitoring + predictive maintenance |
| Data Analysis | Historical query | Real-time analysis + AI prediction |
| Permission Control | Basic permissions | Device-level permission control |
| Audit Compliance | Simple logs | Full-chain device operation audit |
2. Multi-Protocol Device Access
2.1 Protocol Adaptation Architecture
graph TB
subgraph "Protocol Adaptation Layer"
subgraph "IoT Standard Protocols"
A1[MQTT]
A2[CoAP]
end
subgraph "General Protocols"
B1[HTTP/HTTPS]
B2[TCP/UDP]
end
subgraph "Industrial Protocols"
C1[Modbus]
C2[OPC-UA]
end
subgraph "Low-Power Protocols"
D1[LoRaWAN]
end
end
subgraph "Gateway Layer"
E1[Edge Gateway]
E2[Protocol Gateway]
E3[Security Gateway]
end
subgraph "Platform Layer"
F1[Device Registration]
F2[Device Authentication]
F3[Connection Management]
F4[Data Reporting]
end
A1 --> E1
A2 --> E1
B1 --> E2
B2 --> E2
C1 --> E2
C2 --> E2
D1 --> E3
E1 --> F1
E2 --> F1
E3 --> F1
F1 --> F2
F2 --> F3
F3 --> F4
| Protocol Type | Use Case | Characteristics |
|---|---|---|
| MQTT | IoT standard | Lightweight, publish/subscribe |
| CoAP | Resource-constrained devices | UDP, low power |
| HTTP | General access | RESTful, easy integration |
| Modbus | Industrial devices | PLC, sensors |
| OPC-UA | Industrial automation | MES/SCADA integration |
| LoRaWAN | Wide-area IoT | Low power, long range |
3. Device Lifecycle Management
3.1 Device Lifecycle
graph LR
A[Device Registration] --> B[Device Authentication]
B --> C[Device Activation]
C --> D[Device Operation]
D --> E[Device Maintenance]
E --> F[Device Decommissioning]
A --> A1[Device Modeling]
A --> A2[Device Type]
A --> A3[Device Properties]
B --> B1[Token Auth]
B --> B2[Certificate Auth]
B --> B3[Key Auth]
C --> C1[Device Connection]
C --> C2[Data Reporting]
C --> C3[Command Issuance]
D --> D1[Status Monitoring]
D --> D2[Alert Management]
D --> D3[Remote Maintenance]
E --> E1[Device Diagnostics]
E --> E2[Fault Handling]
E --> E3[Firmware Upgrade]
F --> F1[Device Deactivation]
F --> F2[Device Deregistration]
F --> F3[Data Archiving]
3.2 Device Permission Control
The IOT platform implements device-level permission control to ensure device operation security.
| Permission Level | Scope | Description |
|---|---|---|
| Device Level | Single device | Can only operate specified devices |
| Device Group | Device grouping | Can operate all devices within the group |
| Region Level | Regional devices | Can operate all devices within the region |
| Global Level | All devices | Can operate all devices |
// Device Permission Example
@DataPermission(scope = "device_group")
public class DeviceServiceImpl {
// Device group admins can only operate devices within their group
// Automatically filter by device group
}
3.3 Device Operation Audit
All device operations record complete audit logs, supporting device operation traceability.
graph TB
subgraph "Device Audit"
A[Device Operation] --> B[Operation Record]
B --> C[Command Issuance]
B --> D[Configuration Update]
B --> E[Firmware Upgrade]
B --> F[Data Query]
C --> G[Audit Log]
D --> G
E --> G
F --> G
G --> H[Operation Traceability]
G --> I[Compliance Reports]
end
| Audit Item | Description |
|---|---|
| Device Registration | Records device registration info, registration time |
| Device Authentication | Records authentication method, authentication result |
| Command Issuance | Records command content, issuance time, execution result |
| Configuration Update | Records configuration changes, before/after comparison |
| Firmware Upgrade | Records upgrade version, upgrade time, upgrade result |
4. Data Collection and Processing
4.1 Data Processing Flow
graph TB
subgraph "Data Processing"
subgraph "Data Collection"
A1[Device Reporting]
A2[Data Parsing]
A3[Format Conversion]
A4[Data Validation]
A5[Data Cleansing]
end
subgraph "Data Processing"
B1[Stream Processing]
B2[Real-Time Computing]
B3[Rule Engine]
B4[Data Aggregation]
end
subgraph "Data Storage"
C1[Time-Series Database]
C2[Relational Database]
C3[Object Storage]
end
subgraph "Data Distribution"
D1[Message Queue]
D2[Downstream Systems]
D3[Real-Time Push]
end
end
A1 --> A2
A2 --> A3
A3 --> A4
A4 --> A5
A5 --> B1
B1 --> B2
B2 --> B3
B3 --> B4
B4 --> C1
B4 --> C2
B4 --> C3
C1 --> D1
C2 --> D2
C3 --> D3
4.2 Rule Engine
iot:
rules:
- name: "Temperature Alert"
condition: "temperature > 80"
actions:
- alert: "High Temperature Alert"
- notify: "Operations Personnel"
- command: "Device Cooling"
- name: "Device Linkage"
condition: "motion_detected == true"
actions:
- command: "light_on"
- command: "camera_record"
- name: "Data Aggregation"
condition: "time_window = 5m"
actions:
- aggregate: "avg(temperature)"
- store: "Aggregated Data"
| Rule Type | Description |
|---|---|
| Alert Rules | Threshold alerts, trend alerts |
| Linkage Rules | Device linkage, scenario linkage |
| Computation Rules | Real-time computation, data aggregation |
| Notification Rules | Message push, alert notifications |
5. Device Operations Enhancement
5.1 Alert Management
graph TB
subgraph "Alert Workflow"
A[Rule Triggered] --> B[Alert Generation]
B --> C[Alert Classification]
C --> D[Alert Notification]
D --> E[Alert Acknowledgment]
E --> F[Alert Processing]
F --> G[Alert Closure]
C --> C1[Critical Alert]
C --> C2[Important Alert]
C --> C3[General Alert]
C --> C4[Info Alert]
end
| Alert Level | Description | Response Requirement |
|---|---|---|
| Critical Alert | Device failure, security risk | Immediate response |
| Important Alert | Parameter anomaly, performance degradation | 30-minute response |
| General Alert | Minor anomaly, early warning | 2-hour response |
| Info Alert | Information notification, status change | Same-day processing |
5.2 Predictive Maintenance
| Capability | Description |
|---|---|
| Fault Prediction | AI model-based fault prediction |
| Lifespan Prediction | Device lifespan prediction |
| Maintenance Suggestions | Intelligent maintenance recommendations |
| Spare Parts Alert | Spare parts demand prediction |
6. Technical Architecture
graph TB
subgraph "yudao-module-iot-plus"
subgraph "iot-biz"
A1[device - Device Management]
A2[protocol - Protocol Adaptation]
A3[gateway - Gateway Management]
A4[data - Data Processing]
A5[rule - Rule Engine]
A6[alert - Alert Management]
A7[monitor - Real-Time Monitoring]
A8[maintenance - Maintenance Management]
A9[edge - Edge Computing]
A10[analytics - Data Analysis]
end
subgraph "Permissions and Audit"
B1[permission - Permission Control]
B2[audit - Audit Logs]
B3[security - Security Authentication]
end
end
A1 --> B1
A2 --> B2
A3 --> B3
A4 --> B2
A5 --> B2
7. Business Value
| Value Point | Description |
|---|---|
| Device Visibility | Real-time monitoring, status transparency |
| Intelligent Operations | Predictive maintenance, intelligent alerts |
| Fault Reduction | Fault prediction, rapid response |
| Data Value | Data analysis, AI enablement |
| Edge Intelligence | Local computing, edge-cloud collaboration |
| Security Compliance | Device authentication, operation audit |