Electric quantity determination method and device, equipment, storage medium and chip
By acquiring the battery's current operating parameters and a pre-modeled power mapping table, and combining the battery's internal resistance and temperature, the mapping table is dynamically switched to solve the problem of inaccurate power levels caused by battery voltage changes, thus achieving accurate determination of battery power and improving user experience.
Patent Information
- Application Number
- CN202410940198.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2026-01-13
AI Technical Summary
When there are significant changes in battery temperature or battery current, existing technologies cannot accurately determine the battery capacity based on the battery's current voltage value.
By acquiring the battery's current operating parameters, such as battery voltage and battery performance parameters, the battery capacity is determined using a pre-modeled power mapping table, including a one-to-one mapping relationship between battery voltage and battery capacity. Combined with the battery's current internal resistance and temperature, the mapping table is dynamically switched between charging and discharging states to suppress abnormal power display.
With limited battery information, accurate battery level determination was achieved, improving the accuracy of battery level determination, avoiding false battery level display, and enhancing the user experience.
Smart Images

Figure CN121325003A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of battery management, and in particular to a power determination method and device, equipment, storage medium and chip. BACKGROUND
[0002] For cost considerations, many terminal devices are not designed with devices such as Coulomb counters to measure and calculate the remaining power of the battery. For a battery, it can provide limited information such as battery voltage, battery current, temperature, etc., and the battery characteristics determine that the battery resistance and the charging and discharging voltage have large differences under different battery currents and temperatures. Therefore, in the case of large changes in battery temperature or battery current, the accurate battery power cannot be obtained based on the current voltage value of the battery. SUMMARY
[0003] To overcome the problems in the related art, the present disclosure provides a power determination method, device, equipment, storage medium and chip to solve the technical problems that the accurate battery power cannot be obtained according to the current battery voltage in the related art.
[0004] According to a first aspect of an embodiment of the present disclosure, a power determination method is provided, comprising:
[0005] obtaining a current working parameter of a target battery, the current working parameter comprising a current battery voltage and a battery performance parameter, the battery performance parameter comprising a current battery resistance and / or a current battery temperature;
[0006] determining the power based on M power mapping tables obtained by pre-modeling and the current working parameter to obtain a current battery power of the target battery, the power mapping table comprising a one-to-one mapping relationship between the battery voltage and the battery power, and M being a positive integer.
[0007] In some embodiments, the determining the power based on the M power mapping tables obtained by pre-modeling and the current working parameter to obtain the current battery power of the target battery comprises:
[0008] obtaining a first battery voltage;
[0009] determining a target mapping table from the M power mapping tables based on the first battery voltage and the current working parameter, the target mapping table comprising a charging mapping table or a discharging mapping table, the charging mapping table being a power mapping table of the target battery in a charging state, and the discharging mapping table being a power mapping table of the target battery in a discharging state;
[0010] finding a battery remaining power matching the current battery voltage in the target mapping table and determining the current battery power.
[0011] In some embodiments, determining the target mapping table from the M mapping tables based on the first battery voltage and the current operating parameter comprises:
[0012] determining N candidate mapping tables with the same type from the M mapping tables based on the first battery voltage and the current battery voltage, the candidate mapping tables with the same type comprising the charging mapping table or the discharging mapping table, N being a positive integer less than or equal to M;
[0013] determining the target mapping table from the N candidate mapping tables based on the battery performance parameter;
[0014] wherein, when the first battery voltage is greater than the current battery voltage, the candidate mapping table is the discharging mapping table; and when the first battery voltage is less than or equal to the current battery voltage, the candidate mapping table is the charging mapping table.
[0015] In some embodiments, the method further comprises:
[0016] obtaining a current operating state of the target battery, the current operating state comprising a charging state or a discharging state;
[0017] displaying the current battery capacity based on the current operating state.
[0018] In some embodiments, displaying the current battery capacity based on the current operating state comprises:
[0019] displaying the current battery capacity when the current operating state is the same as the battery operating state corresponding to the target mapping table; or
[0020] inhibiting the increase of the battery capacity and prohibiting the display of the current battery capacity when the current operating state is different from the battery operating state corresponding to the target mapping table.
[0021] In some embodiments, the current battery voltage is an average voltage of the target battery in a preset time period.
[0022] In some embodiments, the current battery voltage is obtained by smoothing and averaging a plurality of sampling voltages in the preset time period.
[0023] In some embodiments, the method further comprises:
[0024] obtaining charging and discharging data of the target battery under different historical performance parameters, the charging and discharging data comprising at least historical battery voltages;
[0025] The voltage and power modeling conversion is performed based on the charging and discharging data under different historical performance parameters, and M power mapping tables are obtained.
[0026] According to a second aspect of the embodiments of the present disclosure, a power determination apparatus is provided, comprising:
[0027] The acquisition module is configured to acquire current working parameters of a target battery, the current working parameters comprising a current battery voltage and battery performance parameters, the battery performance parameters comprising a current battery internal resistance and / or a current battery temperature;
[0028] The processing module is configured to perform power determination based on M power mapping tables obtained through pre-modeling and the current working parameters, to obtain a current battery power of the target battery, the power mapping table comprising a one-to-one mapping relationship between a battery voltage and a battery power, and M being a positive integer.
[0029] The content not introduced or described in the embodiments of the present disclosure can be referred to the relevant introduction in the foregoing method embodiments, and the embodiments of the present disclosure are not limited.
[0030] According to a third aspect of the embodiments of the present disclosure, a terminal device is provided, comprising a processor, a memory for storing processor executable instructions, wherein the processor is configured to execute the executable instructions to implement the steps of the power determination method described above.
[0031] According to a fourth aspect of the embodiments of the present disclosure, a computer readable storage medium is provided, which stores computer program instructions, and the program instructions are executed by a processor to implement the steps of the power determination method provided in the first aspect of the present disclosure.
[0032] According to a fifth aspect of the embodiments of the present disclosure, a chip is provided, comprising a processor and an interface, and the processor is configured to read instructions to execute the steps of the power determination method described above.
[0033] The technical solution provided by the embodiments of the present disclosure can have the following beneficial effects: the terminal device acquires current working parameters of a target battery, the current working parameters comprising a current battery voltage and battery performance parameters, the battery performance parameters comprising a current battery internal resistance and / or a current battery temperature; power determination is performed based on M power mapping tables obtained through pre-modeling and the current working parameters, to obtain a current battery power of the target battery, the power mapping table comprising a one-to-one mapping relationship between a battery voltage and a battery power, and M being a positive integer. It can be seen that in the case of limited battery information, the present disclosure can also use the mapping table to obtain an accurate current battery power. This can solve the technical problem that the current battery power cannot be accurately obtained according to the current battery voltage in the related art. Thus, the accuracy of power determination is improved.
[0034] It should be understood that the general description above and the detailed description below are only exemplary and explanatory, and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF DRAWINGS
[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and serve to explain the principles of the present disclosure, in which, like reference numerals designate corresponding parts throughout the several views.
[0036] Figure 1 is a flowchart of a method for determining electric quantity according to an example embodiment.
[0037] Figure 2 is a flowchart of another method for determining electric quantity according to an example embodiment.
[0038] Figure 3 is a schematic diagram of modeling of an electric quantity mapping table according to an example embodiment.
[0039] Figure 4 is a structural schematic diagram of a device for determining electric quantity according to an example embodiment.
[0040] Figure 5 is a structural schematic diagram of a terminal device according to an example embodiment.
[0041] Figure 6 is a structural schematic diagram of a chip according to an example embodiment. DETAILED DESCRIPTION
[0042] The example embodiments will be described in detail herein with reference to the accompanying drawings. When the following description refers to accompanying drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The following description of example embodiments is not representative of all embodiments consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0043] It should be noted that all actions of acquiring signals, information or data in the present disclosure are performed with authorization from the corresponding device owner.
[0044] It is also found in the process of presenting the present disclosure that, for the case where no coulomb meter or the like is used to calculate the battery electric quantity, the related art can be used to obtain a rough mapping from voltage to electric quantity, but the electric quantity is usually divided into three segments, and when the battery load is large, i.e., the battery current is small, the change of the battery electric quantity will appear a more obvious jump. It can be seen that the way of obtaining the battery electric quantity in the related art is too simple and rough, and the battery electric quantity cannot be accurately obtained, resulting in poor user experience.
[0045] To solve the above problems, the disclosure provides a power determination method, device, equipment, storage medium and chip. The terminal device involved in the disclosure can also be called a terminal or a computer device, which can include but is not limited to, for example, a smart phone, a wearable device (personal hub), a personal or mobile multimedia player, a personal digital assistant, a laptop, a tablet computer, a smart book, a palm computer, or other electronic devices with communication functions.
[0046] Please refer to Figure 1 It is a flowchart of a power determination method according to an exemplary embodiment. As shown in the method, the method is applied to a terminal device, and the method can include the following implementation steps: Figure 1
[0047] S101, obtain the current working parameter of the target battery, the current working parameter including the current battery voltage and the battery performance parameter, the battery performance parameter including the current battery internal resistance and / or the current battery temperature.
[0048] The current working parameter (or battery working parameter) of the battery in the disclosure can refer to the relevant working parameter involved in the description of the battery working, which can include but is not limited to, for example, the battery voltage, the performance parameter of the battery or other battery description parameter information, etc. The performance parameter refers to the parameter information for describing the performance of the battery, which can include but is not limited to any one or a combination of more of the following: for example, the battery internal resistance, the battery temperature, the battery load, the battery current or other parameters for affecting the performance of the battery, etc.
[0049] The disclosure does not limit the specific implementation mode of the above-mentioned current working parameter, for example, it can directly read the corresponding working parameter of the battery in the terminal device, or it can be obtained by sampling calculation, etc. Taking the current battery voltage as an example of the above-mentioned current working parameter, in order to ensure the accuracy of the power determination, the above-mentioned current battery voltage involved in the disclosure can refer to the average voltage of the target battery working in a preset period. In actual application, the disclosure can obtain the real-time voltage of the target battery in a preset period, and then average the real-time voltage to obtain the above-mentioned current battery voltage.
[0050] In some optional embodiments, to further improve the accuracy of the power determination, the disclosure can increase the number of sampling points, that is, increase the number of sampling points of the real-time voltage collected in the above-mentioned preset period, to obtain a plurality of real-time sampling voltages. Then a preset smoothing algorithm is used to smooth and average process these sampling voltages to obtain the above-mentioned current battery voltage, that is, the above-mentioned current battery voltage is obtained after the smoothing and average process of the plurality of sampling voltages in the above-mentioned preset period. In this way, the power determination can be more smooth, and the situation of large voltage fluctuation and repeated jump of power can be avoided.
[0051] S102, determining the power based on the M power mapping tables obtained by pre-modeling and the current working parameters to obtain the current battery power of the target battery, the power mapping table comprising a one-to-one mapping relationship between the battery voltage and the battery power, and M being a positive integer.
[0052] The above-mentioned power mapping table of the disclosure is obtained in advance by the system or the user according to the actual demand through the mapping table modeling. The power mapping table can be a charging (power) mapping table, that is, a voltage-power mapping table representing the target battery in the charging state; or a discharging (power) mapping table, that is, a voltage-power mapping table representing the target battery in the discharging state. The above-mentioned power mapping table can comprise one or more mapping relationships, and the mapping relationship is a one-to-one mapping between the battery voltage and the battery power. How to obtain the above-mentioned power mapping table will be described in detail below. The disclosure does not limit the specific implementation of the above-mentioned power determination, for example, it can be specifically referred to the related introduction in the embodiments of the disclosure shown below. Figure 2
[0053] By implementing the embodiments of the disclosure, the terminal device obtains the current working parameters of the target battery, the current working parameters comprising the current battery voltage and the battery performance parameters, the battery performance parameters comprising the current battery internal resistance and / or the current battery temperature; determines the power based on the M power mapping tables obtained by pre-modeling and the current working parameters to obtain the current battery power of the target battery, the power mapping table comprising a one-to-one mapping relationship between the battery voltage and the battery power, and M being a positive integer. As can be seen, in the case of limited battery information, the disclosure can also use the mapping table to obtain an accurate current battery power. In this way, the technical problem that the accurate battery power cannot be obtained according to the current battery voltage in the related art can be solved. Thus, it is beneficial to improve the accuracy of the power determination.
[0054] Please refer to Figure 2 is a flow diagram of another power determination method according to an exemplary embodiment. As Figure 2 The method shown can be applied to the terminal device, and the method can comprise the following implementation steps:
[0055] S201, obtain a current working parameter of a target battery. Wherein, the related introduction of step S201 can correspond to the related introduction of step S101 in the foregoing Figure 1 embodiment, which will not be repeated here.
[0056] S202, obtain a first battery voltage.
[0057] The first battery voltage in the present disclosure can refer to the last battery voltage before the current battery voltage. The first battery voltage can also refer to the average value of the battery voltage before a preset time, for example, the average voltage of the battery during the last period of time which has the same length as the preset period of time. The first battery voltage can correspond to the related introduction of the current battery voltage, which will not be repeated here.
[0058] S203, determine a target mapping table matched with the current working parameter from M power mapping tables based on the first battery voltage and the current working parameter. The target mapping table includes a charging mapping table or a discharging mapping table. The charging mapping table is the power mapping table of the target battery in the charging state, and the discharging mapping table is the power mapping table of the target battery in the discharging state.
[0059] The present disclosure does not limit the specific determination implementation of the target mapping table. For example, the present disclosure can select N candidate mapping tables matched with the first battery voltage and the current battery voltage from M power mapping tables. The N candidate mapping tables have the same type, i.e., they are all charging mapping tables or discharging mapping tables. N is a positive integer less than or equal to M. In a specific implementation, the present disclosure can determine the N candidate mapping tables according to the size relationship between the first battery voltage and the current battery voltage. Specifically, when the first battery voltage is greater than the current battery voltage, it means that the voltage decreases, and at this time, the candidate mapping table can be a discharging mapping table. Conversely, when the first battery voltage is less than or equal to the current battery voltage, it means that the voltage increases or remains unchanged, and at this time, the candidate mapping table can be a charging mapping table. After obtaining the N candidate mapping tables, the present disclosure can find a target mapping table matched with the battery performance parameter (such as the current battery internal resistance or the current battery temperature) from the N candidate mapping tables.
[0060] S204, find a battery remaining power matched with the current battery voltage in the target mapping table and determine it as the current battery power. After obtaining the target mapping table, the present disclosure can find a battery remaining power matched with the current battery voltage from the target mapping table by table lookup and determine it as the current battery power of the target battery.
[0061] Based on the foregoing two embodiments, some optional embodiments related to the present disclosure are introduced below.
[0062] In an optional embodiment, after obtaining the current battery power, the disclosure can also process some special cases of the battery, such as voltage rebound or sudden drop caused by charge-discharge switching or load switching. In specific implementation, the disclosure can also obtain the current working state of the target battery, which can include a charging state or a discharging state. The specific implementation of the disclosure for obtaining the above-mentioned current working state is not limited, for example, it can be obtained by obtaining the working state of the terminal charging chip. When the working state is used to indicate charging for the terminal battery, the current working state of the battery is charging state; otherwise, the current working state of the battery is determined to be discharging state.
[0063] After obtaining the above-mentioned current working state, the current battery power can be displayed based on the above-mentioned current working state. In specific implementation, the disclosure can determine whether the above-mentioned current working state and the battery working state corresponding to the above-mentioned target mapping table are the same. If they are the same, it means that the determination method of the above-mentioned current battery power is correct, and the above-mentioned current battery power can be normally displayed. Otherwise, if they are different, it means that the determination method of the above-mentioned current battery power is incorrect, that is, the determination of the above-mentioned target mapping table is wrong, at this time the battery power can be inhibited from increasing, and the above-mentioned current battery power can be prohibited from being displayed. Alternatively, the disclosure can still display the battery remaining power corresponding to the first battery voltage, and not display the above-mentioned current battery power.
[0064] For example, when the above-mentioned current working state is a charging state, and the battery working state corresponding to the above-mentioned target mapping table is a discharging state, that is, due to the terminal device currently being in a charging state, the battery voltage should increase; and based on the determination indication of the above-mentioned target mapping table, the first battery voltage is greater than the current battery voltage, that is, the battery voltage actually used decreases, indicating that the battery power consumption is greater than the charging, at this time the battery power should be inhibited / limited from increasing, to prevent voltage fluctuation and abnormal power, and the above-mentioned current battery power is not displayed.
[0065] For another example, when the above-mentioned current working state is a discharging state, and the battery working state corresponding to the above-mentioned target mapping table is a charging state, that is, the terminal device is currently in a discharging state, the battery voltage should decrease; and based on the determination indication of the above-mentioned target mapping table, the first battery voltage is less than or equal to the current battery voltage, that is, the battery voltage actually used increases or remains unchanged, in this case, the battery load may decrease, and voltage rebound may occur, at this time the battery power should be inhibited / limited from increasing, to avoid voltage rebound phenomenon or virtual power phenomenon, which is beneficial to improve user experience. And the current battery power obtained by using the above-mentioned charging mapping table (target mapping table) is also not accurate, and the above-mentioned current battery power should be prohibited from being displayed.
[0066] The following describes embodiments of the above power mapping table. The above power mapping table can be obtained by modeling in advance. In a specific implementation, the present disclosure can obtain the charging and discharging data of the target battery under different historical performance parameters, which can at least include historical battery voltage, and can also include historical battery power, battery charging and discharging characteristic (curve) data or other customized data, etc. Optionally, when the above charging and discharging data includes the above historical battery voltage, the charging and discharging data can also be referred to as charging and discharging characteristic data (or charging and discharging characteristic curve data). The above historical performance parameters can include, but are not limited to, for example, historical battery current, historical battery temperature, and historical battery internal resistance of the target battery, or other parameters for affecting battery performance, etc.
[0067] Further, the present disclosure can model and convert the voltage and power based on the charging and discharging data under different historical performance parameters, convert the charging and discharging characteristic data into a voltage and power mapping table, and obtain M power mapping tables obtained by modeling, which can include a charging (power) mapping table and a discharging (power) mapping table. For example, please refer to Figure 3 is a schematic diagram of power mapping table modeling according to an exemplary embodiment. As shown in Figure 3 , taking the above historical performance parameters including battery temperature and battery current as an example, the present disclosure can obtain the charging and discharging characteristic (curve) data of the target battery under different temperatures and different currents (i.e. different loads), and convert these charging and discharging characteristic data into corresponding power mapping tables (i.e. charging and discharging mapping tables) through modeling. Wherein, a combination of a pair of battery current and temperature corresponds to a charging and discharging power mapping relationship, which can include a charging mapping table and a discharging mapping table. When the battery temperature and the battery current change, the corresponding charging and discharging mapping table can be dynamically switched to. As shown in the figure, when a combination of a pair of battery temperature and battery power is input, the corresponding charging and discharging mapping table can be found by looking up the table.
[0068] It can be understood that when the number of combinations of battery temperature and battery current is sufficient and the division is sufficient, the above power mapping table will also be more and more, which can make the result of power determination more accurate / precise. In this case, the present disclosure will only use the current sensor to obtain the battery current in the modeling stage of the mapping table, and will not use devices such as coulomb meter, current sensor, etc. in subsequent other stages. It also shows that the present disclosure can obtain a relatively accurate current battery power even in the case of limited battery information.
[0069] It can be seen that the present disclosure can obtain the power mapping table according to the battery performance parameters without the power meter or the current sensor and the like, and switch the corresponding target mapping table according to the dynamic change of the performance parameters in working, so as to avoid the jump phenomenon such as virtual power, low power consumption, small power consumption, and power rebound. At the same time, the mapping relationship in the power mapping table is more accurate, and the current battery power can be obtained more truly and accurately without increasing the power meter and the current sensor, thereby saving the cost. In a specific implementation, the terminal device of the present disclosure can obtain the current working parameters of the target battery, the current working parameters including the current battery voltage and the battery performance parameters, the battery performance parameters including the current battery internal resistance and / or the current battery temperature; the power is determined based on the M power mapping tables obtained by pre-modeling and the current working parameters, to obtain the current battery power of the target battery, the power mapping table including the one-to-one mapping relationship between the battery voltage and the battery power, and M is a positive integer. It can be seen that in the case of limited battery information, the present disclosure can also use the mapping table to obtain the accurate current battery power. In this way, the technical problem that the accurate battery power cannot be obtained according to the current battery voltage in the related art can be solved. Thus, the accuracy of power determination is improved.
[0070] Based on the foregoing embodiments, please refer to Figure 4 is a structural schematic diagram of a power determination device according to an exemplary embodiment. As Figure 4 The device shown in the figure can be applied to a terminal device, and the device can include an acquisition module 401 and a processing module 402. Wherein:
[0071] The acquisition module 401 is configured to acquire the current working parameters of the target battery, the current working parameters including the current battery voltage and the battery performance parameters, the battery performance parameters including the current battery internal resistance and / or the current battery temperature;
[0072] The processing module 402 is configured to determine the power based on the M power mapping tables obtained by pre-modeling and the current working parameters, to obtain the current battery power of the target battery, the power mapping table including the one-to-one mapping relationship between the battery voltage and the battery power, and M is a positive integer.
[0073] In some embodiments, the processing module 402 is specifically configured to:
[0074] acquire the first battery voltage;
[0075] determine a target mapping table from the M battery power mapping tables based on the first battery voltage and the current working parameter, the target mapping table comprising a charging mapping table or a discharging mapping table, the charging mapping table being a battery power mapping table of the target battery in a charging state, and the discharging mapping table being a battery power mapping table of the target battery in a discharging state;
[0076] find a remaining battery power matching the current battery voltage in the target mapping table, and determine the current battery power.
[0077] In some embodiments, the processing module 402 is specifically configured to:
[0078] determine N candidate mapping tables of the same type from the M battery power mapping tables based on the first battery voltage and the current battery voltage, the candidate mapping tables of the same type comprising the charging mapping table or the discharging mapping table, N being a positive integer less than or equal to M;
[0079] determine the target mapping table from the N candidate mapping tables based on the battery performance parameter;
[0080] wherein, when the first battery voltage is greater than the current battery voltage, the candidate mapping table is the discharging mapping table; and when the first battery voltage is less than or equal to the current battery voltage, the candidate mapping table is the charging mapping table.
[0081] In some embodiments,
[0082] The acquisition module 401 is further configured to acquire a current working state of the target battery, the current working state comprising a charging state or a discharging state.
[0083] The processing module 402 is further configured to display the current battery power based on the current working state.
[0084] In some embodiments, the processing module 402 is specifically configured to:
[0085] display the current battery power when the current working state and a battery working state corresponding to the target mapping table are the same; or
[0086] inhibit battery power growth and prohibit display of the current battery power when the current working state and the battery working state corresponding to the target mapping table are different.
[0087] In some embodiments, the current battery voltage is an average voltage of the target battery within a preset time period.
[0088] In some embodiments, the current battery voltage is obtained by smoothing and averaging a plurality of sampling voltages in the preset time period.
[0089] In some embodiments,
[0090] The acquisition module 401 is further configured to acquire charging and discharging data of the target battery under different historical performance parameters, the charging and discharging data including historical battery voltage and historical battery capacity.
[0091] The processing module 402 is further configured to perform voltage-capacity modeling conversion based on the charging and discharging data under different historical performance parameters to obtain M battery capacity mapping tables.
[0092] By implementing the embodiments of the present disclosure, the device can acquire the current working parameters of the target battery, the current working parameters including current battery voltage and battery performance parameters, the battery performance parameters including current battery internal resistance and / or current battery temperature; perform capacity determination based on M battery capacity mapping tables obtained by pre-modeling and the current working parameters to obtain the current battery capacity of the target battery, the battery capacity mapping table including a one-to-one mapping relationship between battery voltage and battery capacity, and M being a positive integer. It can be seen that in the case of limited battery information, the present disclosure can also use the mapping table to obtain accurate current battery capacity. This can solve the technical problems in the related art that accurate battery capacity cannot be obtained according to the current battery voltage. Thus, it is beneficial to improve the accuracy of capacity determination.
[0093] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, the program instructions being executed by a processor to implement the steps of the capacity determination method provided by the present disclosure.
[0094] Figure 5 FIG. 5 is a structural schematic diagram of a terminal device according to an example embodiment. For example, the terminal device 500 can be a smartphone, a palm computer, a computer device, or other electronic devices with communication functions, etc.
[0095] Referring to Figure 5 , the terminal device 500 can include one or more of the following components: a processing component 502, a memory 505, a power supply component 506, a multimedia component 508, an audio component 510, an input / output interface 512, a sensor component 514, and a communication component 516.
[0096] The processing component 502 generally controls the overall operations of the device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 can include one or more processors 520 to execute instructions to complete all or a part of steps of the power determination method described above. In addition, the processing component 502 can include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.
[0097] The memory 504 is configured to store various types of data to support operations of the device 500. Examples of these data include instructions to operate any applications or methods on the device 500, contact data, phonebook data, messages, pictures, videos, and so on. The memory 504 can be implemented by any type of volatile or nonvolatile storage devices or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable programmable read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0098] The power component 506 provides power to the various components of the device 500. The power component 506 can include a power management system, one or more power sources (e.g., a battery or the like), and other components associated with generating, managing, and distributing power for the device 500.
[0099] The multimedia component 508 includes a screen to provide an output interface between the device 500 and a user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes the touch panel, the screen can be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense a touch, a slide, and a gesture on the touch panel. The touch sensors can not only sense a boundary of a touching or sliding action, but also detect duration and pressure related to the touching or sliding action. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. The front and / or rear camera can receive external multimedia data when the terminal device 500 is in an operation mode, such as a shooting mode or a video mode. Each of the front and rear cameras can be a fixed optical lens system or have a focal length and optical zoom capability.
[0100] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC) that is configured to receive an external audio signal when the device 500 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 504 or transmitted via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.
[0101] The input / output interface 512 provides an interface between the processing component 502 and peripheral interface modules, which can be a keypad, a click wheel, buttons, and so on. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.
[0102] The sensor component 514 includes one or more sensors for providing status assessments of various aspects of the device 500. For example, the sensor component 514 can detect an open / closed position of the device 500, relative positioning of components, such as a display and a keypad of the device 500, a change of position of the device 500 or a component of the device 500, presence or absence of user contact with the device 500, orientation or acceleration / deceleration / g-force and temperature of the device 500. The sensor component 514 can include an orientation sensor, a proximity sensor, a
[0103] The communication component 516 is configured to facilitate wired or wireless communication between the device 500 and another device. The device 500 can access a wireless network based on a corresponding communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an example embodiment, the communication component 516 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an example embodiment, the communication component 516 also includes a Near Field Communication (NFC) module to promote short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) techniques, infrared data association (IrDA) techniques, ultra-wideband (UWB) techniques, Bluetooth (BT) techniques, and other techniques.
[0104] In exemplary embodiments, the device 500 can be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components, for performing the above-mentioned power determination method.
[0105] In exemplary embodiments, a non-transitory computer-readable storage medium including instructions, such as the memory 504 including instructions, is also provided, which can be executed by the processor 520 of the device 500 to complete the above-mentioned power determination method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0106] The above-mentioned device can be an independent electronic device, or a part of an independent electronic device, such as an integrated circuit (IC) or a chip in an embodiment. The integrated circuit can be an IC or a collection of multiple ICs. The chip can include, but is not limited to, a GPU (Graphics Processing Unit), a CPU (Central Processing Unit), an FPGA (Field Programmable Gate Array), a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), a SOC (System on Chip), or the like. The above-mentioned integrated circuit or chip can execute executable instructions (or code) to implement the above-mentioned power determination method. The executable instructions can be stored in the integrated circuit or chip, or obtained from other devices or apparatuses, such as a processor, a memory, and an interface for communication with other devices included in the integrated circuit or chip. The executable instructions can be stored in the memory and executed by the processor to implement the above-mentioned power determination method. Alternatively, the integrated circuit or chip can receive the executable instructions through the interface and transmit the executable instructions to the processor for execution to implement the above-mentioned power determination method.
[0107] In another exemplary embodiment, a computer program product is also provided, which contains a computer program capable of being executed by a programmable device, and the computer program has code portions for executing the power determination method described above when executed by the programmable device.
[0108] Please refer to Figure 6 is a structural schematic diagram of a chip according to an exemplary embodiment. As shown in Figure 6 The chip 600 shown in the figure includes a processor 601, an interface 602. Optionally, it can also include a memory 603. Among them, the number of processors 601 can be one or more, and the number of interfaces 602 can be multiple.
[0109] In an embodiment, for the case that the chip is used to implement the method embodiments of the present disclosure:
[0110] The interface 602 is configured to receive or output signals.
[0111] The processor 601 is configured to perform part or all of the contents of the power determination method embodiments.
[0112] Understandably, the processor in the embodiments of the present disclosure can be an integrated circuit chip with a signal processing capability. In the implementation process, each step of the above method embodiments can be completed through the integrated logic circuit of hardware in the processor or the instructions in the form of software. The processor described above can be a general processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0113] Understandably, the memory in the embodiments of the present disclosure can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically EPROM (EEPROM) or a flash memory. The volatile memory can be a random access memory (RAM) used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM) and direct memory bus random access memory (DRAM) (DRAM). It should be noted that the memory of the system and method described herein is intended to include, but not limited to, these and any other suitable types of memory.
[0114] It should be noted that the above description of the storage medium, device and chip embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of the present disclosure, please refer to the description of the method embodiments of the present disclosure for understanding.
[0115] Other embodiments of the present disclosure will be readily apparent to those skilled in the art upon considering the specification and practice of the present disclosure. The present disclosure is intended to cover any variations, uses or adaptive changes of the present disclosure following the general principles of the present disclosure and including common knowledge or conventional technical means in the art not disclosed by the present disclosure. The specification and examples are only considered as exemplary, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0116] It should be understood that the present disclosure is not limited to the precise structures described above and shown in the drawings, and various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for determining electrical charge, characterized in that, include: Obtain the current operating parameters of the target battery, including the current battery voltage and battery performance parameters, including the current battery internal resistance and / or the current battery temperature; Based on the M power mapping tables obtained through pre-modeling and the current operating parameters, the power is determined to obtain the current battery power of the target battery. The power mapping tables include a one-to-one mapping relationship between battery voltage and battery power, where M is a positive integer.
2. The method according to claim 1, characterized in that, The process of determining the current battery capacity of the target battery based on M pre-modeled power mapping tables and the current operating parameters includes: Obtain the first battery voltage; Based on the first battery voltage and the current operating parameters, a target mapping table is determined from M power mapping tables. The target mapping table includes a charging mapping table or a discharging mapping table. The charging mapping table is the power mapping table of the target battery in the charging state, and the discharging mapping table is the power mapping table of the target battery in the discharging state. The remaining battery power that matches the current battery voltage is found in the target mapping table and determined as the current battery power.
3. The method according to claim 2, characterized in that, The step of determining the target mapping table from the M power mapping tables based on the first battery voltage and the current operating parameters includes: Based on the first battery voltage and the current battery voltage, N candidate mapping tables of the same type are determined from M power mapping tables. The candidate mapping tables of the same type include the charging mapping table or the discharging mapping table, where N is a positive integer less than or equal to M. Based on the battery performance parameters, the target mapping table is determined from the N candidate mapping tables; Wherein, when the first battery voltage is greater than the current battery voltage, the candidate mapping table is the discharge mapping table; when the first battery voltage is less than or equal to the current battery voltage, the candidate mapping table is the charging mapping table.
4. The method according to claim 2, characterized in that, The method further includes: Obtain the current operating state of the target battery, which includes either a charging state or a discharging state; The battery level is displayed based on the current operating status.
5. The method according to claim 4, characterized in that, The step of displaying the current battery level based on the current operating state includes: When the current operating state and the battery operating state corresponding to the target mapping table are the same, the current battery level is displayed; or, When the current working state and the battery working state corresponding to the target mapping table are different, the battery power increase is suppressed and the current battery power is not displayed.
6. The method according to any one of claims 1-5, characterized in that, The current battery voltage is the average voltage of the target battery over a preset time period.
7. The method according to claim 6, characterized in that, The current battery voltage is obtained by smoothing and averaging multiple sampled voltages within the preset time period.
8. The method according to any one of claims 1-5, characterized in that, The method further includes: Obtain charge and discharge data of the target battery under different historical performance parameters, wherein the charge and discharge data includes at least the historical battery voltage; Based on the charging and discharging data under different historical performance parameters, voltage and energy are modeled and converted to obtain M energy mapping tables.
9. A power determination device, characterized in that, include: The acquisition module is configured to acquire the current operating parameters of the target battery, including the current battery voltage and battery performance parameters, including the current battery internal resistance and / or the current battery temperature. The processing module is configured to determine the battery level based on M pre-modeled battery level mapping tables and the current operating parameters, thereby obtaining the current battery level of the target battery. The battery level mapping tables include a one-to-one mapping relationship between battery voltage and battery level, where M is a positive integer.
10. A terminal device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to execute the executable instructions to implement the steps of the method according to any one of claims 1 to 8.
11. A computer-readable storage medium storing computer program instructions thereon, characterized in that, When the computer program instructions are executed by the processor, they implement the steps of the method according to any one of claims 1 to 8.
12. A chip, characterized in that, It includes a processor and an interface; the processor is used to read instructions to execute the method of any one of claims 1 to 8.
