A PMIC fault maintenance and detection method and electronic equipment

By implementing the PMIC fault measurement method in electronic equipment, the output of XVDD information includes the cause tag information, solving the problem of low efficiency in the detection of abnormal power failure faults in the PMIC module in the prior art, and achieving fast and efficient troubleshooting and processing.

CN118444205BActive Publication Date: 2025-06-06HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311631757.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-30
Publication Date
2025-06-06
Estimated Expiration
2043-11-30

AI Technical Summary

Technical Problem

The prior art is difficult to quickly and efficiently check the causes of abnormal power failure of the PMIC module of electronic equipment, resulting in low fault handling efficiency.

Method used

By implementing a PMIC fault measurement method in an electronic device, it includes performing a power-on process after the device is powered off and shut down, and outputting XVDD information, which contains the reason tag information for the PMIC powered off, and is used to indicate the cause of abnormal powered off. The method also involves obtaining and storing working status information in order to determine the cause of power outage.

Benefits of technology

It realizes the rapid and efficient determination of the cause of abnormal power failure of PMIC module, improves the efficiency of troubleshooting, and simplifies the subsequent fault handling process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118444205B_ABST
    Figure CN118444205B_ABST
Patent Text Reader

Abstract

A PMIC fault maintenance method and electronic device, comprising: in the process of starting up the electronic device after powering off and shutting down, when confirming that the power-off type of the electronic device is a first problem type, outputting first XVDD information, the first XVDD information including the reason label information of the PMIC power-off of the electronic device determined in the first problem type, the reason label information is used to indicate the power-off reason of the abnormal power-off. In the embodiment of the present application, the efficiency of troubleshooting the power-off fault can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic equipment power management, and in particular to a PMIC fault maintenance method and electronic equipment. Background Art

[0002] During the operation of electronic devices, the power management system circuit PMIC module needs to control the power supply to each power consumption module in the electronic device. For example, the processor, camera, screen, sensor, etc. in the electronic device consumes power from the power supply through the PMIC. However, the normal working process of each power consumption module has certain requirements on the working state of the power supply. If the electronic device is in an abnormal power supply state, the electronic device may lose power and shut down, causing the electronic device to malfunction. Summary of the invention

[0003] The embodiment of the present application discloses a PMIC fault maintenance method and electronic equipment, which can improve the efficiency of troubleshooting the cause of the fault.

[0004] In a first aspect, the present application provides a PMIC fault maintenance method, the method comprising: during a process of starting up the electronic device after it is powered off and shut down, upon confirming that the power-off type of the electronic device is a first problem type, outputting first power-off XVDD information, the first XVDD information including cause label information of the PMIC power-off of the electronic device determined in the first problem type, the cause label information being used to indicate the cause of the abnormal power-off in the first problem type.

[0005] The first XVDD information is a description of an abnormal situation of a power module, the first problem type refers to the abnormal problem type in Table 1, and the second problem type refers to the abnormal non-problem type in Table 1.

[0006] In the embodiment of the present application, the first XVDD information includes the specific reason for the abnormal power failure of the PMIC, which allows the user to quickly and efficiently determine the cause information of the PMIC. In this way, for the cause of the abnormal power failure, the electronic device can directly and effectively provide the cause information, which is also convenient for the subsequent processing of the problem failure.

[0007] In a possible implementation, the cause tag information includes at least one of overcurrent, voltage drop, and overtemperature. In this way, the cause of the fault can be determined as the above three situations through basic classification, and the cause tag information of the electronic device can give its corresponding type, so that the user can effectively and quickly determine the cause of the fault and speed up the subsequent fault handling process.

[0008] In a possible implementation, the method further includes: the electronic device acquires working state information during operation, the working state information includes at least one of the current value, voltage value and temperature value of the PMIC; the electronic device stores the working state information in a first memory, and the working state information is used to determine the reason label information of the electronic device powering off and shutting down. In this way, the current value, voltage value and temperature value can be stored in the first memory in real time to determine the reason for shutdown, provide a strong basis for the analysis and explanation of the cause of the fault, and ensure the correctness of the reason label information in the output first XVDD information.

[0009] In a possible implementation, the method further includes: the electronic device reads the first record information in the first memory; the record information indicates the description information of the most recent power failure and shutdown of the electronic device; when the first record information includes working status information, the label information corresponding to the first problem type of the working status information that meets the preset conditions is determined as the cause label information. In this way, the first record information in the first memory can include relevant information about the power supply status of the electronic device. The record information may include working status information, abnormal power supply identification, label information, and so on. The electronic device can analyze the power failure of the electronic device based on the record information to ensure the efficiency of the analysis and the accuracy of the cause judgment.

[0010] The preconditions are Figure 2 to Figure 4 The preset threshold in .

[0011] In a possible implementation, the electronic device stores the working status information in a first memory, including: the electronic device stores the working status information that meets the preset condition in the first memory. In this way, before the electronic device stores the working status information, it is screened and the working status information that meets the condition is stored, thereby reducing the number of storage times, ensuring the necessity of storage and improving execution efficiency. In addition, the space requirement for the first memory is also lower.

[0012] In a possible implementation, the preset conditions include one or more of voltage drop conditions, abnormal temperature conditions, and abnormal current conditions; wherein, the voltage drop condition is that the voltage difference is less than or equal to the voltage drop threshold, or the voltage change rate is less than or equal to the voltage drop threshold; the abnormal current condition is that the current value is greater than or equal to the abnormal current threshold; the abnormal temperature condition is that the temperature value is greater than or equal to the abnormal temperature threshold. In this way, for different types of working status information, and with their own preset conditions, when the preset conditions are met, it indicates that the working state is different from the normal state, and early warning and estimation are carried out. The subsequent power failure may be caused by the corresponding reason. Accurate classification and judgment of the working state can warn the cause of power failure in advance and ensure the correctness of the cause output.

