Cleaning Method, Device, Storage Medium and Electronic Device of Intelligent Device System

By automatically obtaining the system operation information of the smart device and performing cleaning operations, the cumbersome problems of manual cleaning are solved, and the automated memory cleaning of the smart device is realized, which improves the operating efficiency and reliability of the equipment.

CN113704198BActive Publication Date: 2025-06-24BOE TECHNOLOGY GROUP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111110951.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-18
Publication Date
2025-06-24
Estimated Expiration
2041-09-18

AI Technical Summary

Technical Problem

Existing smart devices require manual cleaning, which is cumbersome and time-consuming, especially when a large number of devices are used at the same time, which can easily lead to memory congestion or leakage problems.

Method used

The control terminal obtains the system operation information of the device side, and automatically sends cleaning instructions to make the device side perform cleaning operations when the preset cleaning conditions are met.

Benefits of technology

Automatic cleaning of smart devices is realized, saving manual operation time, and preventing memory congestion or leakage problems caused by long-term operation of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113704198B_ABST
    Figure CN113704198B_ABST
Patent Text Reader

Abstract

The present disclosure provides a cleaning method, device, storage medium, and electronic device for an intelligent device system. The method includes: obtaining system operation information of a device end; and when the system operation information meets a preset cleaning condition, sending a cleaning instruction to the device end so that the device end performs a cleaning operation according to the cleaning instruction. In this embodiment, the control terminal continuously obtains the system operation information of the device end, determines whether the specific content represented by the system operation information meets the preset cleaning condition, and when it meets the preset cleaning condition, controls the device end to automatically perform a cleaning operation through a cleaning instruction, without the need for manual control, which facilitates the cleaning of the memory when a large number of electronic devices run for a long time, effectively saves the manual operation time, and prevents memory congestion or leakage problems when the device runs for a long time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of intelligent device control, and particularly to a cleaning method, device, storage medium, and electronic device for an intelligent device system. Background Art

[0002] With the popularization of intelligent devices, various intelligent devices are applied to daily life. Android is a common operating system for various intelligent electronic devices. Especially for intelligent TVs, users can install various applications on the intelligent TV to meet their usage needs. However, due to the memory limitation of intelligent devices, various application programs occupy memory during operation, which easily causes the system to freeze and affects user experience. Therefore, intelligent devices usually have a cleaning function. Users can optimize the system by clearing some programs that do not need to run continuously or garbage files to achieve memory cleaning.

[0003] However, in actual implementation, the cleaning function usually requires manual operation by users. For electronic devices that need to be used for a long time, manual cleaning operations are cumbersome. Especially when there are a large number of electronic devices in the same scenario, a large amount of time is wasted setting up the devices one by one through manual cleaning. If the cleaning operation is not performed, long-running devices are prone to memory congestion or leakage problems. Summary of the Invention

[0004] The purpose of the embodiments of the present disclosure is to provide a cleaning method, device, storage medium, and electronic device for an intelligent device system to solve the problem of cumbersome manual cleaning operations in the prior art.

[0005] The embodiments of the present disclosure adopt the following technical solutions: A cleaning method for an intelligent device system, applied to a control terminal, includes: obtaining system operation information of a device end; and sending a cleaning instruction to the device end when the system operation information meets a preset cleaning condition, so that the device end performs a cleaning operation according to the cleaning instruction.

[0006] In some embodiments, the system operation information at least includes one of the following: the system operation duration of the device end; the memory occupancy information of the device end; the time difference between the execution time of the last cleaning operation and the current time.

[0007] In some embodiments, the preset cleaning condition at least includes one of the following: the system operation duration is greater than a first threshold; the memory occupancy information is greater than a second threshold; the time difference is greater than a third threshold.

[0008] In some embodiments, before obtaining the system operation information of the device end, it further includes: connecting to the device end based on the physical address of the device end; registering a listening process in the service of the device end, so that the device end sends the system operation information in real time.

[0009] In some embodiments, obtaining the system operation information of the device end includes: obtaining the system operation information sent by the device end based on the Message Queuing Telemetry Transport (MQTT) protocol.

[0010] In some embodiments, the programs running on the device end at least include system application programs and / or third-party application programs; when the programs currently running on the device end include system application programs, the cleaning instruction is at least used to instruct the device end to clean the cache files of all system application programs in the background; when the programs currently running on the device end include third-party application programs, the cleaning instruction is at least used to instruct the device end to clean the cache files, temporary databases, and memory files of all third-party application programs in the background.

