一种基于Redis多数据结构协同的物联网设备状态检测与通知方法、装置及电子设备

By employing a Redis multi-data-structure collaboration method and utilizing ordered sets and Lua scripts to optimize device status detection, the problems of offline detection lag and resource waste in IoT device status detection are solved, achieving second-level offline sensing and efficient device status synchronization.

CN121984896BActive Publication Date: 2026-07-17DI YI SHANGHAI INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
DI YI SHANGHAI INTELLIGENT TECH CO LTD
Filing Date
2026-04-07
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

Existing technologies for detecting the status of IoT devices suffer from problems such as offline detection lag, rigid alarm logic, redundant invalid interactions, and excessive database pressure, resulting in low detection efficiency, waste of resources, and poor system scalability.

Method used

We employ a Redis multi-data-structure collaborative approach, utilizing ordered sets to build an online device index. Combined with Lua scripts and a sliding time window algorithm, we achieve second-level offline awareness of device status. Furthermore, we leverage Redis's single-threaded execution capabilities and pipeline technology to perform batch operations, reducing network interactions and database pressure.

Benefits of technology

It achieves second-level offline sensing, reduces alarm storms, lowers system load, improves the efficiency of device status detection and system scalability, and avoids resource waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121984896B_ABST
    Figure CN121984896B_ABST
Patent Text Reader

Abstract

本发明提供了一种基于Redis多数据结构协同的物联网设备状态检测与通知方法、装置及电子设备,涉及物联网与数据处理技术领域,包括:周期性调用Lua脚本,Lua脚本在Redis服务端以原子方式执行ZRangeByScore查询有序集合中分数小于超时阈值的成员以获得离线设备列表,并执行ZRemRangeByScore批量删除离线设备列表对应的成员;若当前时间与最后告警时间的差值小于预设窗口时长,则抑制本次告警,并将未被抑制的离线设备作为待通知设备集合;基于设备属性提取业务维度,将待通知设备集合中的设备按业务维度在应用层内存中进行归类聚合,生成汇总消息并通过单一回调接口推送至第三方系统。本发明实现了过期索引的自动化回收,无需人工干预,确保系统长期运行不产生数据膨胀。
Need to check novelty before this filing date? Find Prior Art