Liquid crystal module anomaly detection method and device, electronic equipment and storage medium

By running the operating system with a single thread during the boot event and loading the LCD module display driver, the problem of background service abnormalities affecting detection accuracy is solved, and a more accurate LCD module power consumption detection and abnormal judgment are achieved.

CN119763458AActive Publication Date: 2025-04-04VIVO MOBILE COMM CO LTD

Patent Information

Application Number
CN202510166574.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-14
Publication Date
2025-04-04
Estimated Expiration
2045-02-14

AI Technical Summary

Technical Problem

When detecting abnormalities in liquid crystal module (LCM), the prior art is affected by abnormalities in the background service, resulting in high current and affecting detection accuracy.

Method used

When a power-on event is detected, the operating system is run with a single thread and the LCD module display driver is loaded. The power consumption value of the screen LCD module is determined through the LCD module display driver, and compared with the power consumption threshold to determine the abnormality.

Benefits of technology

By reducing the operation of background services, the probability of service abnormality is reduced, the accuracy of detection current is improved, and the accuracy of judging LCM abnormality is improved by power consumption value.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119763458A_ABST
    Figure CN119763458A_ABST
Patent Text Reader

Abstract

The invention discloses a liquid crystal module anomaly detection method and device, electronic equipment and a storage medium, and belongs to the technical field of electronics. The method comprises the following steps: under the condition that a startup event is detected, running an operating system by utilizing a single thread, and loading a liquid crystal module display drive; the liquid crystal module display drive is used for controlling the brightness of a screen liquid crystal module of the electronic equipment; determining a first power consumption value of the screen liquid crystal module by using the liquid crystal module display driver; and judging whether the screen liquid crystal module is abnormal based on the first power consumption value and the first power consumption threshold.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of electronic technology, and specifically relates to a liquid crystal module abnormality detection method, device, electronic equipment and storage medium. Background Art

[0002] With the development of display technology, Liquid Crystal Module (LCM) is increasingly being used in electronic devices due to its advantages of high image quality, low power consumption, wide viewing angle, thinness, and fast response. However, during the use of LCM screens, LCM may become abnormal. If LCM is not repaired in time after an abnormality occurs, it may be damaged.

[0003] At present, electronic devices can determine whether there is an abnormality in the LCM by detecting the power consumption of the LCM. Specifically, the electronic device can detect the current of the electronic device when the LCM screen is in the off state, and the current of the electronic device when the LCM screen is in the brightest state, and then use the difference between the two as the power consumption value of the LCM, and compare the power consumption value with the power consumption threshold to determine whether there is an abnormality in the LCM.

[0004] However, since electronic devices usually have multiple services running in the background, when the electronic device detects LCM power consumption, if an abnormality occurs in the background service, such as a service crash, excessive file IO operations or other resource usage, then the system power consumption will increase, causing the detected current to be too high, thereby affecting the accuracy of the power consumption value calculation. As a result, the accuracy of the electronic device detecting LCM abnormalities is low. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a liquid crystal module abnormality detection method, device, electronic device and storage medium, which can improve the accuracy of electronic devices in detecting LCM abnormalities.

[0006] In a first aspect, an embodiment of the present application provides a method for detecting an abnormality of a liquid crystal module, the method comprising: when a power-on event is detected, 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 a 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 judging whether the screen liquid crystal module is abnormal based on the first power consumption value and a first power consumption threshold.

[0007] In a second aspect, an embodiment of the present application provides a liquid crystal module abnormality detection device, which includes: an execution module, a determination module and a judgment module. The above-mentioned execution module is used to run the operating system using a single thread and load the liquid crystal module display driver when a power-on event is detected. The liquid crystal module display driver is used to control the brightness of the screen liquid crystal module of the electronic device. The above-mentioned determination module is used to determine the 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 above-mentioned judgment module is used to judge whether the screen liquid crystal module is abnormal based on the first power consumption value and the first power consumption threshold determined by the determination module.

[0008] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0010] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0011] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0012] In an embodiment of the present application, when a power-on event is detected, the operating system can be run using a single thread, and a liquid crystal module display driver can be loaded. The liquid crystal module display driver is used to control the brightness of the screen liquid crystal module of the electronic device. Then, the first power consumption value corresponding to the screen liquid crystal module can be determined based on the liquid crystal module display driver, and based on the first power consumption value and the first power consumption threshold, it is determined whether the screen liquid crystal module is abnormal. In this solution, since the operating system is run using a single thread when a power-on event is detected, that is, there is no need to run the operating system under multiple threads, fewer services can be run in the background, thereby reducing the probability of service abnormalities and reducing the problem of high current of the electronic device caused by service abnormalities. In addition, the liquid crystal module display driver can be loaded without loading additional drivers, avoiding the problem of unstable current of the electronic device caused by loading too many drivers, so that the current of the electronic device can be accurately detected. In this way, the LCM power consumption value calculated by the current of the electronic device obtained by detection is more accurate, so that the accuracy of judging LCM abnormalities by the LCM power consumption value can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 This is one of the flow charts of the liquid crystal module abnormality detection method provided in the embodiment of the present application;

[0014] Figure 2 This is the second flow chart of the liquid crystal module abnormality detection method provided in the embodiment of the present application;

[0015] Figure 3 This is the third flow chart of the liquid crystal module abnormality detection method provided in the embodiment of the present application;

[0016] Figure 4 This is the fourth flow chart of the liquid crystal module abnormality detection method provided in the embodiment of the present application;

[0017] Figure 5 This is the fifth flow chart of the liquid crystal module abnormality detection method provided in the embodiment of the present application;

[0018] Figure 6 This is one of the schematic diagrams of prompt information provided in the embodiment of the present application;

[0019] Figure 7 This is the second schematic diagram of the prompt information provided in the embodiment of the present application;

[0020] Figure 8 This is the sixth flow chart of the liquid crystal module abnormality detection method provided in the embodiment of the present application;

[0021] Fig. 9 It is a schematic diagram of the execution process of the text generation method provided in the embodiment of the present application;

[0022] Fig.10It is one of the schematic diagrams of the liquid crystal module abnormality detection device provided in the embodiment of the present application;