[0011] In some embodiments, the cleaning instruction is at least used to represent that the device end cleans at least one of invalid installation packages, system junk files, application uninstallation residual files, and files whose file size exceeds a fourth threshold.

[0012] Embodiments of the present disclosure also provide a cleaning device for an intelligent device system, including: an acquisition module, configured to acquire system operation information of a device end; a processing module, configured to send a cleaning instruction to the device end when the system operation information meets a preset cleaning condition, so that the device end performs a cleaning operation according to the cleaning instruction.

[0013] Embodiments of the present disclosure also provide a storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned cleaning method for an intelligent device system are executed.

[0014] Embodiments of the present disclosure also provide an electronic device, at least including a memory and a processor. A computer program is stored on the memory, and when the processor executes the computer program on the memory, the steps of the above-mentioned cleaning method for an intelligent device system are implemented.

[0015] The beneficial effects of the embodiments of the present disclosure are as follows: By continuously obtaining the system operation information of the device end through the control terminal and determining whether the specific content represented by the system operation information meets the preset cleaning conditions, when the preset cleaning conditions are met, the device end is controlled to automatically perform a cleaning operation through a cleaning instruction, without manual control, which is convenient for cleaning the memory when a large number of electronic devices run for a long time, effectively saving manual operation time and preventing memory congestion or leakage problems when the device runs for a long time. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the drawings required in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments recorded in the present disclosure. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0017] Figure 1 It is a flowchart of the cleaning method for the intelligent device system in the first embodiment of the present disclosure;

[0018] Figure 2 It is a schematic structural diagram of the cleaning method for the intelligent device system in the second embodiment of the present disclosure;

[0019] Figure 3 It is another schematic structural diagram of the cleaning method for the intelligent device system in the second embodiment of the present disclosure;

[0020] Figure 4 It is a schematic structural diagram of the electronic device in the fourth embodiment of the present disclosure;

[0021] Figure 5 It is a schematic diagram of the communication between the control terminal and the device terminal in the fourth embodiment of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0022] Reference is made herein to the various aspects and features of the present disclosure with reference to the drawings.

[0023] It should be understood that various modifications can be made to the embodiments claimed herein. Accordingly, the above specification should not be construed as limiting, but merely as exemplifying the embodiments. Those skilled in the art will envision other modifications within the scope and spirit of the present disclosure.

[0024] The drawings included in and forming a part of this specification illustrate embodiments of the present disclosure and, together with the general description of the present disclosure given above and the detailed description of the embodiments given below, serve to explain the principles of the present disclosure.

[0025] These and other features of the present disclosure will become apparent from the following description of the preferred forms of the embodiments given by way of non - limiting example with reference to the drawings.

[0026] It should also be understood that although the present disclosure has been described with reference to some specific examples, those skilled in the art can surely implement many other equivalent forms of the present disclosure, which have the features as claimed and thus are all within the scope defined hereby.

[0027] When combined with the accompanying drawings, the above and other aspects, features, and advantages of the present disclosure will become more apparent in view of the following detailed description.

[0028] Specific embodiments of the present disclosure will be described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments claimed are merely examples of the present disclosure and can be implemented in various ways. Well-known and / or repetitive functions and structures are not described in detail to avoid obscuring the present disclosure with unnecessary or redundant details. Therefore, the specific structural and functional details claimed herein are not intended to be limiting, but rather are merely a basis and representative basis for the claims to teach those skilled in the art to use the present disclosure in substantially any suitable detailed structure in a variety of ways.

[0029] This specification may use the phrases "in one embodiment", "in another embodiment", "in yet another embodiment", or "in other embodiments", each of which may refer to one or more of the same or different embodiments according to the present disclosure.

[0030] With the popularization of smart devices, various smart devices are applied to daily life. Android is a common operating system for various smart electronic devices, especially for smart TVs. Users can install various applications on smart TVs to meet their usage needs. However, due to the memory limitation of smart devices, various application programs occupying memory during operation can easily cause the system to freeze, affecting user experience. Therefore, smart devices usually have a cleaning function. Users can optimize the system by clearing some programs that do not need to run continuously or junk files to achieve memory cleaning.

