Electricity jump monitoring method, terminal and storage medium

By achieving optimization of the power jump monitoring process in the mobile terminal, including obtaining and reporting the power value, setting the jump flag and adjusting the monitoring frequency, the problems of inaccurate power jump monitoring and large power consumption are solved, and monitoring accuracy is improved And reduces power consumption.

CN115065118BActive Publication Date: 2025-02-07GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210752930.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-28
Publication Date
2025-02-07
Estimated Expiration
2042-06-28

AI Technical Summary

Technical Problem

During the charging process of mobile phones, there are problems such as inaccurate monitoring of power jumps and large power consumption of information reporting, especially the inability to distinguish between power jumps caused by terminal startup and loading from other power jumps.

Method used

The remaining power value and display power value are obtained when the terminal starts up for the first time the power jump monitoring process is triggered, and the corresponding buried point information is recorded and reported, and the jump flag is set. The power jump monitoring process is triggered every preset period until the remaining power value is compared to the displayed power value. The jump flag is adjusted to distinguish different types of power jumps and reduce unnecessary reporting.

Benefits of technology

It improves the accuracy of power jump monitoring and reduces the power consumption of information reporting. Especially for power jump caused by power boot, only one report is performed, reducing frequency and power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115065118B_ABST
    Figure CN115065118B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a power jump monitoring method, a terminal, and a storage medium, including: when the power jump monitoring process is triggered for the first time when the terminal is turned on, a first remaining power value and a first displayed power value are obtained; when a power jump of a first jump type is detected based on the first remaining power value and the first displayed power value, the corresponding first buried point information is recorded and reported, and a first jump flag is set to a first value; the power jump monitoring process is triggered once every preset monitoring period, and a process of obtaining and comparing the current remaining power value and the current displayed power value is executed once; until the current remaining power value is compared to the current displayed power value, the first jump flag is set to a second value; and in the power jump monitoring process triggered thereafter, a second jump type of monitoring and a corresponding second buried point information reporting process are executed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of charging, and in particular to a method and terminal for monitoring power jumps, and a storage medium. Background Art

[0002] With the rapid development of electronic technology, the functions that mobile phones can realize are becoming more and more abundant, which leads to the increasing power consumption of mobile phones, and the charging speed of mobile phones has also received great attention. During the charging process of the mobile phone, there will be a problem of power jump, so it is necessary to monitor the power jump in real time and report the buried point information of the power jump through the buried point feedback mechanism. The current power jump monitoring process will have problems such as inaccurate monitoring and high power consumption of information reporting, especially for terminals with power retention function. It is impossible to distinguish the power jump caused by terminal startup loading from other power jumps, which leads to inaccurate monitoring; the power jump caused by terminal startup loading is frequently reported, which leads to the problem of high power consumption of information reporting. Summary of the invention

[0003] The embodiments of the present application provide a power jump monitoring method, a terminal, and a storage medium, which can improve the accuracy of power jump monitoring and reduce the reported power consumption.

[0004] The technical solution of this application is implemented as follows:

[0005] In a first aspect, an embodiment of the present application provides a method for monitoring a power jump, the method comprising:

[0006] When the terminal is powered on and the power jump monitoring process is triggered for the first time, a first remaining power value and a first displayed power value are obtained;

[0007] When a power jump of a first jump type is detected according to the first remaining power value and the first displayed power value, recording and reporting corresponding first buried point information, and setting a first jump flag to a first value;

[0008] The power jump monitoring process is triggered once every preset monitoring period, and the acquisition and comparison process of the current remaining power value and the current displayed power value is performed once;

[0009] Until the current remaining power value is compared to the current displayed power value, the first jump flag is set to the second value; and in the power jump monitoring process triggered subsequently, the second jump type monitoring and the corresponding second buried point information reporting process are performed according to the second remaining power value and the second displayed power value obtained each time.

[0010] In a second aspect, an embodiment of the present application provides a terminal, the terminal comprising:

[0011] An acquisition unit, configured to acquire a first remaining power value and a first displayed power value when the terminal is powered on and a power jump monitoring process is triggered for the first time;

[0012] a recording and reporting unit, configured to record and report corresponding first buried point information when a power jump of a first jump type is detected according to the first remaining power value and the first displayed power value;

[0013] A setting unit, configured to set the first jump flag to a first value; until the current remaining power value is compared to be equal to the current displayed power value, then the first jump flag is set to a second value;

[0014] A cyclic execution unit is used to trigger a power jump monitoring process once every preset monitoring period, and execute a process of obtaining and comparing the current remaining power value and the current displayed power value; in the power jump monitoring process triggered subsequently, according to the second remaining power value and the second displayed power value obtained each time, the second jump type monitoring and the corresponding second buried point information reporting process are executed.

[0015] In a third aspect, an embodiment of the present application proposes a terminal, comprising: a processor, a memory and a communication bus; when the processor executes a running program stored in the memory, the power jump detection method as described above is implemented.

[0016] In a fourth aspect, an embodiment of the present application proposes a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned power jump detection method is implemented.