[0023] Fig.11 This is the second schematic diagram of the liquid crystal module abnormality detection device provided in the embodiment of the present application;

[0024] Fig.12 This is the third schematic diagram of the liquid crystal module abnormality detection device provided in the embodiment of the present application;

[0025] Fig.13 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0026] Fig.14 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0028] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0029] The terms "at least one (item)", "at least one of" and the like in this application refer to any one, any two or a combination of more than two of the objects included therein. For example, at least one (item) of a, b, and c can be represented by: "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 (items)" refers to two or more, and its meaning is similar to that of "at least one (item)".

[0030] The following is a detailed description of the liquid crystal module abnormality detection method, device, electronic device and storage medium provided in the embodiments of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0031] The embodiments of the present application can be applied to a scenario where power consumption of an LCM in an electronic device is detected to determine whether the LCM is abnormal.

[0032] The following uses some specific scenarios of the embodiments of the present application as examples to exemplarily illustrate the liquid crystal module abnormality detection method provided in the embodiments of the present application.

[0033] Scenario 1: Assume that the user's mobile phone has an LCM screen, and an abnormality occurs in the LCM of the LCM screen. After the user turns on the mobile phone, the mobile phone can use a single thread to run the operating system and load the LCM display driver during the boot process, and then control the brightness of the LCM screen through the LCM display driver. The platform power meter detects the current of the mobile phone when the brightness of the LCM screen is the lowest and the brightness of the LCM screen is the highest, and calculates the LCM power consumption corresponding to the LCM screen based on the difference between the two currents. After calculating the LCM power consumption, the mobile phone compares the LCM power consumption with the power consumption threshold and determines that the LCM is abnormal, so that the mobile phone can display a prompt message after booting up to prompt the user to go to the after-sales service center for repair as soon as possible.

[0034] Scenario 2: Assuming that a smartwatch is equipped with an LCM screen, when the user restarts the smartwatch, it can use a single thread to run the operating system and only load the necessary LCM display driver. Then, the brightness of the LCM screen is controlled by the LCM display driver, and the power meter is used to detect the current at the lowest and highest brightness of the LCM screen to calculate the LCM power consumption value. After the detection is completed, the system will compare the LCM power consumption value with the set normal threshold. If abnormal power consumption is detected, the smartwatch can remind the user through vibration or pop-up notification, and recommend the user to go to the after-sales service center for inspection and maintenance.

[0035] It should be noted that the above-mentioned scenarios 1 and 2 are merely illustrative examples of some scenarios in which the embodiments of the present application may be applied. In actual implementation, the embodiments of the present application can also be applied to more scenarios requiring abnormal detection of liquid crystal modules, and the embodiments of the present application are not limited here.

[0036] The embodiments of the present application provide a method, device, electronic device and storage medium for detecting abnormality of a liquid crystal module. When a power-on event is detected, the electronic device can use a single thread to run the operating system, that is, the electronic device does not need to run the operating system under multiple threads, so that fewer services can be run in the background, thereby reducing the probability of abnormality of the service and reducing the problem of high current of the electronic device caused by abnormal service. In addition, the electronic device can load the liquid crystal module display driver without loading additional drivers, avoiding the problem of unstable current of the electronic device caused by loading too many drivers, so that the electronic device can accurately detect the current of the electronic device. In this way, the LCM power consumption value calculated by the current of the electronic device obtained by detection is more accurate, so that the accuracy of judging LCM abnormality by the LCM power consumption value can be improved.

[0037] The execution subject of the liquid crystal module abnormality detection method provided in the embodiment of the present application can be a liquid crystal module abnormality detection device, and the liquid crystal module abnormality detection device can be an electronic device, or a functional module or functional entity in an electronic device. The technical solution provided in the embodiment of the present application is described below using an electronic device as an example.

[0038] Figure 1 A flow chart of a method for detecting abnormality of a liquid crystal module provided in an embodiment of the present application is shown. Figure 1 As shown, the liquid crystal module abnormality detection method provided in the embodiment of the present application may include the following steps 201 to 203.

[0039] Step 201: When a power-on event is detected, the electronic device runs the operating system using a single thread and loads a liquid crystal module display driver.

[0040] In the embodiment of the present application, the above-mentioned liquid crystal module display driver is used to control the brightness of the screen liquid crystal module of the electronic device.

[0041] In the embodiment of the present application, the above-mentioned liquid crystal module display driver is also called LCM display driver, and the luminous intensity of the liquid crystal display module can be changed by controlling the backlight source of the LCM screen.

[0042] In the embodiment of the present application, the above-mentioned screen can be called an LCM screen or a liquid crystal screen, which is a screen composed of a liquid crystal module.

[0043] In the embodiment of the present application, the above-mentioned operating system is system software that manages the hardware and software resources of the electronic device and is used for interaction between the user and the electronic device.

[0044] In the embodiment of the present application, the above-mentioned power-on event is an event that triggers the electronic device to start the operating system and enter the power-on state, and the power-on state is the running state in which the electronic device successfully starts the operating system and can perform user interaction and execute application programs. The state opposite to the power-on state is the power-off state, which means that the electronic device is turned off. In this state, the operating system of the electronic device is not running, and the hardware components and functions in the electronic device are inactive.

[0045] Optionally, in the embodiment of the present application, the above power-on event may include but is not limited to any of the following situations:

[0046] (1) User operation: When the electronic device is turned off, the user can manually start the electronic device by pressing the power button of the electronic device.

[0047] (2) Startup upon power connection: When an electronic device is powered off and connected to a power source, the electronic device automatically starts up.

[0048] (3) Restart: The electronic device restarts in the event of a software update, system failure, or the user manually chooses to restart.

[0049] (4) Scheduled power-on: When the electronic device is turned off, it automatically turns on based on the preset time.

[0050] (5) External signal triggering: When the electronic device is powered off, the electronic device starts up in response to an external signal. For example, the external signal may be a network wake-up signal or a sensor trigger.