[0013] In a possible implementation, before the electronic device stores the working status information that meets the preset condition in the first memory, the method further includes: the electronic device determines whether the working status information meets the preset condition, and if the preset condition is met, the electronic device stores the working status information in the first memory; if the preset condition is not met, the electronic device discards the working status information. In this way, before the electronic device stores the working status information, it is judged and screened, and the working status information that meets the condition is stored, thereby reducing the number of storage times, ensuring the necessity of storage and improving execution efficiency.

[0014] In a possible implementation, after the electronic device stores the working status information in the first memory, the method further includes: when the storage time of the working status information is greater than or equal to the first time, the electronic device clears the working status information. In this way, the working status information stored by the electronic device last time does not cause the device to shut down, and no new warning situation occurs (satisfying the preset conditions) and the working status information needs to be stored. If the device shuts down normally, the abnormal reason will also be reported. Therefore, the working status information needs to be deleted in time to ensure the timeliness and accuracy of the information in the first memory, and to ensure the accuracy of the subsequent determination of the XVDD information.

[0015] In a possible implementation, the electronic device reads the first record information in the first memory, including: the electronic device reads the working status information in the first memory; when the working status information meets the preset condition, the electronic device confirms that the power failure type of the electronic device is the first problem type, and determines the cause label information based on the type of the working status information. In this way, the electronic device can always update the working status information stored in the first memory in real time, and judge whether a certain fault type occurs after starting up, thereby reducing the number of judgments during the shutdown process and ensuring the effectiveness and speed of the judgment.

[0016] In a possible implementation, the electronic device power-off type further includes a second problem type and a normal power-off type. In this way, the electronic device includes different power-off types, and the XVDD information output by different types may be different, thereby ensuring the accuracy of cause determination.

[0017] In a possible implementation, the method further includes: during the process of starting up the electronic device after it is powered off and shut down, if the first recorded information includes a normal power-off mark or does not include an abnormal power-off mark, the electronic device is confirmed to be powered off normally. In this way, during the process of the electronic device being powered off and shut down, the normal or abnormal mark can be recorded in the first memory, ensuring the correct classification of the power-off information of the electronic device confirmed after the power-off, so that the cause of the power-off can be quickly found.

[0018] In a possible implementation, the method further includes: during the process of starting up the electronic device after the electronic device is powered off and shut down, the first recorded information does not include the working status information that meets the preset condition, the electronic device confirms that the power off and shutdown of the electronic device is a second problem type, and outputs the second XVDD information; in the case where the first recorded information includes an abnormal power-off type identifier, the second XVDD information includes label information; in the case where the first recorded information does not include an abnormal power-off type identifier, the second XVDD information does not include label information; the label information is used to indicate the cause of the abnormal power off in the second problem type. In this way, for power off of an abnormal non-problem type (second problem type), the electronic device can reflect the cause in the recorded information in the XVDD information to ensure the correctness of the information output. If the cause label is not obtained, the cause can be output without outputting, thereby ensuring the comprehensiveness and flexibility of the XVDD information.

[0019] In a second aspect, an embodiment of the present application provides an electronic device, one or more processors and one or more memories; the one or more processors are coupled to the one or more memories, and the one or more memories are used to store computer program code, and the computer program code includes computer instructions. When the one or more processors execute the computer instructions, the electronic device executes the PMIC fault maintenance method that may be described in any one of the above-mentioned first aspects.

[0020] In a third aspect, an embodiment of the present application provides a computer storage medium, including computer instructions. When the computer instructions are executed on an electronic device, the device executes any possible PMIC fault maintenance method of the first aspect.

[0021] In a fourth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on a computer, the computer executes the PMIC fault maintenance method in any possible implementation of the first aspect.

[0022] In a fifth aspect, an embodiment of the present application provides a chip system, which is applied to an electronic device, and the chip system includes one or more processors, which are used to call computer instructions to enable the electronic device to execute the PMIC fault maintenance method described in the first aspect or any possible implementation method of the first aspect.

[0023] In a sixth aspect, an embodiment of the present application provides a PMIC module, which is disposed in an electronic device. The PMIC module can execute the PMIC fault maintenance method as described in the first aspect or any possible implementation method of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 It is a flow chart of a method for detecting a PMIC power failure provided by an embodiment of the present application;

[0025] Figure 2 It is a flowchart of another method for detecting a PMIC power failure provided by an embodiment of the present application;

[0026] Figure 3 It is a flowchart of another method for detecting a PMIC power failure provided by an embodiment of the present application;

[0027] Figure 4 It is a flowchart of another method for detecting a PMIC power failure provided by an embodiment of the present application;

[0028] Figure 5 It is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] In the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. For example, the first chip and the second chip are only used to distinguish different chips, and their order is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.

[0030] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0031] Power Management IC (PMIC) can manage the power devices in the host system and is commonly used in mobile phones and various mobile terminal devices. PMIC modules can be used to manage and regulate the power conversion and distribution of power supplied to electronic devices. For example, in a mobile phone, the PMIC module can supply power to the processor, camera, sensor, camera and other modules.

[0032] The normal operation of the PMIC module requires certain working conditions:

[0033] 1. Power supply: The PMIC power management chip needs to receive a suitable power supply, such as a DC voltage from a battery, external power supply, etc.

[0034] 2. Operating temperature range: The PMIC power management chip operates in a certain temperature range. Within this temperature range, the PMIC can operate normally. Exceeding this range may cause the chip to malfunction, for example, the PMIC disconnects the power supply.

[0035] 3. Power supply stability: PMIC has high requirements for the stability of power input. For example, power consumption devices require a stable current and voltage, and PMIC needs to ensure the stability of the power supply voltage.

[0036] 4. Pin connection: The pins of the PMIC power management chip need to be correctly connected to other devices, including pins for power input, power output, control signals, etc.

[0037] 5. Control and regulation signals: The PMIC power management chip has the function of controlling and regulating the power supply. The PMIC can start / disable, control charging, adjust voltage, etc. through external control signals or register settings.

[0038] It should be noted that for different PMIC modules, the specific working conditions are related to the model, specifications, etc., and this application does not limit the specific range of conditions.

[0039] In the embodiment of the present application, the electronic device may include a PMIC module, a power module and various power consumption devices. The PMIC module may control and adjust the power of the power module to provide it to various power consumption devices.