[0017] An embodiment of the present application provides a power jump monitoring method, a terminal, and a storage medium, the method comprising: obtaining a first remaining power value and a first displayed power value when the power jump monitoring process is triggered for the first time when the terminal is powered on; when a power jump of a first jump type is detected based on the first remaining power value and the first displayed power value, recording and reporting corresponding first buried point information, and setting a first jump flag to a first value; triggering the power jump monitoring process once every preset monitoring period, and executing a process of obtaining and comparing the current remaining power value and the current displayed power value; until the current remaining power value is compared to the current displayed power value, the first jump flag is set to a second value; and in the power jump monitoring process triggered thereafter, according to the second remaining power value and the second displayed power value obtained each time, executing a second jump type of monitoring and a corresponding second buried point information reporting process. By adopting the above-mentioned implementation scheme, when the terminal detects a power jump of the first jump type in the power jump monitoring process triggered by the terminal startup, the terminal reports the corresponding first buried point information and sets the corresponding first jump flag to the first value. In the subsequent power jump monitoring process triggered at each preset monitoring period, the terminal no longer performs the monitoring of the first jump type of power jump process based on the first jump flag set to the first value, but determines whether to change the first jump flag to the second value based on the current remaining power value and the current displayed power value obtained each time, until the first jump flag is changed to the second value. In the subsequent power jump monitoring process, the second jump type of monitoring and the corresponding second buried point information reporting process are performed based on the displayed power value and the remaining power value obtained in each power jump process, which can distinguish the first jump type from the second jump type, thereby improving the monitoring accuracy; and for the first jump type caused by startup, the first buried point information corresponding to the first jump type is reported only once, which reduces the reporting frequency and thereby reduces the reporting power consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 A flow chart of a method for detecting a power jump provided in an embodiment of the present application;

[0019] Figure 2 A schematic diagram of an exemplary flow chart of power jump monitoring provided in an embodiment of the present application;

[0020] Figure 3 A schematic diagram of a terminal structure provided in an embodiment of the present application Figure 1 ;

[0021] Figure 4 A schematic diagram of a terminal structure provided in an embodiment of the present application Figure 2 . DETAILED DESCRIPTION

[0022] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application.

[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0024] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict. It should also be noted that the terms "first\second\third" involved in the embodiments of the present application are only used to distinguish similar objects and do not represent a specific ordering of the objects. It is understandable that "first\second\third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0025] The present application embodiment provides a method for monitoring power jump. Figure 1 As shown, the method may include:

[0026] S101. When a power jump monitoring process is triggered for the first time when a terminal is powered on, a first remaining power value and a first displayed power value are obtained.

[0027] A method for monitoring power jumps proposed in an embodiment of the present application is suitable for monitoring power jumps in the charging field.

[0028] In the embodiment of the present application, the terminal for monitoring the power jump can be any device with processing and storage functions, such as: a tablet computer, a mobile phone, a personal computer (PC), a laptop computer, a wearable device, etc.

[0029] It should be noted that the trigger condition for the first power jump monitoring process in the present application is the terminal power-on trigger, and thereafter, the power jump monitoring process is triggered once every preset time period.

[0030] It should be noted that converting the remaining power of the terminal into displayed power depends on the power smoothing algorithm, and the power smoothing algorithm depends on the charging thread. The preset time period can be set to 5 seconds, 10 seconds, etc. based on the length of the charging thread. The specific time period can be selected according to actual conditions, and the embodiment of this application does not make specific limitations.

[0031] Exemplarily, the power smoothing algorithm relies on the charging 5S thread, and the terminal starts the charging 5S thread to execute the first power jump monitoring process, and then executes the power jump monitoring process every 5 seconds.

[0032] In an embodiment of the present application, the first displayed power value is the displayed power value obtained when the terminal is powered on and the power jump process is triggered for the first time, and the first remaining power value is the remaining power value obtained when the terminal is powered on and the power jump process is triggered for the first time.

[0033] In the embodiment of the present application, the remaining power value is the battery state of charge (SoC) value, and the displayed power value is the power value displayed by the user interface (UI) (ie, UI_SoC value).

[0034] In an embodiment of the present application, for a terminal including a power saving function, its first displayed power value is a displayed power value obtained by performing power smoothing algorithm processing on the power value saved at the last shutdown, and the first remaining power value is a real power value calculated by a power meter.

[0035] S102. When a power jump of a first jump type is detected based on the first remaining power value and the first displayed power value, record and report corresponding first buried point information, and set a first jump flag to a first value.

[0036] In an embodiment of the present application, the terminal predefines the triggering condition of the power jump of the first jump type as when the terminal is powered on and triggers the power jump process for the first time, the difference between the current displayed power value and the current remaining power value is greater than the first preset jump threshold. Based on this, the terminal pre-sets the first preset jump threshold for the first jump type. The terminal first determines the first difference between the first remaining power value and the first displayed power value, and then compares the first difference with the first preset jump threshold; when the first difference is greater than the first preset jump threshold, the power jump of the first jump type is detected. When the first difference is less than or equal to the first preset jump threshold, it is detected that the power jump of the first jump type has not occurred.