[0051] It should be noted that the above single thread is to use only one execution thread to process tasks in one process. In the single thread state, the operating system of the electronic device runs in a linear manner, and all tasks are executed in sequence, avoiding the complexity and potential problems caused by multi-threaded concurrency.

[0052] Optionally, in an embodiment of the present application, during the startup process of the electronic device, when a power-on event is detected and before the kernel of the operating system is loaded and running, the electronic device can enter an LCM power consumption detection mode. In this mode, the electronic device can use only one thread to start the operating system and only load the drivers necessary for detecting the LCM power consumption, such as the LCM display driver, without loading other non-essential drivers. This ensures that the current stability of the electronic device can be maintained during power consumption detection, avoiding interference with the stability of the current caused by multi-threaded running of multiple services and loading too many drivers.

[0053] Step 202: Determine a first power consumption value of the screen liquid crystal module by using a liquid crystal module display driver.

[0054] In the embodiment of the present application, the first power consumption value is the power consumed by the LCM in the LCM screen when working, that is, the power consumed by the LCM screen displaying content. The LCM power consumption value depends on factors such as the brightness of the LCM screen, the display content and the refresh rate of the screen.

[0055] Optionally, in an embodiment of the present 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 at the brightness through the platform power meter, thereby calculating the LCM power consumption value based on the detected current value.

[0056] Optionally, in the embodiment of the present application, combined with Figure 1 ,like Figure 2 As shown, the above step 202 can be specifically implemented through the following steps 202a to 202c.

[0057] Step 202a: The electronic device uses the liquid crystal module display driver to control the screen liquid crystal module to a first brightness, and detects a first current value within a first time period through a platform power meter.

[0058] In the embodiment of the present application, the above-mentioned first current value is the current value of the electronic device when the screen liquid crystal module is in the first brightness state.

[0059] Optionally, in an embodiment of the present application, the above-mentioned first brightness can be a lower brightness level, for example, it can be 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 source of the LCM screen is turned off, so that the luminous intensity of the liquid crystal display module is close to the minimum, and the LCM screen appears to be in a state close to a black screen.

[0060] It can be understood 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 the embodiment of the present application, the first duration is the duration of measuring the current value when the LCM screen is in the lowest brightness state.

[0062] Optionally, in the embodiment of the present application, the first duration may be a default duration of the electronic device or a preset duration of the user. For example, the first duration may be 0.5 seconds, 1 second, or 2 seconds. The specific duration may be determined according to actual use requirements, and the embodiment of the present application does not limit this.

[0063] Optionally, in an embodiment of the present application, the electronic device can adjust the brightness of the LCM screen to a level close to the minimum through the LCM display driver, so that the LCM screen appears to be close to a black screen state, so that the power consumption of the LCM screen is close to 0, and 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 of these values ​​to obtain a stable and accurate first current value.

[0064] Exemplarily, assuming that the first duration is 1 second, assuming that the number of detections is 5 times, the electronic device can detect the current value 5 times within 1 second, and assuming that the current values ​​detected by the electronic device are 80 milliampere (mA), 82mA, 81mA, 83mA, and 80mA, respectively, then the electronic device can calculate the average of these 5 current values ​​and obtain the first current value = (80+82+81+83+80) / 5 = 81.2mA.

[0065] Step 202b: The electronic device uses the liquid crystal module display driver to control the screen liquid crystal module to a second brightness, and detects a second current value within a first time period through a platform power meter.

[0066] In the embodiment of the present application, the second brightness is greater than the first brightness.

[0067] Optionally, in an embodiment of the present application, the second brightness may be a higher brightness level, for example, the highest brightness, that is, the brightness of the LCM screen is adjusted to a level close to the highest level.

[0068] In the embodiment of the present application, the above-mentioned second current value is the current value of the electronic device when the screen liquid crystal module is in the second brightness state.

[0069] Optionally, in an embodiment of the present application, the electronic device may continuously display a dynamic image or interface at a fixed refresh rate within a first duration, or the electronic device may continuously display a static image or interface at a fixed refresh rate within a first duration, for example, continuously displaying the home 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 an embodiment of the present application, the electronic device can adjust the brightness of the LCM screen to the highest through the LCM display driver so that the power consumption of the LCM screen is close to the highest. Then the electronic device can detect the current value multiple times, for example 5 times, through the platform power meter within the set first time period, and calculate the average of these values ​​to obtain a stable and accurate second current value.

[0071] Exemplarily, assuming that the first duration is 1 second, assuming that the number of detections is 5 times, the electronic device can detect the current value 5 times within 1 second, and assuming that the current values ​​detected by the electronic device are 480mA, 482mA, 481mA, 482mA, and 480mA respectively, the electronic device can calculate the average of these 5 current values ​​and obtain the second current value = (480+482+481+482+480) / 5 = 481mA.

[0072] Step 202c: The electronic device determines a first power consumption value based on the first current value and the second current value.

[0073] In the embodiment of the present application, the above power consumption value is also called LCM power consumption value, which is the power consumption value of LCM.

[0074] It should be noted that the power consumption value is the product of the current value and the voltage value. In the embodiment of the present application, since the voltage change of the electronic device is small and only the current value changes greatly, the difference between the first current value and the second current value, that is, the current value used by LCM, is used to represent the size of the first power consumption value.

[0075] Optionally, in the embodiment of the present application, the electronic device may use a platform power meter to take the difference between the first current value and the second current value as the first power consumption value.

[0076] Exemplarily, assuming that the first current value is 81.2 mA and the second current value is 481 mA, the electronic device can calculate the first power consumption value=481-81.2=399.8 mA through the platform power meter.

[0077] In this way, the electronic device can control the lighting of the LCM screen through the LCM display driver, and detect the current value of the electronic device at the brightness through the platform power meter. Therefore, by controlling the brightness of the LCM screen without 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 liquid crystal module is abnormal according to the first power consumption value and the first power consumption threshold.

[0079] In the embodiment of the present application, the first power consumption threshold is a standard for determining whether the LCM is abnormal, and is used to compare with the first power consumption value to determine whether the LCM in the LCM screen is abnormal.