[0040] In electronic devices, when the PMIC module controls the power supply to various devices, if the above working conditions are not met, the PMIC will control to stop supplying power to various devices, that is, the PMIC abnormally powers off, causing the electronic device to shut down. If the user presses the power off button to cause the PMIC to power off, the electronic device is shut down normally. If the voltage or current of the power supply is unstable, causing the PMIC to power off and the electronic device to shut down, it is an abnormal shutdown.

[0041] During the laboratory testing phase of electronic equipment, the PMIC module may lose power due to its own abnormal conditions, causing the device to shut down. In order to reduce the probability of abnormal power failures in the PMIC module and ensure that the equipment runs as stably as possible, technicians are required to investigate the cause of the fault to ensure that the cause of the problem is correct and to prepare for the subsequent solution of the corresponding abnormal power failure problem. For example, if electronic equipment often loses power and shuts down due to unstable current, fault maintenance personnel are required to investigate whether the power failure is caused by current and solve the problem of abnormal current, such as adding a circuit to stabilize the current.

[0042] In one possible implementation, if the PMIC module experiences an abnormal power failure, the device will shut down. When the device is restarted again, the log of the XVDD information of the PMIC module will display the log information of the abnormal power failure of XVDD. Wherein, VDD: represents the voltage of a certain chip or device. Wherein, X is specific, and X can include A, D, and C, etc. For example, XVDD is used as AVDD, and AVDD is the power supply voltage (Analog) of the chip analog circuit; XVDD is used as DVDD, and the power supply voltage (Digital) of the DVDD digital circuit; XVDD is used as CVDD, and CVDD is the power supply voltage of the chip core C (Core).

[0043] Figure 1 FIG. 1 is a flow chart of a method for detecting a PMIC power failure according to an exemplary embodiment of the present application. Figure 1 As shown, the method for fault detection in abnormal power failure of the PMIC may include but is not limited to the following steps:

[0044] S101: Turn on the electronic device.

[0045] When the electronic device detects a power-on instruction, the PMIC may start to supply power to various components of the electronic device, and the electronic device is powered on.

[0046] S102: The electronic device determines whether the working condition is met. If the working condition is met, S105 is executed; if the working condition is not met, S103 is executed.

[0047] The electronic device can detect whether the working state of the PMIC module is within the working conditions. Among them, the working conditions of the PMIC can refer to the description of point 5 in the above working conditions, which will not be repeated. When the PMIC working conditions are met, the PMIC continues to work normally and executes S105, and the electronic device does not process; when the PMIC working conditions are not met, the PMIC can execute (S103) shutdown processing, that is, execute power off (XVDD).

[0048] Whether the electronic device meets the working conditions is related to its working state, which may be excessive current, excessive temperature, etc., and the conditions are not limited here.

[0049] S103: The electronic device is powered off and shut down.

[0050] When the electronic device determines that the working condition is not met, it performs a shutdown process. At this time, the shutdown caused by the abnormal working state is the situation that XVDD is met.

[0051] S104: The electronic device is turned on and XVDD information is printed.

[0052] After an abnormal power failure, the electronic device can be restarted and the XVDD information can be printed in the PMIC log. For example: B-490318-PM: xVdd reset, indicating that the last power failure was an abnormal power failure.

[0053] S105: The electronic device is not processed.

[0054] When the electronic device is working normally, no processing is required, the current power supply state is maintained, and the electronic device is not shut down.

[0055] In this application, power failure refers to a situation where the power supply stops supplying power to various power consuming power supplies, resulting in the power supply shutting down.

[0056] The above Figure 1 In the implementation method in the embodiment, the diversity of PMIC working conditions will lead to various reasons for power failure. The information printed by the abnormal power failure only indicates that the PMIC has an abnormal power failure, but does not give the specific reason for the power failure. Therefore, the specific cause of the abnormal power failure needs to be speculated by the fault maintenance engineer based on experience. The speculation result and efficiency are often related to the experience of the fault maintenance personnel. For inexperienced engineers, determining the cause of the abnormal power failure is inefficient and time-consuming. Therefore, how to quickly and effectively troubleshoot the cause of abnormal power failure in electronic equipment is an urgent problem to be solved.

[0057] In addition, if the electronic device is only fully powered on, the voltage, current and other information recorded in the PMIC log cannot cover all power-off conditions of the electronic device. For example, if the abnormal power failure of the PMIC occurs during the boot or sleep process, the working status information of the electronic device cannot be obtained, and the cause of the power failure of the PMIC cannot be determined. In the above process, due to the particularity of the power-off shutdown moment, there will be omissions in the log, and the subsequent output XVDD information may also be biased.

[0058] In the embodiment of the present application, the PMIC module of the electronic device can continuously obtain the latest working status information when it is turned on. The working status information may include one or more information such as current, voltage and temperature. When the working status information meets the preset conditions, the electronic device can store the working status information that meets the preset conditions. If the PMIC module is abnormally powered off, after the electronic device is restarted, the electronic device can determine the type of abnormal power off based on the stored working status information, and output XVDD information based on the type of abnormal power off. The XVDD information may include the type or cause of abnormal power off. In this way, when the electronic device is turned on, it monitors its own indicators (current, voltage and temperature) about power supply abnormality. The early acquisition of these indicators helps to determine the cause of the power supply abnormality, so that the basis for power off can be reliably given, and the cause of power off can be given. Fault maintenance engineers can quickly and effectively determine the cause of abnormal power off, so as to help adjust the abnormal power off problem in the subsequent PMIC power supply process, reduce the occurrence of abnormal power off problems, and improve the user experience. In addition, whether in the process of sleep or startup, the electronic device stores the working status information in real time to ensure the timeliness and accuracy of the information.

[0059] Figure 2 It is a flowchart of another method for detecting a PMIC power failure disclosed in an exemplary embodiment of the present application.

[0060] like Figure 2 As shown, the abnormal power failure analysis method may include but is not limited to the following steps:

[0061] Electronic devices can be set with preset thresholds (preset conditions) in advance. The preset thresholds include one or more of voltage drop conditions, abnormal temperature conditions, and abnormal current conditions; the voltage drop condition is that the voltage difference is less than or equal to the voltage drop threshold, or the voltage change rate is less than or equal to the voltage drop threshold; the abnormal current condition is that the current value is greater than or equal to the abnormal current threshold; the abnormal temperature condition is that the temperature value is greater than or equal to the abnormal temperature threshold. Among them, the range of the abnormal temperature threshold can be 60~70°, the range of the abnormal current threshold can be 7~9A, and the range of the voltage drop threshold can be -0.5~-10V. For example, the voltage drop threshold can be 4V, the abnormal temperature threshold is 70°, and the abnormal current threshold is 8A.

[0062] S201: Turn on the electronic device.

[0063] When the electronic device is turned on, S202 and S206 can be executed in any order. At this time, the PMIC of the electronic device can control the power supply to supply power to each power consumption module.

[0064] S202: The electronic device obtains working status information.

[0065] When the electronic device is turned on, the working state information can be obtained. The working state information can be a data value used to measure various reference indicators in the abnormal power failure of the PMIC. The working state information includes current value, voltage value and temperature value.

[0066] Specifically, the working state information can be obtained based on the detection cycle (collection frequency). The intervals of the detection cycles for obtaining the current, voltage and temperature information can be the same or different. The detection cycle can range from 1s to 20s.

[0067] Exemplarily, the PMIC module may be provided with a temperature sensor, and the temperature sensor may collect the current temperature value of the PMIC according to the first cycle, and send the collected temperature value to the PMIC module. For example, the temperature is collected once every 5 seconds. The PMIC module may also be provided with a voltage and / or current measurement module, and the voltage measurement module may collect the voltage value of the PMIC according to the second cycle, and the current measurement module may collect the current value of the PMIC based on the third cycle. Among them, the sizes of the first cycle, the second cycle and the third cycle may be the same or different, and are not limited. The duration range of the first cycle, the second cycle and the third cycle (each detection cycle) may be between 10ms and 20s. After collecting the working status information, the temperature sensor, the voltage measurement module and the current measurement module may send the working status information to the PMIC module, and correspondingly, the PMIC module may obtain the working status information.

[0068] S203: The electronic device determines whether the preset threshold is met based on the working state information. If the preset threshold is met, S204 can be executed; if the preset threshold is not met, S202 can be executed.

[0069] Each time the electronic device obtains the working status information, S203 is executed once. The preset threshold may include one or more of a voltage drop threshold, an abnormal temperature threshold, and an abnormal current threshold. When it is determined that one of the preset thresholds is satisfied, it can be determined that the preset threshold is satisfied. Correspondingly, satisfying the preset threshold may include: a current value is greater than or equal to an abnormal current threshold, a voltage difference (the voltage value of the most recent time minus the previous time) is less than or equal to a voltage drop threshold, and a temperature value is greater than or equal to an abnormal temperature threshold.

[0070] For example, the voltage values ​​before and after the working status information are 4V and 0V respectively, and it is judged that 0-4=-4<-1 (voltage drop threshold), and it can be judged that the preset threshold is met, and S204 is executed. The current value in the working status information is 10A, which exceeds the abnormal current threshold of 8A, and it is judged that the preset threshold is met, and S204 is executed.

[0071] S204: The electronic device stores the working status information in the first memory.

[0072] When a preset threshold is met, the electronic device can store the working status information that meets the preset threshold in the first memory buffer; or it can store all the working status information acquired this time in the first memory. Among them, the data stored in the first memory will not be cleared after the PMIC loses power, and the data stored in the first memory can still be read when the power is restarted. The first memory is a pon_log register (SOC) in the PMIC, and the pon_log register can store at least one data in at least one working status information. Among them, the electronic device includes a SOC (System on Chip) memory, and the first memory can be a part of the SOC memory.

[0073] For example, in the working state information, the current value is 8.2A, which is greater than the abnormal current threshold of 8A, and the electronic device stores 8.2A in the first memory. In the working state information, the voltage of the electronic device is 5V-2V=3V, which is greater than the voltage drop threshold of 2V, and the electronic device stores 2V in the first memory. In the working state information, the temperature value is 75 degrees Celsius, which is greater than the abnormal temperature threshold of 70 degrees Celsius, and the electronic device stores 75 degrees Celsius in the first memory.

[0074] Among them, if the corresponding working status information has been stored in the first memory, the electronic device can overwrite the previous corresponding working status information and write new working status information. If the corresponding working status information is written in the upper position in the first memory, it can be written directly, and there is no working status information that needs to be erased. In this way, it can be ensured that the amount of data stored in the first memory is not too much, the storage space requirements of the first memory are not high, and the timeliness of the acquisition of detection data can be guaranteed. For example, the mobile phone gradually heats up, and the temperature rises to 71 degrees Celsius, which begins to be greater than the abnormal temperature threshold. The PMIC module of the electronic device begins to store the detected temperature value 71 to the first memory. The next time a temperature value of 72 degrees Celsius is detected, the originally stored 71 is erased and 72 is stored.

[0075] Optionally, when the first working state information (storage duration of working state information) written most recently is greater than or equal to the first duration, the first working state information can be deleted (cleared). That is, it can be understood that each time a working state information is written, the electronic device starts timing, and after the first duration, if this working state information is not covered by new detection data, the corresponding detection data in the first memory can be deleted, and when there is new detection data coverage, the timing of the first duration can be restarted. In this way, the timeliness of the detection can be guaranteed. The first duration should be greater than the detection cycle, for example, the first duration is 2 minutes.

[0076] For example, if the current of an electronic device increases over a period of time and reaches an abnormal current threshold, the latest detected current value can be stored in the first memory. The current does not continue to increase and cause shutdown, but gradually and steadily decreases. From the last detected 8A, the next detected 7.9A, 7.9A is less than the abnormal current threshold of 8A, and the current value of 7.9A can be not stored. However, the last storage was 8A, and after the first period of time, no new current value is stored and entered, and the electronic device clears the current value data. In this way, the timeliness of the detection data can be guaranteed, and the accuracy of the working status information and the accuracy of the judgment result when judging the abnormal problem type in the subsequent S209 can be guaranteed.