[0037] In the embodiment of the present application, the first jump type is the power jump caused by power loading, that is, UISoC_loadSoC jump. Specifically, for a terminal including a power saving function, during the power loading process, the power value saved at the last shutdown will be smoothly displayed to obtain the first displayed power value, which will cause a power jump between the displayed power value and the actual remaining power value in the terminal.

[0038] Exemplarily, the first preset jump threshold corresponding to the power jump type caused by power loading is set to 5%, and the first absolute value of the difference between the first remaining power value and the first displayed power value is calculated. If the absolute value of the first difference is greater than 5%, the power jump type caused by power loading is monitored; if the absolute value of the first difference is less than or equal to 5%, the power jump type caused by power loading is not monitored.

[0039] It should be noted that the present application proposes the concept of a jump flag, and determines whether to execute the reporting of the buried point information by assigning different values ​​to the jump flag as a reporting condition. Among them, two values ​​can be assigned to the jump flag, namely a first value and a second value. In an embodiment of the present application, if the first jump flag is assigned a first value, it indicates that the first buried point information corresponding to the first jump flag will no longer be reported in the subsequent power jump monitoring process; if the first jump flag is assigned a second value, it indicates that the first buried point information corresponding to the first jump flag will be reported in the subsequent power jump monitoring process, and after the first buried point information is reported, the first jump flag is assigned the first value.

[0040] It should be noted that the first value and the second value can be selected according to actual conditions, such as the first value is 0 and the second value is 1, or the first value is true and the second value is false. The specific setting rules can be selected according to actual conditions, and the embodiments of the present application do not make specific limitations.

[0041] It should be noted that for the jump flag, the initial state is the second value, that is, when the power jump of the corresponding jump type is detected for the first time, the corresponding point information will be uploaded.

[0042] It should be noted that since the first jump type is a power jump caused by power loading during startup, the power jump that represents the first jump type will only jump once after each startup. Therefore, each time the terminal is powered on, the first buried point information will only be reported once at most, that is, in all power jump monitoring processes after startup, the first jump flag will not change back to the first value after changing from the first value to the second value, but will always be the second value.

[0043] In the embodiment of the present application, the buried point information reported by the terminal may include: reporting time, terminal usage scenario, such as terminal temperature and other parameters; first jump type, remaining power value calculated by the power meter, displayed power value after power smoothing algorithm processing, difference between remaining power value and displayed power value, etc. The specific information can be selected according to the actual situation, and the embodiment of the present application does not make specific limitations.

[0044] S103, triggering a power jump monitoring process once every preset monitoring period, and executing a process of obtaining and comparing the current remaining power value and the current displayed power value.

[0045] In the embodiment of the present application, the terminal obtains the current remaining power value and the current displayed power value once in each subsequent power jump monitoring process, and compares the current remaining power value and the current displayed power value to determine whether the first jump flag can be set to the second value. Only when the first jump flag is the second value, the second jump type monitoring and the corresponding second buried point information reporting process will be performed.

[0046] In an embodiment of the present application, after the power jump monitoring process is triggered once every preset monitoring period, the following steps are also performed: determine the previous remaining power value and the previous displayed power value obtained in the previous power jump monitoring process; determine the third difference between the current remaining power value and the previous remaining power value; if the third difference is greater than the third preset jump threshold, a power jump of the third jump type is monitored; record and report the corresponding third buried point information; determine the fourth difference between the current displayed power value and the previous displayed power value; if the fourth difference is greater than the fourth preset monitoring threshold, a power jump of the fourth jump type is monitored; record and report the corresponding fourth buried point information.

[0047] In the embodiment of the present application, two jump types are also defined, namely the third jump type and the fourth jump type, wherein the third jump type is the remaining power jump (SoC jump); the fourth jump type is the display power jump (UI_SoC jump). The terminal predefines the triggering condition of the power jump of the third jump type as the difference between the current remaining power value and the previous remaining power value is greater than the third preset jump threshold, and the terminal predefines the triggering condition of the power jump of the fourth jump type as the difference between the current displayed power value and the previous displayed power value is greater than the fourth preset jump threshold. Based on this, the terminal sets the third preset jump threshold for the third jump type and the fourth preset jump threshold for the fourth jump type.

[0048] It should be noted that the current remaining power value is the remaining power value obtained by the terminal when the power jump monitoring process is triggered at every preset time period, and the current displayed power value is the displayed power value obtained by the terminal when the power jump monitoring process is triggered at every preset time period.

[0049] In an embodiment of the present application, in the process of judging the power jump of the third jump type, the comparison result of the third difference between the previous remaining power value and the current remaining power value and the third preset jump threshold is used; in the process of judging the power jump of the fourth jump type, the comparison result of the fourth difference between the previous displayed power value and the current displayed power value and the fourth preset jump threshold is used.