[0080] Optionally, in the embodiment of the present application, the first power consumption threshold may be a default value of the electronic device or a preset value by the user. For example, the first power consumption threshold may be 400mA, 410mA, or 420mA, etc. The specific value may be determined according to actual use requirements, and the embodiment of the present application does not limit this.

[0081] Optionally, in the embodiment of the present application, combined with Figure 1 ,like Figure 3 As shown, the above step 203 can be specifically implemented through the following step 203a.

[0082] Step 203a: When the first power consumption value is less than the first power consumption threshold, the electronic device determines that the screen liquid crystal module is in a normal state.

[0083] Exemplarily, assuming that the power consumption threshold is 400mA, and assuming that 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, then the electronic device can determine that the screen LCD module is in a normal state.

[0084] In this way, when the first power consumption value is less than the power consumption threshold, the electronic device can believe that the LCM has no abnormal power consumption, that is, the LCM is in good working condition and there is no abnormality. Therefore, when the first power consumption value is less than the power consumption threshold, the electronic device can quickly and accurately determine that the screen LCD module is in a normal state, thereby improving the efficiency and accuracy of the electronic device in judging whether the LCM is normal.

[0085] Optionally, in the embodiment of the present application, combined with Figure 1 ,like Figure 4 As shown, the above step 203 can be specifically implemented through the following steps 203b to 203d.

[0086] Step 203b: When the first power consumption value is greater than or equal to the first power consumption threshold, the electronic device determines a second power consumption value of the screen liquid crystal module by using the liquid crystal module display driver after a second period of time.

[0087] Optionally, in the embodiment of the present application, the second duration may be a default duration of the electronic device or a preset duration of the user. For example, the second duration may be 1 second, 2 seconds, or 3 seconds, etc. The specific duration may be determined according to actual use requirements, and the embodiment of the present application does not limit this.

[0088] Optionally, in an embodiment of the present application, when the first power consumption value is greater than or equal to the first power consumption threshold, the electronic device can reuse the liquid crystal module display driver to obtain the power consumption value of the LCM after a second period of time, obtain a second power consumption value, and then compare the second power consumption value with the first power consumption threshold.

[0089] Optionally, in the embodiment of the present 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] Exemplarily, assuming that the power consumption threshold is 400mA, the first power consumption value is 401mA, and assuming that the second time length is 3 seconds, the electronic device can reuse the liquid crystal module display driver to obtain the second power consumption value after determining that the first power consumption value is greater than the first power consumption threshold for 3 seconds. Assuming that 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, then 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 a third power consumption value of the screen liquid crystal module by using the liquid crystal module display driver after a third period of time.

[0092] Optionally, in the embodiment of the present application, the third duration may be a default duration of the electronic device or a preset duration of the user. For example, the third duration may be 1 second, 2 seconds, or 3 seconds, etc. The specific duration may be determined according to actual use requirements, and the embodiment of the present application does not limit this.

[0093] Optionally, in an embodiment of the present application, when the second power consumption value is greater than or equal to the first power consumption threshold, the electronic device can reuse the liquid crystal module display driver to obtain the power consumption value of the LCM after a third period of time, obtain a third power consumption value, and then compare the third power consumption value with the first power consumption threshold.

[0094] Optionally, in the embodiment of the present 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] Exemplarily, assuming that the power consumption threshold is 400mA, the second power consumption value is 402mA, and assuming that the third time length is 2 seconds, the electronic device can reuse the LCD module display driver to obtain the third power consumption value 2 seconds after determining that the second power consumption value is greater than the first power consumption threshold. Assuming that 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, then the electronic device can determine that the screen LCD module is in a normal state.

[0096] Step 203d: When the third power consumption value is greater than or equal to the first power consumption threshold, the electronic device determines that the screen liquid crystal module is in an abnormal state.

[0097] Exemplarily, assuming that the power consumption threshold is 400mA, the second power consumption value is 402mA, and assuming that the third time length is 2 seconds, the electronic device can re-obtain the third power consumption value based on the first drive 2 seconds after determining that the second power consumption value is greater than the first power consumption threshold. Assuming that 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, and the electronic device can determine that the screen LCD module is in an abnormal state.

[0098] Optionally, in an embodiment of the present application, the electronic device may detect the LCM power consumption value for a second time after a second period of time, obtain a second power consumption value, and continue to compare the power consumption value detected for the second time, i.e., the second power consumption value, with the first power consumption threshold, when the first power consumption value detected for the first time is greater than or equal to 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 may detect the LCM power consumption value for a third time after a third period of time, obtain a third power consumption value, and continue to compare the power consumption value detected for the third time, i.e., the third power consumption value, with the first power consumption threshold. Similarly, when the first power consumption value is greater than or equal to the first power consumption threshold, the electronic device may 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 the preset number of times.

[0099] Optionally, in the embodiment of the present application, the above detection times may be a default of the electronic device or a preset by the user. For example, the above detection times may be 3 times. The specific number may be determined according to actual use requirements and is not limited in the embodiment of the present application.

[0100] Optionally, in an embodiment of the present application, when the number of detections is less than a preset number of times, if the electronic device detects that the LCM power consumption value is less than a first power consumption threshold, 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 period of time, and continue to compare the LCM power consumption value with the first power consumption threshold.

[0101] Optionally, in an embodiment of the present application, when the number of detections is greater than or equal to a preset number of times, if the electronic device detects that the LCM power consumption value is less than a power consumption threshold, 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 power consumption threshold, the electronic device can determine that there is an abnormality in the LCM.

[0102] In this way, the electronic device can more accurately determine whether the LCM is abnormal by detecting the LCM power consumption value multiple times in different time periods, avoid misjudgment caused by power consumption fluctuations in a short period of time, and improve the accuracy of the electronic device in determining LCM abnormalities.

[0103] The embodiment of the present application provides a method for detecting abnormalities in a liquid crystal module. When a power-on event is detected, the operating system can be run using a single thread, that is, there is no need to run the operating system under multiple threads, so that fewer services can be run in the background, thereby reducing the probability of service abnormalities and reducing the problem of high current in electronic devices caused by service abnormalities. In addition, a first driver including an LCM display driver and a platform power meter can be loaded without loading other additional drivers, avoiding the problem of unstable current in electronic devices caused by loading too many drivers, so that the current of the electronic device can be accurately detected and the LCM power consumption value corresponding to the LCM screen can be calculated. In this way, the accuracy of the electronic device in detecting LCM power consumption is improved.

