Liquid crystal module abnormality detection method and device, electronic equipment and storage medium
By running the operating system and loading the display driver in a single thread during the power-on event, and controlling the screen brightness detection current, the accuracy problem of LCM anomaly detection in electronic devices is solved, and the accuracy and stability of detection are improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-14
- Publication Date
- 2026-03-10
AI Technical Summary
In the prior art, when electronic devices detect abnormalities in the liquid crystal module (LCM), abnormal background services cause high current, which affects the accuracy of power consumption calculation and reduces the accuracy of LCM abnormality detection.
Upon detecting a power-on event, the operating system runs in a single thread and loads the LCD module display driver. The current value is detected by controlling the screen brightness, the power consumption value of the LCM is calculated, and it is compared with a preset threshold to determine the anomaly.
By reducing the probability of background service anomalies, current stability is ensured, the accuracy of LCM anomaly detection is improved, current instability caused by multi-threaded interference is avoided, and fast and accurate LCM anomaly judgment is achieved.
Smart Images

Figure CN119763458B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of electronic technology, specifically relating to a method, apparatus, electronic device, and storage medium for detecting abnormalities in a liquid crystal module. Background Technology
[0002] With the development of display technology, liquid crystal modules (LCMs) have become increasingly popular in electronic devices due to their advantages such as high image quality, low power consumption, wide viewing angle, thinness, and fast response. However, LCMs may malfunction during use, and if these malfunctions are not repaired promptly, they may be damaged.
[0003] Currently, electronic devices can determine if an LCM (Liquid Crystal Display) is malfunctioning by detecting its power consumption. Specifically, the electronic device can detect the current of the device when the LCM screen is off and the current of the device when the LCM screen is at its brightest. The difference between these two values is then used as the LCM's power consumption value. By comparing this power consumption value with a power consumption threshold, it can be determined whether the LCM is malfunctioning.
[0004] However, since electronic devices typically run multiple services in the background, if an abnormality occurs in the background service when the electronic device detects LCM power consumption, such as service crash, excessive file I / O operations, or other resource consumption, it will lead to an increase in system power consumption, resulting in a higher detected current. This will affect the accuracy of power consumption calculation, thus leading to lower accuracy in detecting LCM abnormalities by the electronic device. Summary of the Invention
[0005] The purpose of this application is to provide a method, apparatus, electronic device, and storage medium for detecting abnormalities in liquid crystal modules (LCMs), which can improve the accuracy of electronic devices in detecting LCM abnormalities.
[0006] In a first aspect, embodiments of this application provide a method for detecting anomalies in a liquid crystal module. The method includes: upon detecting a power-on event, running an operating system using a single thread and loading a liquid crystal module display driver; the liquid crystal module display driver is used to control the brightness of the screen liquid crystal module of an electronic device; determining a first power consumption value of the screen liquid crystal module using the liquid crystal module display driver; and determining whether the screen liquid crystal module is abnormal based on the first power consumption value and a first power consumption threshold.
[0007] Secondly, embodiments of this application provide a liquid crystal module anomaly detection device, which includes an execution module, a determination module, and a judgment module. The execution module, upon detecting a power-on event, runs an operating system using a single thread and loads a liquid crystal module display driver, which controls the brightness of the screen liquid crystal module of the electronic device. The determination module determines a first power consumption value corresponding to the screen liquid crystal module based on the liquid crystal module display driver loaded by the execution module. The judgment module determines whether the screen liquid crystal module is abnormal based on the first power consumption value determined by the determination module and a first power consumption threshold.
[0008] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0009] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.
[0010] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.
[0011] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0012] In this embodiment, upon detecting a power-on event, the operating system can be run in a single thread, and the LCD module display driver can be loaded. This LCD module display driver controls the brightness of the screen LCD module of the electronic device. Then, a first power consumption value corresponding to the screen LCD module can be determined based on the LCD module display driver. Based on the first power consumption value and a first power consumption threshold, it can be determined whether the screen LCD module is abnormal. In this solution, since the operating system is run in a single thread upon detecting a power-on event, there is no need to run the operating system in a multi-threaded manner. This allows fewer services to run in the background, thereby reducing the probability of service anomalies and reducing the problem of high current in the electronic device caused by service anomalies. Furthermore, the LCD module display driver can be loaded without loading additional drivers, avoiding the problem of unstable current in the electronic device caused by loading too many drivers. This allows for accurate detection of the electronic device's current. Thus, the LCM power consumption value calculated from the detected electronic device current is more accurate, thereby improving the accuracy of judging LCM anomalies through LCM power consumption value. Attached Figure Description
[0013] Figure 1 This is one of the flowcharts of the liquid crystal module anomaly detection method provided in the embodiments of this application;
[0014] Figure 2 This is the second flowchart of the liquid crystal module anomaly detection method provided in the embodiments of this application;
[0015] Figure 3 This is the third flowchart of the liquid crystal module anomaly detection method provided in the embodiments of this application;
[0016] Figure 4 This is the fourth flowchart of the liquid crystal module anomaly detection method provided in the embodiments of this application;
[0017] Figure 5 This is the fifth flowchart of the liquid crystal module anomaly detection method provided in the embodiments of this application;
[0018] Figure 6 This is one of the schematic diagrams of the prompt information provided in the embodiments of this application;
[0019] Figure 7 This is a second schematic diagram of the prompt information provided in the embodiments of this application;
[0020] Figure 8 This is the sixth flowchart of the liquid crystal module anomaly detection method provided in the embodiments of this application;
[0021] Figure 9 This is a schematic diagram illustrating the execution process of the text generation method provided in the embodiments of this application;
[0022] Figure 10This is one of the schematic diagrams of the liquid crystal module anomaly detection device provided in the embodiments of this application;
[0023] Figure 11 This is a second schematic diagram of the liquid crystal module anomaly detection device provided in the embodiments of this application;
[0024] Figure 12 This is the third schematic diagram of the liquid crystal module anomaly detection device provided in the embodiments of this application;
[0025] Figure 13 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application;
[0026] Figure 14 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0027] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0028] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0029] The terms "at least one," "at least one," etc., in this application refer to any one, any two, or a combination of two or more of the included objects. For example, at least one of a, b, and c can mean: "a," "b," "c," "a and b," "a and c," "b and c," and "a, b, and c," where a, b, and c can be single or multiple. Similarly, "at least two" refers to two or more, and its meaning is similar to that of "at least one."
[0030] The following description, in conjunction with the accompanying drawings, details the liquid crystal module anomaly detection method, apparatus, electronic device, and storage medium provided in this application through specific embodiments and application scenarios.
[0031] The embodiments of this application can be applied to scenarios where power consumption detection is performed on the LCM in electronic devices to determine whether the LCM is abnormal.
[0032] The following uses some specific scenarios from the embodiments of this application as examples to illustrate the liquid crystal module anomaly detection method provided in the embodiments of this application.
[0033] Scenario 1: Assume the user's phone has an LCM screen, and the LCM within this screen malfunctions. After the user powers on the phone, the operating system runs in a single thread during the boot process, loading the LCM display driver. The LCM driver then controls the screen brightness. A platform power meter detects the phone's current at both the lowest and highest screen brightness levels, calculating the LCM power consumption based on the difference. After calculating the power consumption, the phone compares it to a power threshold, determining an LCM anomaly. Upon booting, the phone displays a prompt message advising the user to visit an authorized service center for repair as soon as possible.
[0034] Scenario 2: Assume a smartwatch is equipped with an LCM screen. When the user restarts the watch, it can run the operating system in a single thread, loading only the necessary LCM display driver. The LCM display driver then controls the screen brightness. A power meter is used to measure the current at the LCM screen's lowest and highest brightness levels to calculate the LCM power consumption. After detection, the system compares the LCM power consumption value with a set normal threshold. If abnormal power consumption is detected, the smartwatch will alert the user via vibration or a pop-up notification, recommending that the user visit an authorized service center for inspection and maintenance.
[0035] It should be noted that the above scenarios 1 and 2 are merely exemplary examples of some scenarios that may be applied to the embodiments of this application. In actual implementation, the embodiments of this application can also be applied to any possible scenarios requiring abnormal detection of liquid crystal modules. The embodiments of this application are not limited here.
[0036] This application provides a method, apparatus, electronic device, and storage medium for detecting abnormalities in a liquid crystal module (LCD). When a power-on event is detected, the electronic device can run the operating system in a single thread, eliminating the need for multi-threaded operation. This allows fewer services to run in the background, reducing the probability of service failures and minimizing high current consumption caused by such failures. Furthermore, the electronic device can load the LCD module display driver without additional drivers, avoiding current instability caused by excessive driver loading. This allows for accurate current detection. Consequently, the LCM power consumption value calculated from the detected current is more accurate, improving the accuracy of identifying LCM abnormalities based on LCM power consumption.
[0037] The execution subject of the liquid crystal module anomaly detection method provided in this application embodiment can be a liquid crystal module anomaly detection device, which can be an electronic device, or a functional module or functional entity in the electronic device. The following uses an electronic device as an example to illustrate the technical solution provided in this application embodiment.
[0038] Figure 1 A flowchart of a liquid crystal module anomaly detection method provided in an embodiment of this application is shown, as follows: Figure 1 As shown, the liquid crystal module anomaly detection method provided in this application embodiment may include the following steps 201 to 203.
[0039] Step 201: Upon detecting a power-on event, the electronic device runs the operating system using a single thread and loads the LCD module display driver.
[0040] In this embodiment of the application, the above-mentioned liquid crystal module display driver is used to control the brightness of the liquid crystal module of the screen of the electronic device.
[0041] In this embodiment, the above-mentioned liquid crystal module display driver is also called an LCM display driver, which can change the luminous intensity of the liquid crystal display module by controlling the backlight of the LCM screen.
[0042] In this embodiment of the application, the screen may be referred to as an LCM screen or a liquid crystal screen, which is a screen composed of liquid crystal modules.
[0043] In this embodiment of the application, the operating system is system software that manages the hardware and software resources of electronic devices and is used for interaction between users and electronic devices.
[0044] In this embodiment, the aforementioned power-on event is an event that triggers the electronic device to start the operating system and enter the power-on state. This power-on state is the running state in which the electronic device successfully starts the operating system and can perform user interaction and execute applications. The opposite state is the power-off state, which refers to the electronic device being in a turned-off state. In this state, the operating system of the electronic device is not running, and the hardware components and functions of the electronic device are inactive.
[0045] Optionally, in this embodiment of the application, the aforementioned power-on event may include, but is not limited to, any of the following situations:
[0046] (1) User operation: When the electronic device is powered off, the user can manually start the electronic device by pressing the power button or other means.
[0047] (2) Power-on startup: When the electronic device is powered on and then powered on, it will start automatically.
[0048] (3) Restart: The electronic device restarts in the event of a software update, system failure, or when the user manually selects to restart.
[0049] (4) Timed power-on: When the electronic device is powered off, it automatically powers on based on a preset time.
[0050] (5) External signal triggering: When the electronic device is powered off, it can be activated in response to an external signal, such as a network wake-up or a sensor trigger.
[0051] It should be noted that the single-threaded approach described above refers to using only one execution thread to process tasks within a single process. In single-threaded mode, the operating system of an electronic device operates linearly, with all tasks executed sequentially, avoiding the complexity and potential problems associated with multi-threaded concurrency.
[0052] Optionally, in this embodiment of the application, during the startup process of the electronic device, before the kernel of the operating system is loaded and running when a power-on event is detected, the electronic device can enter the LCM power consumption detection mode. In this mode, the electronic device can use only one thread to start the operating system and load only the necessary drivers for detecting LCM power consumption, such as the LCM display driver, without loading other unnecessary drivers. This can ensure that the current of the electronic device can be kept stable when power consumption detection is performed, and avoid interference with the current stability caused by running multiple services in multiple threads and loading too many drivers.
[0053] Step 202: Determine the first power consumption value of the screen LCD module using the LCD module display driver.
[0054] In this embodiment, the first power consumption value is the electrical energy consumed by the LCM in the LCM screen during operation, that is, the electrical energy consumed by the content displayed on the LCM screen. The LCM power consumption value depends on factors such as the brightness of the LCM screen, the displayed content, and the screen refresh rate.
[0055] Optionally, in this embodiment of the application, the electronic device can control the brightness of the LCM screen through the LCM display driver, and detect the current value of the electronic device under the brightness through the platform power meter, thereby calculating the LCM power consumption value based on the detected current value.
[0056] Optionally, in the embodiments of this application, combined with Figure 1 ,like Figure 2 As shown, step 202 above can be specifically implemented through steps 202a to 202c below.
[0057] Step 202a: The electronic device uses the LCD module display driver to control the LCD module of the screen to the first brightness, and uses the platform power meter to detect the first current value within the first time period.
[0058] In this embodiment, the first current value is the current value of the electronic device when the screen liquid crystal module is at the first brightness.
[0059] Optionally, in this embodiment, the first brightness can be a lower brightness level, such as the lowest brightness state, that is, the brightness of the LCM screen is adjusted to a level close to the lowest, that is, the backlight of the LCM screen is turned off, so that the luminous intensity of the liquid crystal display module is close to the lowest, and the LCM screen appears to be close to a black screen.
[0060] It is understandable that the electronic device controls the LCM screen to be in the lowest brightness state, that is, the electronic device turns off the LCM screen.
[0061] In this embodiment, the first duration is the duration for which the current value is measured when the LCM screen is in its lowest brightness state.
[0062] Optionally, in this embodiment, the first duration can be the default duration of the electronic device or a duration preset by the user. For example, the first duration can be 0.5 seconds, 1 second, or 2 seconds, etc. The specific duration can be determined according to actual usage requirements, and this embodiment does not impose any limitations.
[0063] Optionally, in this embodiment of the application, the electronic device can adjust the brightness of the LCM screen to a near-minimum level through the LCM display driver, so that the LCM screen appears to be in a near-black state, so that the power consumption of the LCM screen is close to 0. Then, the electronic device can detect the current value multiple times, for example 5 times, through the platform power meter within a set first time period, and calculate the average value of these values to obtain a stable and accurate first current value.
[0064] For example, assuming the first duration is 1 second and the number of detections is 5, the electronic device can detect the current value 5 times within 1 second. Assuming the current values detected by the electronic device are 80 milliampere (mA), 82mA, 81mA, 83mA, and 80mA, the electronic device can calculate the average of these 5 current values to obtain the first current value = (80+82+81+83+80) / 5 = 81.2mA.
[0065] Step 202b: The electronic device uses the LCD module display driver to control the LCD module of the screen to the second brightness, and uses the platform power meter to detect the second current value within the first time period.
[0066] In this embodiment of the application, the second brightness is greater than the first brightness.
[0067] Optionally, in this embodiment of the application, the second brightness can be a higher brightness level, such as the highest brightness, that is, the brightness of the LCM screen is adjusted to a level close to the highest.
[0068] In this embodiment, the second current value is the current value of the electronic device when the screen liquid crystal module is at the second brightness.
[0069] Optionally, in this embodiment, the electronic device can continuously display a dynamic image or interface at a fixed refresh rate for a first duration, or the electronic device can continuously display a static image or interface at a fixed refresh rate for a first duration, such as continuously displaying the main screen icon of the electronic device at a refresh rate of 60 Hz. By maintaining a fixed refresh rate and the same display content, the electronic device can accurately and stably detect the second current value of the LCM screen liquid crystal module at the second brightness.
[0070] Optionally, in this embodiment of the application, the electronic device can adjust the brightness of the LCM screen to the highest level through the LCM display driver so that the power consumption of the LCM screen is close to the highest level. Then, the electronic device can detect the current value multiple times, such as 5 times, through the platform power meter within a set first time period, and calculate the average value of these values to obtain a stable and accurate second current value.
[0071] For example, assuming the first duration is 1 second and the number of detections is 5, the electronic device can detect the current value 5 times within 1 second. Assuming the current values detected by the electronic device are 480mA, 482mA, 481mA, 482mA, and 480mA, the electronic device can calculate the average of these 5 current values to obtain the second current value = (480+482+481+482+480) / 5 = 481mA.
[0072] Step 202c: The electronic device determines the first power consumption value based on the first current value and the second current value.
[0073] In this embodiment of the application, the power consumption value mentioned above is also called the LCM power consumption value, which is the power consumption value of the LCM.
[0074] It should be noted that the power consumption value is the product of the current value and the voltage value. In this embodiment, since the voltage change of the electronic device is small and only the current value changes significantly, the difference between the first current value and the second current value, i.e. the current value used by the LCM, is used to represent the magnitude of the first power consumption value.
[0075] Optionally, in this embodiment of the application, the electronic device can use the platform power meter to use the difference between the first current value and the second current value as the first power consumption value.
[0076] For example, assuming the first current value is 81.2mA and the second current value is 481mA, the electronic device can calculate the first power consumption value = 481 - 81.2 = 399.8mA using the platform's power meter.
[0077] In this way, electronic devices can control the brightness of the LCM screen through the LCM display driver, and detect the current value of the electronic device at that brightness through the platform power meter. Thus, by controlling the brightness of the LCM screen and excluding other variables, the influence of the brightness change of the LCM screen on the current value of the electronic device can be known, thereby accurately calculating the LCM power consumption value.
[0078] Step 203: The electronic device determines whether the screen LCD module is abnormal based on the first power consumption value and the first power consumption threshold.
[0079] In this embodiment of the application, the first power consumption threshold is a standard for judging whether the LCM is abnormal. It is used to compare with the first power consumption value to judge whether the LCM in the LCM screen is abnormal.
[0080] Optionally, in this embodiment, the first power consumption threshold can be the default value of the electronic device or a value preset by the user. For example, the first power consumption threshold can be 400mA, 410mA, or 420mA, etc. The specific threshold can be determined according to actual usage requirements, and this embodiment does not impose any limitations.
[0081] Optionally, in the embodiments of this application, combined with Figure 1 ,like Figure 3 As shown, step 203 above can be specifically implemented through step 203a below.
[0082] Step 203a: When the first power consumption value is less than the first power consumption threshold, the electronic device determines that the screen LCD module is in a normal state.
[0083] For example, assuming the power consumption threshold is 400mA and the first power consumption value is 399.8mA, the electronic device can determine that 399.8mA is less than 400mA, that is, the first power consumption value is less than the power consumption threshold, and the electronic device can determine that the screen LCD module is in normal condition.
[0084] In this way, if the first power consumption value is less than the power consumption threshold, the electronic device can consider that the LCM has no abnormal power consumption, that is, the LCM is working well and there is no abnormality. Thus, the electronic device can quickly and accurately determine that the screen LCD module is in normal condition when the first power consumption value is less than the power consumption threshold, which improves the efficiency and accuracy of the electronic device in determining the normality of the LCM.
[0085] Optionally, in the embodiments of this application, combined with Figure 1 ,like Figure 4 As shown, step 203 can be implemented through steps 203b to 203d below.
[0086] Step 203b: If the first power consumption value is greater than or equal to the first power consumption threshold, the electronic device determines the second power consumption value of the screen liquid crystal module using the liquid crystal module display driver after a second time period.
[0087] Optionally, in this embodiment, the second duration can be the default duration of the electronic device or a duration preset by the user. For example, the second duration can be 1 second, 2 seconds, or 3 seconds, etc. The specific duration can be determined according to actual usage requirements, and this embodiment does not impose any limitations.
[0088] Optionally, in this embodiment of the application, when the first power consumption value is greater than or equal to the first power consumption threshold, the electronic device can, after a second period of time, reuse the liquid crystal module display driver to obtain the power consumption value of the LCM to obtain the second power consumption value, and then compare the second power consumption value with the first power consumption threshold.
[0089] Optionally, in this embodiment of the application, when the second power consumption value is less than the first power consumption threshold, the electronic device can determine that the liquid crystal module is in a normal state.
[0090] For example, assuming the power consumption threshold is 400mA, the first power consumption value is 401mA, and the second duration is 3 seconds, after the electronic device determines that the first power consumption value is greater than the first power consumption threshold for 3 seconds, it can re-obtain the second power consumption value using the LCD module display driver. Assuming the second power consumption value is 399.6mA, the electronic device can determine that 399.6mA is less than 400mA, that is, the second power consumption value is less than the first power consumption threshold, and the electronic device can determine that the screen LCD module is in a normal state.
[0091] Step 203c: When the second power consumption value is greater than or equal to the first power consumption threshold, the electronic device determines the third power consumption value of the screen liquid crystal module using the liquid crystal module display driver after a third time period.
[0092] Optionally, in this embodiment, the third duration can be the default duration of the electronic device or a duration preset by the user. For example, the third duration can be 1 second, 2 seconds, or 3 seconds, etc. The specific duration can be determined according to actual usage requirements, and this embodiment does not impose any limitations.
[0093] Optionally, in this embodiment of the application, when the second power consumption value is greater than or equal to the first power consumption threshold, the electronic device can, after a third time period, reuse the liquid crystal module display driver to obtain the power consumption value of the LCM to obtain the third power consumption value, and then compare the third power consumption value with the first power consumption threshold.
[0094] Optionally, in this embodiment of the application, when the third power consumption value is less than the first power consumption threshold, the electronic device can determine that the liquid crystal module is in a normal state.
[0095] For example, assuming the power consumption threshold is 400mA, the second power consumption value is 402mA, and the third duration is 2 seconds, the electronic device can re-obtain the third power consumption value by utilizing the LCD module display driver after determining that the second power consumption value is greater than the first power consumption threshold for 2 seconds. Assuming the third power consumption value is 399mA, the electronic device can determine that 399mA is less than 400mA, that is, the third power consumption value is less than the first power consumption threshold, and the electronic device can determine that the screen LCD module is in a normal state.
[0096] Step 203d: If the third power consumption value is greater than or equal to the first power consumption threshold, the electronic device determines that the screen LCD module is in an abnormal state.
[0097] For example, assuming the power consumption threshold is 400mA, the second power consumption value is 402mA, and the third duration is 2 seconds, the electronic device can re-obtain the third power consumption value based on the first driver after determining that the second power consumption value is greater than the first power consumption threshold for 2 seconds. Assuming the third power consumption value is 403mA, the electronic device can determine that 403mA is greater than 400mA, that is, the third power consumption value is greater than the first power consumption threshold. Therefore, the electronic device can determine that the screen LCD module is in an abnormal state.
[0098] Optionally, in this embodiment, if the first power consumption value detected for the first time is greater than or equal to the first power consumption threshold, the electronic device can detect the LCM power consumption value a second time after a second time interval to obtain a second power consumption value, and continue to compare the second detected power consumption value, i.e., the second power consumption value, with the first power consumption threshold. If the second power consumption value is also greater than or equal to the first power consumption threshold, the electronic device can detect the LCM power consumption value a third time after a third time interval to obtain a third power consumption value, and continue to compare the third detected power consumption value, i.e., the third power consumption value, with the first power consumption threshold. This process continues, and if the first power consumption value is greater than or equal to the first power consumption threshold, the electronic device can continue to detect the LCM power consumption value until the detected LCM power consumption value is less than the first power consumption threshold, or the number of detections is greater than or equal to a preset number.
[0099] Optionally, in this embodiment, the number of detections can be the default value of the electronic device or a value preset by the user. For example, the number of detections can be 3. The specific number can be determined according to actual usage needs, and this embodiment does not impose any limitations.
[0100] Optionally, in this embodiment of the application, if the electronic device detects that the LCM power consumption value is less than the first power consumption threshold when the number of detections is less than the preset number, the electronic device can determine that there is no abnormality in the LCM; if the electronic device detects that the LCM power consumption value is greater than or equal to the first power consumption threshold, the electronic device can continue to detect the LCM power consumption value after a certain period of time and continue to compare the LCM power consumption value with the first power consumption threshold.
[0101] Optionally, in this embodiment of the application, if the electronic device detects that the LCM power consumption value is less than the power consumption threshold when the number of detections is greater than or equal to the preset number of detections, the electronic device can determine that the LCM is not abnormal; if the electronic device detects that the LCM power consumption value is greater than or equal to the power consumption threshold, the electronic device can determine that the LCM is abnormal.
[0102] In this way, electronic devices can more accurately determine whether the LCM is abnormal by repeatedly detecting the LCM power consumption value at different time periods, avoiding misjudgment caused by short-term power consumption fluctuations, and improving the accuracy of electronic devices in judging LCM abnormalities.
[0103] This application provides a method for detecting anomalies in a liquid crystal module. When a power-on event is detected, the operating system can run in a single thread, eliminating the need for multi-threaded operation. This allows fewer services to run in the background, reducing the probability of service anomalies and mitigating the problem of high current consumption in electronic devices caused by such anomalies. Furthermore, a first driver, including the LCM display driver and the platform power meter, can be loaded without requiring additional drivers. This avoids the current instability caused by loading too many drivers, thus enabling accurate detection of the electronic device's current and calculation of the LCM power consumption value corresponding to the LCM screen. This improves the accuracy of LCM power consumption detection in electronic devices.
[0104] Optionally, in the embodiments of this application, combined with Figure 4 ,like Figure 5 As shown, after step 203d above, the liquid crystal module anomaly detection method provided in this application embodiment further includes the following step 301.
[0105] Step 301: The electronic device outputs a prompt message indicating an abnormality in the LCD module of the screen.
[0106] In this embodiment of the application, the above-mentioned prompt information is used to indicate that the screen liquid crystal module is in an abnormal state.
[0107] Optionally, in this embodiment of the application, if the electronic device determines that the screen liquid crystal module is in an abnormal state, the electronic device can display a prompt message through the LCM screen.
[0108] Optionally, in this embodiment of the application, the above-mentioned prompt information may be displayed in the top area of the LCM screen, or the above-mentioned prompt information may be displayed in the form of a window in the LCM screen.
[0109] For example, taking a mobile phone as an electronic device, such as Figure 6 As shown, assuming the phone detects an LCM abnormality during the power-on process, the phone can display a prompt message 11 in the top area 10 of the LCM screen.
[0110] For example, such as Figure 7 As shown, assuming the phone detects an LCM abnormality during the power-on process, the phone can display a first window 12 on the LCM screen and display a prompt message 11 in the first window 12.
[0111] Optionally, in this embodiment of the application, when the electronic device has multiple LCM screens, the above-mentioned prompt information is used to indicate that the LCD module displaying the prompt information is in an abnormal state.
[0112] In this way, electronic devices can alert users to LCM malfunctions by displaying prompts, thus reminding users to have the LCM repaired in a timely manner and avoiding more serious failures caused by users not being aware of the problem.
[0113] Optionally, in the embodiments of this application, combined with Figure 5 ,like Figure 8 As shown, after step 301 above, the liquid crystal module anomaly detection method provided in this application embodiment further includes the following step 401.
[0114] Step 401: When the screen LCD module is in normal condition, the electronic device writes the fourth power consumption value to the first partition.
[0115] In this embodiment of the application, the fourth power consumption value is the maximum value among the first power consumption value, the second power consumption value, and the third power consumption value.
[0116] In this embodiment, the first partition is also referred to as the backup partition, which is used to store data generated during device operation. Even if the electronic device is powered off or restarted, the data in the backup partition can still be retained, and the electronic device can reread this data after restarting.
[0117] Optionally, in this embodiment of the application, when the electronic device determines that the LCM corresponding to the LCM screen is normal based on the obtained LCM power consumption value, the electronic device can write the maximum value of the obtained LCM power consumption value as the fourth power consumption value into the backup partition, so that in the subsequent calculation of the first power consumption threshold, the electronic device can refer to the power consumption of the LCM in the normal state.
[0118] For example, if an electronic device determines that the LCM is normal based on the first power consumption value, the electronic device can use the first power consumption value as the fourth power consumption value.
[0119] For example, assuming the preset number of iterations is 4, and the first power consumption threshold is 400mA, the electronic device obtains an LCM power consumption value of 400.2mA in the first iteration, which is greater than the first power consumption threshold. The electronic device then obtains the LCM power consumption value in the second iteration. If the second LCM power consumption value is 401mA, which is greater than the first power consumption threshold, the electronic device then obtains the LCM power consumption value in the third iteration. If the third LCM power consumption value is 400.5mA, which is greater than the first power consumption threshold, the electronic device then obtains the LCM power consumption value in the fourth iteration. If the fourth LCM power consumption value is 399.8mA, which is less than the first power consumption threshold, then the electronic device can use the maximum value among the four obtained LCM power consumption values as the fourth power consumption value, i.e., the electronic device can use 401mA as the fourth power consumption value and write it to the first partition.
[0120] In this way, electronic devices can record the maximum power consumption value to provide data support for subsequent calculation of the first power consumption threshold, thereby improving the accuracy of electronic devices in judging LCM anomalies.
[0121] Optionally, in this embodiment, the first power consumption threshold is stored in the first partition. Exemplarily, the liquid crystal module anomaly detection method provided in this embodiment further includes steps 501 to 503 as described below.
[0122] Step 501: The electronic device obtains the fifth power consumption value from the first partition.
[0123] In this embodiment, the fifth power consumption value is the highest historical power consumption value of the screen LCD module.
[0124] Optionally, in this embodiment of the application, the first partition stores at least one LCM power consumption value.
[0125] Optionally, in this embodiment of the application, after each power-on, if the screen LCD module is in a normal state, the electronic device can obtain the LCM power consumption value written during the current power-on process from the first partition, and compare the LCM power consumption value with the historical highest power consumption value when the historical LCM power consumption value was detected before the current power-on, and take the maximum value of the two LCM power consumption values as the historical highest power consumption value, that is, the fifth power consumption value.
[0126] For example, suppose the electronic device is in a powered-off state. The first partition of the electronic device stores the highest historical power consumption value of 398mA when the LCM power consumption value was detected. At this time, the user operates the electronic device to turn it on. Suppose that during this power-on process, the electronic device determines that the screen LCD module is in a normal state and writes the fourth power consumption value of 399mA into the first partition. Then, after the electronic device is powered on, the electronic device can obtain the fourth power consumption value of 399mA and the highest power consumption value of 398mA among the historical LCM power consumption values before this power-on from the first partition, and take the maximum value of the two LCM power consumption values, 399mA, as the highest historical power consumption value, that is, the fifth power consumption value.
[0127] Optionally, in this embodiment of the application, the electronic device can store all historically detected LCM power consumption values in the first partition. After each power-on, if the LCM corresponding to the LCM screen is normal, the electronic device can use the maximum value among all LCM power consumption values stored in the first partition as the fifth power consumption value.
[0128] For example, suppose that during a power-on process, the electronic device determines that the LCM corresponding to the LCM screen is normal. Assume that after powering on, the first partition stores the following LCM power consumption values: LCM power consumption value A: 395mA, LCM power consumption value B: 400mA, LCM power consumption value C: 398mA, and LCM power consumption value D: 402mA, where LCM power consumption value D is the LCM power consumption value detected during this power-on process. The electronic device can use the maximum value among all LCM power consumption values stored in the first partition, i.e., 402mA, as the fifth power consumption value.
[0129] Optionally, in this embodiment of the application, the electronic device can store the historically detected LCM power consumption values to a cloud server. The cloud server can collect information such as the electronic device's model, machine identification (ID), frame rate, usage duration, failure rate, and LCM power consumption values to calculate the first power consumption threshold. Examples of this information are shown in Table 1.
[0130] Table 1
[0131]
[0132] Among them, C lcm_c The fifth power consumption value, C worning This is the first power consumption threshold. After each power-on, if the LCM corresponding to the LCM screen is normal, the electronic device can compare the fourth power consumption value written to the first partition during this power-on process with the LCM power consumption value stored in the cloud server, and take the maximum value as the fifth power consumption value.
[0133] Step 502: The electronic device determines the second power consumption threshold based on the fifth power consumption value and the historical usage information of the screen LCD module.
[0134] Optionally, in this embodiment of the application, the historical usage information of the above-mentioned screen LCD module includes at least one of the following: model, machine ID, frame rate, usage duration, and failure rate.
[0135] Optionally, in this embodiment of the application, the second power consumption threshold can be calculated using the following formula (1):
[0136] C worning =T·V+C lcm_c ·(1+P·X)+Y Formula (1)
[0137] Among them, C worning The second power consumption threshold is denoted by T, where T is the usage duration in days. V is the usage duration coefficient, which represents the normal wear and tear of the LCM as usage time increases. This coefficient can be preset based on the LCM screen model, for example, it can be 0.01. C lcm_cThis is the fifth power consumption value. P is the defect rate, which can be 0.001 for example. X is the defect rate coefficient, which defaults to 1. Y is the controllable offset, which can be 2 for example, meaning that an error of 2mA is considered to be within the normal acceptable range and can be adjusted according to the actual situation.
[0138] For example, assuming the usage duration T is 3 days, the usage duration coefficient V = 0.01, and the fifth power consumption value C... lcm_c =455.6mA, defect rate P=0.001, defect rate coefficient X=1, controllable offset Y=2mA, then the electronic device can substitute these values into formula (1) to calculate and obtain the second power consumption threshold C. worning =3·0.01+455.600·(1+0.001·1)+2=458.0856mA, meaning that if the power consumption of the LCM detected during the next power-on process is greater than or equal to this value, the electronic device can display a prompt message on the LCM screen.
[0139] Step 503: The electronic device updates the first power consumption threshold in the first partition using the second power consumption threshold.
[0140] Optionally, in this embodiment of the application, after the electronic device calculates the second power consumption threshold, it can use the second power consumption threshold to update the first power consumption threshold in the first partition, so that the electronic device can use the second power consumption threshold to compare with the detected LCM power consumption value during the next power-on process to determine whether the LCM is abnormal.
[0141] Optionally, in this embodiment, the electronic device can automatically and seamlessly detect LCM anomalies during user operation. Specifically, the electronic device can calculate a power consumption threshold based on the LCM's power consumption during user operation, combined with information such as LCM screen-on time, LCM single-unit failure rate, and LCM frame rate, and then upload this threshold to the cloud. The electronic device can continuously monitor the LCM power consumption value and compare it with the threshold to promptly detect LCM faults. This detection mechanism not only allows for real-time detection of LCM anomalies in the user's electronic device during use but also enables the screening of substandard LCM devices at the factory using cloud-based user data, thereby preventing these substandard LCM devices from entering the market and impacting the user experience.
[0142] In this way, electronic devices can update the power consumption threshold in a timely manner based on historically detected LCM power consumption values and usage information after each power-on. That is, electronic devices can dynamically adjust the power consumption threshold by combining information such as LCM usage time, thereby improving the accuracy of electronic devices in judging whether the LCM is abnormal by using power consumption thresholds.
[0143] This application provides a method for detecting abnormalities in a liquid crystal module. Figure 9 A flowchart of a liquid crystal module anomaly detection method provided in an embodiment of this application is shown. This method can be applied to electronic devices. Figure 9 As shown, the liquid crystal module anomaly detection method provided in this application embodiment may include the following steps 10 to 15.
[0144] Step 10: Upon detecting a power-on event, the electronic device enters the LCM power consumption detection mode.
[0145] In this embodiment of the application, under the above-mentioned LCM power consumption detection mode, the electronic device runs the operating system using a single thread and loads the LCM display driver.
[0146] Step 11: The electronic device detects the LCM power consumption value based on the LCM display driver and the platform power meter.
[0147] In this embodiment of the application, the above-mentioned LCM power consumption value is the difference between the current value of the electronic device when the LCM screen brightness is at its highest and the current value of the electronic device when the LCM screen brightness is at its lowest.
[0148] Step 12: The electronic device determines whether the LCM is abnormal based on the LCM power consumption value and power consumption threshold.
[0149] If the electronic device determines that the LCM is abnormal, the electronic device performs step 15 below; if the electronic device determines that the LCM is not abnormal, the electronic device performs step 13 below.
[0150] Step 13: After powering on, the electronic device compares the LCM power consumption value with the historical LCM power consumption value to obtain the maximum LCM power consumption value.
[0151] In this embodiment of the application, the aforementioned historical LCM power consumption value is at least one LCM power consumption value detected by the electronic device when it determines that the LCM is normal during the historical detection process. The aforementioned maximum LCM power consumption value is the maximum value among the at least one LCM power consumption values detected by the electronic device when it determines that the LCM is normal during the historical detection process.
[0152] Step 14: The electronic device updates the power consumption threshold based on the maximum LCM power consumption value and the historical usage information of the LCM.
[0153] Step 15: The electronic device displays a prompt message on the LCM screen.
[0154] In this embodiment of the application, the above-mentioned prompt information is used to indicate an LCM abnormality corresponding to the LCM screen.
[0155] In this embodiment, the electronic device can automatically and accurately detect the stable and accurate power consumption current value of the LCM in real time without disassembling the device during user operation, and without affecting the user experience. Furthermore, the electronic device can dynamically adjust the alarm threshold by combining information such as LCM usage time, LCM unit failure rate, and LCM frame rate. When abnormal power consumption is detected, the electronic device can promptly remind the user and suggest going to the after-sales service center for repair, thereby improving the reliability of the electronic device and the user experience, and reducing potential losses caused by LCM abnormalities.
[0156] Each of the above-described method embodiments, or various possible implementations of each method embodiment, can be executed individually or in combination of any two or more. The specific implementation can be determined according to actual usage requirements, and this application does not impose any restrictions on this.
[0157] The liquid crystal module anomaly detection method provided in this application can be executed by a liquid crystal module anomaly detection device. This application uses the liquid crystal module anomaly detection device executing the liquid crystal module anomaly detection method as an example to illustrate the liquid crystal module anomaly detection device provided in this application.
[0158] Figure 10 A possible structural schematic diagram of a liquid crystal module anomaly detection device involved in some embodiments of this application is shown. For example... Figure 10 As shown, the LCD module anomaly detection device 70 may include: an execution module 71, a determination module 72, and a judgment module 73.
[0159] The execution module 71 is used to run the operating system in a single thread and load the LCD module display driver when a power-on event is detected; the LCD module display driver is used to control the brightness of the screen LCD module of the electronic device.
[0160] The aforementioned determining module 72 is used to determine the first power consumption value of the screen liquid crystal module based on the liquid crystal module display driver loaded by the execution module 71.
[0161] The aforementioned judgment module 73 is used to determine whether the screen LCD module is abnormal based on the first power consumption value and the first power consumption threshold determined by the determination module 72.
[0162] In one possible implementation, the determining module 72 is specifically configured to: control the screen LCD module to a first brightness level by means of the LCD module display driver loaded by the execution module 71, and detect a first current value within a first duration by means of the platform power meter; and, control the screen LCD module to a second brightness level by means of the LCD module display driver loaded by the execution module 71, and detect a second current value within a first duration by means of the platform power meter; wherein the second brightness level is greater than the first brightness level. The execution module 71 is specifically configured to determine a first power consumption value based on the first current value detected by the determining module 72 and the second current value detected by the determining module 72 using the platform power meter.
[0163] In one possible implementation, the aforementioned judgment module 73 is specifically used to determine that the screen LCD module is in a normal state when the first power consumption value determined by the determination module 72 is less than the first power consumption threshold.
[0164] In one possible implementation, the determining module 72 is specifically configured to: determine a second power consumption value of the screen LCD module using the LCD module display driver after a second time period if the first power consumption value is greater than or equal to the first power consumption threshold; and determine a third power consumption value of the screen LCD module using the LCD module display driver after a third time period if the second power consumption value is greater than or equal to the first power consumption threshold. The judging module 73 is specifically configured to determine that the screen LCD module is in an abnormal state if the third power consumption value determined by the determining module 72 is greater than or equal to the first power consumption threshold.
[0165] In one possible implementation, the execution module 71 is further configured to, after the judgment module 73 determines whether the screen LCD module is abnormal based on the first power consumption value and the power consumption threshold, write the fourth power consumption value into the first partition when the screen LCD module is in a normal state. The fourth power consumption value is the maximum value among the first power consumption value, the second power consumption value and the third power consumption value.
[0166] In one possible implementation, the aforementioned first power consumption threshold is stored in a first partition. For example, combined with... Figure 10 ,like Figure 11 As shown, the liquid crystal module anomaly detection device provided in this application embodiment further includes: an acquisition module 74. The acquisition module 74 is configured to acquire a fifth power consumption value from the first partition, the fifth power consumption value being the historical highest power consumption value of the screen liquid crystal module. The execution module 71 is further configured to: determine a second power consumption threshold based on the fifth power consumption value acquired by the acquisition module 74 and the historical usage information of the screen liquid crystal module; and update the first power consumption threshold in the first partition using the second power consumption threshold.
[0167] In one possible implementation, combining Figure 10 ,like Figure 12As shown in the embodiment of this application, the liquid crystal module anomaly detection device further includes a display module 75. The display module 75 is used to output an anomaly message after the judgment module 73 determines that the liquid crystal module is in an abnormal state.
[0168] This application provides a liquid crystal module (LCD) anomaly detection device. When a power-on event is detected, the device can run the operating system in a single thread, eliminating the need for multi-threaded operation. This allows fewer services to run in the background, reducing the probability of service failures and mitigating the problem of high current consumption caused by such failures. Furthermore, the device can load the LCD module display driver without loading additional drivers, avoiding current instability caused by excessive driver loading. This allows for accurate current detection. Consequently, the LCM power consumption value calculated from the detected current is more accurate, improving the accuracy of identifying LCM anomalies based on LCM power consumption.
[0169] The liquid crystal module anomaly detection device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the specific type of device.
[0170] The liquid crystal module anomaly detection device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.
[0171] The liquid crystal module anomaly detection device provided in this application embodiment can realize all the processes implemented in the above method embodiments, and will not be described again here to avoid repetition.
[0172] Optionally, such as Figure 13 As shown, this application embodiment also provides an electronic device 1000, including a processor 1001 and a memory 1002. The memory 1002 stores a program or instructions that can run on the processor 1001. When the program or instructions are executed by the processor 1001, they implement the various steps of the above-described liquid crystal module abnormality detection method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0173] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0174] Figure 14 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0175] The electronic device 100 includes, but is not limited to, components such as: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.
[0176] Those skilled in the art will understand that the electronic device 100 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 14 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0177] The processor 110 is used to run the operating system in a single thread and load the LCD module display driver when a power-on event is detected; the LCD module display driver is used to control the brightness of the screen LCD module of the electronic device.
[0178] The aforementioned processor 110 is used to determine the first power consumption value of the screen liquid crystal module based on the liquid crystal module display driver.
[0179] The aforementioned processor 110 is used to determine whether the screen LCD module is abnormal based on a first power consumption value and a first power consumption threshold.
[0180] Optionally, the processor 110 is specifically configured to: control the screen LCD module to a first brightness via the LCD module display driver, and detect a first current value within a first duration via the platform fuel gauge; and, control the screen LCD module to a second brightness via the LCD module display driver, and detect a second current value within the first duration via the platform fuel gauge. Specifically, the processor 110 is configured to determine a first power consumption value based on the first and second current values using the platform fuel gauge.
[0181] Optionally, the processor 110 is specifically used to determine that the screen LCD module is in a normal state when the first power consumption value is less than the first power consumption threshold.
[0182] Optionally, the processor 110 is specifically configured to: determine a second power consumption value of the screen liquid crystal module using the liquid crystal module display driver after a second period of time if the first power consumption value is greater than or equal to the first power consumption threshold; and determine a third power consumption value of the screen liquid crystal module using the liquid crystal module display driver after a third period of time if the second power consumption value is greater than or equal to the first power consumption threshold. Specifically, the processor 110 is configured to determine that the screen liquid crystal module is in an abnormal state if the third power consumption value is greater than or equal to the first power consumption threshold.
[0183] Optionally, the processor 110 is further configured to, after determining whether the screen LCD module is abnormal based on the first power consumption value and the first power consumption threshold, write a fourth power consumption value into the first partition when the screen LCD module is in a normal state, wherein the fourth power consumption value is the maximum value among the first power consumption value, the second power consumption value and the third power consumption value.
[0184] Optionally, the aforementioned power consumption threshold is stored in the first partition. The processor 110 is further configured to obtain a fifth power consumption value from the first partition, the fifth power consumption value being the historical highest power consumption value of the screen LCD module. The processor 110 is further configured to: determine a second power consumption threshold based on the fifth power consumption value and the historical usage information of the screen LCD module; and update the first power consumption threshold in the first partition using the second power consumption threshold.
[0185] Optionally, the display unit 106 is used to output a prompt message indicating that the screen liquid crystal module is in an abnormal state after determining that the screen liquid crystal module is in an abnormal state.
[0186] This application provides an electronic device that, upon detecting a power-on event, can run the operating system using a single thread. This means the device doesn't need to run the operating system in a multi-threaded environment, allowing fewer services to run in the background. This reduces the probability of service failures and minimizes the problem of high current consumption caused by such failures. Furthermore, the device can load a liquid crystal module display driver without loading additional drivers, avoiding the current instability caused by excessive driver loading. This allows for accurate current detection. Consequently, the LCM power consumption value calculated from the detected current is more accurate, improving the accuracy of identifying LCM anomalies.
[0187] The electronic device provided in this application embodiment can implement all the processes implemented in the above method embodiments and achieve the same technical effects. To avoid repetition, it will not be described again here. The beneficial effects of the various implementation methods in this embodiment can be found in the beneficial effects of the corresponding implementation methods in the above method embodiments. To avoid repetition, it will not be described again here.
[0188] It should be understood that, in this embodiment, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here.
[0189] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 109 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 109 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0190] Processor 110 may include one or more processing units; optionally, processor 110 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 110.
[0191] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described liquid crystal module anomaly detection method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0192] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0193] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described liquid crystal module anomaly detection method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0194] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0195] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above-described liquid crystal module anomaly detection method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0196] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0197] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0198] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A liquid crystal module abnormality detection method characterized by comprising: The method comprises the following steps: In the case of detecting a boot event, a single-threaded operating system is run, and a liquid crystal module display driver is loaded; The liquid crystal module display driver is used to control the brightness of the screen liquid crystal module of the electronic device; The screen liquid crystal module is controlled to have a first brightness by using the liquid crystal module display driver, and a first current value within a first time length is detected by a platform power meter; The screen liquid crystal module is controlled to have a second brightness by using the liquid crystal module display driver, and a second current value within the first time length is detected by the platform power meter; the second brightness is greater than the first brightness; A first power consumption value is determined based on the first current value and the second current value; Whether the screen liquid crystal module is abnormal is judged according to the first power consumption value and a first power consumption threshold.
2. The method of claim 1, wherein, The judgment of whether the screen liquid crystal module is abnormal according to the first power consumption value and the first power consumption threshold comprises: In the case that the first power consumption value is less than the first power consumption threshold, it is judged that the screen liquid crystal module is in a normal state.
3. The method of claim 1, wherein, The judgment of whether the screen liquid crystal module is abnormal according to the first power consumption value and the first power consumption threshold comprises: In the case that the first power consumption value is greater than or equal to the first power consumption threshold, a second power consumption value of the screen liquid crystal module is determined by using the liquid crystal module display driver after a second time length; In the case that the second power consumption value is greater than or equal to the first power consumption threshold, a third power consumption value of the screen liquid crystal module is determined by using the liquid crystal module display driver after a third time length; In the case that the third power consumption value is greater than or equal to the first power consumption threshold, it is judged that the screen liquid crystal module is in an abnormal state.
4. The method of claim 3, wherein, After the judgment of whether the screen liquid crystal module is abnormal according to the first power consumption value and the first power consumption threshold, the method further comprises: In the case that the screen liquid crystal module is in a normal state, a fourth power consumption value is written into a first partition, the fourth power consumption value being the maximum value among the first power consumption value, the second power consumption value and the third power consumption value.
5. The method of claim 4, wherein, The first power consumption threshold is stored in the first partition; The method further comprises: A fifth power consumption value is obtained from the first partition, the fifth power consumption value being a historical maximum power consumption value of the screen liquid crystal module; A second power consumption threshold is determined based on the fifth power consumption value and historical use information of the screen liquid crystal module; The first power consumption threshold in the first partition is updated by using the second power consumption threshold.
6. The method of claim 1, wherein, After the judgment that the screen liquid crystal module is in an abnormal state, the method further comprises: Prompt information that the screen liquid crystal module is abnormal is output.
7. A liquid crystal module abnormality detection device characterized by comprising: The method comprises the following steps: An execution module, a determination module and a judgment module are provided; In the case of detecting a boot event, a single-threaded operating system is run, and a liquid crystal module display driver is loaded; the liquid crystal module display driver is used to control the brightness of the screen liquid crystal module of the electronic device; The determining module is configured to control the screen liquid crystal module to display at a first brightness by using a liquid crystal module display drive, detect a first current value in a first time length by using a platform power meter, control the screen liquid crystal module to display at a second brightness by using the liquid crystal module display drive, and detect a second current value in the first time length by using the platform power meter; the second brightness is greater than the first brightness; and determine a first power consumption value based on the first current value and the second current value. The judging module is configured to judge whether the screen liquid crystal module is abnormal based on the first power consumption value determined by the determining module and a first power consumption threshold.
8. An electronic device, comprising: A processor and a memory are included, the memory stores programs or instructions executable on the processor, and the programs or instructions are executed by the processor to implement the steps of the liquid crystal module abnormality detection method according to any one of claims 1 to 6.
9. A readable storage medium, characterized by, The readable storage medium stores programs or instructions, and the programs or instructions are executed by the processor to implement the steps of the liquid crystal module abnormality detection method according to any one of claims 1 to 6.
Citation Information
Patent Citations
LCM (liquid crystal module) electric measurement function expansion device
CN104360185A
Power-on screen lighting method and device
CN108897578A