[0050] Exemplarily, the third preset jump threshold is 3%, and the third absolute value of the difference between the previous remaining power value and the current remaining power value is calculated. If the absolute value of the third difference is greater than the third preset jump threshold, it is monitored that a remaining power jump occurs; if the absolute value of the third difference is less than or equal to the third preset jump threshold, it is monitored that no remaining power jump occurs.

[0051] Exemplarily, the fourth preset jump threshold is 5%, and the fourth absolute value of the difference between the previous displayed power value and the current displayed power value is calculated. If the absolute value of the fourth difference is greater than the fourth preset jump threshold, it is monitored that a display power jump occurs; if the absolute value of the fourth difference is less than or equal to the fourth preset jump threshold, it is monitored that no display power jump occurs.

[0052] In an embodiment of the present application, the process of recording and reporting the corresponding third burial point information includes: obtaining a third jump flag; if the third jump flag is a second value, recording and reporting the third burial point information, and setting the third jump flag to the first value.

[0053] In the embodiment of the present application, after determining the third difference between the current remaining power value and the previous remaining power value, the method further includes: if the third difference is zero, setting the third jump flag to the second value.

[0054] It can be understood that the third jump flag is used to determine whether to record and report the third buried point information. When the third jump flag is the second value, the third buried point information is recorded and reported, and after reporting the third buried point information, the third jump flag is set to the first value. At this time, in the subsequent power jump monitoring process, the recording and reporting process of the third buried point information is no longer executed until the third difference is monitored to be zero, that is, the current remaining power value is equal to the previous remaining power value, indicating that the power jump of the third jump type is completed. At this time, the third jump flag is set to the second value, and the monitoring process of the next third jump type power jump is executed after this. As a result, each third jump type of power jump will only execute the process of recording and reporting the corresponding third buried point information once, reducing the number of reports of the same third jump type of power jump, thereby reducing the power consumption of information reporting.

[0055] In an embodiment of the present application, the process of recording and reporting the corresponding fourth buried point information includes: obtaining a fourth jump flag; if the fourth jump flag is a second value, reporting the fourth buried point information to a power monitoring server, and setting the fourth jump flag to the first value.

[0056] In the embodiment of the present application, the process of determining the fourth difference between the current displayed power value and the previous displayed power value includes: if the fourth difference is zero, setting the fourth jump flag to the second value.

[0057] It can be understood that the fourth jump flag is used to determine whether to record and report the fourth buried point information. When the fourth jump flag is the second value, the fourth buried point information is recorded and reported, and after reporting the fourth buried point information, the fourth jump flag is set to the first value. At this time, in the subsequent power jump monitoring process, the recording and reporting process of the fourth buried point information is no longer executed until the fourth difference is monitored to be zero, that is, the current remaining power value is equal to the previous remaining power value, indicating that the power jump of the fourth jump type is completed. At this time, the fourth jump flag is set to the second value, and the monitoring process of the next fourth jump type of power jump is executed after this. As a result, each fourth jump type of power jump will only execute the process of recording and reporting the corresponding fourth buried point information once, reducing the number of reports of the same fourth jump type of power jump, thereby reducing the power consumption of information reporting.

[0058] It should be noted that for power jumps of multiple jump types detected, the terminal can store the corresponding point information in the reporting queue for reporting in the monitoring order, or report it in sequence using other methods. The specific method can be selected according to the actual situation, and the embodiment of the present application does not make specific limitations. In the embodiment of the present application, the reporting process can be executed for power jumps of multiple jump types detected in a power jump monitoring process, so that all monitored power jump situations can be accurately reported.

[0059] S104, until the current remaining power value is compared to the current displayed power value, the first jump flag is set to the second value; and in the power jump monitoring process triggered thereafter, according to the second remaining power value and the second displayed power value obtained each time, the second jump type monitoring and the corresponding second buried point information reporting process are performed.

[0060] In an embodiment of the present application, when the current remaining power value is monitored to be equal to the currently displayed power value, it indicates that the power jump process caused by the terminal startup loading is completed. Only then is the first jump flag set to the second value, and the subsequent second jump type monitoring and corresponding second buried point information reporting process are performed.

[0061] It should be noted that since the monitoring of the second jump type requires the remaining power value and the displayed power value obtained each time, which are the same power parameter types used in the monitoring of the first jump type, but the corresponding preset jump thresholds are different, the second jump type of power jump monitoring process can only be performed after the first jump type of power jump is completed. In this way, the two types of power jumps can be distinguished based on the same remaining power value and displayed power value obtained each time. This avoids the problem of not knowing which type of power jump it is during the first jump type of power jump process if the first difference is still greater than the second preset jump threshold, thereby improving the monitoring accuracy.

[0062] In the embodiment of the present application, the second jump type is a power jump between the remaining power and the displayed power (UISoC_SoC jump). The terminal predefines the trigger condition of the power jump of the second jump type as the difference between the current displayed power value and the current remaining power value is greater than the second preset jump threshold. Based on this, the terminal pre-sets the second preset jump threshold for the second jump type.