[0104] Optionally, in the embodiment of the present application, combined with Figure 4 ,like Figure 5 As shown, after the above step 203d, the liquid crystal module abnormality detection method provided in the embodiment of the present application further includes the following step 301.

[0105] Step 301: The electronic device outputs a prompt message indicating that the screen liquid crystal module is abnormal.

[0106] In the embodiment of the present application, the above prompt information is used to prompt that the screen LCD module is in an abnormal state.

[0107] Optionally, in an embodiment of the present application, when the electronic device determines that the screen liquid crystal module is in an abnormal state, the electronic device may display a prompt message through the LCM screen.

[0108] Optionally, in an embodiment of the present application, the above prompt information may be displayed in the top area of ​​the LCM screen, or the above prompt information may also be displayed in the form of a window in the LCM screen.

[0109] For example, taking the electronic device as a mobile phone as an example, Figure 6 As shown, assuming that the mobile phone detects an LCM abnormality during the boot process, the mobile phone can display a prompt message 11 in the top area 10 of the LCM screen.

[0110] As another example, Figure 7 As shown, assuming that the mobile phone detects an LCM abnormality during the boot process, the mobile phone can display a first window 12 in the LCM screen and display a prompt message 11 in the first window 12.

[0111] Optionally, in an embodiment of the present application, when the electronic device has multiple LCM screens, the above prompt information is used to prompt that the liquid crystal module of the screen displaying the prompt information is in an abnormal state.

[0112] In this way, the electronic device can inform the user of the LCM abnormality through a prompt message, thereby reminding the user to repair the LCM in time to avoid more serious failures caused by the user's failure to detect the problem.

[0113] Optionally, in the embodiment of the present application, combined with Figure 5 ,like Figure 8 As shown, after the above step 301, the liquid crystal module abnormality detection method provided in the embodiment of the present application further includes the following step 401.

[0114] Step 401: When the screen liquid crystal module is in a normal state, the electronic device writes a fourth power consumption value into the first partition.

[0115] In the embodiment of the present 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 the embodiment of the present application, the first partition is also called the backup partition, which is used to store data generated by the device during 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 re-read the data after restarting.

[0117] Optionally, in an embodiment of the present application, when the electronic device determines that the LCM corresponding to the LCM screen is normal based on the acquired LCM power consumption value, the electronic device can write the maximum value of the acquired LCM power consumption values ​​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 a normal state.

[0118] For example, when the electronic device determines that the LCM is normal based on the acquired first power consumption value, the electronic device may use the first power consumption value as the fourth power consumption value.

[0119] For another example, assuming that the preset number of times is 4 times, assuming that the first power consumption threshold is 400mA, the LCM power consumption value obtained by the electronic device for the first time is 400.2mA, which is greater than the first power consumption threshold, and then the electronic device obtains the LCM power consumption value for the second time. Assuming that the LCM power consumption value obtained by the electronic device for the second time is 401mA, which is greater than the first power consumption threshold, and then the electronic device obtains the LCM power consumption value for the third time. Assuming that the LCM power consumption value obtained by the electronic device for the third time is 400.5mA, which is greater than the first power consumption threshold, and then the electronic device obtains the LCM power consumption value for the fourth time. Assuming that the LCM power consumption value obtained by the electronic device for the fourth time is 399.8mA, which is less than the first power consumption threshold, the electronic device can use the maximum value of the four LCM power consumption values ​​obtained as the fourth power consumption value, that is, the electronic device can use 401mA as the fourth power consumption value and write it into the first partition.

[0120] In this way, the electronic device can provide data support for subsequent calculation of the first power consumption threshold by recording the maximum power consumption value, thereby improving the accuracy of the electronic device in determining LCM abnormalities.

[0121] Optionally, in the embodiment of the present application, the first power consumption threshold is stored in the first partition. Exemplarily, the liquid crystal module abnormality detection method provided in the embodiment of the present application further includes the following steps 501 to 503.

[0122] Step 501: The electronic device obtains a fifth power consumption value from a first partition.

[0123] In the embodiment of the present application, the fifth power consumption value mentioned above is the historical highest power consumption value of the screen liquid crystal module.

[0124] Optionally, in an embodiment of the present application, at least one LCM power consumption value is stored in the first partition.

[0125] Optionally, in an embodiment of the present application, after each startup, if the screen LCD module is in a normal state, the electronic device can obtain the LCM power consumption value written during this startup process from the first partition, and compare the LCM power consumption value with the historical highest power consumption value when the LCM power consumption value was historically detected before this startup, 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] Exemplarily, assuming that the electronic device is in the off state, the first partition of the electronic device stores the historical highest power consumption value of 398mA when the LCM power consumption value is historically detected. At this time, the user operates the electronic device to turn on the device. assuming that during this startup process, the electronic device determines that the screen LCD module is in a normal state and writes the fourth power consumption value 399mA into the first partition, then after the electronic device is turned on, the electronic device can obtain the fourth power consumption value 399mA and the maximum power consumption value 398mA in the historical LCM power consumption values ​​before this startup from the first partition, and use the maximum value of 399mA of the two LCM power consumption values ​​as the historical highest power consumption value, i.e., the fifth power consumption value.

[0127] Optionally, in an embodiment of the present application, the electronic device may store all historically detected LCM power consumption values ​​in the first partition. After each startup, if the LCM corresponding to the LCM screen is normal, the electronic device may use the maximum value of all LCM power consumption values ​​stored in the first partition as the fifth power consumption value.

[0128] For example, assuming that during a certain startup process, the electronic device determines that the LCM corresponding to the LCM screen is normal, and assuming that after the electronic device is powered on, the following LCM power consumption values ​​are stored in the first partition: LCM power consumption value A: 395mA, LCM power consumption value B: 400mA, LCM power consumption value C: 398mA, LCM power consumption value D: 402mA, where LCM power consumption value D is the LCM power consumption value detected during this startup process. The electronic device can use the maximum value of all LCM power consumption values ​​stored in the first partition, that is, 402mA, as the fifth power consumption value.

