CN-118860262-B - Cloud data cleaning method and device, storage medium and cloud server
Abstract
The application discloses a cloud data cleaning method, a cloud data cleaning device, a storage medium and a cloud server, wherein when offline equipment exists in an equipment set, first equipment information and second equipment information of all equipment in the equipment set are determined, whether all the offline equipment is invalid equipment is judged based on the first equipment information and the second equipment information, and if so, invalid equipment data corresponding to all the invalid equipment is cleaned. Because all connected devices can be recorded in the cloud server, and modification, deletion and the like can exist in the actual devices in the device unit, when offline devices exist, whether the offline devices are invalid devices can be accurately judged by comparing the actual information in the device unit with the device information recorded in the cloud server, invalid device data of the invalid devices are further and directly cleaned, the device information accuracy in the cloud server is automatically calibrated, the labor checking and correcting cost is reduced, and the use of the subsequent device unit in the Internet of things is facilitated.
Inventors
- HUANG JUNCAI
- YI DEBO
- LUO QIYIN
- WANG MINGREN
Assignees
- 合肥美的暖通设备有限公司
- 广东美的暖通设备有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20230428
Claims (8)
- 1. The cloud data cleaning method is characterized by being applied to a cloud server, and comprises the following steps: When at least one offline device in a device unit is monitored, determining first device information and second device information of all devices in the device unit, wherein the first device information is actual connection information of all real devices in the device unit, and the second device information is address identification information of all devices recorded in the cloud server; Judging whether all off-line devices are invalid devices or not based on the first device information and the second device information; If all the off-line devices are invalid devices, clearing invalid device data corresponding to each invalid device; the determining, based on the first device information and the second device information, whether all offline devices are invalid devices includes: comparing the first equipment number corresponding to the first equipment information with the second equipment number corresponding to the second equipment information; if the difference value between the first equipment number and the second equipment number is equal to the offline equipment number of all the offline equipment, determining that all the offline equipment is invalid equipment; After comparing the first equipment number corresponding to the first equipment information with the second equipment number corresponding to the second equipment information, the method further comprises: if the difference value between the first equipment number and the second equipment number is not equal to the offline equipment number of all the offline equipment, determining that effective equipment exists in all the offline equipment; And judging the validity of each off-line device, and when at least one invalid device exists in all off-line devices, determining each invalid device and clearing the invalid device data corresponding to each invalid device.
- 2. The method of claim 1, wherein prior to the monitoring of the presence of at least one off-line device in the equipment set, further comprising: and receiving equipment operation data corresponding to each piece of equipment reported by the equipment unit according to a preset frequency, and monitoring whether offline equipment exists in the equipment unit or not based on the equipment operation data.
- 3. The method of claim 2, wherein the device operational data comprises at least one of device sensory data, device control data, device status data.
- 4. The method of claim 2, wherein the monitoring the equipment unit for the presence of offline equipment based on the equipment operation data comprises: When the target equipment without equipment operation data exists in the equipment unit, recording the continuous unreported times of the target equipment; And if the continuous unreported times meet a preset continuous times threshold, marking the target equipment as off-line equipment.
- 5. The method according to claim 1, wherein the invalid device data at least includes address identification information corresponding to each invalid device in the cloud server.
- 6. Cloud data cleaning device, characterized in that is applied to cloud server, and the device includes: The state monitoring module is used for determining first equipment information and second equipment information of all equipment in the equipment set when at least one offline equipment exists in the equipment set, wherein the first equipment information is actual connection information of all real equipment in the equipment set, and the second equipment information is address identification information of all equipment recorded in the cloud server; The device checking module is used for judging whether all off-line devices are invalid devices or not based on the first device information and the second device information; The data cleaning module is used for cleaning invalid equipment data corresponding to all the invalid equipment if all the offline equipment is the invalid equipment; The device inspection module is further used for comparing the first device number corresponding to the first device information with the second device number corresponding to the second device information, and determining that all offline devices are invalid devices if the difference value between the first device number and the second device number is equal to the offline device number of all offline devices; And the invalid equipment determining module is used for determining that valid equipment exists in all the offline equipment if the difference value between the first equipment number and the second equipment number is not equal to the offline equipment number of all the offline equipment, judging the validity of each offline equipment, and determining each invalid equipment and clearing invalid equipment data corresponding to each invalid equipment when at least one invalid equipment exists in all the offline equipment.
- 7. A computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the steps of the method according to any one of claims 1 to 5.
- 8. A cloud server comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method according to any one of claims 1 to 5 when the program is executed.
Description
Cloud data cleaning method and device, storage medium and cloud server Technical Field The application relates to the technical field of control of the internet of things, in particular to a cloud data cleaning method, a cloud data cleaning device, a storage medium and a cloud server. Background With the development of the internet of things technology, various common machine equipment can receive and respond instructions through an internet of things access network, so that a user can conveniently and intensively control a plurality of equipment in a unified way through the network. As the equipment is only accessed to the centralized control system, the equipment information of the equipment can be cached in the cloud server, and the cloud server can not clear the equipment information, so that part of the equipment information can remain in the cloud server after being invalid. Therefore, in order to ensure the correctness and accuracy of the device information in the cloud, invalid device information needs to be cleaned in time by a cloud data cleaning method. Disclosure of Invention The application provides a cloud data cleaning method, a cloud data cleaning device, a storage medium and a cloud server, which can solve the technical problems of redundancy of invalid cloud data and inaccurate equipment information in the related technology. In a first aspect, an embodiment of the present application provides a cloud data cleaning method, which is applied to a cloud server, and the method includes: When at least one offline device in a device unit is monitored, determining first device information and second device information of all devices in the device unit, wherein the first device information is actual connection information of all devices in the device unit, and the second device information is address identification information of all devices recorded in the cloud server; Judging whether all off-line devices are invalid devices or not based on the first device information and the second device information; And if all the off-line devices are invalid devices, clearing invalid device data corresponding to each invalid device. In a second aspect, an embodiment of the present application provides a cloud data cleaning device, applied to a cloud server, where the device includes: The state monitoring module is used for determining first equipment information and second equipment information of all equipment in the equipment set when at least one offline equipment exists in the equipment set, wherein the first equipment information is actual connection information of all equipment in the equipment set, and the second equipment information is address identification information of all equipment recorded in the cloud server; The device checking module is used for judging whether all off-line devices are invalid devices or not based on the first device information and the second device information; And the data cleaning module is used for cleaning invalid equipment data corresponding to each invalid equipment if all the offline equipment is the invalid equipment. In a third aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the steps of the method described above. In a fourth aspect, embodiments of the present application provide a cloud server comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program being adapted to be loaded by the processor and to perform the steps of the method described above. The technical scheme provided by the embodiments of the application has the beneficial effects that at least: The application provides a cloud data cleaning method, which is applied to a cloud server, when at least one off-line device in a device unit is monitored, first device information and second device information of all devices in the device unit are determined, the first device information is actual connection information of all devices in the device unit, the second device information is address identification information of all devices recorded in the cloud server, whether all off-line devices are invalid devices is judged based on the first device information and the second device information, and invalid device data corresponding to all invalid devices is cleaned if all off-line devices are invalid devices. Because address information of all connected devices can be recorded in the cloud server, and modification, deletion and the like can exist in actual devices in the device unit, when the cloud server monitors that offline devices exist, whether the offline devices are invalid devices in an actual scene can be accurately judged by comparing the actual connection information in the device unit with the device address information recorded in the cloud server, invalid device data of the invalid devices in the cloud s