[0063] In the embodiment of the present application, the second preset jump threshold is 5%.

[0064] In an embodiment of the present application, according to the acquired second remaining power value and the second displayed power value, the second jump type monitoring and the corresponding second buried point information reporting process are performed, and the specific implementation process is: determining the second difference between the second remaining power value and the second displayed power value; and obtaining the second jump flag; when the second difference is greater than the second preset jump threshold and the second jump flag is the second value, recording and reporting the second buried point information, and setting the second jump flag to the first value.

[0065] Further, after determining a second difference between the second remaining power value and the second displayed power value and acquiring a second jump flag, if the second difference is zero, the second jump flag is set to a second value.

[0066] It should be noted that the second jump type of power jump monitoring process also needs to consider the first jump mark, and then the second jump type of power jump monitoring process is executed only when the first jump mark is the second value.

[0067] It can be understood that when the terminal detects a power jump of the first jump type in the power jump monitoring process triggered by the terminal startup, the terminal reports the corresponding first buried point information and sets the corresponding first jump flag to the first value. In the subsequent power jump monitoring process triggered at each preset monitoring period, the terminal no longer performs the monitoring of the first jump type of power jump process based on the first jump flag set to the first value, but determines whether to change the first jump flag to the second value based on the current remaining power value and the current displayed power value obtained each time, until the first jump flag is changed to the second value. In the subsequent power jump monitoring process, the second jump type of monitoring and the corresponding second buried point information reporting process are performed based on the obtained displayed power value and the remaining power value, which can distinguish the first jump type from the second jump type, thereby improving the monitoring accuracy; and for the first jump type caused by startup, the first buried point information corresponding to the first jump type is reported only once, which reduces the reporting frequency and thereby reduces the reporting power consumption.

[0068] Based on the above embodiment, in order to better trigger power jumps during the debug process, two debugging nodes are further provided: a display power debugging node (debug_uisoc node) and a remaining power debugging node (debug_soc node). Testers can use the two debugging nodes to assign values ​​to the remaining power value and the displayed power value obtained in the power jump monitoring process triggered at every preset time period, so as to trigger power jumps of different jump types. Specifically, during the debug process, in the first power jump monitoring process triggered by the terminal startup, the displayed power value is obtained by the power smoothing algorithm, and the remaining power value is calculated by the power meter. In the subsequent power jump monitoring process triggered at every preset time period, if the remaining power value and the displayed power value input through the debugging node are in the range of (0,100), the input value of the debug_soc node is determined as the remaining power value, and the value output by the debug_uisoc node is determined as the displayed power value; if the values ​​input through the debug_uisoc node and the debug_soc node are not in the range of (0,100), the power value calculated by the power meter is determined as the obtained remaining power value, and the power value obtained by the power smoothing algorithm is determined as the obtained displayed power value.

[0069] Based on the above embodiments, the present application embodiment proposes a power jump monitoring process, such as Figure 2 As shown, the process includes:

[0070] 1. Start the charging 5s thread and call the power jump monitoring code to monitor the power jump every 5s;

[0071] 2. Determine whether the charging 5s thread is triggered by the terminal startup;

[0072] 3. If the charging 5s thread is triggered by the terminal startup, the power value calculated by the power meter is determined as the first SoC value, and the power value obtained by the power smoothing algorithm is determined as the first UI_SoC value;

[0073] 4. Determine whether the absolute value of the first difference between the first SoC value and the first UI_SoC value is greater than 5%;

[0074] 5. If the absolute value of the first difference is greater than 5%, the first transition flag corresponding to the UISoC_loadSoC transition is set to true, and the first buried point information of the UISoC_loadSoC transition is uploaded; and the first SoC value is determined as the previous SoC value, and the first UI_SoC value is determined as the previous UI_SoC value;

[0075] 6. If the charging 5s thread is not triggered by the terminal startup, get the current UI_SoC value, current SoC value, last SoC value and last UI_SoC value;

[0076] 7. Determine whether the absolute value of the second difference between the current UI_SoC value and the current SoC value is greater than 3%; and obtain the first jump flag and the second jump flag of the UISoC_SoC jump;

[0077] 8. If the absolute value of the second difference is greater than 3%, the first jump flag is false, and the second jump flag is false; then set the second jump flag to true, upload the second buried point information of the UISoC_SoC jump; and determine the current remaining SoC value as the previous SoC value, and determine the current UI_SoC value as the previous UI_SoC value;

[0078] 9. If the absolute value of the first difference is 0, the first jump flag and the second jump flag are set to false;

[0079] 10. Determine whether the absolute value of the third difference between the current SoC value and the previous SoC value is greater than 5%; and obtain the third transition flag of the SoC transition;

[0080] 11. If the absolute value of the third difference is greater than 3% and the third jump flag is false, the third jump flag is set to true, and the third buried point information of the SoC jump is uploaded; and the current SoC value is determined as the previous SoC value, and the current UI_SoC value is determined as the previous UI_SoC value;

