Method for determining an abnormal type of a display component of a smart terminal, smart terminal, air purifier, device and medium
Patent Information
- Application Number
- CN202611233372.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-14
- Publication Date
- 2026-09-25
AI Technical Summary
传统技术中,当显示部件出现异常时,显示部件会进行异常复位,显示部件进行异常部位后,存储器中存储的智能终端的运行信息会出现丢失,使得显示部件的异常分类依赖于人工测试的方式,而由于缺乏显示部件异常前的运行信息,导致异常排查过程所需耗费的时间较多,因此,亟需一种在显示部件异常时提高异常类型确定效率的方式
[0063]在检测到表征显示部件存在异常风险的显示部件异常信息的情况下,获取显示部件异常前的至少一次智能终端的运行信息并存储至预设存储区内;
Smart Images

Figure CN122813338A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal control technology, and in particular to a method for determining the abnormality type of a display component of a smart terminal, a smart terminal, an electronic device, an air purifier, a computer-readable storage medium, and a computer program product. Background Technology
[0002] With the application of smart terminal technology, in order to improve the intelligence level of smart terminals, display components are usually equipped to enable human-computer interaction between smart terminals and users.
[0003] In practical applications, display components exhibit probabilistic and occasional anomalies. In traditional technologies, when a display component malfunctions, it undergoes an abnormal reset. After this reset, the operational information of the smart terminal stored in the memory is lost. This makes the classification of display component anomalies reliant on manual testing. Furthermore, the lack of operational information prior to the anomaly results in a lengthy troubleshooting process. Therefore, there is an urgent need for a method to improve the efficiency of anomaly type determination when a display component malfunctions. Summary of the Invention
[0004] Based on this, it is necessary to provide a method for determining the abnormality type of a display component in a smart terminal, as well as a smart terminal, an air purifier, an electronic device, a computer-readable storage medium, and a computer program product, which can improve the efficiency of determining the abnormality type of the display component.
[0005] Firstly, this application provides a method for determining the anomaly type of a display component in a smart terminal. Applied to a display component controller, the method includes:
[0006] The system acquires operational information from smart terminals on a periodic basis, using the first time period as the basis.
[0007] If abnormal information indicating a risk of abnormality in the display component is detected, the operation information of the smart terminal at least once before the abnormality is detected is obtained and stored in a preset storage area.
[0008] In response to an abnormal reset of the display component, the abnormality type of the display component is determined based on the latest operational information acquired in the preset storage area.
[0009] Thus, when abnormal information indicating a potential risk of display component malfunction is detected in the display component of the smart terminal, it indicates that the display component may undergo an abnormal reset, enabling early warning of such a reset. Upon receiving this warning, at least one instance of the smart terminal's operational information prior to the display component malfunction is retrieved. This allows for the acquisition of more recent operational information, ensuring that the more recent information closely approximates the operational information of the smart terminal before the display component malfunction. Considering that the operational information of the smart terminal will be lost during an abnormal reset, a preset storage area is additionally set up to store the operational information. This allows for the identification of the abnormal type based on the most recently acquired operational information in the preset storage area when the display component undergoes an abnormal reset. Since the most recently acquired operational information in the preset storage area is closer to the operational information at the time of the display component malfunction, using this information as the basis for determining the abnormal type improves the efficiency of identifying the abnormal type of the smart terminal's display component.
[0010] In one embodiment, obtaining at least one instance of the smart terminal's operational information prior to the display component malfunction includes:
[0011] Shorten the first time period to obtain the second time period;
[0012] The second time period is used to acquire the operation information of the smart terminal periodically.
[0013] Thus, when display component abnormality information indicating a risk of abnormality is detected, it means that the display component may malfunction at any time after the detection of such information. Therefore, by shortening the first time period, the frequency of acquiring the smart terminal's operating information is increased, so that the time of the latest acquisition of operating information is close to the time when the display component malfunctions. The latest acquired operating information is the control type of the display component's operation after the abnormal reset of the display component. Therefore, the accuracy of determining the abnormality type of the display component is improved.
[0014] In one embodiment, the method further includes:
[0015] If the amount of information stored in the preset storage area exceeds the preset information threshold, the earliest obtained running information in the preset storage area will be overwritten and stored based on the latest obtained running information.
[0016] If the amount of information stored in the preset storage area does not exceed the preset information threshold, the latest acquired running information will be stored in the preset storage area.
[0017] Therefore, considering the limited storage capacity of the preset storage area, whenever the latest acquired running information is detected, if the amount of information stored in the preset storage area is greater than the preset information threshold, the earliest acquired running information in the preset storage area is overwritten and stored based on the latest acquired running information; if the amount of information stored in the preset storage area is not greater than the preset information threshold, it is stored directly, so that the preset storage area can always store the latest acquired running information, thereby improving the accuracy of running information storage.
[0018] In one embodiment, the anomaly type of the display component is determined based on the latest operational information acquired in a preset storage area, including:
[0019] If the latest obtained running information in the preset storage area is invalid, the abnormality type of the display component is determined to be an unknown abnormality type.
[0020] If the latest obtained running information in the preset storage area is valid, then the abnormal type of the display component is determined based on at least one of the following: refresh function information, software status information, memory usage information, processing thread information, and communication information in the latest obtained running information in the preset storage area.
[0021] Thus, when a display component malfunctions, it may still be able to store operational information. Therefore, this operational information might become invalid. If the most recently acquired operational information from the preset storage area is used to classify the malfunction, the classification might be inaccurate. Therefore, when the most recently acquired operational information from the preset storage area is invalid, the malfunction type of the display component is determined to be an unknown malfunction type. To ensure the accuracy of malfunction classification, some efficiency can be sacrificed by marking it as an unknown malfunction type for manual testing and troubleshooting. Conversely, when the most recently acquired operational information from the preset storage area is valid, the malfunction type is determined directly based on at least one of the following: refresh function information, software status information, memory usage information, processing thread information, and communication information. This ensures the efficiency of determining the malfunction type of the display component.
[0022] In one embodiment, the anomaly type of the display component is determined based on at least one of the following: refresh function information, software status information, memory usage information, processing thread information, and communication information, from the latest runtime information acquired in the preset storage area:
[0023] Based on the refresh function information in the latest obtained running information in the preset storage area, identify the lag information of the display component;
[0024] Based on the software status information and the lag interface information in the latest obtained running information in the preset storage area, the software usage information of the display component is identified;
[0025] Based on at least one of the memory usage information, processing thread information, and communication information from the latest obtained running information in the preset storage area, as well as the software usage information, the display component is classified into anomalies to obtain an anomaly type.
[0026] Thus, since refresh function information is used to characterize the refresh action of the display component, the refresh function information in the latest acquired running information can be used to identify the lag information of the display component. This allows for the identification of software usage information by combining the software status information and lag information in the latest acquired running information. At least one of the memory usage information, processing thread information, and communication information in the latest acquired running information, along with the software usage information, can be used as the basis for anomaly classification. Anomalies can be classified from at least two dimensions, namely software usage and other usage, thereby improving the accuracy of anomaly classification for the display component.
[0027] In one embodiment, displaying component malfunction information includes at least one of the following:
[0028] Software status information that indicates the software's duration exceeds a first preset software duration threshold;
[0029] Memory usage information that indicates memory usage exceeding a first preset threshold;
[0030] Information about the processing thread that represents the risk of exceptions in the processing thread;
[0031] This represents communication information where the communication duration exceeds a first preset communication duration threshold.
[0032] Therefore, considering that software timeout, excessive memory usage, abnormal processing threads, and communication timeouts can all cause display component malfunctions, at least one of the following is identified as display component malfunction information: software status information indicating software usage time exceeding a first preset software duration threshold, memory usage information indicating memory usage exceeding a first preset usage threshold, processing thread information indicating processing thread malfunction risk, and communication information indicating communication usage time exceeding a first preset communication duration threshold. This enables malfunction warnings for at least one of the following dimensions: software timeout, excessive memory usage, abnormal processing threads, and communication timeouts, thereby improving the accuracy of display component malfunction warnings.
[0033] In one embodiment, the processing thread information characterizing the risk of processing thread exceptions includes at least one of the following:
[0034] Information on processing threads whose heartbeat cycle update frequency is lower than a first preset frequency threshold;
[0035] Information on processing threads whose queue length exceeds a first preset length threshold.
[0036] In this way, by characterizing the heartbeat cycle update frequency of critical processing threads below a first preset frequency threshold, abnormal operation of the threads themselves can be detected; by characterizing the length of the queue to be processed above a first preset length threshold, abnormality of the queue length exceeding the thread's processing capacity can be detected; by using at least one of the above dimensions to detect abnormal processing threads, the accuracy of detecting abnormal processing threads of the display component is improved.
[0037] In one embodiment, after an abnormal reset of the display component, the method further includes:
[0038] The display component is controlled to operate based on the latest operating information obtained from the preset storage area.
[0039] Therefore, considering that the operating information of the smart terminal will be lost when the display component is abnormally reset, an additional preset storage area is set up to store the operating information of the smart terminal. In this way, when the display component is abnormally reset, the operation control of the display component can be performed in a timely manner according to the latest operating information obtained in the preset storage area, so as to restore the state of the display component before the abnormality and thus improve the control accuracy of the display component of the smart terminal.
[0040] In one embodiment, the operation of the display component is controlled based on the latest operating information obtained from a preset storage area, including at least one of the following:
[0041] Control the operation of the display components based on the latest display component operation information obtained from the preset storage area;
[0042] The display component is controlled to display information based on the latest terminal status information of the smart terminal obtained from the preset storage area.
[0043] Thus, by periodically acquiring display component operation information, when display component anomaly information indicating a risk of abnormality is detected, at least one instance of display component operation information prior to the anomaly is acquired and stored in a preset storage area. In response to a display component's abnormal reset, the display component's operation is controlled based on the latest acquired display component operation information in the preset storage area, enabling the display component to operate with the newer display component operation information instead of the default operation information, thus restoring the display component to its state before the anomaly. Similarly, by periodically acquiring terminal status information and storing it in the preset storage area, when display component anomaly information indicating a risk of abnormality is detected, at least one instance of terminal status information prior to the display component's anomaly is acquired and stored in the preset storage area. In response to a display component's abnormal reset, the display component's display is controlled based on the latest acquired terminal status information in the preset storage area, ensuring that the terminal status information displayed after an abnormal reset is minimally different from the actual terminal status information, thus guaranteeing a good user experience.
[0044] Secondly, this application also provides a smart terminal. The smart terminal includes:
[0045] Terminal main control board;
[0046] The display component includes a preset storage area and a display component controller;
[0047] The display component controller communicates with the terminal main control board;
[0048] The display component controller is configured to acquire the operating information of the smart terminal at a first time period, and when an abnormal information indicating an abnormal risk of the display component is detected, acquire at least one operating information of the display component before the abnormality and store it in a preset storage area, and in response to the abnormal reset of the display component, determine the abnormality type of the display component based on the latest operating information acquired in the preset storage area.
[0049] Thirdly, this application also provides an air purifier. The air purifier includes:
[0050] Terminal main control board;
[0051] The display component is used to display at least one of wind speed, operating mode, air quality information, filter status and abnormality type. The display component includes a preset storage area and a display component controller.
[0052] The display component controller is configured to acquire the operating information of the air purifier at a first time period, and when an abnormal information indicating an abnormal risk of the display component is detected, acquire at least one operating information of the display component before the abnormality and store it in the preset storage area, and in response to the abnormal reset of the display component, determine the abnormality type of the display component based on the latest operating information acquired in the preset storage area.
[0053] Fourthly, this application also provides an electronic device. The electronic device includes a memory and a processor. The memory stores a computer program applied to a display component controller. When the processor executes the computer program, it performs the following steps:
[0054] The system acquires operational information from smart terminals on a periodic basis, using the first time period as the basis.
[0055] If abnormal information indicating a risk of abnormality in the display component is detected, the operation information of the smart terminal at least once before the abnormality is detected is obtained and stored in a preset storage area.
[0056] In response to an abnormal reset of the display component, the abnormality type of the display component is determined based on the latest operational information acquired in the preset storage area.
[0057] Fifthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which is applied to a display component controller. When the computer program is executed by a processor, it performs the following steps:
[0058] The system acquires operational information from smart terminals on a periodic basis, using the first time period as the basis.
[0059] If abnormal information indicating a risk of abnormality in the display component is detected, the operation information of the smart terminal at least once before the abnormality is detected is obtained and stored in a preset storage area.
[0060] In response to an abnormal reset of the display component, the abnormality type of the display component is determined based on the latest operational information acquired in the preset storage area.
[0061] Sixthly, this application also provides a computer program product. The computer program product includes a computer program applied to a display component controller, which, when executed by a processor, performs the following steps:
[0062] The system acquires operational information from smart terminals on a periodic basis, using the first time period as the basis.
[0063] If abnormal information indicating a risk of abnormality in the display component is detected, the operation information of the smart terminal at least once before the abnormality is detected is obtained and stored in a preset storage area.
[0064] In response to an abnormal reset of the display component, the abnormality type of the display component is determined based on the latest operational information acquired in the preset storage area.
[0065] The aforementioned method for determining the abnormality type of the display component of a smart terminal, the smart terminal, the air purifier, the electronic device, and the storage medium acquire the operating information of the smart terminal periodically at a first time period; when abnormal information of the display component indicating a risk of abnormality is detected, at least one instance of the smart terminal's operating information prior to the abnormality of the display component is acquired and stored in a preset storage area; in response to an abnormal reset of the display component, the abnormality type of the display component is determined based on the latest operating information acquired in the preset storage area.
[0066] Thus, when abnormal information indicating a potential risk of display component malfunction is detected in the display component of the smart terminal, it indicates that the display component may undergo an abnormal reset, enabling early warning of such a reset. Upon receiving this warning, at least one instance of the smart terminal's operational information prior to the display component malfunction is retrieved. This allows for the acquisition of more recent operational information, ensuring that the more recent information closely approximates the operational information of the smart terminal before the display component malfunction. Considering that the operational information of the smart terminal will be lost during an abnormal reset, a preset storage area is additionally set up to store the operational information. This allows for the identification of the abnormal type based on the most recently acquired operational information in the preset storage area when the display component undergoes an abnormal reset. Since the most recently acquired operational information in the preset storage area is closer to the operational information at the time of the display component malfunction, using this information as the basis for determining the abnormal type improves the efficiency of identifying the abnormal type of the smart terminal's display component. Attached Figure Description
[0067] Figure 1 This is a schematic diagram illustrating an application scenario of a method for determining the anomaly type of a display component in a smart terminal, as shown in one embodiment.
[0068] Figure 2 This is a schematic diagram illustrating an application scenario of a method for determining the anomaly type of a display component in a smart terminal, as described in another embodiment.
[0069] Figure 3 This is a flowchart illustrating a method for determining the anomaly type of a display component of a smart terminal in one embodiment.
[0070] Figure 4This is a flowchart illustrating the steps of a method for obtaining at least one instance of smart terminal operation information prior to a display component malfunction, as shown in one embodiment.
[0071] Figure 5 This is a flowchart illustrating a method for controlling the display component of a smart terminal in one embodiment;
[0072] Figure 6 This is a flowchart illustrating the steps of a method for storing information in one embodiment;
[0073] Figure 7 This is a flowchart illustrating the steps of a method for classifying anomalies in a display component in one embodiment;
[0074] Figure 8 This is a structural block diagram of the component controller shown in one embodiment;
[0075] Figure 9 This is a diagram of the internal structure of an electronic device in one embodiment. Detailed Implementation
[0076] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0077] The method for determining the anomaly type of the display component of a smart terminal provided in this application embodiment can be applied to, for example... Figure 1 In the application scenarios shown. For example, Figure 1 As shown, the display component 110 includes a display component controller 112, a preset storage area 114, and a memory 116. (The preset storage area 114 can be a storage area divided within the memory 116, or it can be a storage area within the display component 110 that is independent of the memory 116. That is, the display component 110 can be provided with two different memories, and the preset storage area 114 is located in another memory different from the memory 116.) Figure 1(Taking the preset storage area 114 as an example, which is a storage area within the display component 110 independent of the memory 116, as an example, the display component controller 112 communicates with the memory 116. The display component controller 112 periodically acquires the display component operation information of the display component 110 at a first time period (at this time, the display component controller 112 does not communicate with the terminal main control board; therefore, the operation information of the smart terminal here refers to the display component operation information of the display component 110). When display component abnormality information indicating a risk of abnormality in the display component 110 is detected, at least one instance of the display component operation information of the display component 110 before the abnormality is detected is acquired and stored in the preset storage area 114. In response to the abnormality reset of the display component 110, the abnormality type of the display component 110 is determined based on the latest acquired display component operation information of the display component 110 in the preset storage area 114. After determining the abnormality type of the display component 110, the display component 110 can display the abnormality type.)
[0078] The method for determining the anomaly type of the display component of a smart terminal provided in this application embodiment can also be applied to, for example... Figure 2 In the application scenarios shown. For example, Figure 2 As shown, the smart terminal 10 includes a display component 110 and a terminal main control board 120. The display component 110 includes a display component controller 112, a preset storage area 114, and a memory 116. (The preset storage area 114 can be a storage area divided within the memory 116, or it can be a storage area within the display component 110 that is independent of the memory 116. That is, the display component 110 can be provided with two different memories, and the preset storage area 114 is located in another memory different from the memory 116.) Figure 2(Taking the preset storage area 114 as an example, which is a storage area within the display component 110 independent of the memory 116, as an example, the display component controller 112 communicates with the terminal main control board 120 and the memory 116 respectively. The display component controller 112 periodically acquires the display component operation information of the display component 110 and the terminal status information of the smart terminal 10 at a first time period (at this time, the display component controller 112 also communicates with the terminal main control board 120, so the operation information of the smart terminal 10 here includes the display component operation information of the display component 110 and the terminal status information of the smart terminal 10). When display component abnormality information indicating that there is an abnormal risk in the display component 110 is detected, the display component operation information of the display component 110 and the terminal status information of the smart terminal 10 before the abnormality of the display component 110 are acquired and stored in the preset storage area 114. In response to the abnormal reset of the display component 110, the abnormality type of the display component 110 is determined according to the latest acquired operation information in the preset storage area 114. After determining the type of abnormality in the display unit 110, the display unit 110 can display the type of abnormality.
[0079] Among them, intelligent terminals are terminals used for human-computer interaction. Intelligent terminals can be smart home devices, such as dishwashers, smart refrigerators, central air conditioners, and air purifiers. Intelligent terminals can also be industrial terminals, such as industrial HMI (Human-Machine Interface) panels. Intelligent terminals can also be medical terminals, such as medical monitors.
[0080] The method for determining the anomaly type of the display component of a smart terminal provided in this application embodiment can also be applied to the display component controller in an air purifier. A schematic diagram of the structural distribution can be found in the provided text. Figure 1 It can also be applied to air purifiers; a structural distribution diagram can be found by referring to... Figure 2 ( Figure 2 The smart terminal in the device can be directly replaced by an air purifier; the display component in the air purifier is used to display at least one of the following: fan speed, operating mode, air quality information, filter status, and abnormality type.
[0081] It should be noted that, because display component malfunctions are probabilistic and sporadic, it is impossible to precisely pinpoint the exact time of occurrence. When display component malfunction information indicating a risk of malfunction is detected, this detection point represents the point at which the display component faces a risk of malfunction. When the display component performs an malfunction reset, it indicates that the malfunction has occurred and a resolution reset has been performed; this point represents the point at which the display component has recovered from the malfunction. The malfunction recovery point can occur at any time between the risk point and the reset point, and the malfunction occurrence point can occur at any time between the risk point and the recovery point. Before the malfunction occurrence point, the display component controller can acquire the smart terminal's operational information; between the malfunction occurrence point and the recovery point, the display component controller cannot acquire the smart terminal's operational information. Because it is impossible to accurately pinpoint the exact time of an anomaly, at the time of an anomaly risk, the display component controller, in addition to acquiring the smart terminal's operating information periodically according to the first time cycle, acquires the smart terminal's operating information at least once more, so that the latest acquisition time of the operating information is as close as possible to the time of the anomaly.
[0082] In one embodiment, such as Figure 3 As shown, a method for determining the anomaly type of a display component in a smart terminal is provided, which can be applied to... Figure 1 The following steps are described using the display component controller 112 as an example:
[0083] Step 202: Acquire the operating information of the smart terminal periodically and store it in the preset storage area at the first time period.
[0084] In step 202, the operating information of the smart terminal includes at least one of the display component operating information and the terminal status information of the smart terminal. The first time period can be an empirical value. The first time period is used to characterize the information acquisition time interval of at least one of the display component operating information and the terminal status information of the smart terminal. Therefore, the first time period includes at least one of the first time interval of the display component operating information and the second time interval of the terminal status information of the smart terminal. The first time interval and the second time interval can be the same or different, and there is no restriction here.
[0085] Specifically, in the case of a smart home, the terminal status information of the smart terminal is used to characterize at least one of temperature, humidity, operating mode, operating level, operating life, air quality, and operating progress.
[0086] Specifically, the display component's operation information includes at least one of refresh function information, software status information, memory usage information, processing thread information, and communication information. The refresh function information includes a refresh function identifier, used to identify the corresponding refresh function to characterize the refresh action of the display component. The software status information is used to characterize the software usage time and includes at least one of page identifier information, task identifier information, pop-up status information, page switching status information, and interface playback status information.
[0087] Furthermore, the page identification information is used to identify the page type of at least one of the current page and the historical page; the task identification information is used to identify the task type of at least one of the current task and the historical task; the pop-up status information is used to characterize at least one of the pop-up status and the duration of the pop-up status, and the pop-up status includes one of the following: no pop-up, pop-up creation, pop-up display, pop-up closing, and pop-up release completed; the page switching status information is used to characterize at least one of the following: the page being switched and the page switching status, and the page being switched includes the page before the switch and the page after the switch, and the page switching status includes one of the following: page not switched, page switching started, page before the switch being released, page after the switch being loaded, and page switching completed; the interface playback status information includes at least one of the following: the interface playback object and the playback status of the interface playback object, and the interface playback object includes at least one of the following: dynamic icon, status display animation, loading animation, and page transition animation, the status display animation includes at least one of the following: terminal status display animation and display component abnormal display animation, and the playback status includes one of the following: not playing, playing, playback paused, playback stopped, and playback completed.
[0088] Furthermore, memory usage information is used to characterize memory usage size; processing thread information is used to characterize at least one of the heartbeat cycle update frequency of processing threads and processing queue status, and processing queue status is used to characterize processing queue capacity, including at least one of the pending queue length and processing queue length limit.
[0089] The method of obtaining the operating information of a smart terminal is not limited. As one embodiment, obtaining the operating information of a smart terminal includes: monitoring the operating information of the display component. Accordingly, the operating status detection of the display component can be realized.
[0090] In another embodiment, obtaining the operating information of the smart terminal includes: sending a status acquisition request to the terminal main control board, so that the terminal main control board returns a status message after receiving the status acquisition request; receiving the status message sent by the terminal main control board, and parsing the status message to obtain the terminal status information of the smart terminal. Accordingly, the terminal status of the smart terminal can be acquired.
[0091] It should be noted that the operating information of the smart terminal acquired periodically in the first time period may not be stored in the preset storage area. Therefore, considering that the probability of the operating information of the smart terminal acquired in the first time period being closer to the operating information of the smart terminal before the display component malfunction is low, the operating information of the smart terminal acquired periodically in the first time period is set not to be stored in the preset storage area. When the display component is abnormally reset, the operating information of the smart terminal acquired periodically in the first time period will be lost during the abnormal reset process, which can reduce the storage pressure of the preset storage area to a certain extent.
[0092] Wherein, when the operating information of the smart terminal acquired periodically in the first time period is not stored in the preset storage area, it means that the operating information of the smart terminal acquired periodically in the first time period is stored in the memory, or stored in a storage area of the memory that is independent of the preset storage area.
[0093] It should be noted that the operating information of the smart terminal acquired periodically in the first time period can also be stored in the preset storage area. Therefore, considering that the operating information of the smart terminal acquired in the first time period may contain information closer to the operating information of the smart terminal before the abnormality of the display component, and that the operation control of the display component is based on the latest operating information acquired in the preset storage area when responding to the abnormal reset of the display component, storing the operating information of the smart terminal acquired in the first time period into the preset storage area increases the amount of information stored in the preset storage area, and to a certain extent ensures that the retrospective state of the display component is closer to the state of the display component before the abnormality.
[0094] Step 204: If abnormal information indicating a risk of abnormality in the display component is detected, obtain at least one instance of the smart terminal's operation information before the abnormality and store it in a preset storage area.
[0095] There are no restrictions on the specific methods for obtaining at least one instance of the smart terminal's operation information prior to the display component malfunction. The following examples illustrate several of these methods.
[0096] In some feasible embodiments, obtaining at least one instance of the smart terminal's operational information prior to the display component malfunction includes:
[0097] Within the abnormal risk period, obtain at least one instance of the smart terminal's operation information prior to the display component malfunction. The abnormal risk period is the time between the time when abnormal information about the display component is detected and the time when the display component malfunctions.
[0098] In this way, by acquiring the operating information of the smart terminal once or multiple times during the abnormal risk period, the display component can trace back to the state of the display component during the abnormal risk period in response to the abnormal reset of the display component.
[0099] In some feasible embodiments, obtaining at least one instance of the smart terminal's operating information before the display component malfunctions includes: continuously obtaining the smart terminal's operating information until the display component malfunctions.
[0100] In this way, after detecting abnormal information of the display component that indicates an abnormal risk, the system continuously acquires the operating information of the smart terminal until the display component malfunctions, so that the display component can, in response to the abnormal reset of the display component, revert to the state before the abnormality occurred as much as possible.
[0101] As another embodiment, such as Figure 4 As shown, after step 202, if abnormal information of the display component indicating an abnormal risk is detected, step 302 is executed to shorten the first time period and obtain the second time period.
[0102] Step 304: Acquire the operating information of the smart terminal periodically and store it in the preset storage area at the second time period.
[0103] The reduction in the first time period can be an empirical value or proportional to the probability of anomaly represented by the abnormal information of the display component.
[0104] Thus, considering that the abnormal information of the display component only indicates that there is a risk of abnormality in the display component, but does not mean that the display component will definitely malfunction, the shortening of the first time period is set to be proportional to the probability of abnormality represented by the abnormal information of the display component. This makes the second time period shorter when the probability of abnormality of the display component is high. In other words, the higher the frequency of obtaining the operation information of the smart terminal, the more operation information of the smart terminal is obtained, ensuring that the latest obtained operation information is as close as possible to the operation information before the display component malfunctions.
[0105] The specific information type of the displayed component abnormal information is not limited. Optionally, the displayed component abnormal information may include at least one of the following: software status abnormal information, memory usage abnormal information, thread abnormal information, and communication abnormal information.
[0106] Among them, software status abnormal information indicates that the software usage time exceeds the first preset software usage time threshold; memory usage abnormal information indicates that memory usage is higher than the first preset usage threshold; thread abnormal information indicates the risk of handling thread abnormalities; and communication abnormal information indicates that communication usage time exceeds the first preset communication usage time threshold.
[0107] The first preset software duration threshold is the maximum software usage time that does not affect the normal operation of the display components; this first preset software duration threshold can be an empirical value. The first preset memory usage threshold is the maximum memory usage that does not affect the normal operation of the display components.
[0108] Therefore, considering that software timeout, excessive memory usage, abnormal processing threads, and communication timeouts can all cause display component malfunctions, at least one of the following—software status malfunction, memory usage malfunction, thread malfunction, and communication malfunction—is identified as display component malfunction information. This enables early warning of malfunctions in at least one of these areas, improving the accuracy of display component malfunction warnings.
[0109] The specific information type of the thread exception information is not limited. Optionally, the above thread exception information includes at least one of the following: heartbeat update exception thread information and processing queue length exception information.
[0110] Among them, the abnormal heartbeat update thread information indicates that the heartbeat cycle update frequency of the critical processing thread is lower than the first preset frequency threshold; the abnormal processing queue length information indicates that the length of the queue to be processed is greater than the first preset length threshold.
[0111] The first preset length threshold and the first preset frequency threshold can be empirical values.
[0112] Thus, by characterizing the abnormal heartbeat update frequency of the critical processing thread below the first preset frequency threshold, the abnormal operation of the thread itself can be detected; by characterizing the abnormal processing queue length information where the length of the queue to be processed is greater than the first preset length threshold, the abnormality of the queue length exceeding the thread's processing capacity can be detected; by using at least one of the above dimensions to detect abnormal processing threads, the accuracy of detecting abnormal processing threads of the display component is improved.
[0113] Step 206: In response to the abnormal reset of the display component, determine the abnormal type of the display component based on the latest obtained operating information in the preset storage area.
[0114] For example, determining the exception type of the display component based on the latest obtained runtime information in the preset storage area includes: if the latest obtained runtime information in the preset storage area is invalid, then determining the exception type of the display component as an unknown exception type; if the latest obtained runtime information in the preset storage area is valid, then determining the exception type of the display component based on at least one of the refresh function information, software status information, memory usage information, processing thread information, and communication information in the latest obtained runtime information in the preset storage area.
[0115] Thus, when a display component malfunctions, it may still be able to store operational information. Therefore, this operational information might become invalid. If the most recently acquired operational information from the preset storage area is used to classify the malfunction, the classification might be inaccurate. Therefore, when the most recently acquired operational information from the preset storage area is invalid, the malfunction type of the display component is determined to be an unknown malfunction type. To ensure the accuracy of malfunction classification, some efficiency can be sacrificed by marking it as an unknown malfunction type for manual testing and troubleshooting. Conversely, when the most recently acquired operational information from the preset storage area is valid, the malfunction type is determined directly based on at least one of the following: refresh function information, software status information, memory usage information, processing thread information, and communication information. This ensures the efficiency of determining the malfunction type of the display component.
[0116] As one embodiment, the abnormality type of the display component is determined based on at least one of the refresh function information, software status information, memory usage information, processing thread information, and communication information in the latest running information obtained in the preset storage area. This includes: filtering display component abnormality information from at least one of the refresh function information, software status information, memory usage information, processing thread information, and communication information in the latest running information obtained in the preset storage area, and determining the abnormality type of the display component based on the display component abnormality information.
[0117] Thus, since the abnormal information of the display component itself can characterize the parts of the display component that may be abnormal, the abnormal information of the display component selected from the latest obtained operating information in the preset storage area is directly used as the basis for determining the abnormal type of the display component, which ensures the accuracy of determining the abnormal type of the display component.
[0118] As another embodiment, the abnormality type of the display component is determined based on at least one of the refresh function information, software status information, memory usage information, processing thread information, and communication information in the latest obtained running information in the preset storage area. This includes: identifying the software usage information of the display component based on the latest obtained refresh function information and software status information in the preset storage area; and classifying the display component into abnormalities based on at least one of the memory usage information, processing thread information, and communication information in the latest obtained running information, as well as the software usage information, to obtain the abnormality type.
[0119] Thus, since refresh function information is used to characterize the refresh action of the display component, and software status information is used to characterize the software running state of the display component, the software occupancy information of the display component can be identified through refresh function information and software status information. At least one of the memory occupancy information, processing thread information, and communication information in the latest obtained running information, together with the software occupancy information, is used as the basis for anomaly classification. Anomalies are classified from at least two dimensions, namely software occupancy and other occupancy, thereby improving the accuracy of anomaly classification of the display component.
[0120] It should be noted that when the display unit undergoes an abnormal reset, the display unit's operating information stored in the memory is lost. In this case, the display unit can only operate with the default operating information and cannot be restored to its state before the abnormality. Information stored in the preset storage area will not be lost during the abnormal reset of the display unit.
[0121] As another embodiment, such as Figure 5 As shown, after step 204, the above method further includes:
[0122] Step 208: In response to an abnormal reset of the display component, control the operation of the display component according to the latest operating information obtained in the preset storage area.
[0123] As one embodiment, controlling the operation of the display component based on the latest obtained operating information in the preset storage area includes: controlling the operation of the display component based on the latest obtained display component operating information in the preset storage area.
[0124] Thus, by periodically acquiring display component operation information, when display component abnormality information indicating a risk of abnormality is detected, at least one display component operation information prior to the abnormality is acquired and stored in a preset storage area; in response to the abnormal reset of the display component, the operation of the display component is controlled according to the latest acquired display component operation information in the preset storage area, so that the display component can operate with the newer display component operation information instead of the default operation information, so that the display component can be restored to the state before the abnormality.
[0125] It should be noted that the display component is used to display the terminal status information of the smart terminal. When the display component undergoes an abnormal reset, the terminal status information stored in its memory is lost. At this time, the display component needs to communicate with the terminal's main control board to obtain the terminal status information. This communication process takes some time, so the display component will initially display the default status information. It will only update the display once the actual terminal status information is obtained. During this process, the default status information is displayed first, and this default information may differ significantly from the actual terminal status information, resulting in a poor user experience.
[0126] As another embodiment, controlling the operation of the display component based on the latest obtained operating information in the preset storage area includes: controlling the display component to display based on the latest obtained terminal status information of the smart terminal in the preset storage area.
[0127] In this way, by storing the periodically acquired terminal status information in a preset storage area, when abnormal information indicating a risk of abnormality in the display component is detected, at least one terminal status information prior to the abnormality of the display component is acquired and stored in the preset storage area; in response to the abnormal reset of the display component, the display component is controlled to display based on the latest acquired terminal status information in the preset storage area, so that the terminal status information displayed by the display component after the abnormal reset is less different from the actual terminal status information, thus ensuring the user experience of the display component.
[0128] As another embodiment, controlling the operation of the display component based on the latest obtained operating information in the preset storage area includes: controlling the operation of the display component based on the latest obtained display component operating information in the preset storage area, and controlling the display component to display based on the latest obtained terminal status information of the smart terminal in the preset storage area.
[0129] It should be noted that the display component is used to display the terminal status information of the smart terminal. When the display component undergoes an abnormal reset, the terminal status information stored in the memory is lost. At this time, the display component needs to communicate with the terminal main control board to obtain the terminal status information. However, the communication process between the display component and the terminal main control board takes a certain amount of time. If this time is too long, it can easily affect the user experience.
[0130] To reduce the time users spend waiting for the display to resume display, in response to an abnormal reset of the display, the method further includes increasing the priority of the message parsing process.
[0131] In this way, after the display component is abnormally reset, the priority of the message parsing process is increased, so that the display component controller can prioritize parsing the status messages sent by the terminal main control board, thereby reducing the time that users have to wait for the display component to resume display and improving the user experience.
[0132] It is understandable that the reset of the display component includes either abnormal reset or normal reset. Normal reset includes either user operation reset, software update reset, or parameter configuration reset. When the display component performs a normal reset, the expected outcome is to return the display component to its initial state. At this time, the display component is not actually malfunctioning, and there is no need to determine the type of malfunction. If the display component is reverted to its state before the reset, it will have the opposite effect. Therefore, a precise method is needed to detect abnormal resets of the display component.
[0133] Optionally, prior to step 206, the above method further includes:
[0134] Read the reset information. If the reset information indicates at least one of abnormal reset and watchdog reset, then determine that the display component has experienced an abnormal reset.
[0135] If the reset information indicates at least one of user operation reset, software update reset, and parameter configuration reset, then it is determined that the display component has not experienced an abnormal reset.
[0136] This provides a way to accurately detect whether a display component has an abnormal reset, so that the state of the display component is traced back only when an abnormal reset is detected, thus improving the control accuracy of the display component.
[0137] In this embodiment, when abnormal information indicating a potential risk of abnormality in the display component of the smart terminal is detected, it indicates that the display component may undergo an abnormal reset, thus providing an early warning of such an event. Upon receiving this warning, at least one instance of the smart terminal's operational information prior to the display component's abnormality is acquired. This allows for the acquisition of more recent operational information, ensuring that the more recent information closely approximates the operational information of the smart terminal before the abnormality. Considering that the operational information of the smart terminal will be lost during an abnormal reset, a preset storage area is additionally provided to store the operational information of the smart terminal. Therefore, when an abnormal reset occurs, the latest operational information acquired in the preset storage area can be used to identify the type of abnormality. Since the latest operational information in the preset storage area is closer to the operational information at the time of the abnormality, using the latest operational information in the preset storage area as the basis for determining the type of abnormality improves the efficiency of determining the abnormality type of the smart terminal's display component.
[0138] It should be noted that, in one scenario, display component anomaly information only indicates a potential risk of anomaly in the display component; it doesn't necessarily mean that the display component will malfunction and undergo an abnormal reset every time an anomaly is detected. This could lead to an excessive amount of operational information being stored in the preset storage area. In another scenario, a high number of abnormal resets can also result in an excessive amount of operational information being stored in the preset storage area. Since the preset storage area has limited space, it's easy for the storage of operational information to fail.
[0139] Accordingly, in one embodiment, to avoid the situation where the storage of runtime information in the aforementioned preset storage area fails, such as... Figure 6 The diagram illustrates the steps for providing a method of storing runtime information. It should be noted that the steps of the above-described method of storing runtime information are applicable to any runtime information stored in a preset storage area (including but not limited to the portions of runtime information stored in the preset storage area in steps 202 and 204 above). The method further includes:
[0140] If the amount of information stored in the preset storage area exceeds the preset information threshold when the newly acquired running information is detected, step 402 is executed to overwrite the earliest acquired running information in the preset storage area based on the newly acquired running information.
[0141] For example, based on the latest acquired running information, the earliest acquired running information in the preset storage area is overwritten and stored, including: deleting the earliest acquired running information in the preset storage area and storing the latest acquired running information in the preset storage area.
[0142] If the amount of information stored in the preset storage area is not greater than the preset information amount threshold, step 404 is executed to store the latest acquired running information into the preset storage area.
[0143] Among them, the preset information threshold is used to characterize the maximum amount of information that the preset storage area can store without affecting the normal operation of the preset storage area. The preset information threshold can be an empirical value or it can correspond to the storage capacity of the preset storage area. Specifically, the preset information threshold is proportional to the storage capacity of the preset storage area.
[0144] In this embodiment, whenever newly acquired operational information is detected, if the amount of information stored in the preset storage area exceeds a preset information threshold, the earliest acquired operational information in the preset storage area is overwritten and stored based on the latest acquired operational information. If the amount of information stored in the preset storage area does not exceed the preset information threshold, the latest acquired operational information is stored in the preset storage area. Considering the limited storage capacity of the preset storage area, whenever newly acquired operational information is detected, if the amount of information stored in the preset storage area exceeds the preset information threshold, the earliest acquired operational information in the preset storage area is overwritten and stored based on the latest acquired operational information. If the amount of information stored in the preset storage area does not exceed the preset information threshold, it is stored directly. This ensures that the preset storage area can always store the latest acquired operational information, improving the accuracy of operational information storage.
[0145] Understandably, when the display component malfunctions, it will undergo an abnormal reset, resulting in the loss of the smart terminal's operating information stored in the memory. This makes it impossible to restore the display component's state before the malfunction and thus makes it impossible to classify the malfunction.
[0146] In one embodiment, such as Figure 7 As shown, a method for classifying display component anomalies is provided. In this method, the anomaly type of the display component is determined based on at least one of the following: refresh function information, software status information, memory usage information, processing thread information, and communication information, from the latest runtime information acquired in a preset storage area. This includes:
[0147] Step 502: Identify the stuttering interface information of the display component based on the refresh function information in the latest obtained running information in the preset storage area.
[0148] In step 502, the lag interface information is used to characterize the object that is experiencing lag.
[0149] As one embodiment, step 502 includes: identifying the object occupying the lag interface from the refresh function information in the latest obtained running information in the preset storage area, and obtaining lag interface information.
[0150] Step 504: Based on the software status information and lag interface information in the latest obtained running information in the preset storage area, identify the software usage information of the display component.
[0151] As an example, step 504 includes: filtering target status information that matches the lag-occupying object represented by the lag interface information from the latest obtained running information in the preset storage area, and determining the software occupancy information of the display component based on the target status information.
[0152] Furthermore, based on the target state information, the software occupancy information of the display component is determined, including: evaluating the software occupancy duration corresponding to the target state information based on the duration of each state in the target state information to obtain the software occupancy information of the display component. Specifically, the sum of the durations of each state in the target state information is determined as the software occupancy information of the display component.
[0153] When the target status information includes page identification information, the duration of each status in the target status information includes the duration of the pop-up creation state, the pop-up display state, and the pop-up closing state. When the target status information includes page switching status information, the duration of each status in the target status information includes the duration of the start page switching state, the page release state before switching, and the page loading state after switching. When the target status information includes interface playback status information, the duration of each status in the target status information includes the duration of the playback state, the playback paused state, and the playback stopped state.
[0154] Step 506: Based on at least one of the memory usage information, processing thread information, and communication information from the latest obtained running information in the preset storage area, as well as the software usage information, classify the display component for anomalies to obtain the anomaly type.
[0155] The exception type in step 506 includes at least one of the following: software timeout type, memory redundancy type, processing thread exception type, and communication timeout type.
[0156] As an embodiment, step 506 includes: when the software usage time represented by the software usage information is greater than a second preset software usage time threshold, determining that the exception type includes a software usage timeout type; when the memory usage represented by the memory usage information is higher than a second preset usage threshold, determining that the exception type includes a memory usage redundancy type; when the processing thread information represents a processing thread exception, determining that the exception type includes a processing thread exception type; when the communication usage time represented by the communication information is greater than a second preset communication usage time threshold, determining that the exception type includes a communication timeout type.
[0157] Among them, the second preset software duration threshold is greater than or equal to the first preset software duration threshold; the second preset occupancy threshold is greater than or equal to the first preset occupancy threshold; and the second preset communication duration threshold is greater than or equal to the first preset communication duration threshold.
[0158] In this way, parallel detection of multiple anomaly types is achieved, improving the accuracy of anomaly classification for display components.
[0159] Optionally, the second preset occupancy threshold includes a primary memory occupancy threshold and a secondary memory occupancy threshold; the method further includes: after the display component completes power-on initialization, page resource loading, and necessary cache allocation, determining the amount of available dynamic memory information of the display component; determining the primary memory occupancy threshold by multiplying the first coefficient with the amount of available dynamic memory information, and determining the secondary memory occupancy threshold by multiplying the second coefficient with the amount of available dynamic memory information, wherein the first coefficient is greater than the second coefficient.
[0160] Thus, by adopting a dynamic benchmark and hierarchical coefficient design, a second preset occupancy threshold can be set, enabling accurate identification of memory occupancy anomalies that affect the operational stability of the display components.
[0161] The first and second coefficients can be empirical values. For example, the first coefficient is in the range of 0.2-0.3, specifically 0.25, and the second coefficient is in the range of 0.1-0.15, specifically 0.125.
[0162] Optionally, the above method further includes: determining the safe memory threshold of the display component by multiplying the third coefficient by the peak memory of the display component; determining the remaining memory threshold by the sum of the peak memory required for page switching or fault pop-up loading of the display component and the safe memory threshold; and determining the abnormal type, including memory redundancy type, when the remaining memory represented by the memory usage information is lower than the remaining memory threshold.
[0163] The third coefficient can be an empirical value, for example, 0.2.
[0164] Thus, based on the second preset occupancy threshold, a remaining memory threshold is set, and the peak memory and the peak memory required for page switching or fault pop-up loading of the display component are used as the basis for setting the remaining memory threshold. The memory peak when the display component is running normally is quantified through the safe memory threshold, and additional peak memory is reserved for critical scenarios such as page switching or fault pop-ups, which improves the accuracy of determining the remaining memory threshold. In turn, it can accurately identify abnormalities when the display component does not have reserved memory to ensure normal operation.
[0165] The second preset communication duration threshold can be an empirical value. For example, the second preset communication duration threshold can be the product of the period during which the display component controller sends a status acquisition request to the terminal main control board and a first multiple, where the first multiple can be 10 times. Alternatively, the second preset communication duration threshold can be the product of the upper limit of communication time for the display component controller to respond to the status message sent by the terminal main control board (the upper limit of response time is the sum of the period during which the display component controller sends a status acquisition request to the terminal main control board and the upper limit of response time for the display component controller to respond to the status message sent by the terminal main control board) and a second multiple, where the second multiple can be 6 times.
[0166] Optionally, the above method further includes: when the communication duration represented by the communication information is greater than a third preset communication duration threshold for X consecutive times, determining that the abnormal type includes the communication timeout type.
[0167] Where X is a positive integer greater than or equal to 2, and X can be an empirical value, for example, 3. The third preset communication duration threshold is less than the second preset communication duration threshold. The third preset communication duration threshold can be an empirical value or the ratio between the second preset communication duration threshold and X, and there is no restriction here.
[0168] The second preset software duration threshold can be an empirical value or the product of the normal software usage time and a third multiple. The third multiple can be any value in the range of 1.5-2.
[0169] Optionally, the above method further includes: when the heartbeat cycle update frequency of the processing thread information characterizing the critical processing thread is lower than a second preset frequency threshold, and / or when the length of the processing thread information characterizing the queue to be processed is greater than a second preset length threshold, determining that the processing thread information characterizing the processing thread is abnormal.
[0170] The second preset frequency threshold is less than or equal to the first preset frequency threshold. The first preset frequency threshold can be an empirical value, or it can be the product of the normal cycle update frequency of the critical processing thread and a fourth multiple, where the fourth multiple can be 0.2. The second preset frequency threshold can be an empirical value, or it can be the product of the first preset frequency threshold and a fifth multiple, where the fifth multiple can be 0.5.
[0171] Wherein, the second preset length threshold is greater than or equal to the first preset length threshold. The first preset length threshold can be an empirical value or the product of the queue capacity of the display component and a sixth multiple, where the sixth multiple can be 0.7. The second preset length threshold can be an empirical value or the product of the queue capacity of the display component and a seventh multiple, where the sixth multiple can be 0.9.
[0172] In this embodiment, the display component's stuttering interface information is identified based on the refresh function information in the latest acquired runtime information; the display component's software usage information is identified based on the software status information and stuttering interface information in the latest acquired runtime information; and the display component is classified into anomalies based on at least one of the memory usage information, processing thread information, and communication information in the latest acquired runtime information, as well as the software usage information, to obtain the anomaly type. Since the refresh function information is used to characterize the refresh action of the display component, the stuttering interface information of the display component can be identified through the refresh function information in the latest acquired runtime information. This allows for the identification of software usage information based on the software status information and stuttering interface information in the latest acquired runtime information. At least one of the memory usage information, processing thread information, and communication information in the latest acquired runtime information, along with the software usage information, serves as the basis for anomaly classification. Anomalies are classified from at least two dimensions—software usage and other usage—improving the accuracy of anomaly classification for the display component.
[0173] As a more detailed embodiment, the first time period is periodically acquired and stored in a preset storage area, based on a first time period. When at least one of the following is detected: software status information indicating software usage time exceeding a first preset software duration threshold; memory usage exceeding a first preset usage threshold; processing thread information indicating a critical processing thread's heartbeat cycle update frequency below a first preset frequency threshold; processing thread information indicating a pending queue length exceeding a first preset length threshold; or communication information indicating communication usage time exceeding a first preset communication duration threshold, the first time period is shortened to obtain a second time period. The second time period is then periodically acquired and stored in the preset storage area, based on the second time period. In response to an abnormal reset of the display component, the display component is controlled to operate based on the latest acquired display component operation information in the preset storage area. Finally, the display component is controlled to display based on the latest acquired terminal status information in the preset storage area.
[0174] Specifically, if the amount of information stored in the preset storage area is greater than the preset information threshold, the earliest obtained running information in the preset storage area will be overwritten and stored based on the latest obtained running information; if the amount of information stored in the preset storage area is not greater than the preset information threshold, the latest obtained running information will be stored in the preset storage area.
[0175] Furthermore, based on the refresh function information in the latest obtained runtime information, the stuttering interface information of the display component is identified; based on the software status information and stuttering interface information in the latest obtained runtime information, the software usage information of the display component is identified; based on at least one of the memory usage information, processing thread information, and communication information in the latest obtained runtime information, as well as the software usage information, the display component is classified into anomalies to obtain the anomaly type.
[0176] In this embodiment, the operating information of the smart terminal is acquired periodically at a first time period. When abnormal information indicating a risk of display component malfunction is detected, at least one instance of the smart terminal's operating information prior to the display component malfunction is acquired and stored in a preset storage area. In response to an abnormal reset of the display component, the operation of the display component is controlled based on the latest operating information acquired in the preset storage area. Thus, when abnormal information indicating a risk of display component malfunction is detected, it indicates that the display component may undergo an abnormal reset, providing early warning of abnormal resets. When an abnormal reset is detected, at least one instance of the smart terminal's operating information prior to the display component malfunction is acquired, allowing for the acquisition of more recent operating information, ensuring that this more recent information is as close as possible to the operating information of the smart terminal before the display component malfunction. Considering that the smart terminal's operating information will be lost during an abnormal reset of the display component, an additional preset storage area is provided for the smart terminal's operating information. The terminal stores its operational information, enabling it to identify the type of malfunction when the display component experiences an abnormal reset. This latest information in the preset storage area more closely reflects the operational status of the display component at the time of the malfunction. Therefore, using this information as the basis for malfunction determination improves the accuracy of identifying the malfunction type of the smart terminal's display component. Furthermore, the terminal can promptly control the operation of the display component based on this latest information to restore it to its pre-malfunction state, thereby enhancing the control accuracy of the smart terminal's display component.
[0177] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0178] Based on the same inventive concept, this application also provides a smart terminal for implementing the above-described method for determining the abnormal type of the display component of a smart terminal. The solution provided by this smart terminal is similar to the implementation described in the above method. Therefore, the specific limitations in one or more smart terminal embodiments provided below can be found in the above-described limitations on the method for determining the abnormal type of the display component of a smart terminal, and will not be repeated here.
[0179] In one embodiment, such as Figure 8 As shown, a display component controller 112 is provided, including: an acquisition module 802 and an anomaly classification module 804, wherein:
[0180] The acquisition module 802 is used to acquire the operating information of the smart terminal periodically at a first time period; when abnormal information of the display component indicating that there is an abnormal risk of the display component is detected, the module acquires at least one instance of the operating information of the smart terminal before the abnormality of the display component and stores it in a preset storage area.
[0181] The anomaly classification module 804 is used to determine the anomaly type of the display component in response to an anomaly reset of the display component, based on the latest operating information obtained in the preset storage area.
[0182] In one embodiment, the acquisition module 802 is further configured to shorten the first time period to obtain a second time period; and to acquire the operating information of the smart terminal periodically using the second time period.
[0183] In one embodiment, the acquisition module 802 is further configured to, upon detecting the latest acquired running information, if the amount of information stored in the preset storage area is greater than a preset information amount threshold, overwrite the earliest acquired running information in the preset storage area according to the latest acquired running information; if the amount of information stored in the preset storage area is not greater than the preset information amount threshold, store the latest acquired running information in the preset storage area.
[0184] In one embodiment, the anomaly classification module 804 is further configured to identify the stuttering interface information of the display component based on the refresh function information in the latest acquired runtime information; identify the software usage information of the display component based on the software status information and stuttering interface information in the latest acquired runtime information; and classify the display component into anomalies based on at least one of the memory usage information, processing thread information, and communication information in the latest acquired runtime information, as well as the software usage information, to obtain the anomaly type.
[0185] In one embodiment, the abnormal information of the display component includes at least one of the following: software status information indicating that the software occupancy time exceeds a first preset software occupancy time threshold; memory occupancy information indicating that memory occupancy exceeds a first preset occupancy time threshold; processing thread information indicating abnormal risk of processing thread; and communication information indicating that communication occupancy time exceeds a first preset communication occupancy time threshold.
[0186] In one embodiment, the processing thread information characterizing the risk of abnormal processing thread includes at least one of the following: processing thread information characterizing the heartbeat cycle update frequency of a critical processing thread is lower than a first preset frequency threshold; processing thread information characterizing the length of the queue to be processed is greater than a first preset length threshold.
[0187] In one embodiment, in response to an abnormal reset of the display component, the display component controller 112 further includes a control module for controlling the operation of the display component based on the latest operating information obtained in a preset storage area.
[0188] In one embodiment, the control module is further configured to perform at least one of the following: control the operation of the display component according to the latest display component operation information obtained in the preset storage area; control the display component to display according to the latest terminal status information of the smart terminal obtained in the preset storage area.
[0189] Each module in the aforementioned display component controller can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the electronic device in hardware form or independent of it, or stored in the memory of the electronic device in software form, so that the processor can call and execute the operations corresponding to each module.
[0190] In one embodiment, an electronic device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 9As shown, the electronic device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When executed by the processor, the computer program implements a method for determining the anomaly type of the display component of a smart terminal. The display unit of the electronic device forms a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the electronic device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the electronic device, or external keyboards, touchpads, or mice, etc.
[0191] Those skilled in the art will understand that Figure 9 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.
[0192] In one exemplary embodiment, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0193] The system acquires operational information from smart terminals on a periodic basis, using the first time period as the basis.
[0194] If abnormal information indicating a risk of abnormality in the display component is detected, the operation information of the smart terminal at least once before the abnormality is detected is obtained and stored in a preset storage area.
[0195] In response to an abnormal reset of the display component, the abnormality type of the display component is determined based on the latest operational information acquired in the preset storage area.
[0196] In one embodiment, when the processor executes a computer program, it performs the following steps: if the latest obtained running information in the preset storage area is invalid, it determines that the exception type of the display component is an unknown exception type; if the latest obtained running information in the preset storage area is valid, it determines the exception type of the display component based on at least one of the refresh function information, software status information, memory usage information, processing thread information, and communication information in the latest obtained running information in the preset storage area.
[0197] In one embodiment, when the processor executes the computer program, it further performs the following steps: shortening the first time period to obtain a second time period; and using the second time period, periodically acquiring the operating information of the smart terminal.
[0198] In one embodiment, when the processor executes the computer program, it further performs the following steps: whenever newly acquired running information is detected, if the amount of information stored in the preset storage area is greater than a preset information amount threshold, the earliest acquired running information in the preset storage area is overwritten and stored according to the newly acquired running information; if the amount of information stored in the preset storage area is not greater than the preset information amount threshold, the newly acquired running information is stored in the preset storage area.
[0199] In one embodiment, when the processor executes the computer program, it further performs the following steps: identifying the stuttering interface information of the display component based on the refresh function information in the latest acquired runtime information; identifying the software usage information of the display component based on the software status information and the stuttering interface information in the latest acquired runtime information; and classifying the display component into anomalies based on at least one of the memory usage information, processing thread information, and communication information in the latest acquired runtime information, as well as the software usage information, to obtain an anomaly type.
[0200] In one embodiment, when the processor executes the computer program, it further implements the following steps: software state information indicating that the software occupancy time exceeds a first preset software occupancy time threshold; memory occupancy information indicating that the memory occupancy exceeds a first preset occupancy time threshold; processing thread information indicating the processing thread's abnormal risk; and communication information indicating that the communication occupancy time exceeds a first preset communication occupancy time threshold.
[0201] In one embodiment, when the processor executes the computer program, it further implements the following steps: processing thread information characterized by a heartbeat cycle update frequency lower than a first preset frequency threshold; and processing thread information characterized by a queue length greater than a first preset length threshold.
[0202] In one embodiment, when the processor executes a computer program, it further performs the following steps: controlling the operation of the display component based on the latest operating information acquired in a preset storage area.
[0203] In one embodiment, when the processor executes the computer program, it further performs the following steps: controlling the display component to operate based on the latest display component operation information obtained from the preset storage area; and controlling the display component to display based on the latest terminal status information of the smart terminal obtained from the preset storage area.
[0204] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0205] The system acquires operational information from smart terminals on a periodic basis, using the first time period as the basis.
[0206] If abnormal information indicating a risk of abnormality in the display component is detected, the operation information of the smart terminal at least once before the abnormality is detected is obtained and stored in a preset storage area.
[0207] In response to an abnormal reset of the display component, the abnormality type of the display component is determined based on the latest operational information acquired in the preset storage area.
[0208] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: shortening the first time period to obtain a second time period; and using the second time period, periodically acquiring the operating information of the smart terminal.
[0209] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: if the latest obtained running information in the preset storage area is invalid, then the abnormality type of the display component is determined to be an unknown abnormality type; if the latest obtained running information in the preset storage area is valid, then the abnormality type of the display component is determined based on at least one of the refresh function information, software status information, memory usage information, processing thread information, and communication information in the latest obtained running information in the preset storage area.
[0210] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: whenever newly acquired running information is detected, if the amount of information stored in the preset storage area is greater than a preset information amount threshold, the earliest acquired running information in the preset storage area is overwritten and stored according to the newly acquired running information; if the amount of information stored in the preset storage area is not greater than the preset information amount threshold, the newly acquired running information is stored in the preset storage area.
[0211] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: identifying the stuttering interface information of the display component based on the refresh function information in the latest acquired runtime information; identifying the software usage information of the display component based on the software status information and stuttering interface information in the latest acquired runtime information; and classifying the display component into anomalies based on at least one of the memory usage information, processing thread information, and communication information in the latest acquired runtime information, as well as the software usage information, to obtain an anomaly type.
[0212] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: software state information indicating that the software occupancy time exceeds a first preset software occupancy time threshold; memory occupancy information indicating that the memory occupancy exceeds a first preset occupancy threshold; processing thread information indicating the processing thread's abnormal risk; and communication information indicating that the communication occupancy time exceeds a first preset communication occupancy time threshold.
[0213] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: processing thread information characterized by a heartbeat cycle update frequency lower than a first preset frequency threshold; and processing thread information characterized by a queue length greater than a first preset length threshold.
[0214] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: controlling the operation of the display component based on the latest operating information acquired in the preset storage area.
[0215] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: controlling the operation of the display component according to the latest display component operation information obtained in the preset storage area; and controlling the display component to display according to the latest terminal status information of the smart terminal obtained in the preset storage area.
[0216] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:
[0217] The system acquires operational information from smart terminals on a periodic basis, using the first time period as the basis.
[0218] If abnormal information indicating a risk of abnormality in the display component is detected, the operation information of the smart terminal at least once before the abnormality is detected is obtained and stored in a preset storage area.
[0219] In response to an abnormal reset of the display component, the abnormality type of the display component is determined based on the latest operational information acquired in the preset storage area.
[0220] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: if the latest obtained running information in the preset storage area is invalid, then the abnormality type of the display component is determined to be an unknown abnormality type; if the latest obtained running information in the preset storage area is valid, then the abnormality type of the display component is determined based on at least one of the refresh function information, software status information, memory usage information, processing thread information, and communication information in the latest obtained running information in the preset storage area.
[0221] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: shortening the first time period to obtain a second time period; and using the second time period, periodically acquiring the operating information of the smart terminal.
[0222] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: whenever newly acquired running information is detected, if the amount of information stored in the preset storage area is greater than a preset information amount threshold, the earliest acquired running information in the preset storage area is overwritten and stored according to the newly acquired running information; if the amount of information stored in the preset storage area is not greater than the preset information amount threshold, the newly acquired running information is stored in the preset storage area.
[0223] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: identifying the stuttering interface information of the display component based on the refresh function information in the latest acquired runtime information; identifying the software usage information of the display component based on the software status information and stuttering interface information in the latest acquired runtime information; and classifying the display component into anomalies based on at least one of the memory usage information, processing thread information, and communication information in the latest acquired runtime information, as well as the software usage information, to obtain an anomaly type.
[0224] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: software state information indicating that the software occupancy time exceeds a first preset software occupancy time threshold; memory occupancy information indicating that the memory occupancy exceeds a first preset occupancy threshold; processing thread information indicating the processing thread's abnormal risk; and communication information indicating that the communication occupancy time exceeds a first preset communication occupancy time threshold.
[0225] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: processing thread information characterized by a heartbeat cycle update frequency lower than a first preset frequency threshold; and processing thread information characterized by a queue length greater than a first preset length threshold.
[0226] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: controlling the operation of the display component based on the latest operating information acquired in the preset storage area.
[0227] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: controlling the operation of the display component according to the latest display component operation information obtained in the preset storage area; and controlling the display component to display according to the latest terminal status information of the smart terminal obtained in the preset storage area.
[0228] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0229] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0230] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for determining the anomaly type of a display component in a smart terminal, characterized in that, Applied to a display component controller, the method includes: The system acquires operational information from smart terminals on a periodic basis, using the first time period as the basis. If abnormal information indicating a risk of abnormality in the display component is detected, at least one instance of the smart terminal's operation information prior to the abnormality of the display component is obtained and stored in a preset storage area. In response to an abnormal reset of the display component, the abnormality type of the display component is determined based on the latest operating information acquired in the preset storage area; The step of obtaining at least one instance of the smart terminal's operating information prior to the display component malfunction includes: Shorten the first time period to obtain the second time period; The operating information of the smart terminal is acquired periodically according to the second time period; The step of determining the anomaly type of the display component based on the latest operational information acquired in the preset storage area includes: If the latest obtained running information in the preset storage area is valid, then the abnormal type of the display component is determined based on at least one of the following: refresh function information, software status information, memory usage information, processing thread information, and communication information in the latest obtained running information in the preset storage area.
2. The method according to claim 1, characterized in that, The method further includes: Whenever the latest acquired running information is detected, if the amount of information stored in the preset storage area is greater than the preset information amount threshold, the earliest acquired running information in the preset storage area will be overwritten and stored according to the latest acquired running information. If the amount of information stored in the preset storage area is not greater than a preset information amount threshold, the latest acquired running information will be stored in the preset storage area.
3. The method according to claim 1, characterized in that, The step of determining the anomaly type of the display component based on the latest operational information acquired in the preset storage area includes: If the latest acquired running information in the preset storage area is invalid, then the abnormality type of the display component is determined to be an unknown abnormality type.
4. The method according to claim 1, characterized in that, The step of determining the anomaly type of the display component based on at least one of the following from the latest obtained runtime information in the preset storage area: refresh function information, software status information, memory usage information, processing thread information, and communication information, includes: Based on the refresh function information in the latest obtained running information in the preset storage area, identify the lag information of the display component; Based on the software status information and the lag interface information in the latest obtained running information in the preset storage area, the software usage information of the display component is identified; Based on at least one of the memory usage information, processing thread information, and communication information from the latest obtained running information in the preset storage area, as well as the software usage information, the display component is classified into anomalies to obtain an anomaly type.
5. The method according to claim 1, characterized in that, The abnormal information of the display component includes at least one of the following: Software status information that indicates the software's duration exceeds a first preset software duration threshold; Memory usage information that indicates memory usage exceeding a first preset threshold; Information about the processing thread that represents the risk of exceptions in the processing thread; This represents communication information where the communication duration exceeds a first preset communication duration threshold.
6. The method according to claim 5, characterized in that, The processing thread information characterizing the risk of exceptions in the processing thread includes at least one of the following: Information on processing threads whose heartbeat cycle update frequency is lower than a first preset frequency threshold; Information on processing threads whose queue length exceeds a first preset length threshold.
7. The method according to any one of claims 1 to 6, characterized in that, In response to an abnormal reset of the display component, the method further includes: The display component is controlled to operate based on the latest operating information obtained from the preset storage area.
8. The method according to claim 7, characterized in that, The step of controlling the operation of the display component based on the latest operating information obtained from the preset storage area includes at least one of the following: The operation of the display component is controlled based on the latest display component operation information obtained from the preset storage area; The display component is controlled to display information based on the latest terminal status information of the smart terminal obtained from the preset storage area.
9. A smart terminal, characterized in that, The smart terminal includes: Terminal main control board; The display component includes a preset storage area and a display component controller; The display component controller communicates with the terminal main control board; The display component controller is configured to acquire the operating information of the smart terminal at a first time period, and when an abnormal information indicating that the display component has an abnormal risk is detected, acquire at least one operating information of the display component before the abnormality and store it in the preset storage area, and in response to the abnormal reset of the display component, determine the abnormality type of the display component based on the latest operating information acquired in the preset storage area. The display component controller is configured to shorten the first time period to obtain a second time period; and to acquire the operating information of the smart terminal periodically using the second time period. The display component controller is configured to determine the abnormality type of the display component based on at least one of the following: refresh function information, software status information, memory usage information, processing thread information, and communication information, when the latest obtained running information in the preset storage area is valid.
10. An air purifier, characterized in that, The air purifier includes: Terminal main control board; The display component is used to display at least one of wind speed, operating mode, air quality information, filter status and abnormality type. The display component includes a preset storage area and a display component controller. The display component controller is configured to acquire the operating information of the air purifier at a first time period, and when an abnormal information indicating a risk of abnormality of the display component is detected, acquire at least one operating information of the display component before the abnormality and store it in the preset storage area, and in response to the abnormal reset of the display component, determine the abnormality type of the display component based on the latest operating information acquired in the preset storage area. The display component controller is configured to shorten the first time period to obtain a second time period; and to acquire the operating information of the air purifier periodically using the second time period. The display component controller is configured to determine the abnormality type of the display component based on at least one of the following: refresh function information, software status information, memory usage information, processing thread information, and communication information, when the latest obtained running information in the preset storage area is valid.
11. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 8.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 8.