[0077] Optionally, the electronic device may store information other than the working state information in the first memory, but may store abnormal power failure identification information after judgment, for example, too high current is identified as "1", too high temperature is identified as "2", and voltage drop is identified as "3".

[0078] S205: A power failure event occurs in the electronic device.

[0079] When the electronic device determines that an abnormal power-off event has occurred, the electronic device may store power-off flag information in the first memory, and the power-off flag information may indicate whether the electronic device is powered off normally or abnormally. For example, "1" indicates normal power off, and "0" indicates abnormal power off. In the case of abnormal power off, "0" may be stored in a specific flag bit of the first memory. For another example, "XVDD reset" also indicates abnormal power off, and normal power off does not store power-off flag information.

[0080] There are many factors that may cause power failure in electronic devices. For example, the temperature or current threshold in the working conditions is exceeded. The voltage drop is greater than the voltage drop threshold, the user presses the power button to shut down, the electronic device software is set to shut down, etc.

[0081] When the electronic device is powered on, the PMIC module experiences an abnormal power failure, and the electronic device shuts down. There are many reasons for the power failure, and the reasons for the abnormal power failure are summarized in the following table:

[0082] Table 1

[0083]

[0084]

[0085] Table 1 is a classification table of abnormal power failure of a PMIC provided by way of example in an embodiment of the present application. As shown in Table 1, the causes of abnormal power failure of a PMIC can be divided into abnormal problem types and abnormal non-problem types based on the causes that may cause the power failure. Among them, the label information is used to indicate the cause of abnormal power failure in the abnormal problem type. The abnormal power failure type indicates several specific types of division.

[0086] Among them, the power-off reasons corresponding to the abnormal problem types may be different, and the abnormal problem types may include overheating, excessive current, and voltage drop, etc. The abnormal power-off of the abnormal problem type needs to be further resolved by the fault maintenance personnel to avoid such a situation from happening again, so it is necessary to investigate the cause of the fault (S210); non-problem types do not require further processing by the fault maintenance personnel, so there is no need to generate the cause tag information in S210.

[0087] Among them, the abnormal non-problem types include unplugging the battery / production line fixture test / shipmode long press the power off button, and S3 / S4 reset. Shipmode can indicate that the software triggers the power-off status of XVDD by writing registers. After the electronic equipment is produced and transported before being sold in various places, the electronic equipment needs to be powered off to avoid battery consumption. S3 / S4 reset: a combination of the power button and the lower volume button. When the user unplugs the device battery or during the production line fixture test, the electronic device will shut down immediately. In the power-off process of the abnormal non-problem type, Shipmode is software-actively controlled to power off and shut down, so the electronic device can be set with label information to indicate the reason for its power off; in the S3 / S4 reset process, since the electronic device can obtain the user's touch on the power button and the lower volume button, it can ensure that the electronic device can obtain the reason for its reset, and thus set the label information keypad s3 to indicate the reason.

[0088] Optionally, when Shipmode triggers a power-off event, the electronic device can store the corresponding tag information in the first memory. When the s3 / s4 key triggers a reset event, the corresponding tag information can be stored in the first memory.

[0089] Among them, the abnormal problem types include three situations: temperature process, excessive current and voltage drop. The above three situations can be specifically understood in combination with the working conditions of PMIC. The failure to meet the working conditions during the abnormal power-off of PMIC may be caused by factors such as the instantaneous increase in PMIC current, equipment heating or voltage instability. Therefore, based on the conditions, the three abnormal condition problem types in Table 1 are proposed, and preset thresholds have been set in advance for the above problem types.

[0090] In addition, Table 1 may also include a mapping relationship between the power-off description and the cause tag information. When the electronic device determines the cause of its own power-off, the identification information of the power-off description may be stored in the first memory.

[0091] For different types of tag information, the electronic device has corresponding parsing functions. For example, the electronic device can correspond the tag information "temperature high" to the abnormal problem type of overheating, or determine the corresponding tag information as "temperature high" based on the abnormal problem type of overheating. The tag information is only an example and is not limited.

[0092] In S205, the PMIC module has a power failure event, which may be any of the above six situations, and the present application does not limit this. After executing S205, the electronic device may execute S201 to restart.

[0093] S206: The electronic device reads the recorded information in the first memory.

[0094] After the electronic device is powered on, it can read the recorded information in the first memory. The recorded information can represent the description information of the electronic device when it was last powered off, and the recorded information can include working status information, label information, power-off identification information, etc. For example, it includes XVDD reset.

[0095] It should be noted that the reading of the recorded information requires the electronic device to analyze it, and only after the analysis can the specific meaning of the recorded information and the power-off classification be determined. The analysis method is not limited in this application.

[0096] S207: The electronic device determines whether an abnormal power failure occurs in the electronic device based on the recorded information. If it is determined to be an abnormal power failure, S208 is executed. If it is determined not to be an abnormal power failure (normal power failure), S212 is executed.

[0097] The electronic device can determine whether the current power-off is one of the six types in Table 1, and can output XVDD information if it is one of the types in Table 1. Otherwise, XVDD information may not be output.

[0098] When the recorded information acquired by the electronic device includes power-off mark information, the type of power-off can be determined based on the power-off mark information to determine whether it is a normal power-off or an abnormal power-off. For example, when the recorded information includes a normal power-off mark or does not include an abnormal power-off mark, it is determined to be a normal power-off; otherwise, it is an abnormal power-off.

[0099] S208: The electronic device determines whether the abnormal power-off type is a problem type based on the working status information in the record information. If it is a problem type, execute S209; if it is not a problem type (not a problem type), execute S213.

[0100] When the electronic device includes the working state information in the first memory, the abnormal power-off type can be determined as the problem type. When the electronic device does not include the working state information in the first memory, the power-off type can be determined as the non-problem type.

[0101] S209: The electronic device determines the type of abnormal problem based on the working status information in the recorded information.

[0102] The electronic device can determine the type of abnormal problem based on the type of working state information in the recorded information. The types of working state information include: current value, voltage value and temperature value.