[0081] 12. If the absolute value of the third difference is 0, the third jump flag is set to false;

[0082] 13. Determine whether the absolute value of the fourth difference between the current UI_SoC value and the previous UI_SoC value is greater than 5%; and obtain the fourth transition flag of the UI_SoC transition;

[0083] 14. If the absolute value of the fourth difference is greater than 5% and the fourth jump flag is false, the fourth jump flag is set to true, and the fourth buried point information of the UI_SoC jump is uploaded; and the current SoC value is determined as the previous SoC value, and the current UI_SoC value is determined as the previous UI_SoC value;

[0084] 15. If the absolute value of the fourth difference is 0, the fourth transition flag is set to false.

[0085] It should be noted that 7-9, 10-12, and 13-15 are three parallel steps after 6, and the specific selection is based on the actual situation, and the embodiment of the present application does not make any specific limitations.

[0086] Based on the above embodiments, the present application embodiment provides a terminal 1. Figure 3 As shown, the terminal 1 includes:

[0087] An acquisition unit 10 is used to acquire a first remaining power value and a first displayed power value when the power jump monitoring process is triggered for the first time when the terminal is powered on;

[0088] The recording and reporting unit 11 is used to record and report corresponding first buried point information when a power jump of a first jump type is detected according to the first remaining power value and the first displayed power value;

[0089] A setting unit 12, configured to set a first jump flag to a first value; until the current remaining power value is compared to be equal to the current displayed power value, then the first jump flag is set to a second value;

[0090] The cyclic execution unit 13 is used to trigger a power jump monitoring process once every preset monitoring period, and execute a process of obtaining and comparing the current remaining power value and the current displayed power value; in the power jump monitoring process triggered subsequently, according to the second remaining power value and the second displayed power value obtained each time, the second jump type monitoring and the corresponding second buried point information reporting process are executed.

[0091] In some embodiments of the present application, the terminal further includes: a determining unit;

[0092] The determining unit is used to determine a first difference between the first remaining power value and the first displayed power value; when the first difference is greater than a first preset jump threshold, monitor a power jump that generates the first jump type.

[0093] In some embodiments of the present application, the terminal further includes: a setting unit;

[0094] The determining unit is further configured to determine a second difference between the second remaining power value and the second displayed power value;

[0095] The acquisition unit 10 is further used to acquire a second transition flag;

[0096] The recording and reporting unit 11 is further configured to record and report the second buried point information when the second difference is greater than the second preset jump threshold and the second jump flag is the second value;

[0097] The setting unit is used to set the second jump flag to the first value.

[0098] In some embodiments of the present application, the setting unit is further configured to set the second jump flag to the second value if the second difference is zero.

[0099] In some embodiments of the present application, the determination unit is further used to determine the last remaining power value and the last displayed power value obtained in the last power jump monitoring process; determine a third difference between the current remaining power value and the last remaining power value; if the third difference is greater than a third preset jump threshold, a power jump of a third jump type is monitored; determine a fourth difference between the current displayed power value and the last displayed power value; if the fourth difference is greater than a fourth preset monitoring threshold, a power jump of a fourth jump type is monitored;

[0100] The recording and reporting unit 11 is also used to record and report the corresponding third burial point information; and record and report the corresponding fourth burial point information.

[0101] In some embodiments of the present application, the acquisition unit 10 is further used to acquire a third jump flag; acquire a fourth jump flag;

[0102] The recording and reporting unit 11 is also used to record and report the third buried point information if the third jump flag is the second value, and set the third jump flag to the first value; if the fourth jump flag is the second value, report the fourth buried point information to the power monitoring server, and set the fourth jump flag to the first value.

[0103] In some embodiments of the present application, the setting unit is further used to set the third jump flag to the second value if the third difference is zero; and set the fourth jump flag to the second value if the fourth difference is zero.

[0104] In some embodiments of the present application, the first jump type is a power jump caused by power loading during startup, the second jump type is a power jump between the remaining power and the displayed power, the third jump type is a remaining power jump; and the fourth jump type is a displayed power jump.

[0105] A terminal provided in an embodiment of the present application obtains a first remaining power value and a first displayed power value when a power jump monitoring process is triggered for the first time when the terminal is powered on; when a power jump of a first jump type is detected based on the first remaining power value and the first displayed power value, the terminal records and reports the corresponding first buried point information, and sets the first jump flag to the first value; the power jump monitoring process is triggered once every preset monitoring period, and the current remaining power value and the current displayed power value are obtained and compared once; until the current remaining power value is compared to the current displayed power value, the first jump flag is set to the second value; and in the power jump monitoring process triggered thereafter, the second jump type of monitoring and the corresponding second buried point information reporting process are performed according to the second remaining power value and the second displayed power value obtained each time. It can be seen that the terminal proposed in this embodiment, when the terminal detects a power jump of the first jump type in the power jump monitoring process triggered by the terminal startup, the terminal reports the corresponding first buried point information and sets the corresponding first jump flag to the first value. In the subsequent power jump monitoring process triggered at each preset monitoring period, the terminal no longer performs the monitoring of the first jump type of power jump process based on the first jump flag set to the first value, but determines whether to change the first jump flag to the second value based on the current remaining power value and the current displayed power value obtained each time, until the first jump flag is changed to the second value. In the subsequent power jump monitoring process, the second jump type of monitoring and the corresponding second buried point information reporting process are performed based on the obtained displayed power value and the remaining power value, which can distinguish the first jump type from the second jump type, thereby improving the monitoring accuracy; and for the first jump type caused by startup, the first buried point information corresponding to the first jump type is reported only once, which reduces the reporting frequency and thereby reduces the reporting power consumption.