[0031] During the use of smart TVs based on the Android system, especially when media is displayed through a large number of large-sized TV devices in important exhibitions, conferences, etc., long-time playback of high-quality pictures or videos can easily cause problems such as memory leakage in TV devices. At this time, if manual cleaning settings are made for each TV device, it will waste a lot of time and manpower. Even if automatic cleaning can be achieved to a certain extent through timed cleaning settings, the process of setting for each device also requires a lot of time.

[0032] To solve the above problems, this embodiment provides a cleaning method for a smart device system, which can be implemented through a control terminal independent of the smart device, and the control terminal is used to monitor and control the smart device to achieve automatic cleaning operations of the smart device, especially suitable for scenarios where a large number of smart devices running for a long time need to be cleaned simultaneously. The flowchart of the cleaning method for the smart device system is as Figure 1 shown, which mainly includes steps S10 and S20:

[0033] S10. Obtain the system running information of the device side.

[0034] The device side is the intelligent device that needs to perform system cleaning, which can be an intelligent TV, an intelligent watch, a computer, a smart phone or other devices with an operating system. The control terminal is a web-based access terminal, which can be a terminal with network communication and processing functions such as a mobile phone, a computer, a server, etc. When the device side is running, as the running time increases, junk files such as cache files, uninstallation residual files, and invalid files are continuously generated. The continuous generation of these files will occupy the device memory and affect the running smoothness of the application programs in the device. The system running information can, to a certain extent, reflect the generation situation of junk files on the current device side and be used as the basis for whether to perform the cleaning operation. For example, in this embodiment, the system running information at least includes any one or more of the following: the system running duration of the device side, that is, the cumulative duration from the current boot of the device side to the current time; the memory occupancy information of the device side; the time difference between the execution time of the last cleaning operation and the current time. In addition, the system running information can also include the life cycle of the application programs running in the device side, and the control terminal will instruct the device side to perform different cleaning operations according to the different life cycles of the application programs.

[0035] The above system running information is obtained by the listening process registered in the service of the device side. Specifically, before the control terminal obtains the system running information of the device side, a connection with the device side is first established. The connection method adopted in this embodiment is to input the unique physical address (MAC address) of the device side in the control terminal. When the two are in the same IP network segment or connected to the same network, the connection between the control terminal and the device side can be realized. Further, the control terminal and the device side communicate through the Internet of Things (IoT) service. There is a DMA (Direct Memory Access) system service in the device side that maintains a long connection state. By invoking the DMA service, the device side and the control terminal can realize information intercommunication through the MQTT (Message Queuing Telemetry Transport) protocol under the IoT service framework, while the control terminal connects to the IoT service through the http protocol.

[0036] After the control terminal is connected to the device terminal, the control terminal can instruct the device terminal to register a listening process in its own service through the MQTT protocol, so as to realize real-time monitoring of its own system operation status, and send its own system operation information to the control terminal. Specifically, the control terminal instructs the device terminal to indirectly obtain the ActivityManagerService service through the ActivityMangerNative process, and then reversely registers the IProcessObserver process as a listening process in the ActivityManagerService service to monitor the life cycle or memory occupancy of all applications currently running on the device, and can also correspondingly determine the system operation duration of the device or the time difference between the execution time of the last cleaning operation and the current time.

[0037] S20, when the system operation information meets the preset cleaning conditions, send a cleaning instruction to the device terminal so that the device terminal performs a cleaning operation according to the cleaning instruction.

[0038] The preset cleaning conditions refer to the conditions preset by the control terminal for instructing the device terminal to perform a cleaning operation, which can be set and adjusted according to the system operation information uploaded by the device terminal. In some embodiments, the preset cleaning conditions at least include any one or more of the following:

[0039] (1) The system operation duration is greater than the first threshold;

[0040] The system operation duration represents the cumulative boot duration of the device terminal from the current boot time to the time when the current system operation information is reported. Since the memory occupancy will increase with the time of the system boot operation, after the system operation duration exceeds a certain duration, it can be determined that the memory occupancy of the device terminal exceeds a certain threshold. At this time, a cleaning operation may be required to prevent memory congestion or leakage. It should be noted that the first threshold can be set according to the actual situation. For different device terminals, they may have different memory sizes, so different first thresholds can also be correspondingly set.

[0041] (2) The memory occupancy information is greater than the second threshold;