[0129] Optionally, in an embodiment of the present application, the electronic device may store the historically detected LCM power consumption value to a cloud server, and the cloud server may collect information such as the model, machine identification (ID), frame rate, usage time, defect rate, LCM power consumption value, etc. of the electronic device for calculating the first power consumption threshold. Examples of such information are shown in Table 1:

[0130] Table 1

[0131]

[0132] Among them, C lcm_c is the fifth power consumption value, C worning After each startup, if the LCM corresponding to the LCM screen is normal, the electronic device can compare the fourth power consumption value written into the first partition during this startup process with the LCM power consumption value stored in the cloud server, and use the maximum value as the fifth power consumption value.

[0133] Step 502: The electronic device determines a second power consumption threshold based on the fifth power consumption value and historical usage information of the screen liquid crystal module.

[0134] Optionally, in an embodiment of the present 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 time, and defective rate.

[0135] Optionally, in the embodiment of the present application, the second power consumption threshold may be calculated by the following formula (1):

[0136] C worning =T·V+C lcm_c ·(1+P·X)+Y Formula (1)

[0137] Among them, C worning is the second power consumption threshold, T is the usage time, and the unit of the usage time is day. V is the usage time coefficient, that is, the LCM will produce normal wear and tear as the usage time increases. The usage time coefficient can be preset according to the model of the LCM screen, for example, it can be 0.01. C lcm_cis the fifth power consumption value, P is the defect rate, for example, it can be 0.001. X is the defect rate coefficient, which defaults to 1. Y is the controllable offset, for example, the controllable offset can be 2, that is, it is considered that the error of 2mA is within the normal acceptable range and can be adjusted according to the actual situation.

[0138] For example, assuming that the usage time T is 3 days, the usage time 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, that is, when the power consumption of the LCM detected during the next startup process is greater than or equal to this value, the electronic device can display a prompt message through 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 an embodiment of the present application, after the electronic device calculates the second power consumption threshold, the second power consumption threshold can be used 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 startup process to determine whether the LCM is abnormal.

[0141] Optionally, in an embodiment of the present application, the electronic device can automatically and imperceptibly determine the abnormality of the LCM during the user's use of the electronic device. Specifically, the electronic device can calculate a power consumption threshold based on the power consumption value of the LCM during the user's use, combined with information such as the LCM screen-on usage time, the LCM monomer defect rate, and the LCM frame rate, and then upload this threshold to the cloud. The electronic device can continuously detect the LCM power consumption value and compare it with the threshold to detect LCM failures in a timely manner. This detection mechanism can not only detect whether the LCM in the user's electronic device is abnormal in real time during the user's use, but also use the user data in the cloud to screen out LCM devices with poor performance in advance at the factory, thereby preventing these LCM devices with poor performance from entering the market and avoiding these LCM devices with poor performance from affecting the user's experience.

[0142] In this way, the electronic device can update the power consumption threshold in time according to the historically detected LCM power consumption value and usage information each time it is turned on. That is, the electronic device can dynamically adjust the power consumption threshold based on information such as the usage time of the LCM, thereby improving the accuracy of the electronic device using the power consumption threshold to determine whether the LCM is abnormal.

[0143] The present application provides a method for detecting abnormality of a liquid crystal module. Fig. 9 FIG. 1 is a flow chart of a method for detecting abnormality of a liquid crystal module provided by an embodiment of the present application, and the method can be applied to electronic devices. Fig. 9 As shown, the liquid crystal module abnormality detection method provided in the embodiment of the present application may include the following steps 10 to 15.

[0144] Step 10: When a power-on event is detected, the electronic device enters an LCM power consumption detection mode.

[0145] In the embodiment of the present application, in the above-mentioned LCM power consumption detection mode, the electronic device uses a single thread to run the operating system and loads the LCM display driver.

[0146] Step 11: The electronic device detects the LCM power consumption value according to the LCM display driver and the platform power meter.

[0147] In the embodiment of the present 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 the highest and the current value of the electronic device when the LCM screen brightness is the lowest.

[0148] Step 12: The electronic device determines whether the LCM is abnormal according to the LCM power consumption value and the power consumption threshold.

[0149] When the electronic device determines that the LCM is abnormal, the electronic device executes the following step 15. When the electronic device determines that the LCM is not abnormal, the electronic device executes the following step 13.