[0106] Figure 4 A schematic diagram of the structure of a terminal 1 provided in an embodiment of the present application Figure 2 In practical applications, based on the same disclosure concept of the above embodiments, Figure 4 As shown, the terminal 1 of this embodiment includes: a processor 14 , a memory 15 and a communication bus 16 .

[0107] In the process of a specific embodiment, the acquisition unit 10, the recording and reporting unit 11, the setting unit 12, the loop execution unit 13, the determination unit, and the setting unit can be implemented by a processor 14 located on the terminal 1, and the processor 14 can be at least one of an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing image processing device (DSPD), a programmable logic image processing device (PLD), a field programmable gate array (FPGA), a CPU, a controller, a microcontroller, and a microprocessor. It can be understood that for different devices, the electronic device used to implement the above-mentioned processor function can also be other, and this embodiment does not specifically limit it.

[0108] In the embodiment of the present application, the communication bus 16 is used to realize the connection and communication between the processor 14 and the memory 15; when the processor 14 executes the running program stored in the memory 15, the following power jump monitoring method is implemented:

[0109] When the power jump monitoring process is triggered for the first time when the terminal is powered on, a first remaining power value and a first displayed power value are obtained; when a power jump of a first jump type is detected based on the first remaining power value and the first displayed power value, the corresponding first buried point information is recorded and reported, and the first jump flag is set to the first value; the power jump monitoring process is triggered once every preset monitoring period, and the current remaining power value and the current displayed power value are obtained and compared once; until the current remaining power value is compared to the current displayed power value, the first jump flag is set to the second value; and in the power jump monitoring process triggered thereafter, the second jump type of monitoring and the corresponding second buried point information reporting process are performed according to the second remaining power value and the second displayed power value obtained each time.

[0110] In some embodiments of the present application, the processor 14 is also used to determine a first difference between the first remaining power value and the first displayed power value; when the first difference is greater than a first preset jump threshold, monitor a power jump that produces the first jump type.

[0111] In some embodiments of the present application, the processor 14 is also used to determine a second difference between the second remaining power value and the second displayed power value; and obtain a second jump flag; when the second difference is greater than a second preset jump threshold and the second jump flag is the second value, record and report the second buried point information, and set the second jump flag to the first value.

[0112] In some embodiments of the present application, the processor 14 is further configured to set the second jump flag to the second value if the second difference is zero.

[0113] In some embodiments of the present application, the processor 14 is also used to determine the last remaining power value and the last displayed power value obtained in the last power jump monitoring process; determine the third difference between the current remaining power value and the last remaining power value; if the third difference is greater than the third preset jump threshold, a power jump of the third jump type is monitored; record and report the corresponding third buried point information; determine the fourth difference between the current displayed power value and the last displayed power value; if the fourth difference is greater than the fourth preset monitoring threshold, a power jump of the fourth jump type is monitored; record and report the corresponding fourth buried point information.

[0114] In some embodiments of the present application, the processor 14 is also used to obtain a third jump flag; if the third jump flag is the second value, record and report the third buried point information, and set the third jump flag to the first value; obtain a fourth jump flag; if the fourth jump flag is the second value, report the fourth buried point information to the power monitoring server, and set the fourth jump flag to the first value.

[0115] In some embodiments of the present application, the processor 14 is further configured to set the third jump flag to the second value if the third difference is zero; and set the fourth jump flag to the second value if the fourth difference is zero.

[0116] In some embodiments of the present application, the processor 14 is also used for the first jump type being a power jump caused by power loading during power-on, the second jump type being a power jump between the remaining power and the displayed power, the third jump type being a remaining power jump; and the fourth jump type being a displayed power jump.

[0117] An embodiment of the present application provides a storage medium having a computer program stored thereon. The computer-readable storage medium stores one or more programs. The one or more programs can be executed by one or more processors and applied to a terminal. The computer program implements the power jump monitoring method as described above.

[0118] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0119] 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 disclosure, or the part that contributes to the relevant technology, can be embodied in the form of a 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 enabling an image display device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present disclosure.

[0120] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.

Claims