[0042] The listening process can directly monitor the memory occupancy of the device terminal and form memory occupancy information to send to the control terminal; the control terminal can directly control the device terminal to perform cleaning when the memory occupancy information is greater than the second threshold according to the current memory occupancy of the device terminal. Similarly, the second threshold can also be flexibly set according to actual needs and differences between device terminals, and this embodiment does not limit it.

[0043] (3) The time difference is greater than the third threshold;

[0044] The time difference is the difference between the execution time of the last cleaning operation and the current time. Similar to the system running time, when the cleaning operation has not been performed for a long time, the memory occupancy on the device side will increase over time. Therefore, a third threshold is correspondingly set. When the above time difference exceeds the third threshold, the device side is controlled to perform cleaning. Similarly, the third threshold can also be flexibly set according to actual requirements and differences between device sides, which is not limited in this embodiment.

[0045] It should be understood that any one of the above preset cleaning conditions can be selected for use in actual use, or multiple can be set. When the system running information fed back by the device side meets any one of them, it is determined that the device side needs to be cleaned.

[0046] In addition, when any one control terminal is connected to the device side through the IoT service, it can connect multiple device sides at the same time, continuously obtain the system running information of its own sent by multiple device sides, and based on the preset cleaning conditions, perform independent device control according to the different system running situations of each device side. It should be noted that when a control terminal connects and controls multiple device sides, the preset cleaning conditions set by it can be independently set according to different device sides. However, in general, for the convenience of setting, the same preset cleaning conditions can be set for all device sides. When the system running information of any one device side meets the preset cleaning conditions, a cleaning instruction can be issued for that device side.

[0047] Specifically, the cleaning instruction issued by the control side is used to instruct the device side to clean up garbage files; after receiving the cleaning instruction, the device side cleans up background application programs based on the killBackgroundProcesses() method. In some embodiments, the programs running on the device side at least include system application programs and / or third-party application programs. For system application programs, they are usually the basic application programs that support the services of the device side. Randomly killing system application programs may cause the functions of the device side to fail, etc. Therefore, when the programs currently running on the device side include system application programs, the cleaning instruction issued by the control terminal is used to instruct the device side to clean up the cache files of all background system application programs, and it is not necessary to completely kill the service processes of the background system application programs; for third-party application programs, they are all application programs used by the device side to implement extended functions. When they are running in the background, users cannot interact with them, but they also occupy memory space during the running process. Therefore, when the programs currently running on the device side include third-party application programs, the cleaning instruction issued by the control terminal is used to instruct the device side to clean up the cache files, temporary databases, memory files, etc. of all background third-party application programs, or directly instruct the device side to kill all the processes of background third-party application programs to achieve memory release.

[0048] It should be noted that the control terminal can mark and distinguish system applications and third-party applications through tag values, which is convenient for issuing cleaning instructions. In actual operation, the system applications or third-party applications can also be distinguished according to the fields used to represent their own types or names in the application. This embodiment does not limit the specific differentiation method.

[0049] In some embodiments, the control terminal can also determine the applications running in the background on the current device end through the life cycle of the applications running on the device end. Among them, the life cycle of the application mainly includes: running state (Resumed), paused state (Paused), and stopped state (Stopped). When the application is in the running state, it means that the application is in the foreground and the user can interact with it; when the application is in the paused state, it means that the application is running but the user cannot interact with it. At this time, the application also occupies memory and may generate garbage files. When the application in the paused state switches from the background to the foreground, its life cycle switches to the running state, and the original application in the foreground is suspended and switched to the paused state; when the application is in the stopped state, the application is not running. Therefore, when cleaning, only the cache files or processes related to the applications in the paused state need to be cleaned. For the applications in the running state, cleaning operations may cause errors in the functions that the user is interacting with. For the applications in the stopped state, no cache files are generated and no cleaning is required.

[0050] In some embodiments, the cleaning instruction is also used to instruct the device end to clean at least one of the following data: invalid installation packages, system garbage files (logs, thumbnails, empty folders, etc.), application uninstallation residual files, files whose file size exceeds the fourth threshold (i.e., large files), and can also clean the garbage files stored in the extended SD data card installed on the device end or other files or data that affect the smooth operation of the device end system. This embodiment does not make specific limitations.

[0051] In some embodiments, the control terminal can also manage the device end, such as power on / off, sending information services, pop-up windows, remote upgrade, advertising investment, information input, etc. This embodiment does not make limitations.