[0103] When the working state information includes the current value, the abnormal problem type can be determined to be too high current; when the working state information includes the voltage value, the abnormal problem type can be determined to be voltage drop; when the working state information includes the temperature value, the abnormal problem type can be determined to be overheating; when the working state information includes the current value and the temperature value, the abnormal problem type can be determined to be too high current and overheating, etc. Of course, there may be other situations, which will not be described one by one.

[0104] S210: The electronic device generates label information including a cause of the abnormal problem based on the abnormal problem type.

[0105] After the electronic device determines the abnormal problem type, the cause label information can be generated based on the abnormal problem type. The electronic device can store a first mapping relationship, which is a mapping relationship between various abnormal problem types and label information, and the electronic device determines the cause label information based on the abnormal problem type and the first mapping relationship (Table 1).

[0106] For example, when the abnormal problem type is overheating, the cause tag information may be temperature high; when the abnormal problem type is current too high, the cause tag information may be current high; when the abnormal problem type is voltage drop, the cause tag information may be voltage drop; when the abnormal problem type is both overheating and current too high, the cause tag information may be temperature high. The above is merely an exemplary description and is not limiting.

[0107] Among them, S209 and S210 are ways to determine the cause tag information carried in the XVDD information. When the electronic device determines the problem type, it can determine the corresponding cause, so the two are corresponding.

[0108] Optionally, the electronic device may directly determine the reason tag information based on the information type of the working status information carried by the electronic device. The information type may include three types: current, voltage, and temperature. The electronic device may store a second mapping relationship, which is a mapping relationship between the information type and the tag information. The electronic device may determine the reason tag information based on the information type of the working status information and the second mapping relationship.

[0109] S211: The electronic device generates target XVDD information based on the cause tag information.

[0110] After determining the cause tag information, the electronic device may generate target XVDD information based on the cause tag information.

[0111] Optionally, the electronic device may add the reason tag information to the original XVDD information to generate the target XVDD information. For example, if the original XVDD information is xVdd reset, and the reason tag information is temperature high, the target XVDD information may be xVdd reset temperature high; if the reason tag information is current high, the target XVDD information may be xVdd reset current high; if the reason tag information is voltagedrop, the target XVDD information may be xVdd reset voltage drop; if the reason tag information is temperature high¤t high, the target XVDD information may be xVdd resettemperature high¤t high.

[0112] Optionally, the electronic device may store a third mapping relationship. The third mapping relationship is a mapping relationship between tag information and XVDD information, and the electronic device may determine the target XVDD information based on the third mapping relationship and the cause tag information.

[0113] S212: Electronic equipment is not processed.

[0114] When the electronic device determines not to output abnormal power-off information, no processing is performed, that is, the electronic device needs to display XVDD information.

[0115] S213: The electronic device determines a cause type that is not a problem type.

[0116] When the electronic device determines that the abnormal power-off type is not a problem type (S208), a cause type other than the problem type may be determined. The record information may include an abnormal power-off type identifier to indicate an abnormal power-off type other than the problem type.

[0117] The non-problem type of abnormal power failure includes the several situations numbered 1 to 3 in Table 1, which are only examples and are not limited.

[0118] In the case where the record information includes an abnormal power-off type identifier (eg, a sequence number corresponding to the abnormal power-off type), the XVDD information determines the abnormal power-off type based on the abnormal power-off type identifier (as shown in Table 1).

[0119] S214: The electronic device generates target XVDD information based on the cause type.

[0120] The electronic device may determine the target XVDD information based on a cause type other than the problem type.

[0121] Optionally, the electronic device may store a fourth mapping relationship. The fourth mapping relationship may include a mapping relationship between various XVDD information and label information of abnormal power-off types. The electronic device may generate target XVDD information based on the abnormal power-off type and the fourth mapping relationship. In the case where the first record information does not include a cause identifier, the target XVDD information does not include label information.

[0122] Optionally, the electronic device can first determine the cause tag information from multiple tag information based on the abnormal power-off type, and add the cause tag information to the original XVDD information to obtain the target XVDD information. Exemplarily, the original XVDD information is xVdd reset. When the cause tag information is keypad s3 (s3 key), the target XVDD information can be generated as xVdd reset keypad s3; when the cause tag information is unplug battery (unplug the battery), the target XVDD information can be generated as xVdd reset unplug battery. The above is just an example, and there are other situations that are not described in detail.

[0123] S215: The electronic device prints the target XVDD information.

[0124] After the electronic device determines the target XVDD information ( S211 and S214 ), the log of the PMIC of the electronic device may output (print) the target XVDD information.

[0125] The target XVDD information further includes the power failure reason of the PMIC, which facilitates the fault maintenance personnel to quickly and effectively identify the reason for maintenance and adjustment.

[0126] Combination Figure 2 As can be seen from the contents of Table 1, in this application, the power-off situations of electronic devices can be divided into three categories, namely, normal power-off, abnormal non-problem power-off and abnormal problem power-off. Among them, for the normal power-off type, the electronic device may not print the XVDD information. For the abnormal non-problem power-off type, if the electronic device can obtain the cause label information, the electronic device can output the cause label information to the XVDD information. If the cause label cannot be obtained, the electronic device can directly print the XVDD information, and the cause label information is not included in the XVDD information. For the abnormal problem power-off type, the electronic device determines the cause label information based on the working status information, and can output the cause label information to the XVDD information.

[0127] In the embodiment of the present application, since the electronic device can obtain the working status information of the PMIC module after it is turned on, and make a judgment, it is stored when the preset threshold is met to obtain the basis for judging the cause of the abnormal power failure of the PMIC. After the electronic device is shut down and restarted, based on the stored information, the electronic device can determine the specific cause of the power failure based on the known working status information, and can output the causes by classification. The user can directly determine the cause of the last power failure, so that the direction in which the electronic device needs maintenance can be quickly and effectively determined, thereby improving the efficiency of fault maintenance.

[0128] Figure 3 FIG. 1 is a flow chart showing another method for detecting a PMIC power failure in an embodiment of the present application. Figure 3 As shown, the abnormal power failure analysis method may include but is not limited to the following steps:

[0129] S301: When the electronic device is turned on, the electronic device obtains working status information.

[0130] The electronic device can start to obtain the working status information when it is turned on. The specific description of S301 can refer to the content of S202, which is not repeated here.

[0131] S302: The electronic device determines whether a preset threshold is met based on the working status information.

[0132] The electronic device may determine whether the preset threshold is met based on the working state information.

[0133] S303: The electronic device stores the working status information in the first memory.

[0134] The description content of S303 may refer to the content of S204.

[0135] S304: A power failure event occurs in the electronic device.

[0136] Among them, the relevant content of S304 can refer to the relevant content of S205 and will not be repeated here.

[0137] S305: Turn on the electronic equipment.

[0138] The electronic device continues to boot up after power failure occurs, and the power failure cause determined after booting up is the power failure cause in S304, that is, the most recent power failure cause.

[0139] Among them, the relevant content of S305 can refer to the content of S201 and will not be repeated here.

[0140] S306: The electronic device reads the recorded information in the first memory.

[0141] Among them, S306 can refer to the relevant description of S206 and will not be repeated here.

[0142] S307: The electronic device determines whether an abnormal power failure occurs in the electronic device based on the recorded information.

[0143] Among them, S307 can refer to the relevant description of S207 and will not be repeated here.

[0144] S308: The electronic device determines whether the abnormal power-off type is a problem type based on the working status information in the recorded information.

[0145] Among them, S308 can refer to the relevant description of S208 and will not be repeated here.

[0146] S309: The electronic device determines the type of abnormal problem based on the working status information in the recorded information.

[0147] Among them, S309 can refer to the relevant description of S209 and will not be repeated here.

[0148] S310: The electronic device generates cause tag information including the abnormal problem based on the abnormal problem type, and generates target XVDD information based on the cause tag information.

[0149] Among them, S310 can refer to the relevant description of S210 and S211, which will not be repeated here.

[0150] S311: The electronic device determines a cause type that is not a problem type.

[0151] Among them, S311 can refer to the description of S213 and will not be repeated here.

[0152] S312: The electronic device generates target XVDD information based on the cause type.

[0153] Among them, S312 can refer to the description of S214 and will not be repeated here.

[0154] S313: The electronic device prints the target XVDD information.

[0155] Among them, S313 can refer to the description of S215 and will not be repeated here.

[0156] S314: Electronic equipment is not processed.

[0157] Among them, S314 can refer to the description of S212 and will not be repeated here.

[0158] Figure 3 In the embodiment, the electronic device can collect working status information before power failure, and after restarting, the working status information is used as a basis for judgment and processing, thereby ensuring the rationality of the execution order of the electronic device logic. Figure 2In the embodiment, the operations of obtaining the working status information and reading the record information are performed each time the machine is turned on, but obtaining the working status information is to prepare for the next turn-on, and reading the record information is to summarize the power-off situation of the last time, so the two do not interfere with each other.

[0159] Figure 4 FIG. 1 is a flow chart showing another method for detecting a PMIC power failure in an embodiment of the present application. Figure 4 As shown, the abnormal power failure analysis method may include but is not limited to the following steps:

[0160] Similarly, the electronic device can be set with a preset threshold in advance. Figure 2 The relevant description is not repeated here.

[0161] S401: When the electronic device is turned on, the electronic device obtains working status information.

[0162] S402: The electronic device stores the working status information in the first memory.

[0163] The electronic device can update the working status information obtained in the detection cycle (acquisition frequency) to the first memory, that is, during the storage process, the new working status information corresponds to overwriting the old working status information, ensuring that the amount of data in the first memory is small and achieving reliability of storage and power-on reading.

[0164] Before S402, the process of filtering the working status information based on the preset threshold (S203) is not performed. The specific storage process of S402 can refer to the description of S204, which is not repeated here.

[0165] S403: A power failure event occurs in the electronic device.

[0166] The process of the power-off event in S403 may refer to the description of S205 and will not be described in detail.

[0167] S404: Turn on the electronic equipment.

[0168] After a power failure event occurs in the electronic device, the electronic device is restarted.

[0169] The process of powering on in S404 may refer to the description of S201 and will not be described in detail.

[0170] S405: The electronic device reads the recorded information in the first memory.

[0171] The process of S405 may refer to the description of S206 and will not be described in detail.

[0172] S406: The electronic device determines whether an abnormal power failure occurs in the electronic device based on the recorded information. If an abnormal power failure occurs, execute S408; if no abnormal power failure occurs (normal power failure), execute S407.

[0173] The process of S406 may refer to the description of S207 and will not be described in detail.

[0174] S407: The electronic device is not processed.

[0175] The process of S407 may refer to the description of S212 and will not be described in detail.

[0176] S408: The electronic device determines whether the abnormal power-off type is a problem type based on the working status information in the recorded information and a preset threshold.

[0177] When the working status information is the current value and the current value meets the abnormal current condition, it is determined to be an excessive current problem type; when the working status information is the voltage value and the voltage value meets the voltage drop condition, it is determined to be a voltage drop problem type; when the working status information is the temperature value and the current value meets the abnormal temperature condition, it is determined to be a temperature overheating problem type.

[0178] The process of S408 may refer to the description of S203.

[0179] S409: The electronic device determines the type of abnormal problem based on the working status information in the recorded information.

[0180] The process of S409 may refer to the description of S209 and will not be described in detail.

[0181] S410: The electronic device generates label information including a cause of the abnormal problem based on the abnormal problem type.

[0182] The process of S410 may refer to the description of S210 and will not be described in detail.

[0183] S411: The electronic device generates target XVDD information based on the cause tag information.

[0184] The process of S411 can refer to the description of S211 and will not be described in detail.

[0185] S412: The electronic device determines a cause type that is not a problem type.

[0186] Among them, S412 can refer to the description of S213 and will not be repeated here.

[0187] S413: The electronic device generates target XVDD information based on the cause type.

[0188] Among them, S413 can refer to the description of S214 and will not be repeated here.

[0189] S414: The electronic device prints the target XVDD information.