[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 the embodiment of the present application, the historical LCM power consumption value is at least one LCM power consumption value detected by the electronic device during the historical detection process when the electronic device determines that the LCM is normal. The maximum LCM power consumption value is the maximum value of at least one LCM power consumption value detected by the electronic device during the historical detection process when the electronic device determines that the LCM is normal.

[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 through the LCM screen.

[0154] In the embodiment of the present application, the above prompt information is used to prompt that the LCM corresponding to the LCM screen is abnormal.

[0155] In the embodiment of the present application, the electronic device can automatically detect the stable and accurate power consumption current value of the LCM of the electronic device in real time without affecting the user experience, without disassembling the electronic device during the user's use. In addition, the electronic device can also dynamically adjust the alarm threshold based on information such as the LCM usage time, LCM monomer defect rate, and LCM frame rate. When abnormal power consumption is detected, the electronic device can promptly issue a reminder to the user and suggest going to the after-sales service center for repair, thereby improving the reliability of the electronic device and the user's experience, and reducing the potential loss of the user due to LCM abnormalities.

[0156] Each of the above-mentioned method embodiments, or various possible implementation methods in each method embodiment can be executed separately, or any two or more of them can be executed in combination with each other. The specific implementation method can be determined according to actual usage requirements, and the embodiments of the present application do not limit this.

[0157] The liquid crystal module abnormality detection method provided in the embodiment of the present application can be executed by a liquid crystal module abnormality detection device. In the embodiment of the present application, the liquid crystal module abnormality detection device executing the liquid crystal module abnormality detection method is taken as an example to illustrate the liquid crystal module abnormality detection device provided in the embodiment of the present application.

[0158] Fig.10 FIG. 2 shows a possible structural diagram of a liquid crystal module abnormality detection device involved in some embodiments of the present application. Fig.10 As shown, the liquid crystal module abnormality 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 using 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 LCD module of the electronic device.

[0160] The determination 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 above-mentioned judgment module 73 is used to judge whether the screen liquid crystal module is abnormal according to the first power consumption value and the first power consumption threshold determined by the determination module 72.

[0162] In a possible implementation, the determination module 72 is specifically used to: control the screen liquid crystal module to be at a first brightness through the liquid crystal module display driver loaded by the execution module 71, and detect the first current value within a first time length through the platform power meter; and control the screen liquid crystal module to be at a second brightness through the liquid crystal module display driver loaded by the execution module 71, and detect the second current value within the first time length through the platform power meter; the second brightness is greater than the first brightness. The execution module 71 is specifically used to determine the first power consumption value based on the first current value detected by the determination module 72 and the second current value detected by the determination module 72 through the platform power meter.

[0163] In a possible implementation, the judgment module 73 is specifically used to judge that the screen liquid crystal 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 a possible implementation, the determination module 72 is specifically used to: determine the second power consumption value of the screen liquid crystal module by using the liquid crystal module display driver after a second time period when the first power consumption value is greater than or equal to the first power consumption threshold; and determine the third power consumption value of the screen liquid crystal module by using the liquid crystal module display driver after a third time period when the second power consumption value is greater than or equal to the first power consumption threshold. The judgment module 73 is specifically used to determine that the screen liquid crystal module is in an abnormal state when the third power consumption value determined by the determination module 72 is greater than or equal to the first power consumption threshold.

[0165] In a possible implementation, the above-mentioned execution module 71 is also used to write a fourth power consumption value into the first partition 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, when the screen LCD module is in a normal state. The fourth power consumption value is the maximum value of the first power consumption value, the second power consumption value and the third power consumption value.

[0166] In a possible implementation, the first power consumption threshold is stored in the first partition. Fig.10 ,like Fig.11 As shown, the liquid crystal module abnormality detection device provided in the embodiment of the present application also includes: an acquisition module 74. The acquisition module 74 is used to obtain a fifth power consumption value from the first partition, and the fifth power consumption value is the historical highest power consumption value of the screen liquid crystal module. The execution module 71 is also used to: determine the second power consumption threshold based on the fifth power consumption value obtained by the acquisition module 74 and the historical usage information of the screen liquid crystal module; and use the second power consumption threshold to update the first power consumption threshold in the first partition.

[0167] In one possible implementation, combining Fig.10 ,like Fig.12As shown, the liquid crystal module abnormality detection device provided in the embodiment of the present application further includes: a display module 75. The display module 75 is used to output prompt information of the abnormality of the screen liquid crystal module after the judgment module 73 judges that the screen liquid crystal module is in an abnormal state.

[0168] In the embodiment of the present application, a liquid crystal module abnormality detection device is provided. Since the liquid crystal module abnormality detection device can use a single thread to run the operating system when a power-on event is detected, that is, the liquid crystal module abnormality detection device does not need to run the operating system under multiple threads, so that fewer services can be run in the background, thereby reducing the probability of service abnormalities and reducing the problem of high current of the liquid crystal module abnormality detection device caused by service abnormalities. In addition, the liquid crystal module abnormality detection device can load the liquid crystal module display driver without loading additional drivers, avoiding the problem of unstable current of the liquid crystal module abnormality detection device caused by loading too many drivers, so that the liquid crystal module abnormality detection device can accurately detect the current of the liquid crystal module abnormality detection device. In this way, the LCM power consumption value obtained by calculating the current of the liquid crystal module abnormality detection device obtained by detection is more accurate, so that the accuracy of judging LCM abnormalities through the LCM power consumption value can be improved.

[0169] The liquid crystal module abnormality detection device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than the terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a car electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and the embodiment of the present application is not specifically limited.

[0170] The liquid crystal module abnormality detection device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0171] The liquid crystal module abnormality detection device provided in the embodiment of the present application can implement each process implemented in the above method embodiment, and will not be described again here to avoid repetition.

[0172] Alternatively, if Fig.13 As shown, an embodiment of the present application also provides an electronic device 1000, including a processor 1001 and a memory 1002, wherein the memory 1002 stores a program or instruction that can be executed on the processor 1001, and when the program or instruction is executed by the processor 1001, each step of the above-mentioned liquid crystal module abnormality detection method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0173] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0174] Fig.14 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0175] The electronic device 100 includes but is not limited to components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.

[0176] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.14 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0177] The processor 110 is used to run the operating system using a single thread and load a liquid crystal module display driver when a power-on event is detected; the LCM display driver is used to control the brightness of the liquid crystal module of the electronic device's screen.

[0178] The processor 110 is configured to determine a first power consumption value of the screen liquid crystal module based on a display driver of the liquid crystal module.

[0179] The processor 110 is used to determine whether the screen liquid crystal module is abnormal based on the first power consumption value and the first power consumption threshold.

[0180] Optionally, the processor 110 is specifically configured to: control the screen liquid crystal module to a first brightness through a liquid crystal module display driver, and detect a first current value within a first duration through a platform power meter; and control the screen liquid crystal module to a second brightness through a liquid crystal module display driver, and detect a second current value within a first duration through a platform power meter. The processor 110 is specifically configured to determine a first power consumption value based on the first current value and the second current value through a platform power meter.

[0181] Optionally, the processor 110 is specifically configured to determine that the screen LCD module is in a normal state when the first power consumption value is less than a first power consumption threshold.

[0182] Optionally, the processor 110 is specifically configured to: determine the second power consumption value of the screen liquid crystal module by using the liquid crystal module display driver after a second time period when the first power consumption value is greater than or equal to the first power consumption threshold; and determine the third power consumption value of the screen liquid crystal module by using the liquid crystal module display driver after a third time period when the second power consumption value is greater than or equal to the first power consumption threshold. The processor 110 is specifically configured to determine that the screen liquid crystal module is in an abnormal state when the third power consumption value is greater than or equal to the first power consumption threshold.