[0052] In this embodiment, the control terminal continuously obtains the system operation information of the device terminal, and determines whether the specific content represented by the system operation information meets the preset cleaning conditions. When the preset cleaning conditions are met, the cleaning operation is automatically executed on the device terminal through a cleaning instruction, without manual control, which is convenient for cleaning the memory when a large number of electronic devices run for a long time, effectively saving manual operation time and preventing memory congestion or leakage problems when the device runs for a long time.

[0053] The second embodiment of the present disclosure provides a cleaning device for an intelligent device system. The cleaning device can be connected to multiple device terminals as an independent control device and manage and control the device terminals. Figure 2 The structural schematic diagram of the cleaning device for the intelligent device system is shown, which mainly includes an acquisition module 10 and a processing module 20. Among them, the acquisition module 10 is used to obtain the system operation information of the device terminal; the processing module 20 is used to send a cleaning instruction to the device terminal when the system operation information meets the preset cleaning conditions, so that the device terminal executes a cleaning operation according to the cleaning instruction.

[0054] Specifically, the system operation information includes at least one of the following: the system operation duration of the device terminal; the memory occupancy information of the device terminal; the time difference between the time when the last cleaning operation was executed and the current time. Correspondingly, the preset cleaning conditions include at least one of the following: the system operation duration is greater than a first threshold; the memory occupancy information is greater than a second threshold; the time difference is greater than a third threshold.

[0055] In some embodiments, the cleaning device further includes a connection module 30, as Figure 3 shown, the connection module 30 is used to connect to the device terminal based on the physical address of the device terminal; register a listening process in the service of the device terminal so that the device terminal can send system operation information in real time.

[0056] In some embodiments, the acquisition module 10 is specifically used to obtain the system operation information sent by the device terminal based on the Message Queuing Telemetry Transport protocol.

[0057] In some embodiments, the programs running on the device terminal include at least system application programs and / or third-party application programs; when the system application programs are included in the programs currently running on the device terminal, the cleaning instructions issued by the processing module 20 are at least used to instruct the device terminal to clean the cache files of all system application programs in the background; when the third-party application programs are included in the programs currently running on the device terminal, the cleaning instructions issued by the processing module 20 are at least used to instruct the device terminal to clean the cache files, temporary databases, and memory files of all third-party application programs in the background.

[0058] In some embodiments, the cleaning instruction issued by the processing module 20 is at least used to represent at least one of cleaning invalid installation packages, system junk files, application uninstallation residual files, and files whose file size exceeds a fourth threshold on the device side.

[0059] In this embodiment, the cleaning device continuously obtains the system operation information of the device side, and determines whether the specific content represented by the system operation information meets the preset cleaning conditions. When the preset cleaning conditions are met, the cleaning instruction is used to control the device side to automatically perform a cleaning operation without manual control, which is convenient for cleaning the memory during the long-term operation of a large number of electronic devices, effectively saving manual operation time and preventing memory congestion or leakage problems caused by the long-term operation of the device.

[0060] The third embodiment of the present disclosure provides a storage medium that can be installed in a terminal serving as a control device in the Internet of Things. Specifically, it is a computer-readable medium storing a computer program. When the computer program is executed by a processor, it implements the method provided in any embodiment of the present disclosure, including the following steps S31 and S32:

[0061] S31, obtain the system operation information of the device side;

[0062] S32, when the system operation information meets the preset cleaning conditions, send a cleaning instruction to the device side so that the device side performs a cleaning operation according to the cleaning instruction.

[0063] Specifically, the system operation information includes at least one of the following: the system operation duration of the device side; the memory occupancy information of the device side; the time difference between the time when the last cleaning operation was executed and the current time. The preset cleaning conditions include at least one of the following: the system operation duration is greater than a first threshold; the memory occupancy information is greater than a second threshold; the time difference is greater than a third threshold.

[0064] Before the computer program is executed by the processor to obtain the system operation information of the device side, the processor also executes the following steps: connect to the device side based on the physical address of the device side; register a listening process in the service of the device side so that the device side can send system operation information in real time.

[0065] When the computer program is executed by the processor to obtain the system operation information of the device side, the processor specifically executes the following steps: obtain the system operation information sent by the device side based on the Message Queuing Telemetry Transport protocol.