[0190] Among them, S414 can refer to the description of S215 and will not be repeated here.

[0191] Figure 4 In the embodiment of the present invention, the electronic device may not make a judgment based on the preset threshold before shutting down, so as to avoid the need to make a judgment for each collected working status information. Making a judgment after booting up can effectively reduce the number of judgments and improve the execution efficiency of the device. In addition, the type of abnormal problem can be directly determined after the judgment, and the determination process is more efficient.

[0192] The present application embodiment discloses a PMIC module, which includes a first memory. The PMIC module can execute Figure 2 , Figure 3 and Figure 4 The method flow of the embodiment of the present invention.

[0193] The following describes the hardware devices involved in the embodiments of the present application.

[0194] Figure 5 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.

[0195] The electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, a mobile communication module 150, a wireless communication module 160, a sensor module 180, a button 190, and a display screen 194, etc.

[0196] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0197] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0198] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0199] The charging management module 140 is used to receive charging input from a charger. While the charging management module 140 is charging the battery 142 , it can also power the electronic device through the power management module 141 .

[0200] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, and the wireless communication module 160. Among them, the power management module may include the PMIC module in the embodiment of the present application, and perform the relevant functions of the PMIC. The power supply devices such as the processor 110, the internal memory 121, the external memory, the display screen 194 and the wireless communication module 160 can be used as power consumption modules.

[0201] The wireless communication function of the electronic device can be implemented through an antenna, a mobile communication module 150, a wireless communication module 160, a modem processor, a baseband processor, and the like.

[0202] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied in electronic devices. The wireless communication module 160 can provide solutions for wireless communications including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc. applied in electronic devices.

[0203] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light-emitting diode or an active matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Mini LED, Micro LED, Micro-OLED, a quantum dot light-emitting diode (QLED), etc.

[0204] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.

[0205] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image and video playback function, etc.). The data storage area may store data created during the use of the electronic device (such as audio data, a phone book, etc.).

[0206] The sensor module 180 may include one or more sensors, which may be of the same type or of different types. Figure 1 The sensor module 180 shown is only an exemplary division method. There may be other division methods, which are not limited in this application.

[0207] The temperature sensor 180J is used to detect the temperature. In the embodiment of the present application, the temperature sensor can detect the temperature value of the PMIC.

[0208] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The power key and the volume key may be the S3 and S4 keys in Table 1. The electronic device may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device.

[0209] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.

Claims

1. A method for fault maintenance and detection of a power management integrated circuit PMIC, It is characterized in that The method comprises: The electronic device acquires working state information based on a detection period during operation, wherein the working state information includes at least one of a current value, a voltage value, and a temperature value of the PMIC; The electronic device stores the working state information in a first memory, and when the storage time of the working state information is greater than or equal to the first time, the electronic device clears the working state information; the working state information is used to determine the label information of the reason why the electronic device is powered off and shut down; the power-off type of the electronic device includes a first problem type, a second problem type and a normal power-off type, the first problem type is an abnormal problem type, and the second problem type is an abnormal non-problem type; In the process of starting up the electronic device after it is powered off and shut down, the electronic device reads the first record information in the first memory; in the case where the first record information includes the first working state information, the label information corresponding to the first problem type of the first working state information that meets the preset condition is determined as the cause label information; in the case where it is confirmed that the power-off type of the electronic device is the first problem type, the first power-off XVDD information is output; the record information represents the description information of the most recent power-off and shutdown of the electronic device; The first power supply power-off XVDD information includes reason label information determined in the first problem type that the PMIC of the electronic device is powered off, and the reason label information is used to indicate the abnormal power-off reason in the first problem type; During the process of starting up the electronic device after it is powered off and shut down, if the first record information includes a normal power-off mark or does not include an abnormal power-off mark, the electronic device is determined to be powered off normally; During the process of starting up the electronic device after it is powered off and shut down, if the first record information does not include working status information that meets the preset condition, the electronic device determines that the power off and shutdown of the electronic device is a second problem type, and outputs second XVDD information; if the first record information includes an abnormal power off type identifier, the second XVDD information includes label information; if the first record information does not include an abnormal power off type identifier, the second XVDD information does not include label information; the label information is used to indicate the cause of the abnormal power off in the second problem type.

2. The method according to claim 1, It is characterized in that The reason tag information includes at least one of excessive current, voltage drop, and overheating.

3. The method according to claim 1, It is characterized in that The electronic device stores the working status information in a first memory, including: The electronic device stores the working status information satisfying the preset condition in a first memory.

4. The method according to claim 1, It is characterized in that The preset conditions include one or more of a voltage drop condition, an abnormal temperature condition, and an abnormal current condition; Among them, the voltage drop condition is that the voltage difference is less than or equal to the voltage drop threshold, or the voltage change rate is less than or equal to the voltage drop threshold; the abnormal current condition is that the current value is greater than or equal to the abnormal current threshold; the abnormal temperature condition is that the temperature value is greater than or equal to the abnormal temperature threshold.

5. The method according to claim 1, It is characterized in that Before the electronic device stores the working status information that meets the preset condition in the first memory, the method also includes: the electronic device determines whether the working status information meets the preset condition, and if the preset condition is met, the electronic device stores the working status information in the first memory; if the preset condition is not met, the electronic device discards the working status information.

6. The method according to any one of claims 1 to 5, It is characterized in that The electronic device reads the first record information in the first memory, including: The electronic device reads the working status information in the first memory; In the case that the working status information satisfies the preset condition, the electronic device confirms that the power-off type of the electronic device is a first problem type, and determines the cause label information based on the type of the working status information.

7. An electronic device, It is characterized in that include: One or more processors and one or more memories; the one or more processors are coupled to the one or more memories, the one or more memories are used to store computer program codes, the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the method as described in any one of claims 1 to 6.

8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

9. A PMIC module, It is characterized in that The PMIC module comprises the method as claimed in any one of claims 1-6.

Citation Information

Patent Citations

  • Re-power-on startup control method and device after power failure, equipment and medium

    CN113608920A

  • Log management method and device, chip, electronic equipment and medium

    CN116662284A