[0183] Optionally, the above-mentioned processor 110 is also used to write a fourth power consumption value into the first partition after judging whether the screen LCD module is abnormal based on the first power consumption value and the first power consumption threshold, when the screen LCD module is in a normal state. The fourth power consumption value is the maximum value of the first power consumption value, the second power consumption value and the third power consumption value.

[0184] Optionally, the power consumption threshold is stored in the first partition. The processor 110 is further used to obtain a fifth power consumption value from the first partition, where the fifth power consumption value is the historical highest power consumption value of the screen liquid crystal module. The processor 110 is further used to: determine a second power consumption threshold based on the fifth power consumption value and 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.

[0185] Optionally, the display unit 106 is used to output a prompt message indicating that the screen liquid crystal module is abnormal after determining that the screen liquid crystal module is in an abnormal state.

[0186] An electronic device is provided in an embodiment of the present application. Since, in the case of detecting a power-on event, the electronic device can use a single thread to run the operating system, that is, the electronic device does not need to run the operating system under multiple threads, so that fewer services can be run in the background, thereby reducing the probability of service abnormalities and reducing the problem of high current of the electronic device caused by service abnormalities. In addition, the electronic device can load a liquid crystal module display driver without loading additional drivers, avoiding the problem of unstable current of the electronic device caused by loading too many drivers, so that the electronic device can accurately detect the current of the electronic device. In this way, the LCM power consumption value calculated by the current of the electronic device obtained by detection is more accurate, so that the accuracy of judging LCM abnormalities by the LCM power consumption value can be improved.

[0187] The electronic device provided in the embodiment of the present application can implement each process implemented in the above method embodiment, and can achieve the same technical effect. To avoid repetition, it is not repeated here. The beneficial effects of various implementations in this embodiment can be specifically referred to the beneficial effects of the corresponding implementations in the above method embodiment. To avoid repetition, it is not repeated here.

[0188] It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: 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 keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0189] The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 109 may include a volatile memory or a non-volatile memory, or the memory 109 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0190] The processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 110.

[0191] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned liquid crystal module abnormality detection method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0192] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0193] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned liquid crystal module abnormality detection method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0194] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0195] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned liquid crystal module abnormality detection method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0196] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0197] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0198] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for detecting abnormality of a liquid crystal module, characterized in that: include: When a power-on event is detected, the operating system is run using a single thread and a display driver for the LCD module is loaded; The liquid crystal module display driver is used to control the brightness of the screen liquid crystal module of the electronic device; Determining a first power consumption value of the screen liquid crystal module by using the liquid crystal module display driver; Whether the screen liquid crystal module is abnormal is determined according to the first power consumption value and the first power consumption threshold.

2. The method according to claim 1, characterized in that The method of determining a first power consumption value of the screen liquid crystal module by using the liquid crystal module display driver includes: Using the liquid crystal module display driver to control the screen liquid crystal module to a first brightness, and detecting a first current value within a first time period through a platform power meter; The screen liquid crystal module is controlled to a second brightness by using the liquid crystal module display driver, and a second current value within a first time period is detected by using the platform electricity meter; the second brightness is greater than the first brightness; The first power consumption value is determined based on the first current value and the second current value.

3. The method according to claim 1, characterized in that The determining, according to the first power consumption value and the first power consumption threshold, whether the screen liquid crystal module is abnormal includes: When the first power consumption value is less than the first power consumption threshold, it is determined that the screen liquid crystal module is in a normal state.

4. The method according to claim 1, characterized in that: The determining, according to the first power consumption value and the first power consumption threshold, whether the screen liquid crystal module is abnormal includes: When the first power consumption value is greater than or equal to the first power consumption threshold, after a second time period, determining a second power consumption value of the screen liquid crystal module by using the liquid crystal module display driver; When the second power consumption value is greater than or equal to the first power consumption threshold, after a third time period, using the liquid crystal module display driver to determine a third power consumption value of the screen liquid crystal module; When the third power consumption value is greater than or equal to the first power consumption threshold, it is determined that the screen liquid crystal module is in an abnormal state.

5. The method according to claim 4, characterized in that After determining whether the screen liquid crystal module is abnormal according to the first power consumption value and the first power consumption threshold, the method further includes: When the screen liquid crystal module is in a normal state, a fourth power consumption value is written into the first partition, and 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.

6. The method according to claim 5, characterized in that The first power consumption threshold is stored in a first partition; The method further comprises: Acquire a fifth power consumption value from the first partition, where the fifth power consumption value is a historical maximum power consumption value of the screen liquid crystal module; Determining a second power consumption threshold based on the fifth power consumption value and the historical usage information of the screen liquid crystal module; The first power consumption threshold in the first partition is updated using the second power consumption threshold.

7. The method according to claim 1, characterized in that After determining that the screen liquid crystal module is in an abnormal state, the method further includes: Output the prompt information that the screen LCD module is abnormal.

8. A liquid crystal module abnormality detection device, characterized in that: include: Execution module, determination module and judgment module; The execution module is used to run the operating system using a single thread and load the liquid crystal module display driver when a power-on event is detected; the liquid crystal module display driver is used to control the brightness of the liquid crystal module of the screen of the electronic device; The determining module is used to determine a first power consumption value of the screen liquid crystal module by using the liquid crystal module display driver loaded by the execution module; The judging module is used to judge whether the screen liquid crystal module is abnormal according to the first power consumption value and the first power consumption threshold determined by the determining module.

9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the liquid crystal module abnormality detection method according to any one of claims 1 to 7 are implemented.

10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the liquid crystal module abnormality detection method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • LCM (liquid crystal module) electric measurement function expansion device

    CN104360185A

  • Electronic device and method for managing power in electronic device

    CN105929925A

  • Power-on screen lighting method and device

    CN108897578A

  • Monitoring method and monitoring device for backlight source of vehicle-mounted liquid crystal display screen

    CN110288935A

  • A power consumption-based anomaly detection method and device, computer equipment and a storage medium

    CN112988498A

Cited By

  • Tablet computer screen health detection and management system based on AI

    CN120336098A