Internet of Things equipment data consistency detection and automatic repair method and related equipment
By integrating the unified portal system with IoT base and device management components, data consistency detection and automatic repair of IoT devices are realized, solving the problem of low efficiency in existing technologies and improving inspection efficiency and data management efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING CHINA POWER INFORMATION TECH
- Filing Date
- 2025-12-12
- Publication Date
- 2026-05-01
AI Technical Summary
Existing technologies for checking data inconsistencies in IoT devices are inefficient, lack automatic repair capabilities, and struggle to meet the needs of checking and repairing large-scale device data.
This paper provides a method for data consistency detection and automatic repair of IoT devices. By integrating a unified portal system, IoT base and device management components, it realizes automated data consistency checking and repair, including device data acquisition, comparison, automatic repair operation and scheduled task management.
It improves the efficiency of data consistency checks for IoT devices, reduces manual intervention, ensures the consistency of device data across different systems, avoids operational anomalies, and improves data management efficiency.
Smart Images

Figure CN121967260A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of Internet of Things (IoT) technology, and in particular to a method and related equipment for detecting and automatically repairing data consistency in IoT devices. Background Technology
[0002] With the rapid development of IoT technology, the number of IoT devices has increased dramatically, and the accuracy and consistency of device data have become key factors in ensuring the normal operation of IoT systems.
[0003] To address this issue, existing technologies typically employ manual inspection to identify and correct data inconsistencies. However, this method is inefficient and struggles to meet the demands of inspecting and repairing large-scale equipment data. Summary of the Invention
[0004] In view of this, the purpose of this disclosure is to propose a method and related equipment for data consistency detection and automatic repair of Internet of Things (IoT) devices.
[0005] To achieve the above objectives, the first aspect of this disclosure provides a method for data consistency detection and automatic repair of Internet of Things (IoT) devices, comprising: In response to receiving a device data consistency check request, first device data of at least one first device in the unified portal system is obtained based on the device data consistency check request; Acquire second device data of at least one second device in the IoT dock and / or device management component; the IoT dock and the device management component are integrated into the unified portal system, and the unified portal system provides a centralized entry point for user operations; Based on the comparison results between the first device data and the second device data, obtain the data inconsistencies and data inconsistency types between the first device and the second device; Based on the data inconsistency type, obtain the first data inconsistency item that can be automatically repaired from the data inconsistency items, and perform an automatic repair operation on the device corresponding to the first data inconsistency item.
[0006] In some embodiments, the method further includes: Configure a scheduled task for device data consistency checks, wherein the scheduled task includes the execution cycle of the device data consistency checks; The device data consistency check is triggered based on the execution cycle, and a device data consistency check request is generated.
[0007] In some embodiments, the data inconsistency types include inconsistency in the number of devices, inconsistency in device status, and inconsistency in device identification; The term includes at least one of the following: In response to the first data inconsistency type being a device quantity inconsistency, a missing third device is identified in the unified portal system, third device information corresponding to the third device is obtained from the IoT dock and / or the device management component, and a device file for the third device is created in the unified portal system based on the third device information; In response to the first data inconsistency type being device status inconsistency, a fourth device with an inconsistent device status is identified in the unified portal system. The fourth device information corresponding to the fourth device is obtained from the IoT dock and / or the device management component, and the device status of the fourth device in the unified portal system is updated based on the fourth device information.
[0008] In some embodiments, creating a device profile for the third device in the unified portal system based on the third device data includes: Determine the device type of the third device; In response to the fact that the device type of the third device is a direct-connect device, the third device information corresponding to the third device is obtained from the IoT dock and / or the device management component, and a device file of the third device is created based on the third device information; In response to the fact that the device type of the third device is a gateway sub-device, the gateway information and the third device information corresponding to the third device are obtained from the IoT dock and / or the device management component, and a device file of the third device is created based on the gateway information and the third device information.
[0009] In some embodiments, performing an automatic repair operation on the device corresponding to the first data inconsistency item includes: Determine the fifth device corresponding to the first data inconsistency item; Obtain the fifth device information in the unified portal system, the sixth device information in the IoT base, and the seventh device information in the device management component; Determine whether the fifth device information, the sixth device information, and the seventh device information are consistent, and update the device status of the fifth device based on the device information with the most consistent data among the fifth device information, the sixth device information, and the seventh device information.
[0010] In some embodiments, the method further includes: The first device data and the second device data are uploaded to the intermediate data module, which is communicatively connected to the unified portal system, the IoT base, and the device management component. By comparing the data of the first device and the data of the second device through the intermediate data module, the data inconsistencies and data inconsistency types between the first device and the second device are obtained. The intermediate data module obtains the first data inconsistency item that can be automatically repaired from the data inconsistency items, generates an automatic repair request for the device corresponding to the first data inconsistency item, and sends the automatic repair request to at least one of the unified portal system, the IoT base, and the device management component.
[0011] The second aspect of this disclosure provides an IoT device data consistency detection and automatic repair apparatus, comprising: The first acquisition module is configured to: in response to acquiring a device data consistency check request, acquire first device data of at least one first device in the unified portal system based on the device data consistency check request; The second acquisition module is configured to: acquire second device data of at least one second device in the IoT dock and / or device management component; the IoT dock and the device management component are integrated into the unified portal system and provide a centralized entry point for user operations through the unified portal system; The comparison module is configured to: based on the comparison result between the first device data and the second device data, obtain the data inconsistencies and data inconsistency types between the first device and the second device; The repair module is configured to: obtain a first data inconsistency item that can be automatically repaired from the data inconsistency items based on the data inconsistency type, and perform an automatic repair operation on the device corresponding to the first data inconsistency item.
[0012] A third aspect of this disclosure provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the Internet of Things device data consistency detection and automatic repair method as described in the first aspect.
[0013] A fourth aspect of this disclosure provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the IoT device data consistency detection and automatic repair method described in the first aspect.
[0014] The fifth aspect of this disclosure provides a computer program product, including computer program instructions that, when executed on a computer, cause the computer to perform the Internet of Things device data consistency detection and automatic repair method as described in the first aspect.
[0015] As can be seen from the above, the IoT device data consistency detection and automatic repair method and related equipment provided in this disclosure can automatically check the data consistency of IoT devices in an IoT system composed of a unified portal system, an IoT base and / or device management components, thereby improving the inspection efficiency and avoiding omissions caused by manual inspection; it provides an automatic repair function, and determines the data inconsistencies that can be automatically repaired based on the data inconsistency type, and can automatically repair the data inconsistencies that can be automatically repaired, reducing manual intervention and improving the efficiency of data management. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in this disclosure or related technologies, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 A schematic diagram of an exemplary system provided by an embodiment of this disclosure is shown.
[0018] Figure 2 A schematic diagram of an exemplary scenario according to an embodiment of the present disclosure is shown.
[0019] Figure 3 A flowchart illustrating an exemplary method according to an embodiment of this disclosure is shown.
[0020] Figure 4 A flowchart illustrating another exemplary method provided by an embodiment of this disclosure is shown.
[0021] Figure 5 A flowchart illustrating another exemplary method provided by an embodiment of this disclosure is shown.
[0022] Figure 6 A flowchart illustrating another exemplary method provided by an embodiment of this disclosure is shown.
[0023] Figure 7 A schematic diagram of an exemplary apparatus provided by an embodiment of the present disclosure is shown.
[0024] Figure 8 A schematic diagram of the hardware structure of an exemplary computer device provided in an embodiment of this disclosure is shown. Detailed Implementation
[0025] To make the objectives, technical solutions, and advantages of this disclosure clearer, the following detailed description is provided in conjunction with specific embodiments and the accompanying drawings.
[0026] It should be noted that, unless otherwise defined, the technical or scientific terms used in the embodiments of this disclosure should have the ordinary meaning understood by one of ordinary skill in the art to which this disclosure pertains. The terms "first," "second," and similar terms used in the embodiments of this disclosure do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed following the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are used only to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0027] It is understood that before using the technical solutions of the various embodiments in this disclosure, users will be informed of the type, scope of use, and usage scenarios of the personal information involved in an appropriate manner, and user authorization will be obtained.
[0028] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose, based on the prompt message, whether to provide personal information to the software or hardware such as electronic devices, applications, servers, or storage media performing the operations of this disclosed technical solution.
[0029] As an optional but not limited implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0030] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.
[0031] Figure 1 A schematic diagram of an exemplary system 100 provided in an embodiment of this disclosure is shown.
[0032] like Figure 1As shown, system 100 may include terminal device 102, server 106, and database server 108. A medium (e.g., a network) may be provided between terminal device 102 and server 106 and database server 108 to provide a communication link. This network may include various connection types, such as wired, wireless communication links, or fiber optic cables, etc.
[0033] The terminal device 102 can be equipped with various applications (APPs) or software, such as data generation applications or software, data annotation applications or software, model training applications or software, collaborative office applications or software, image processing applications or software, video conferencing applications or software, reading applications or software, video applications or software, social applications or software, payment applications or software, web browsers and instant messaging tools, etc.
[0034] The terminal device 102 here can be either hardware or software. When the terminal device 102 is hardware, it can be various electronic devices with a display screen, including but not limited to smartphones, tablets, e-book readers, MP3 players, laptops, and desktop computers (PCs). When the terminal device 102 is software, it can be installed in the electronic devices listed above. It can be implemented as multiple software programs or software modules (e.g., to provide distributed services) or as a single software program or software module. No specific limitations are made here.
[0035] Server 106 can be a server providing various services, such as a backend server supporting various applications displayed on terminal device 102. Database server 108 can also be a database server providing various services. It is understood that if server 106 can implement the relevant functions of database server 108, database server 108 may not need to be set up in system 100.
[0036] The server 106 and database server 108 here can be either hardware or software. When they are hardware, they can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When they are software, they can be implemented as multiple software programs or software modules (for example, to provide distributed services), or as a single software program or software module. No specific limitations are made here.
[0037] It should be noted that the document editing method provided in this embodiment can be executed by the server 106. It should be understood that... Figure 1 The number of terminal devices, users, servers, and database servers shown is merely illustrative. Depending on implementation needs, there can be any number of terminal devices, users, servers, and database servers.
[0038] In some embodiments, the terminal device 102 may be equipped with IoT device data inspection applications or software, IoT device data repair applications or software, and IoT device data management applications or software. The user 104 may use the application or software installed on the terminal device 102 to inspect, repair, and manage IoT device data, etc.
[0039] Internet of Things (IoT) systems typically consist of multiple subsystems, such as Figure 2 As shown, the IoT system includes a unified portal system, an IoT base, device management components, etc., and these subsystems need to share device data.
[0040] The IoT platform, known as the IoT base, is used to integrate devices, data, messages, and services. Device integration includes: accessing devices via protocols such as MQTT and COAP to enable bidirectional communication between devices and IT systems; data integration includes: enabling device access and communication based on various heterogeneous data sources such as MySQL, HDFS, and MQTT device data, with a user-friendly interface for configuration, completing data integration tasks within minutes; message integration includes: enabling cross-regional message migration through message queue services, ensuring data persistence and high availability; and service integration includes: providing standardized API interfaces that allow cross-cloud service calls.
[0041] The device management component can manage and drive various heterogeneous hardware devices through a unified software management platform, and is involved in functions such as hardware resource abstraction and management, unified IoT access and data fusion.
[0042] During the operation of an IoT system, inconsistencies in device data between different subsystems can easily arise due to network anomalies, system failures, and untimely data synchronization. For example, if a device is deleted or modified in one system, other systems may fail to synchronize these changes in a timely manner, resulting in inconsistencies in information such as the number of devices, device status, and device attributes between different systems.
[0043] Inconsistent device data can severely impact the normal operation of IoT systems and the accuracy of decision-making. For example, if the unified portal shows a device as online, while the IoT dock shows it as offline, the user may be receiving inaccurate information.
[0044] In related technologies, manual inspection is typically used to identify data inconsistencies in order to solve this problem. However, this method is inefficient and struggles to meet the needs of inspecting large-scale equipment data. Furthermore, even when data inconsistencies are detected, there is a lack of automatic repair capabilities, meaning that the identified problems still require manual handling, thus failing to achieve truly automated data management.
[0045] In view of this, embodiments of the present disclosure provide a method for data consistency detection and automatic repair of Internet of Things (IoT) devices to solve the above-mentioned problems.
[0046] like Figure 3 , Figure 4 As shown, the IoT device data consistency detection and automatic repair method includes: Step S101: In response to receiving a device data consistency check request, obtain the first device data of at least one first device in the unified portal system based on the device data consistency check request.
[0047] The Internet of Things (IoT) refers to the use of various information sensors, RFID technology, GPS, infrared sensors, laser scanners, and other devices and technologies to collect real-time data on any object or process that needs to be monitored, connected, or interacted with. This data includes information on sound, light, heat, electricity, mechanics, chemistry, biology, location, and other parameters. Through various possible network access methods, it achieves ubiquitous connectivity between things and between things and people, enabling intelligent perception, identification, and management of objects and processes. The IoT is an information carrier based on the internet and traditional telecommunications networks, enabling all independently addressable ordinary physical objects to form an interconnected network.
[0048] IoT devices can include: AI cameras, smart access control systems, routers, routing switches, integrated access devices, multiplexers, autonomous vehicles, implantable medical devices, other IoT-related and mobile devices, and various metropolitan area network and wide area network access devices, etc.
[0049] like Figure 2 As shown, the IoT system includes subsystems such as a unified portal system, IoT base, and device management components.
[0050] The device management component includes application market information and IoT device profiles. Through its application agent, the device management component abstracts various heterogeneous IoT devices into a unified computing resource that can be managed and invoked in the cloud, thereby obtaining application market information and IoT device profiles. The device management component can establish communication connections with IoT devices via Transmission Control Protocol (TCP), obtain management data from IoT devices through TCP, and then upload the application market information and IoT device profiles to the unified portal system via application programming interfaces (APIs).
[0051] The IoT platform includes object model information and device profile information for IoT devices. It provides unified authentication, status monitoring, and lifecycle management for IoT devices managed by the device management component. Simultaneously, it receives and stores data uploaded by each IoT device for data analysis, determines business rules based on a pre-defined rule engine, and distributes them to each IoT device. The IoT platform can communicate with IoT devices via Message Queuing Telemetry Transport (MQTT) and transmit various business data through MQTT. In some embodiments, application market information and IoT device profile information are uploaded to a unified portal system via an application programming interface (API).
[0052] In some embodiments, the application programming interface may be a Representational State Transfer (REST) interface, or it may be other types of interfaces; this embodiment does not limit this.
[0053] The unified portal system stores basic information and device status of IoT devices and serves as a centralized entry point for user operations. The IoT docking station and device management components are integrated into the unified portal system, which also provides a centralized entry point for user operations. The unified portal system can display device model information, device profiles, and application market information uploaded by the IoT docking station and device management components.
[0054] In this embodiment, when a device data consistency check request for an IoT device is received, first device data of at least one first device in the unified portal system is obtained based on the device data consistency check request. The first device data may include device identification information, device status information, device capability information, hardware and firmware information, network and location information, security and authentication information, business information, etc., but this embodiment does not limit the specific data types.
[0055] In some embodiments, since the first device data is only used for device data consistency checks, only device data such as device identification information and device status information used for device data consistency checks can be acquired, while device data not used for implementing device data consistency checks is not acquired, thereby reducing the cost of data acquisition and transmission.
[0056] In some embodiments, when the unified portal system receives a device data consistency check request, it obtains the first device data and stores it in the unified portal system.
[0057] In some embodiments, such as Figure 5 As shown, the first device data can be obtained through the data acquisition module connected to the unified portal system.
[0058] Step S103: Obtain second device data of at least one second device in the IoT dock and / or device management component; the IoT dock and the device management component are integrated into the unified portal system, and the unified portal system provides a centralized entry point for user operations.
[0059] In some embodiments, when the unified portal system receives a device data consistency check request, it obtains the second device data of its IoT device, i.e., at least one second device, from the IoT dock and / or device management component through an interface call.
[0060] In this embodiment, when the unified portal system receives a device data consistency check request, it can send a device data acquisition request to the IoT dock and / or device management component via a RESTful interface. After receiving the device data acquisition request, the IoT dock and / or device management component sends the device data of all local devices, i.e., the second device data of at least one second device, to the unified portal system.
[0061] In some embodiments, such as Figure 5 As shown, data from the second device can be obtained through a data acquisition module connected to the IoT base and device management component.
[0062] Step S105: Based on the comparison results of the first device data and the second device data, obtain the data inconsistency items and data inconsistency types between the first device and the second device.
[0063] In this embodiment, a device data consistency check is performed on at least one first device and at least one second device based on the first device data and the second device data, and the data inconsistency items and data inconsistency types between the first device and the second device are obtained based on the comparison results.
[0064] In some embodiments, after obtaining data inconsistencies between the second devices, the data inconsistencies can be recorded in a data inspection result table.
[0065] In some embodiments, such as Figure 5 As shown, the data comparison module can compare the first device data and the second device data obtained by the data acquisition module to obtain data inconsistencies, and the data recording module can record the data inconsistencies.
[0066] Step S107: Based on the data inconsistency type, obtain the first data inconsistency item that can be automatically repaired from the data inconsistency items, and perform an automatic repair operation on the device corresponding to the first data inconsistency item.
[0067] In this embodiment, a first data inconsistency item that can be automatically repaired can be identified based on the data inconsistency type, and an automatic repair operation can be performed on the device corresponding to the first data inconsistency item.
[0068] In this embodiment, data inconsistencies that cannot be automatically repaired can be marked in the data inspection result table, and notification information can be generated based on the markings and sent to the user to notify the user to handle the data inconsistencies that cannot be automatically repaired.
[0069] In some embodiments, such as Figure 5 As shown, the automatic repair module can automatically repair the device corresponding to the first data inconsistency item that can be automatically repaired.
[0070] In this embodiment, automated data consistency checks can be performed on IoT devices in an IoT system composed of a unified portal system, an IoT base, and / or device management components, thereby improving check efficiency and avoiding omissions caused by manual checks. An automatic repair function is provided, and data inconsistencies that can be automatically repaired are identified based on the data inconsistency type. Automatic repair of data inconsistencies that can be automatically repaired is performed, reducing manual intervention and improving the efficiency of data management.
[0071] In some embodiments, such as Figure 5 As shown, after the automatic repair is completed, a repair report can be generated through the report generation module so that users can view the repair results. In addition, a detailed detection report can also be generated through the report module to help maintenance personnel understand the system status and handling process.
[0072] In some embodiments, the IoT device data consistency detection and automatic repair method further includes: Step S201: Configure a scheduled task for device data consistency check, wherein the scheduled task includes the execution cycle of the device data consistency check.
[0073] In some embodiments, the execution cycle can be configured based on a cron expression; alternatively, the execution cycle can be set at a fixed frequency, such as executing once every fixed time interval; or, the scheduled task can be triggered based on an event, such as executing when the system starts up or when data is updated.
[0074] In this embodiment, a scheduled task for device data consistency checking can be configured in the unified portal system, and the execution cycle of device data consistency checking can be set in the scheduled task.
[0075] Step S203: Trigger the device data consistency check based on the execution cycle and generate the device data consistency check request.
[0076] In this embodiment, a device data consistency check is triggered according to the execution cycle set in the scheduled task, and a device data consistency check request is generated.
[0077] In this embodiment, a scheduled task is used to periodically check the consistency of device data without manual intervention. This allows for the timely detection of data inconsistencies among IoT devices, preventing abnormal operation of the IoT system caused by such inconsistencies.
[0078] In some embodiments, such as Figure 5 As shown, scheduled tasks can be set and device data consistency checks can be triggered through the scheduled task module.
[0079] In some embodiments, the data inconsistency types include multiple types such as inconsistent number of devices, inconsistent device status, and inconsistent device identification.
[0080] Step S107, which involves obtaining the first data inconsistency item that can be automatically repaired based on the data inconsistency type and performing an automatic repair operation on the device corresponding to the first data inconsistency item, includes: in response to the first data inconsistency type being a device quantity inconsistency, determining the missing third device in the unified portal system, obtaining the third device information corresponding to the third device from the IoT dock and / or the device management component, and creating a device file for the third device in the unified portal system based on the third device information.
[0081] In this embodiment, when the data inconsistency type is inconsistent device quantity, there is a problem of missing devices in the unified portal system, or a problem of missing devices in the IoT base and / or device management component.
[0082] In this embodiment, a missing third device in the unified portal system is obtained, and the third device information corresponding to the third device is obtained from the IoT base and / or the device management component. Based on the third device information, a device file of the third device is created in the unified portal system, thereby supplementing the missing IoT device in the unified portal system, realizing automatic repair of inconsistent device data, and ensuring the data consistency of IoT devices in various systems.
[0083] In some embodiments, the device profile can be a device shadow.
[0084] Step S107, which involves obtaining the first data inconsistency item that can be automatically repaired based on the data inconsistency type and performing an automatic repair operation on the device corresponding to the first data inconsistency item, includes: in response to the first data inconsistency type being device status inconsistency, determining a fourth device with an inconsistent device status in the unified portal system, obtaining fourth device information corresponding to the fourth device from the IoT dock and / or the device management component, and updating the device status of the fourth device in the unified portal system based on the fourth device information.
[0085] In this embodiment, when the data inconsistency type is device status inconsistency, that is, the device status of the same device is inconsistent between the unified portal system and the IoT dock and / or the device management component. For example, the unified portal system shows a device as online, while the IoT dock shows the device as offline.
[0086] In this embodiment, a fourth device with an inconsistent device status in the unified portal system is obtained. The fourth device information corresponding to the fourth device is obtained from the IoT dock and / or the device management component. Based on the fourth device information, the device status of the fourth device in the unified portal system is updated, thereby modifying the fourth device with an inconsistent device status in the unified portal system to be consistent with that in the IoT dock and / or the device management component. This achieves automatic repair of inconsistent device data and ensures the data consistency of IoT devices in various systems.
[0087] In some embodiments, such as Figure 6 As shown, the step of creating a device profile for the third device in the unified portal system based on the third device data includes: Step S301: Determine the device type of the third device.
[0088] Step S303: In response to the fact that the device type of the third device is a direct-connect device, obtain the third device information corresponding to the third device from the IoT dock and / or the device management component, and create a device file for the third device based on the third device information.
[0089] Step S305: In response to the fact that the device type of the third device is a gateway sub-device, obtain the gateway information and the third device information corresponding to the third device from the IoT dock and / or the device management component, and create a device file for the third device based on the gateway information and the third device information.
[0090] In this embodiment, different data processing strategies can be adopted according to different device types of IoT devices to achieve automatic repair of device data, thereby improving processing efficiency and accuracy. The device types can include directly connected devices and gateway sub-devices.
[0091] When the third device is a directly connected device, the third device information corresponding to the third device can be obtained from the IoT base and / or the device management component, and a device file of the third device can be created based on the third device information.
[0092] When the third device is a gateway sub-device, that is, when the third device accesses the IoT system through the gateway device, the gateway information and the third device information corresponding to the third device are first obtained from the IoT base and / or the device management component. Then, a device file of the third device is created based on the gateway information, so that the device file of the third device can inherit some attribute information of the gateway device.
[0093] In some embodiments, different processing strategies may be adopted based on other attributes such as device manufacturer, device model, and protocol type.
[0094] In some embodiments, the automatic repair operation performed on the device corresponding to the first data inconsistency item in step S107 includes: Step S401: Determine the fifth device corresponding to the first data inconsistency item.
[0095] Step S403: Obtain the fifth device information in the unified portal system, the sixth device information in the IoT base, and the seventh device information in the device management component.
[0096] Step S405: Determine whether the fifth device information, the sixth device information, and the seventh device information are consistent. Update the device status of the fifth device based on the device information with the most consistent data among the fifth device information, the sixth device information, and the seventh device information.
[0097] In this embodiment, an automatic repair mechanism can be used. That is, for the fifth device with inconsistent data, its device information in the unified portal system, IoT base, and device management component systems is obtained respectively, and a vote is taken on it. When the data of the majority of systems is consistent, the data of the majority system shall prevail for repair.
[0098] In some embodiments, the IoT device data consistency detection and automatic repair method can be executed in a unified portal system.
[0099] In some embodiments, an intermediate data module can be set up between the unified portal system and the IoT base and device management components, and the IoT device data consistency detection and automatic repair method can be executed in the intermediate data module. The IoT device data consistency detection and automatic repair method includes: Step S501: Upload the first device data and the second device data to the intermediate data module. The intermediate data module is communicatively connected to the unified portal system, the IoT base, and the device management component.
[0100] In this embodiment, scheduled tasks can be set in the unified portal system, the IoT dock, and the device management component, so that the unified portal system, the IoT dock, and the device management component can periodically upload their device data to the intermediate data module for storage based on their respective scheduled tasks.
[0101] Step S503: The intermediate data module compares the data of the first device and the data of the second device to obtain the data inconsistencies and data inconsistency types between the first device and the second device.
[0102] In this embodiment, the data of the first device and the data of the second device can be compared by the intermediate data module to obtain the data inconsistencies and data inconsistency types between the first device and the second device.
[0103] Step S505: Obtain the first data inconsistency item that can be automatically repaired from the data inconsistency items through the intermediate data module, generate an automatic repair request for the device corresponding to the first data inconsistency item, and send the automatic repair request to at least one of the unified portal system, the IoT base, and the device management component.
[0104] In this embodiment, the first data inconsistency item that can be automatically repaired can be obtained through the intermediate data module, thereby generating a corresponding automatic repair strategy, and generating an automatic repair request based on the automatic repair strategy, and sending the automatic repair request to at least one of the unified portal system, the IoT base, and the device management component.
[0105] For example, if it is necessary to create missing device data in the unified portal system based on device data in the IoT dock, a first automatic repair request is generated and sent to the IoT dock, so that the IoT dock can obtain the device data of the device based on the first automatic repair request and send it to the unified portal system; at the same time, a second automatic repair request is generated and sent to the unified portal system, so that the unified portal system can obtain the device data of the device sent by the IoT dock based on the second automatic repair request, and create the device profile of the device based on the device data.
[0106] In this embodiment, an intermediate data module can be set up to periodically synchronize the device data of each system to the intermediate data module, and then compare the device data in the intermediate data module to determine the inconsistencies in the device data and generate an automatic repair strategy.
[0107] It should be noted that the method of this disclosure embodiment can be executed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario, where multiple devices cooperate to complete the task. In such a distributed scenario, one of these devices may execute only one or more steps of the method of this disclosure embodiment, and the multiple devices will interact with each other to complete the method described.
[0108] It should be noted that the above description describes some embodiments of this disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in a different order than that shown in the above embodiments and still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0109] Based on the same inventive concept, corresponding to any of the above embodiments, this disclosure also provides an IoT device data consistency detection and automatic repair device.
[0110] refer to Figure 7 The IoT device data consistency detection and automatic repair device includes: The first acquisition module 11 is configured to: in response to acquiring a device data consistency check request, acquire first device data of at least one first device in the unified portal system based on the device data consistency check request; The second acquisition module 13 is configured to: acquire second device data of at least one second device in the IoT dock and / or device management component; the IoT dock and the device management component are integrated into the unified portal system and provide a centralized entry point for user operations through the unified portal system; The comparison module 15 is configured to: based on the comparison result between the first device data and the second device data, obtain the data inconsistencies and data inconsistency types between the first device and the second device; Repair module 17 is configured to: obtain a first data inconsistency item that can be automatically repaired from the data inconsistency items based on the data inconsistency type, and perform an automatic repair operation on the device corresponding to the first data inconsistency item.
[0111] In some embodiments, the apparatus is further configured to: Configure a scheduled task for device data consistency checks, wherein the scheduled task includes the execution cycle of the device data consistency checks; The device data consistency check is triggered based on the execution cycle, and a device data consistency check request is generated.
[0112] In some embodiments, the data inconsistency types include inconsistency in the number of devices, inconsistency in device status, and inconsistency in device identification; The repair module 17 is configured to perform at least one of the following: In response to the first data inconsistency type being a device quantity inconsistency, a missing third device is identified in the unified portal system, third device information corresponding to the third device is obtained from the IoT dock and / or the device management component, and a device file for the third device is created in the unified portal system based on the third device information; In response to the first data inconsistency type being device status inconsistency, a fourth device with an inconsistent device status is identified in the unified portal system. The fourth device information corresponding to the fourth device is obtained from the IoT dock and / or the device management component, and the device status of the fourth device in the unified portal system is updated based on the fourth device information.
[0113] In some embodiments, creating a device profile for the third device in the unified portal system based on the third device data includes: Determine the device type of the third device; In response to the fact that the device type of the third device is a direct-connect device, the third device information corresponding to the third device is obtained from the IoT dock and / or the device management component, and a device file of the third device is created based on the third device information; In response to the fact that the device type of the third device is a gateway sub-device, the gateway information and the third device information corresponding to the third device are obtained from the IoT dock and / or the device management component, and a device file of the third device is created based on the gateway information and the third device information.
[0114] In some embodiments, the repair module 17 is configured to: Determine the fifth device corresponding to the first data inconsistency item; Obtain the fifth device information in the unified portal system, the sixth device information in the IoT base, and the seventh device information in the device management component; Determine whether the fifth device information, the sixth device information, and the seventh device information are consistent, and update the device status of the fifth device based on the device information with the most consistent data among the fifth device information, the sixth device information, and the seventh device information.
[0115] In some embodiments, the device is further configured to: The first device data and the second device data are uploaded to the intermediate data module, which is communicatively connected to the unified portal system, the IoT base, and the device management component. By comparing the data of the first device and the data of the second device through the intermediate data module, the data inconsistencies and data inconsistency types between the first device and the second device are obtained. The intermediate data module obtains the first data inconsistency item that can be automatically repaired from the data inconsistency items, generates an automatic repair request for the device corresponding to the first data inconsistency item, and sends the automatic repair request to at least one of the unified portal system, the IoT base, and the device management component.
[0116] For ease of description, the above apparatus is described in terms of its functions, divided into various modules. Of course, in implementing this disclosure, the functions of each module can be implemented in one or more software and / or hardware.
[0117] The apparatus described above is used to implement the corresponding IoT device data consistency detection and automatic repair method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0118] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the IoT device data consistency detection and automatic repair method described in any of the above embodiments.
[0119] Figure 8This embodiment illustrates a more specific hardware structure of an electronic device. The device may include a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, memory 1020, input / output interface 1030, and communication interface 1040 are interconnected internally via the bus 1050.
[0120] The processor 1010 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0121] The memory 1020 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.
[0122] The input / output interface 1030 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components within the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touchscreens, microphones, various sensors, etc., while output devices may include displays, speakers, vibrators, indicator lights, etc.
[0123] The communication interface 1040 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0124] Bus 1050 includes a pathway for transmitting information between various components of the device, such as processor 1010, memory 1020, input / output interface 1030, and communication interface 1040.
[0125] It should be noted that although the above-described device only shows the processor 1010, memory 1020, input / output interface 1030, communication interface 1040, and bus 1050, in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the embodiments of this specification, and not necessarily all the components shown in the figures.
[0126] The electronic devices described above are used to implement the corresponding IoT device data consistency detection and automatic repair methods in any of the foregoing embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0127] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this disclosure also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the IoT device data consistency detection and automatic repair method as described in any of the above embodiments.
[0128] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.
[0129] The computer instructions stored in the storage medium of the above embodiments are used to cause the computer to execute the IoT device data consistency detection and automatic repair method as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0130] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this disclosure also provides a computer program product, which includes a computer program. In some embodiments, the computer program is executable by one or more processors to cause the processors to perform the IoT device data consistency detection and automatic repair method. Corresponding to the execution entity for each step in each embodiment of the method, the processor executing the corresponding step may belong to the corresponding execution entity.
[0131] The computer program product of the above embodiments is used to cause the processor to execute the IoT device data consistency detection and automatic repair method as described in any of the above embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0132] Those skilled in the art will recognize that embodiments of this disclosure can be implemented as a system, method, or computer program product. Therefore, this disclosure can be implemented as entirely hardware, entirely software (including firmware, resident software, microcode, etc.), or a combination of hardware and software, generally referred to herein as a "circuit," "module," or "system." Furthermore, in some embodiments, this disclosure can also be implemented as a computer program product contained in one or more computer-readable media, which includes computer-readable program code.
[0133] Any combination of one or more computer-readable media may be used. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example,, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (not exhaustive) of a computer-readable storage medium may include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus, or device.
[0134] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.
[0135] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0136] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0137] It should be understood that each block of a flowchart and / or block diagram, as well as combinations of blocks in a flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine that, when executed by a computer or other programmable data processing device, creates means for implementing the functions / operations specified in the blocks of the flowchart and / or block diagram.
[0138] These computer program instructions may also be stored in a computer-readable medium that enables a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable medium produce a product comprising an instruction apparatus that implements the functions / operations specified in the boxes of a flowchart and / or block diagram.
[0139] Computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, such that the instructions that execute on the computer or other programmable apparatus can provide a process for implementing the functions / operations specified in the boxes of a flowchart and / or block diagram.
[0140] Furthermore, although the operations of the methods of this disclosure are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in that specific order, or that all of the operations shown must be performed to achieve the desired result. Rather, the steps depicted in the flowcharts may be executed in a different order. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step, and / or one step may be broken down into multiple steps.
[0141] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0142] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0143] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of this disclosure (including the claims) is limited to these examples; within the framework of this disclosure, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of the embodiments of this disclosure as described above, which are not provided in detail for the sake of brevity.
[0144] Additionally, to simplify the description and discussion, and to avoid obscuring the embodiments of this disclosure, the provided drawings may or may not show well-known power / ground connections to integrated circuit (IC) chips and other components. Furthermore, the apparatus may be shown in block diagram form to avoid obscuring the embodiments of this disclosure, and this also takes into account the fact that the details of implementation of these block diagram apparatuses are highly dependent on the platform on which the embodiments of this disclosure will be implemented (i.e., these details should be fully understood by those skilled in the art). While specific details (e.g., circuits) have been set forth to describe exemplary embodiments of this disclosure, it will be apparent to those skilled in the art that the embodiments of this disclosure can be implemented without these specific details or with variations thereof. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0145] Although this disclosure has been described in conjunction with specific embodiments thereof, many substitutions, modifications, and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may be used with the embodiments discussed.
[0146] This disclosure is intended to cover all such substitutions, modifications, and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.
Claims
1. A method for data consistency detection and automatic repair in Internet of Things (IoT) devices, characterized in that, include: In response to receiving a device data consistency check request, first device data of at least one first device in the unified portal system is obtained based on the device data consistency check request; Acquire second device data of at least one second device in the IoT dock and / or device management component; the IoT dock and the device management component are integrated into the unified portal system, and the unified portal system provides a centralized entry point for user operations; Based on the comparison results between the first device data and the second device data, obtain the data inconsistencies and data inconsistency types between the first device and the second device; Based on the data inconsistency type, the first data inconsistency item that can be automatically repaired is obtained from the data inconsistency items, and an automatic repair operation is performed on the device corresponding to the data inconsistency item.
2. The method according to claim 1, characterized in that, Also includes: Configure a scheduled task for device data consistency checks, wherein the scheduled task includes the execution cycle of the device data consistency checks; The device data consistency check is triggered based on the execution cycle, and a device data consistency check request is generated.
3. The method according to claim 1, characterized in that, The data inconsistency types include inconsistencies in the number of devices, inconsistencies in device status, and inconsistencies in device identification. The step of obtaining automatically repairable data inconsistencies from the data inconsistency items based on the data inconsistency type, and performing automatic repair operations on the device corresponding to the first data inconsistency item, includes at least one of the following: In response to the first data inconsistency type being a device quantity inconsistency, a missing third device is identified in the unified portal system, third device information corresponding to the third device is obtained from the IoT dock and / or the device management component, and a device file for the third device is created in the unified portal system based on the third device information; In response to the first data inconsistency type being device status inconsistency, a fourth device with an inconsistent device status is identified in the unified portal system. The fourth device information corresponding to the fourth device is obtained from the IoT dock and / or the device management component, and the device status of the fourth device in the unified portal system is updated based on the fourth device information.
4. The method according to claim 3, characterized in that, The process of creating a device profile for the third device in the unified portal system based on the third device data includes: Determine the device type of the third device; In response to the fact that the device type of the third device is a direct-connect device, the third device information corresponding to the third device is obtained from the IoT dock and / or the device management component, and a device file of the third device is created based on the third device information; In response to the fact that the device type of the third device is a gateway sub-device, the gateway information and the third device information corresponding to the third device are obtained from the IoT dock and / or the device management component, and a device file of the third device is created based on the gateway information and the third device information.
5. The method according to claim 3, characterized in that, The automatic repair operation performed on the device corresponding to the first data inconsistency item includes: Determine the fifth device corresponding to the first data inconsistency item; Obtain the fifth device information in the unified portal system, the sixth device information in the IoT base, and the seventh device information in the device management component; Determine whether the fifth device information, the sixth device information, and the seventh device information are consistent, and update the device status of the fifth device based on the device information with the most consistent data among the fifth device information, the sixth device information, and the seventh device information.
6. The method according to any one of claims 1-5, characterized in that, Also includes: The first device data and the second device data are uploaded to the intermediate data module, which is communicatively connected to the unified portal system, the IoT base, and the device management component. By comparing the data of the first device and the data of the second device through the intermediate data module, the data inconsistencies and data inconsistency types between the first device and the second device are obtained. The intermediate data module obtains the first data inconsistency item that can be automatically repaired from the data inconsistency items, generates an automatic repair request for the device corresponding to the first data inconsistency item, and sends the automatic repair request to at least one of the unified portal system, the IoT base, and the device management component.
7. A data consistency detection and automatic repair device for Internet of Things (IoT) devices, comprising: The first acquisition module is configured to: in response to acquiring a device data consistency check request, acquire first device data of at least one first device in the unified portal system based on the device data consistency check request; The second acquisition module is configured to: acquire second device data of at least one second device in the IoT dock and / or device management component; the IoT dock and the device management component are integrated into the unified portal system and provide a centralized entry point for user operations through the unified portal system; The comparison module is configured to: based on the comparison result between the first device data and the second device data, obtain the data inconsistencies and data inconsistency types between the first device and the second device; The repair module is configured to: obtain a first data inconsistency item that can be automatically repaired from the data inconsistency items based on the data inconsistency type, and perform an automatic repair operation on the device corresponding to the first data inconsistency item.
8. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the Internet of Things device data consistency detection and automatic repair method as described in any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the Internet of Things device data consistency detection and automatic repair method according to any one of claims 1 to 6.
10. A computer program product, characterized in that, It includes computer program instructions that, when executed on a computer, cause the computer to perform the IoT device data consistency detection and automatic repair method as described in any one of claims 1 to 6.