A charging power display control method, device and computer readable storage medium
By adjusting the damping and refresh time/frame rate during charging, a more accurate power display is achieved based on the cell type and current value, solving the problem of inaccurate charging power display in existing technologies and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN ZHONGXING MOBILE SOFTWARE CO LTD
- Filing Date
- 2021-12-17
- Publication Date
- 2026-06-23
AI Technical Summary
Existing charging power display and control methods are not accurate enough during fast charging and fail to take into account the real-time characteristics of fast charging, resulting in an unsatisfactory charging experience for users.
By comparing the animated display value and the value reported by the power meter according to a preset cycle after the device is plugged in, adjusting the damping, and determining the refresh time or frame rate of the power display based on the cell type and current value, accurate power display can be achieved.
It improves the accuracy and precision of the battery level display, enhancing the user's fast charging experience.
Smart Images

Figure CN114268148B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of mobile communications, and more particularly to a charging power display control method, device, and computer-readable storage medium. Background Technology
[0002] With the continuous development of smart terminal devices, Android phone fast charging technology has also advanced rapidly. Specifically, it has progressed from 20W to 65W, 120W, and now to the highest commercially available 165W, with 200W under development. Charging time for mobile phones and other devices has also decreased from 120 minutes a few years ago to just over ten minutes now. In this process, to allow users to truly experience the tremendous progress in mobile phone charging technology and the rapid increase in battery level, mobile phone manufacturers have adapted cool charging animations for their phones. The switch from 0-100% battery level display to 0-100.00% further optimizes the fast charging animation experience.
[0003] However, the existing technical solutions still use the 0-100 increment display control scheme when the battery level display switches from 0-100 increments to 0-100.00 increments. The display control method is not accurate, does not take into account the real-time characteristics of fast charging, and does not show the evolution of two decimal places in the real-time battery level display. There is still considerable room for improvement in the user's fast charging experience. Summary of the Invention
[0004] To address the aforementioned technical deficiencies in the prior art, this invention proposes a charging power display control method, which includes:
[0005] After the device is plugged in and the charging animation is activated, the current animation display value is compared with the reported value of the power meter according to a preset cycle, and the damping of the power refresh is adjusted according to the comparison result.
[0006] If the battery cell type of the device is a single cell, then when determining the power display based on the average current value of the previously recorded data, the conversion rate of the single cell when connected to a preset power charger, and the damping, the refresh time of the minimum display unit is increased, and the current power display is periodically updated according to the refresh time.
[0007] If the device has a multi-cell battery, then based on the current current value, the baseline growth parameter when the multi-cell battery is connected to a charger with a preset charging power and reaches a preset power level, and the damping, the refresh frame rate is increased for each minimum display unit when the power display is determined, and the current power display is updated synchronously according to the refresh frame rate.
[0008] Optionally, the step of comparing the current animation display value with the reported value of the power meter according to a preset cycle after the device is plugged in and the charging animation is initiated, and adjusting the damping of the power refresh based on the comparison result, includes:
[0009] During the initialization of the charging animation, a preset detector is activated.
[0010] The detector is used to detect the model of the device.
[0011] Optionally, the step of comparing the current animation display value with the reported value of the fuel gauge according to a preset cycle after the device is plugged in and the charging animation is initiated, and adjusting the damping of the fuel level refresh based on the comparison result, further includes:
[0012] Based on the information of the model, read the cell node of the device.
[0013] Create an interface corresponding to the cell node, and determine the cell type of the device through the interface.
[0014] Optionally, the step of comparing the current animation display value with the reported value of the fuel gauge according to a preset cycle after the device is plugged in and the charging animation is initiated, and adjusting the damping of the fuel level refresh based on the comparison result, further includes:
[0015] The number of refresh frames per minimum display unit increment is used as the initial damping, and the difference between the current charging animation display value and the reported value of the power meter is obtained according to the cycle.
[0016] If the difference between the displayed animation value and the reported value is greater than a preset threshold, the damping is increased; if the difference between the displayed animation value and the reported value is less than the preset threshold, the damping is decreased.
[0017] Optionally, if the battery cell type of the device is a single cell, then when determining the power display based on the average current value of the previously recorded data, the conversion rate of the single cell when connected to a preset power charger, and the damping, the refresh time is increased by a minimum display unit, and the current power display is periodically updated according to the refresh time, including:
[0018] The current value is acquired once for each cycle until eight current values are recorded, which are then used as the retrospective record data.
[0019] Based on the charging data distribution curve of the single cell when connected to a preset power charger, a floating-point parameter that meets the preset conditions is obtained as the conversion rate.
[0020] Optionally, if the device's battery cell type is multi-cell, then based on the current current value, the baseline growth parameter when the multi-cell is connected to a charger with a preset charging power and reaches a preset power level, and the damping, when determining the power display, the refresh frame rate for each minimum display unit increase, and synchronously updating the current power display according to the refresh frame rate, includes:
[0021] When the multi-cell battery is connected to a charger with a preset charging power, the amount of electricity reached is divided into multiple preset power stages.
[0022] Determine the reference growth parameter and reference current parameter corresponding to each preset power stage.
[0023] Optionally, updating the current battery level display then includes:
[0024] The screen is turned on after the screen-off time exceeds a preset time. If the screen is turned on while the device is plugged in, the average current of a set of currents is obtained at a preset period while the device is plugged in.
[0025] The damping is adjusted based on the comparison results by comparing the reference current parameters.
[0026] Optionally, the update of the current battery level display may further include:
[0027] If the screen-off battery level before the screen-on time is less than the current broadcast battery level, it will be displayed as (broadcast battery level * 100.00). If the screen-off battery level is greater than (broadcast battery level + 1), it will be displayed as ((broadcast battery level + 0.5) * 100.00).
[0028] If the broadcast battery level is 100, it will be displayed as fully charged.
[0029] The present invention also proposes a charging power display control device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the charging power display control method as described in any of the preceding claims.
[0030] The present invention also proposes a computer-readable storage medium storing a charging power display control program, which, when executed by a processor, implements the steps of the charging power display control method as described in any of the preceding claims.
[0031] The charging power display control method, device, and computer-readable storage medium of this invention compare the current animation display value with the reported value of the fuel gauge at a preset cycle after the device is plugged in and the charging animation is started, and adjust the damping of the power display refresh according to the comparison result. If the device has a single-cell battery, the power display is periodically updated according to the refresh time incremented by the minimum display unit based on the average current value of previously recorded data, the conversion rate of the single cell when connected to a preset power charger, and the damping. If the device has a multi-cell battery, the power display is synchronously updated according to the refresh frame rate incremented by the minimum display unit based on the current current value, the baseline growth parameter of the multi-cell battery when connected to a preset power charger and reaching a preset power stage, and the damping. This achieves a user-friendly charging power display control scheme, fundamentally improving the accuracy and precision of the power display and enhancing the user's fast charging experience. Attached Figure Description
[0032] The present invention will be further described below with reference to the accompanying drawings and embodiments. In the accompanying drawings:
[0033] Figure 1 This is a schematic diagram of the hardware structure of a mobile terminal according to the present invention;
[0034] Figure 2 This is a communication network system architecture diagram provided in an embodiment of the present invention;
[0035] Figure 3 This is a flowchart of the first embodiment of the charging power display control method of the present invention;
[0036] Figure 4 This is a flowchart of the second embodiment of the charging power display control method of the present invention;
[0037] Figure 5 This is a flowchart of the third embodiment of the charging power display control method of the present invention;
[0038] Figure 6 This is a flowchart of the fourth embodiment of the charging power display control method of the present invention;
[0039] Figure 7 This is a flowchart of the fifth embodiment of the charging power display control method of the present invention;
[0040] Figure 8 This is a flowchart of the sixth embodiment of the charging power display control method of the present invention;
[0041] Figure 9 This is a flowchart of the seventh embodiment of the charging power display control method of the present invention;
[0042] Figure 10 This is a flowchart of the eighth embodiment of the charging power display control method of the present invention;
[0043] Figure 11 This is another flowchart of the second embodiment of the charging power display control method of the present invention;
[0044] Figure 12 This is another flowchart of the fifth embodiment of the charging power display control method of the present invention;
[0045] Figure 13 This is another flowchart of the sixth embodiment of the charging power display control method of the present invention. Detailed Implementation
[0046] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.
[0047] In the following description, the use of suffixes such as "module," "part," or "unit" to denote elements is solely for the purpose of illustrative purposes and has no specific meaning in itself. Therefore, "module," "part," or "unit" may be used interchangeably.
[0048] Terminals can be implemented in various forms. For example, the terminals described in this invention may include mobile terminals such as mobile phones, tablets, laptops, handheld computers, personal digital assistants (PDAs), portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers.
[0049] The following description will use a mobile terminal as an example. Those skilled in the art will understand that, apart from elements specifically designed for mobile purposes, the construction according to embodiments of the present invention can also be applied to fixed-type terminals.
[0050] Please see Figure 1 This is a schematic diagram of the hardware structure of a mobile terminal implementing various embodiments of the present invention. The mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an A / V (Audio / Video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111, etc. Those skilled in the art will understand that... Figure 1The mobile terminal structure shown does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0051] The following is combined with Figure 1 A detailed introduction to each component of the mobile terminal:
[0052] The radio frequency unit 101 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink information from the base station and processes it with the processor 110; additionally, it transmits uplink data to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, and a duplexer. Furthermore, the radio frequency unit 101 can also communicate wirelessly with networks and other devices. The aforementioned wireless communications may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution), and TDD-LTE (Time Division Duplexing-Long Term Evolution).
[0053] WiFi is a short-range wireless transmission technology. Mobile terminals, through the WiFi module 102, can help users send and receive emails, browse web pages, and access streaming media, providing users with wireless broadband internet access. Although Figure 1 WiFi module 102 is shown, but it is understood that it is not a necessary component of a mobile terminal and can be omitted as needed without changing the nature of the invention.
[0054] The audio output unit 103 can convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into audio signals and output them as sound when the mobile terminal 100 is in call signal receiving mode, call mode, recording mode, voice recognition mode, broadcast receiving mode, etc. Furthermore, the audio output unit 103 can also provide audio output related to specific functions performed by the mobile terminal 100 (e.g., call signal receiving sound, message receiving sound, etc.). The audio output unit 103 may include a speaker, a buzzer, etc.
[0055] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos acquired by an image capture device (such as a camera) in video capture mode or image capture mode. The processed image frames can be displayed on the display unit 106. The image frames processed by the GPU 1041 can be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) in operating modes such as telephone call mode, recording mode, and voice recognition mode, and can process such sound into audio data. The processed audio (voice) data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 101 in telephone call mode. The microphone 1042 can implement various types of noise cancellation (or suppression) algorithms to eliminate (or suppress) noise or interference generated during the reception and transmission of audio signals.
[0056] The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 1061 according to the ambient light level, and the proximity sensor can turn off the display panel 1061 and / or backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used for applications that recognize the phone's posture (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition-related functions (such as pedometer, tapping), etc. Other sensors that may be configured in the phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.
[0057] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0058] User input unit 107 can be used to receive input numerical or character information, and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, user input unit 107 may include touch panel 1071 and other input devices 1072. Touch panel 1071, also known as touch screen, can collect touch operations on or near the user (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near touch panel 1071), and drive corresponding connection devices according to a pre-set program. Touch panel 1071 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, sends it to processor 110, and can receive and execute commands from processor 110. In addition, touch panel 1071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc., without being limited here.
[0059] Furthermore, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of touch event. Subsequently, the processor 110 provides corresponding visual output on the display panel 1061 based on the type of touch event. Although in Figure 1 In this embodiment, the touch panel 1071 and the display panel 1061 are two independent components to realize the input and output functions of the mobile terminal. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to realize the input and output functions of the mobile terminal. The specific implementation is not limited here.
[0060] Interface unit 108 serves as an interface through which at least one external device can connect to mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, and so on. Interface unit 108 may be used to receive input (e.g., data, power, etc.) from the external device and transmit the received input to one or more elements within mobile terminal 100, or it may be used to transmit data between mobile terminal 100 and the external device.
[0061] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function (such as sound playback, image playback, etc.), etc.; the data storage area may store data created based on the use of the mobile phone (such as audio data, phonebook, etc.). Furthermore, the memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0062] The processor 110 is the control center of the mobile terminal. It connects various parts of the mobile terminal via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 109, and by calling data stored in the memory 109, it performs various functions and processes data of the mobile terminal, thereby providing overall monitoring of the mobile terminal. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 110.
[0063] The mobile terminal 100 may also include a power supply 111 (such as a battery) that supplies power to various components. Preferably, the power supply 111 can be logically connected to the processor 110 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system.
[0064] although Figure 1 As not shown, the mobile terminal 100 may also include a Bluetooth module, etc., which will not be described in detail here.
[0065] To facilitate understanding of the embodiments of the present invention, the communication network system on which the mobile terminal of the present invention is based is described below.
[0066] Please see Figure 2 , Figure 2 This invention provides a communication network system architecture diagram. The communication network system is an LTE system based on the universal mobile communication technology. The LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and the operator's IP services 204, which are connected in sequence.
[0067] Specifically, UE201 can be the aforementioned terminal 100, which will not be elaborated here.
[0068] E-UTRAN202 includes eNodeB2021 and other eNodeB2022s. Among them, eNodeB2021 can connect to other eNodeB2022s via backhaul (e.g., X2 interface), and eNodeB2021 connects to EPC203. eNodeB2021 can provide UE201 with access to EPC203.
[0069] EPC203 may include MME (Mobility Management Entity) 2031, HSS (Home Subscriber Server) 2032, other MMEs 2033, SGW (Serving Gateway) 2034, PGW (Packet Data Network Gateway) 2035, and PCRF (Policy and Charging Rules Function) 2036, etc. Among them, MME2031 is the control node that handles signaling between UE201 and EPC203, providing bearer and connection management. HSS2032 provides registers to manage functions such as the Home Location Register (not shown in the diagram) and stores user-specific information such as service characteristics and data rates. All user data can be sent through SGW2034. PGW2035 can provide UE 201 IP address allocation and other functions. PCRF2036 is the policy and charging control decision point for service data flow and IP bearer resources. It selects and provides available policy and charging control decisions for the policy and charging enforcement function unit (not shown in the figure).
[0070] IP services 204 may include the Internet, intranet, IMS (IP Multimedia Subsystem), or other IP services.
[0071] Although the above description uses the LTE system as an example, those skilled in the art should understand that the present invention is not only applicable to the LTE system, but also to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems, etc., which are not limited here.
[0072] Based on the aforementioned mobile terminal hardware structure and communication network system, various embodiments of the method of the present invention are proposed.
[0073] Example 1
[0074] Figure 3 This is a flowchart of the first embodiment of the charging power display control method of the present invention. A charging power display control method, the method comprising:
[0075] S1. After the device is plugged in and the charging animation is started, the current animation display value and the reported value of the power meter are compared according to the preset cycle, and the damping of the power refresh is adjusted according to the comparison result.
[0076] S2. If the battery cell type of the device is a single cell, then when determining the power display based on the average current value of the previously recorded data, the conversion rate of the single cell when connected to a preset power charger, and the damping, the refresh time of the minimum display unit is increased, and the current power display is periodically updated according to the refresh time.
[0077] S3. If the battery cell type of the device is multi-cell, then based on the current current value, the baseline growth parameter when the multi-cell is connected to a charger with a preset charging power and reaches a preset power level, and the damping, when determining the power display, the refresh frame rate for each minimum display unit increase is updated synchronously according to the refresh frame rate.
[0078] In this embodiment, considering that in the prior art, the problem of insufficient accuracy of hardware metering is solved by software-level pre-estimation methods and the reporting has limitations, this embodiment provides users with a power increase display with an accuracy of 0.01, which is perfectly matched with the fast charging animation, thereby optimizing the charging interaction experience of mobile phones and other devices.
[0079] Optionally, in this embodiment, different power display update schemes are determined based on the different types of battery cells in the device. Specifically, if the device has a single-cell battery, the power display is periodically updated according to the refresh time for each minimum display unit increment, based on the average current value of the previously recorded data, the conversion rate of the single cell when connected to a preset power charger, and the damping used to determine the power display. If the device has a dual-cell battery, the power display is synchronously updated according to the refresh frame rate for each minimum display unit increment, based on the current current value, the baseline growth parameters of the multiple cells when connected to a preset power charger and reaching a preset power level, and the damping used to determine the power display. It can be seen that in this embodiment, considering the slower power growth of a single-cell battery, the system time is used as a metric, with the power display increasing by 0.01% (minimum display unit) every certain amount of time; while the dual-cell battery grows faster, the metric is based on a more stable refresh frame rate, with the power display increasing by 0.01% every certain number of frames refreshed. For example, if the refresh rate is set to 90Hz, and it is determined that the refresh rate for each minimum display unit is also 90Hz, then it is equivalent to an increase of 0.01% for every 90 frames refreshed, or an increase of 0.01% (minimum display unit) every 1 second.
[0080] The beneficial effect of this embodiment is that, after the device is plugged in and the charging animation is activated, the current animation display value and the reported value of the fuel gauge are compared according to a preset cycle, and the damping of the power display refresh is adjusted based on the comparison result. If the device's battery type is single-cell, the refresh time for each minimum display unit is increased based on the average current value of previously recorded data, the conversion rate of the single cell when connected to a preset power charger, and the damping, and the current power display is updated periodically according to the refresh time. If the device's battery type is multi-cell, the refresh frame rate for each minimum display unit is increased based on the current value, the baseline growth parameter when the multi-cell is connected to a preset power charger and reaches a preset power stage, and the damping, and the current power display is updated synchronously according to the refresh frame rate. This achieves a user-friendly charging power display control scheme, fundamentally improving the accuracy and precision of the power display and enhancing the user's fast charging experience.
[0081] Example 2
[0082] Figure 4 This is a flowchart of the second embodiment of the charging power display control method of the present invention. Based on the above embodiment, the step of comparing the current animation display value and the reported value of the power meter according to a preset cycle after the device is plugged in and the charging animation is started, and adjusting the damping of the power refresh according to the comparison result, includes:
[0083] S11. During the initialization of the charging animation, the preset detector is activated.
[0084] S12. Detect the model of the device using the detector.
[0085] Optionally, in this embodiment, please refer to Figure 11 The flowchart shown illustrates that, firstly, during power-on initialization, the charging animation activates the detector (Observer), and then the device model Observer identifies and detects the device model.
[0086] The beneficial effect of this embodiment is that by activating a preset detector during the initialization of the charging animation, and detecting the device model through the detector, a user-friendly charging power display control scheme is achieved. This fundamentally improves the accuracy and precision of the power display, enhancing the user's fast charging experience.
[0087] Example 3
[0088] Figure 5 This is a flowchart of the third embodiment of the charging power display control method of the present invention. Based on the above embodiment, the step of comparing the current animation display value and the reported value of the power meter according to a preset cycle after the device is plugged in and the charging animation is started, and adjusting the damping of the power refresh according to the comparison result, further includes:
[0089] S13. Based on the information of the model, read the cell node of the device.
[0090] S14. Create an interface corresponding to the cell node, and determine the cell type of the device through the interface.
[0091] Optionally, in this embodiment, it is also combined with Figure 11 First, read the cell node creation interface to determine the cell type.
[0092] Optionally, in this embodiment, the battery cell type of the device includes single-cell and multi-cell types. In this embodiment, dual-cell multi-cell is used as an example for explanation.
[0093] In this embodiment, the current charging type is identified through a VDM code (vendor define message). For example, in a single-cell scenario, there is normal charging (less than 30W) and fast charging (around 65W). During normal charging, the battery level is displayed as an integer using a slow animation, while at around 65W, the battery level is displayed as a percentage using a medium-speed animation. Similarly, in a dual-cell scenario, there is normal charging (less than 30W), fast charging (around 65W), and super-fast charging (around 120W). During normal charging, the battery level is displayed as an integer using a slow animation, while at around 65W, the battery level is displayed as a percentage using a fast animation, and at around 120W, the battery level is displayed as a percentage using an ultra-fast animation.
[0094] The beneficial effect of this embodiment is that, by reading the battery cell node of the device based on the device model information, creating an interface corresponding to the battery cell node, and determining the battery cell type of the device through the interface, a user-friendly charging power display control scheme is achieved, fundamentally improving the accuracy and precision of the power display and enhancing the user's fast charging experience.
[0095] Example 4
[0096] Figure 6 This is a flowchart of the fourth embodiment of the charging power display control method of the present invention. Based on the above embodiment, the step of comparing the current animation display value and the reported value of the power meter according to a preset cycle after the device is plugged in and the charging animation is started, and adjusting the damping of the power refresh according to the comparison result, further includes:
[0097] S15. Use the number of refresh frames per minimum display unit as the initial damping, and obtain the difference between the current charging animation display value and the reported value of the power meter according to the cycle.
[0098] S16. If the difference between the animated display value and the reported value is greater than a preset threshold, the damping is increased; if the difference between the animated display value and the reported value is less than the preset threshold, the damping is decreased.
[0099] Optionally, in this embodiment, the cycle period is 500ms, and the damping is the number of frames required for the battery level display value to increase by 0.01%.
[0100] The beneficial effect of this embodiment lies in using the refresh frame count of each minimum display unit as the initial damping, and obtaining the difference between the current charging animation display value and the reported value of the battery meter according to the cycle; if the difference between the animation display value and the reported value is greater than a preset threshold, the damping is increased; if the difference between the animation display value and the reported value is less than the preset threshold, the damping is decreased. This achieves a user-friendly charging power display control scheme, fundamentally improving the accuracy and precision of the power display and enhancing the user's fast charging experience.
[0101] Example 5
[0102] Figure 7 This is a flowchart of the fifth embodiment of the charging power display control method of the present invention. Based on the above embodiment, if the battery cell type of the device is a single cell, then when determining the power display based on the average current value of the previously recorded data, the conversion rate of the single cell when connected to a preset power charger, and the damping, the refresh time of each minimum display unit is increased, and the current power display is periodically updated according to the refresh time, including:
[0103] S21. Obtain the current value once for each cycle until eight current values are recorded, which are used as the retrospective record data.
[0104] S22. Based on the charging data distribution curve of the single cell when connected to a preset power charger, obtain a floating-point parameter that meets preset conditions and use it as the conversion rate.
[0105] Optionally, in this embodiment, please refer to Figure 12 First, when plugged in, the charging animation ChargeView is launched. Then, the readNode loop is started. Based on the formula: Average Current (avg) * Conversion Rate (lambda) * Time (time) = Battery Increase (upBattery), the refresh time for each minimum display unit increase is determined, and the current battery display is periodically updated according to this refresh time. Here, frame refresh refers to the frame rate of the charging animation, i.e., the frame rate set by the current phone, such as 90Hz, 120Hz, 165Hz, etc. The conversion rate (lambda) is a floating-point parameter calculated based on a certain number of charging data distribution curves. For example, it might be set as follows: 65W_LAMDA = 0.0010112f for a single cell connected to a 65W charger, and 120W_LAMDA = 0.0013553f for a single cell connected to a 120W charger. Optionally, these two values can be fixed.
[0106] Optionally, in this embodiment, the fuel gauge used in the single-cell device reports the battery level every time the displayed percentage increases by 0.4%. The reporting interval is faster initially when fast charging is connected, and slower thereafter, decreasing as temperature rises. It can be seen that in the above scenario, the parameter directly affecting the battery level is the charging current; that is, the battery level increases more slowly with each single cell. This embodiment uses system time as a metric to determine how much time elapses before the displayed battery level increases by 0.01%.
[0107] The beneficial effect of this embodiment is that by acquiring a current value once in each cycle until eight current values are recorded, it serves as the retrospective recording data; based on the charging data distribution curve of the single cell when connected to a preset power charger, a floating-point parameter that meets preset conditions is obtained as the conversion rate. This achieves a user-friendly charging power display control scheme, fundamentally improving the accuracy and precision of the power display and enhancing the user's fast charging experience.
[0108] Example 6
[0109] Figure 8 This is a flowchart of the sixth embodiment of the charging power display control method of the present invention. Based on the above embodiment, if the battery cell type of the device is multi-cell, then according to the current current value, the reference growth parameter when the multi-cell is connected to a preset charging power charger and reaches a preset power stage, and the damping, when determining the power display, the refresh frame rate for each minimum display unit increase, and synchronously updating the current power display according to the refresh frame rate, including:
[0110] S31. When the multi-cell battery is connected to a charger with a preset charging power, the amount of electricity reached is divided into multiple preset power stages.
[0111] S32. Determine the reference growth parameter and reference current parameter corresponding to each preset power stage.
[0112] Optionally, in this embodiment, please refer to Figure 13First, when plugged in, the charging animation ChargeView is launched. Then, the loop readNode is started. The refresh frame rate for each minimum display unit increase is determined according to the formula: Frame Rate % (Baseline lambda / Current cur + - Damping mTuning) = 0 -> Battery Growth mTempValue++. Here, frame refresh refers to the base value for phased growth, a floating-point parameter calculated based on a certain amount of charging data distribution curves. mSpeedValve = the number of frames required for each 0.01% battery increase. The preset battery levels are: 0-40%, 40%-60%, 60%-80%, 80%-90%, 90%-95%, 95%-100% for dual-cell batteries connected to a 120W charger; and 0-60%, 60%-80%, 80%-90%, 90%-95%, 95%-100% for dual-cell batteries connected to a 65W charger. Each level has a base growth parameter mSpeedValve.
[0113] Optionally, in this embodiment, in the above formula, the frame number in "frames%" refers to the number of frames that the charging animation has been refreshed; frame number% is the remainder; the reference lambda is the reference growth parameter mSpeedValve * reference current (both are fixed values); / currentcur refers to the current current, which needs to slow down the growth rate if it is smaller than the reference current, and needs to increase the growth rate if the current is larger; +-damping mTuning means that the software layer has a loop that reads the battery meter report value every 500ms; when the current animation display value is greater than the reported value by a preset range, the damping mTuning is increased, and the battery growth mTempValue++ means that the battery display increases by 1.
[0114] In this embodiment, the power meter used in the dual-cell device reports the power level every 2 seconds. The power level increases rapidly in the initial stage after fast charging is connected, and then slows down as the temperature rises. The parameter that is directly affected is the charging current.
[0115] As can be seen, in this embodiment, the dual-cell battery increases power faster, and the measurement is based on a more stable frame rate. The battery level increases by 0.01% for every 90 frames refreshed. If the phone is set to 90Hz, and (reference lamda / current cur + - damping mTuning) = 90, this is equivalent to a 0.01% increase per 90 frames refreshed, or a 0.01% increase per second.
[0116] The beneficial effect of this embodiment is that by dividing the achieved power level of the multi-cell battery into multiple preset power levels when connected to a charger with a preset charging power, and determining the reference growth parameter and reference current parameter corresponding to each preset power level, a user-friendly charging power display control scheme is achieved. This fundamentally improves the accuracy and precision of the power display and enhances the user's fast charging experience.
[0117] Example 7
[0118] Figure 9 This is a flowchart of the seventh embodiment of the charging power display control method of the present invention. Based on the above embodiment, the step of updating the current power display includes:
[0119] S41. Determine the screen-on time after the screen-off time exceeds the preset time. If the screen-on time is in the plugged-in state, obtain the average current of a set of currents at a preset period in the plugged-in state.
[0120] S42. Compare the reference current parameters and adjust the damping according to the comparison results.
[0121] Optionally, in this embodiment, when the charging battery temperature is too high and the charge increase is relatively slow, or when the driving node is abnormal, or when frequent plugging and unplugging causes a slow probabilistic current rise, this embodiment adds a screen-off power broadcast calibration mechanism to ensure the accuracy of the screen lock power data.
[0122] Run UpdateTempValue once every time the screen turns on after naturally turning off for more than 10 seconds.
[0123] If the screen is turned on when plugged in, an average current is obtained within 5 seconds of plugging in, and the damping is adjusted by comparing it with the reference current.
[0124] The beneficial effect of this embodiment is that by determining the screen-on time after the screen-off time exceeds a preset time, if the screen-on time is in a plugged-in state, the average current of a set of currents is obtained at a preset period in the plugged-in state; the reference current parameters are compared, and the damping is adjusted according to the comparison result. This achieves a user-friendly charging power display control scheme, fundamentally improving the accuracy and precision of power display and enhancing the user's fast charging experience.
[0125] Example 8
[0126] Figure 10 This is a flowchart of the eighth embodiment of the charging power display control method of the present invention. Based on the above embodiment, after updating the current power display, it further includes:
[0127] S43. If the screen-off battery level before the screen-on time is less than the current broadcast battery level, then display (broadcast battery level * 100.00). If the screen-off battery level is greater than (broadcast battery level + 1), then display ((broadcast battery level + 0.5) * 100.00).
[0128] S44. If the broadcast battery level is 100, then display it as fully charged.
[0129] As can be seen in this embodiment, after the software-level prediction algorithm is implemented, the power increase display on the fast charging animation can switch from integer growth in the normal level to percentile growth in the super fast charging level. The precision of the power increase display changes from refreshing an integer every tens of seconds to refreshing several 0.01 percentiles per second, allowing users to more truly feel the convenience brought by the advancement of fast charging technology.
[0130] The beneficial effect of this embodiment is that, if the screen-off battery level before the screen-on moment is less than the current broadcast battery level, it is displayed as (broadcast battery level * 100.00); if the screen-off battery level is greater than (broadcast battery level + 1), it is displayed as ((broadcast battery level + 0.5) * 100.00); and if the broadcast battery level is 100, it is displayed as fully charged. This achieves a user-friendly charging battery level display control scheme, fundamentally improving the accuracy and precision of the battery level display and enhancing the user's fast charging experience.
[0131] Example 9
[0132] Based on the above embodiments, the present invention also proposes a charging power display control device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the charging power display control method as described in any of the above embodiments.
[0133] It should be noted that the above-described device embodiments and method embodiments belong to the same concept. The specific implementation process can be found in the method embodiments, and the technical features in the method embodiments are also applicable to the device embodiments, which will not be repeated here.
[0134] Example 10
[0135] Based on the above embodiments, the present invention also proposes a computer-readable storage medium storing a charging power display control program, which, when executed by a processor, implements the steps of the charging power display control method as described in any of the above embodiments.
[0136] It should be noted that the above-described medium embodiments and method embodiments belong to the same concept. The specific implementation process can be found in the method embodiments, and the technical features in the method embodiments are also applicable to the medium embodiments, which will not be repeated here.
[0137] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0138] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0139] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0140] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims. All of these forms are within the protection scope of the present invention.
Claims
1. A method for displaying and controlling charging power, characterized in that, The method includes: After the device is plugged in and the charging animation is activated, the current animation display value is compared with the value reported by the power meter according to a preset cycle, and the damping of the power refresh is adjusted according to the comparison result. If the device's battery cell type is a single cell, then based on the average current value of the previously recorded data, the conversion rate of the single cell when connected to a preset power charger, and the damping, when determining the power display, the refresh time of the minimum display unit is increased, and the current power display is periodically updated according to the refresh time; wherein, the current value is obtained once in each cycle until eight current values are recorded as the previously recorded data, and a floating-point parameter that meets preset conditions is obtained based on the charging data distribution curve of the single cell when connected to a preset power charger, as the conversion rate; If the device has a multi-cell battery, then based on the current current value, the reference growth parameter when the multi-cell is connected to a charger with a preset charging power and reaches a preset power level, and the damping, the refresh frame rate for each minimum display unit increase when the power display is determined, and the current power display is updated synchronously according to the refresh frame rate; wherein, when the multi-cell is connected to a charger with a preset charging power, the power level reached is divided into multiple preset power levels, and the reference growth parameter and reference current parameter corresponding to each preset power level are determined; in, Based on the formula: Average current avg * Conversion rate lamda * Time = Battery increase upBattery, determine the refresh time for each minimum display unit increase. According to the formula: Frame rate % (baseline lambda / current cur + - damping mTuning) = 0 -> power increase mTempValue++, determine the refresh rate for each minimum display unit increase; The conversion rate lamda is a floating-point parameter calculated based on a certain number of charging data distribution curves. The frame rate %, is the remainder of the number of frames that have been refreshed in the charging animation; The reference lamda is the reference growth parameter multiplied by the reference current parameter; / Cur refers to the current current compared to the reference lambda. If the current decreases, the growth rate slows down; if the current increases, the growth rate increases. +-damping mTuning is a software-level loop that reads the reported value of the power meter every 500ms. Battery level increase mTempValue++ means the battery level is increased by 1.
2. The charging power display control method according to claim 1, characterized in that, The process of comparing the current animation display value with the reported value of the power meter according to a preset cycle after the device is plugged in and the charging animation is initiated, and adjusting the damping of the power refresh based on the comparison result, includes: During the initialization of the charging animation, a preset detector is activated; The detector is used to detect the model of the device.
3. The charging power display control method according to claim 2, characterized in that, The method of comparing the current animation display value with the reported value of the power meter according to a preset cycle after the device is plugged in and the charging animation is initiated, and adjusting the damping of the power refresh based on the comparison result, further includes: Based on the information of the specified model, read the cell node of the device; Create an interface corresponding to the cell node, and determine the cell type of the device through the interface.
4. The charging power display control method according to claim 3, characterized in that, The method of comparing the current animation display value with the reported value of the power meter according to a preset cycle after the device is plugged in and the charging animation is initiated, and adjusting the damping of the power refresh based on the comparison result, further includes: The number of refresh frames per minimum display unit increment is used as the initial damping, and the difference between the current charging animation display value and the reported value of the power meter is obtained according to the cycle. If the difference between the displayed animation value and the reported value is greater than a preset threshold, the damping is increased; if the difference between the displayed animation value and the reported value is less than the preset threshold, the damping is decreased.
5. The charging power display control method according to claim 4, characterized in that, The update of the current battery level display, followed by: Determine the screen-on time after the screen-off time exceeds a preset time. If the screen-on time is in a plugged-in state, obtain the average current of a set of currents at a preset period in the plugged-in state. The damping is adjusted based on the comparison results by comparing the reference current parameters.
6. The charging power display control method according to claim 5, characterized in that, The update of the current battery level display is followed by: If the screen-off battery level before the screen-on time is less than the current broadcast battery level, it will be displayed as (broadcast battery level * 100.00); if the screen-off battery level is greater than (broadcast battery level + 1), it will be displayed as ((broadcast battery level + 0.5) * 100.00). If the broadcast battery level is 100, it will be displayed as fully charged.
7. A charging power display and control device, characterized in that, The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the charging power display control method as described in any one of claims 1 to 6.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a charging power display control program, which, when executed by a processor, implements the steps of the charging power display control method as described in any one of claims 1 to 6.