1. A method for monitoring power jump, characterized in that: The method comprises: When the terminal is powered on and the power jump monitoring process is triggered for the first time, a first remaining power value and a first displayed power value are obtained; When a power jump of a first jump type is detected according to the first remaining power value and the first displayed power value, recording and reporting corresponding first buried point information, and setting a first jump flag to a first value; The power jump monitoring process is triggered once every preset monitoring period, and the acquisition and comparison process of the current remaining power value and the current displayed power value is performed once; Until the current remaining power value is compared to be equal to the current displayed power value, the first jump flag is set to the second value; and in the power jump monitoring process triggered thereafter, according to the second remaining power value and the second displayed power value obtained each time, the second jump type monitoring and the corresponding second buried point information reporting process are performed; the buried point information includes: reporting time, terminal usage scenario, the first jump type, the remaining power value calculated by the power meter, the displayed power value after the power smoothing algorithm is processed, and the difference between the remaining power value and the displayed power value; the terminal usage scenario includes the terminal temperature; The step of monitoring a power jump of a first jump type according to the first remaining power value and the first displayed power value includes: Determine a first difference between the first remaining power value and the first displayed power value; when the first difference is greater than a first preset jump threshold, monitor a power jump that generates the first jump type; The process of performing monitoring of the second transition type and reporting the corresponding second buried point information according to the second remaining power value and the second displayed power value obtained each time includes: Determine the second difference between the second remaining power value and the second displayed power value; and obtain a second jump flag; if the second difference is greater than the second preset jump threshold and the second jump flag is the second value, record and report the second buried point information, and set the second jump flag to the first value.

2. The method according to claim 1, characterized in that: determining a second difference between the second remaining power value and the second displayed power value; After obtaining the second transition flag, the method further includes: If the second difference is zero, the second jump flag is set to the second value.

3. The method according to claim 1, characterized in that: After the power jump monitoring process is triggered once every preset monitoring period, the method further includes: Determine the last remaining power value and the last displayed power value obtained in the last power jump monitoring process; Determine a third difference between the current remaining power value and the previous remaining power value; if the third difference is greater than a third preset jump threshold, monitor a power jump of a third jump type; record and report corresponding third buried point information; Determine a fourth difference between the currently displayed power value and the last displayed power value; if the fourth difference is greater than a fourth preset monitoring threshold, a power jump of a fourth jump type is monitored; record and report corresponding fourth buried point information.

4. The method according to claim 3, characterized in that The recording and reporting of the corresponding third burial point information includes: Get the third jump flag; If the third jump flag is the second value, record and report the third buried point information, and set the third jump flag to the first value; The recording and reporting of the corresponding fourth burial point information includes: Get the fourth transition flag; If the fourth jump flag is the second value, the fourth buried point information is reported to the power monitoring server, and the fourth jump flag is set to the first value.

5. The method according to claim 4, characterized in that After determining the third difference between the current remaining power value and the previous remaining power value, the method further includes: If the third difference is zero, setting the third jump flag to a second value; The determining a fourth difference between the currently displayed power value and the last displayed power value comprises: If the fourth difference is zero, the fourth jump flag is set to the second value.

6. The method according to claim 3, characterized in that The first jump type is a power jump caused by power loading during startup, the second jump type is a power jump between the remaining power and the displayed power, the third jump type is a remaining power jump; and the fourth jump type is a displayed power jump.

7. A terminal, characterized in that: The terminal comprises: An acquisition unit, configured to acquire a first remaining power value and a first displayed power value when the power jump monitoring process is triggered for the first time when the terminal is powered on; and acquire a second jump flag; a recording and reporting unit, configured to record and report corresponding first buried point information when a power jump of a first jump type is detected according to the first remaining power value and the first displayed power value; A setting unit, configured to set the first jump flag to a first value; until the current remaining power value is compared to be equal to the current displayed power value, then the first jump flag is set to a second value; A cyclic execution unit, used to trigger a power jump monitoring process once every preset monitoring period, and execute a process of obtaining and comparing the current remaining power value and the current displayed power value; in the power jump monitoring process triggered thereafter, according to the second remaining power value and the second displayed power value obtained each time, execute the second jump type monitoring and the corresponding second buried point information reporting process; the buried point information includes: reporting time, terminal usage scenario, the first jump type, the remaining power value calculated by the power meter, the displayed power value after the power smoothing algorithm is processed, and the difference between the remaining power value and the displayed power value; the terminal usage scenario includes the terminal temperature; a determining unit, configured to determine a first difference between the first remaining power value and the first displayed power value; when the first difference is greater than a first preset jump threshold, monitor a power jump that generates the first jump type; and determine a second difference between the second remaining power value and the second displayed power value; The recording and reporting unit is further configured to record and report the second buried point information when the second difference is greater than a second preset jump threshold and the second jump flag is the second value; The setting unit is further configured to set the second jump flag to the first value.

8. A terminal, characterized in that: The terminal includes: a processor, a memory and a communication bus; when the processor executes the running program stored in the memory, the method according to any one of claims 1 to 6 is implemented.

9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Method for displaying residual battery electricity quantity of mobile terminal

    CN102375127A

  • Method for detecting abnormal power consumption, terminal and computer readable memory medium

    CN107357673A