[0066] Specifically, the programs running on the device side at least include system applications and / or third-party applications; when the programs currently running on the device side include system applications, the cleaning instruction is at least used to instruct the device side to clean the cache files of all system applications in the background; when the programs currently running on the device side include third-party applications, the cleaning instruction is at least used to instruct the device side to clean the cache files, temporary databases, and memory files of all third-party applications in the background.

[0067] Specifically, the cleaning instruction is also used to represent that the device side cleans at least one of invalid installation packages, system junk files, application uninstallation residue files, and files whose file size exceeds the fourth threshold.

[0068] In this embodiment, the control terminal continuously obtains the system operation information of the device side and determines whether the specific content represented by the system operation information meets the preset cleaning conditions. When the preset cleaning conditions are met, the device side is controlled to automatically perform a cleaning operation through the cleaning instruction, without manual control, which is convenient for cleaning the memory when a large number of electronic devices run for a long time, effectively saving manual operation time and preventing memory congestion or leakage problems when the device runs for a long time.

[0069] The fourth embodiment of the present disclosure provides an electronic device, which can be used as a control device for the device side in the Internet of Things. The schematic structural diagram is as Figure 4 shown, and at least includes a memory 100 and a processor 200. A computer program is stored on the memory 100, and the processor 200 implements the method provided in any embodiment of the present disclosure when executing the computer program on the memory 100. Exemplarily, the computer program steps of the electronic device are as follows S41 and S42:

[0070] S41, obtain the system operation information of the device side;

[0071] S42, when the system operation information meets the preset cleaning conditions, send a cleaning instruction to the device side so that the device side performs a cleaning operation according to the cleaning instruction.

[0072] Specifically, the system operation information at least includes one of the following: the system operation duration of the device side; the memory occupancy information of the device side; the time difference between the time when the last cleaning operation was executed and the current time. The preset cleaning conditions at least include one of the following: the system operation duration is greater than the first threshold; the memory occupancy information is greater than the second threshold; the time difference is greater than the third threshold.

[0073] Before the processor executes the computer program for obtaining the system operation information of the device side stored on the memory, it also executes the following computer program: connect to the device side based on the physical address of the device side; register a listening process in the service of the device side so that the device side can send system operation information in real time.

[0074] When the processor executes the computer program for obtaining the system operation information of the device end stored in the memory, it specifically executes the following: Obtain the system operation information sent by the device end based on the Message Queuing Telemetry Transport (MQTT) protocol.

[0075] Specifically, the programs running on the device end at least include system application programs and / or third-party application programs; in the case where the system application program is included in the programs currently running on the device end, the cleaning instruction is at least used to instruct the device end to clean the cache files of all system application programs in the background; in the case where the third-party application program is included in the programs currently running on the device end, the cleaning instruction is at least used to instruct the device end to clean the cache files, temporary databases, and memory files of all third-party application programs in the background.

[0076] Specifically, the cleaning instruction is also used to represent that the device end cleans at least one of invalid installation packages, system junk files, application uninstallation residue files, and files whose file size exceeds the fourth threshold.

[0077] In this embodiment, the control terminal continuously obtains the system operation information of the device end and determines whether the specific content represented by the system operation information meets the preset cleaning conditions. In the case where the preset cleaning conditions are met, the device end is controlled to automatically execute the cleaning operation through the cleaning instruction, without manual control, which is convenient for cleaning the memory during the long-term operation of a large number of electronic devices, effectively saving the manual operation time and preventing memory congestion or leakage problems during the long-term operation of the device.

[0078] Figure 5 Shows a communication schematic diagram between the control terminal and the device end. As Figure 5 shown, the control terminal communicates with the IoT service through the http service, and the IoT service communicates with the DMA service in the device end through the MQTT protocol to obtain the specific running status of the device end application programs, forms the system operation information, and feeds it back to the MQTT message forwarder (MQTT Broker) in the IoT service through the MQTT protocol. The IoT service then sends the system operation information to the control end through the web service for processing.

[0079] The above has described multiple embodiments of the present disclosure in detail, but the present disclosure is not limited to these specific embodiments. Those skilled in the art can make various variations and modifications to the embodiments based on the concept of the present disclosure, and these variations and modifications should all fall within the scope of protection required by the present disclosure.

Claims

1. A cleaning method for an intelligent device system, applied to a control terminal, characterized in that, Including: Obtaining the system operation information of the device end; When the system operation information meets the preset cleaning conditions, sending a cleaning instruction to the device end so that the device end performs a cleaning operation according to the cleaning instruction; Before obtaining the system operation information of the device end, it further includes: Connecting based on the physical address of the device end; Registering a listening process in the service of the device end so that the device end sends the system operation information in real time; The obtaining of the system operation information of the device end includes: Obtaining the system operation information sent by the device end based on the Message Queuing Telemetry Transport protocol; A control terminal connects to multiple device ends through the IoT service, continuously obtains the system operation information of its own sent by the multiple device ends, and performs independent device control based on the preset cleaning conditions according to the different system operation conditions of each device end; After the control terminal and the device end are connected, the control terminal can instruct the device end to register a listening process in its own service through the MQTT protocol to realize real-time monitoring of its own system operation situation, and send its own system operation information to the control terminal; the control terminal instructs the device end to indirectly obtain the ActivityManagerService service through the ActivityMangerNative process, and then reversely registers the IProcessObserver process as a listening process in the ActivityManagerService service; The control terminal communicates with the device end through the Internet of Things service. The device end has a DMA system service that maintains a long connection state, and through the invocation of the DMA service, information interchange between the device end and the control terminal is realized through the MQTT protocol under the IoT service framework, and the control terminal connects to the IoT service through the http protocol.

2. The cleaning method according to claim 1, wherein The system operation information includes at least one of the following: The system operation duration of the device end; The memory occupancy information of the device end; The time difference between the time when the last cleaning operation was executed and the current time.

3. The cleaning method according to claim 2, wherein The preset cleaning conditions include at least one of the following: The system operation duration is greater than a first threshold; The memory occupancy information is greater than a second threshold; The time difference is greater than a third threshold.

4. The cleaning method according to claim 1, characterized in that, The programs running on the device end include at least system application programs and / or third-party application programs; When the programs currently running on the device end include system application programs, the cleaning instruction is at least used to instruct the device end to clean the cache files of all system application programs in the background; When the programs currently running on the device end include third-party application programs, the cleaning instruction is at least used to instruct the device end to clean the cache files, temporary databases, and memory files of all third-party application programs in the background; 5. The cleaning method according to any one of claims 1 to 4, characterized in that, The cleaning instruction is at least used to represent that the device end cleans at least one of invalid installation packages, system junk files, application uninstallation residual files, and files with a file size exceeding a fourth threshold.

6. A cleaning device for an intelligent device system, characterized in that, Including: An obtaining module, configured to obtain the system operation information of the device end; A processing module, configured to send a cleaning instruction to the device side when the system operation information of the system meets a preset cleaning condition, so that the device side performs a cleaning operation according to the cleaning instruction; Before obtaining the system operation information of the device side, it further includes: Connecting based on the physical address of the device side; Registering a listening process in the service of the device side, so that the device side sends the system operation information in real time; Obtaining the system operation information of the device side includes: Obtaining the system operation information sent by the device side based on the Message Queuing Telemetry Transport protocol; A control terminal connects to multiple device sides through the IoT service, continuously obtains the system operation information of its own sent by the multiple device sides, and performs independent device control based on the preset cleaning condition according to the different system operation situations of each device side; After the control terminal and the device side are connected, the control terminal can instruct the device side to register a listening process in its own service through the Message Queuing Telemetry Transport protocol, realize real-time monitoring of its own system operation situation, and send its own system operation information to the control terminal; the control terminal instructs the device side to indirectly obtain the ActivityManagerService service through the ActivityMangerNative process, and then reversely registers the IProcessObserver process as a listening process in the ActivityManagerService service; The control terminal communicates with the device side through the Internet of Things service. The device side has a DMA system service that maintains a long connection state, and through the call of the DMA service, the device side and the control terminal realize information intercommunication through the MQTT protocol under the IoT service framework, and the control terminal connects to the IoT service through the http protocol.

7. A storage medium stores a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the cleaning method of the intelligent device system according to any one of claims 1 to 5.

8. An electronic device, at least comprising a memory and a processor, wherein a computer program is stored on the memory, characterized in that, When the processor executes the computer program on the memory, it implements the steps of the cleaning method of the intelligent device system according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Data cleaning method, apparatus and system

    CN105224408A

  • Automatic optimization system and method of intelligent television system

    CN105472459A