CN116114137A - Electronic device control method, electronic device and storage medium - Google Patents

Electronic device control method, electronic device and storage medium Download PDF

Info

Publication number
CN116114137A
CN116114137A CN202280005048.4A CN202280005048A CN116114137A CN 116114137 A CN116114137 A CN 116114137A CN 202280005048 A CN202280005048 A CN 202280005048A CN 116114137 A CN116114137 A CN 116114137A
Authority
CN
China
Prior art keywords
module
charge
state
electric quantity
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202280005048.4A
Other languages
Chinese (zh)
Inventor
张凯
赵密
陈熙
王雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ecoflow Technology Ltd
Original Assignee
Ecoflow Technology Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ecoflow Technology Ltd filed Critical Ecoflow Technology Ltd
Publication of CN116114137A publication Critical patent/CN116114137A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Testing Electric Properties And Detecting Electric Faults (AREA)
  • Secondary Cells (AREA)

Abstract

An electronic device control method, comprising: acquiring an initial electric quantity parameter value of a battery module; in each preset period, acquiring the accumulated electric quantity parameter value of each working module through communication; obtaining a first charge state of the electronic equipment according to the initial electric quantity parameter value and each accumulated electric quantity parameter value; and when the absolute value of the difference value between the first charge state acquired in the current period and the first charge state acquired in the previous period is larger than a first preset threshold value, determining that the communication connection between at least one working module and the main control module is abnormal.

Description

Electronic device control method, electronic device and storage medium
Technical Field
The application relates to the field of new energy, in particular to an electronic equipment control method, electronic equipment and a storage medium.
Background
The statements herein merely provide background information related to the present application and may not necessarily constitute exemplary techniques.
In addition to the main control module, many electric devices are also provided with various working modules (such as a power conversion module, a wireless network module, a storage module and the like). The main control module is communicated with each working module to control and schedule each working module. Therefore, if the communication between the main control module and the working module is abnormal, the control of the equipment is adversely affected.
In the related art, means for detecting whether the communication between the main control module and the working module is abnormal is limited, and it is difficult to effectively detect the communication abnormality between the main control module and the working module.
Disclosure of Invention
According to various embodiments of the present application, an electronic device control method, an electronic device, and a storage medium are provided.
The application provides an electronic equipment control method, is applied to the main control module in the electronic equipment, electronic equipment still includes battery module and a plurality of working module, battery module, each working module with the main control module communication connection, the method includes:
acquiring an initial electric quantity parameter value of the battery module;
in each preset period, acquiring the accumulated electric quantity parameter value of each working module through communication; the accumulated electricity quantity parameter value is configured to represent the total electricity quantity of the working module, which is accumulated from the initial moment and flows through the working module;
obtaining a first state of charge of the electronic device according to the initial electric quantity parameter value and each accumulated electric quantity parameter value;
and when the absolute value of the difference value between the first charge state acquired in the current period and the first charge state acquired in the previous period is larger than a first preset threshold value, determining that the communication connection between at least one working module and the main control module is abnormal.
According to an aspect of an embodiment of the present application, an electronic device is disclosed, including: a battery module; a plurality of work modules; one or more processors; the battery module, each working module and the processor are in communication connection; and storage means for storing one or more programs that, when executed by the one or more processors, cause the electronic device to implement the methods provided in the various alternative implementations described above.
According to an aspect of embodiments of the present application, a computer-readable storage medium having stored thereon computer-readable instructions, which when executed by a processor of a computer, cause the computer to perform the methods provided in the various alternative implementations described above, is disclosed.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below. Other features, objects, and advantages of the application will be apparent from the description and drawings, and from the claims.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the technical solutions of embodiments or exemplary techniques of the present application, the drawings that are required for the description of the embodiments or exemplary techniques will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and that other embodiments of the drawings may be obtained according to these drawings without inventive effort for a person of ordinary skill in the art. The above and other objects, features and advantages of the present application will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings.
Fig. 1 shows a schematic organization architecture of an internal module of an electronic device according to an embodiment of the present application.
Fig. 2 shows a flowchart of a method for controlling an electronic device according to an embodiment of the present application.
Fig. 3 shows a block diagram of an electronic device control apparatus according to an embodiment of the present application.
Fig. 4 shows a hardware diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these example embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The drawings are merely schematic illustrations of the present application and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more example embodiments. In the following description, numerous specific details are provided to give a thorough understanding of example embodiments of the present application. One skilled in the relevant art will recognize, however, that the aspects of the application may be practiced without one or more of the specific details, or with other methods, components, steps, etc. In other instances, well-known structures, methods, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the application.
Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
The application provides an electronic equipment control method which can be used for controlling various electronic equipment. Electronic devices that may be used for control include, but are not limited to: mobile energy storage batteries, cell phones, computers, automobiles, and the like.
Specifically, the electronic equipment control method provided by the application is applied to a main control module in electronic equipment. The master control module may be any one or a combination of a plurality of micro control units (Microcontroller Unit, MCU), application processors (application processor, AP) and/or neural network processors (neural-network processing unit, NPU). When the electronic device is provided with a battery management system (Battery Management System, BMS), the main control module may be provided on the BMS of the electronic device.
Referring to fig. 1, an organization structure diagram of an internal module of an electronic device according to an embodiment of the present application includes a battery module and a plurality of working modules in addition to a main control module. The working module may include a power conversion module of the electronic device, a wireless network module of the electronic device, a storage module of the electronic device, or other types of modules, which are not limited herein. In this embodiment, the working module is a module that can implement a preset function and requires power consumption. The battery module is in communication connection with the main control module and receives control scheduling of the main control module. And each working module is also connected with the main control module in a communication way and receives the control scheduling of the main control module.
Referring to fig. 2, a flowchart of an electronic device control method according to an embodiment of the present application includes:
step S110, obtaining an initial electric quantity parameter value of the battery module.
In this embodiment of the present application, the initial power parameter value of the battery module is mainly used to describe the power value at the power-on time (may also be referred to as the initial time) of the device. It should be noted that the battery module always has a minimum electric power value during discharging or charging. The battery module does not release the electric quantity to 0 when discharging, and the discharging is stopped after the electric quantity is released to the lowest electric quantity value. The initial power parameter value of the battery module may be a remaining power corresponding to the device power-on time, or may be a state of charge SOC (State of Charge) of the device at the device power-on time, that is, a ratio between the remaining power and a full power of the battery module. For example, in a scenario of charging the energy storage power supply with the mains supply, the initial electric quantity parameter value may be a state of charge displayed by the energy storage power supply when the energy storage power supply is connected to the mains supply for charging. Powering up an electronic device generally refers to the device being in a power-on state, when the electronic device may be in an operating state or a sleep state.
And step 120, in each preset period, acquiring the accumulated electric quantity parameter value independently calculated by each working module through communication.
In the embodiment of the application, each working module independently calculates a corresponding module electric quantity parameter value. The accumulated electrical quantity parameter value is configured to characterize the total electrical quantity of the working module after power-up, i.e. accumulated in or out of the working module from an initial moment. The parameter value of the accumulated electric quantity can be the accumulated electric quantity calculated by the working module in an ampere-hour integral mode directly, or can be the ratio of the accumulated electric quantity to the electric quantity of the battery module under the full electric quantity.
The time length of the preset period can be set according to needs, for example, according to the sampling period of each working module. The preset period may be greater than or equal to the sampling period of each working module, and may be typically set to a millisecond level.
And in each preset period, the main control module establishes communication with each working module, and then obtains the accumulated electric quantity parameter value obtained by independent calculation of each working module. Because the work module can monitor the state of the work module in real time, the work module is not interfered by other factors, such as data loss caused by communication abnormality, and the accuracy of the accumulated electric quantity parameter value is not affected. Therefore, as long as the main control module can normally establish communication with the working module, the accurate accumulated electric quantity parameter value obtained by the working module in the accumulated metering period is obtained. The main control module cannot obtain accurate electric quantity parameter values due to communication abnormality in the middle, so that the method has stronger timeliness and data accuracy.
In the related technology, the electronic device obtains the instantaneous current parameter values on each working module in real time through the main control module, so as to calculate the residual electric quantity or the charge state based on the instantaneous current parameter values. Once communication abnormality exists between the main control module and the corresponding working module, instantaneous current parameters of abnormal devices cannot be obtained, so that the residual electric quantity or the electric charge parameters calculated by the main control module have larger deviation from actual values, and the residual electric quantity or the electric charge parameters cannot be automatically calibrated after communication is recovered. In this embodiment, the accumulated power parameter value independently calculated by each working module is obtained each time, and even if the communication is abnormal in a certain period of time, the main control module has a certain calculation deviation, but after the communication is restored, the actual power value can be restored, so that the reliability and accuracy of the data are improved.
Step S130, obtaining a first charge state of the device according to the initial electric quantity parameter value and each accumulated electric quantity parameter value.
In this embodiment of the present application, after obtaining an initial electric quantity parameter value of a battery module and an accumulated electric quantity parameter value of each preset period of each working module, a main control module combines the initial electric quantity parameter value and the accumulated electric quantity parameter value to obtain a first state of charge of the device. The accumulated electric quantity parameter value of each preset period independently calculated by the working module has stronger timeliness, so that the electric quantity value of the working module in each preset period can be reflected more timely and accurately, and the first state of charge of the electronic equipment obtained on the basis also has stronger timeliness, so that the state of charge of the electronic equipment in each preset period can be reflected more timely and accurately.
And step 140, determining that the communication connection between at least one working module and the main control module is abnormal when the absolute value of the difference value between the first charge state acquired in the current period and the first charge state acquired in the previous period is larger than a first preset threshold value.
It will be appreciated that the first state of charge will not typically be abrupt under normal operating conditions of the device. For example, when the device is stably loaded, the power consumed or transferred by each working module in each preset period is stable, so that the absolute value of the difference between the first states of charge obtained in two adjacent periods satisfies a stable relationship, and the stable relationship can be reflected by a first preset threshold value, so that when the absolute value of the difference is smaller than the first preset threshold value, the difference can be regarded as smooth change, rather than abrupt change. When the load of the electronic equipment is suddenly increased or the power supply is suddenly increased, the current of the electronic equipment is not suddenly changed, but gradually increased from small to large through strategies such as slow start and the like. And the preset period is of the order of milliseconds, so that it is also ensured that the resulting first state of charge does not mutate. The first state of charge is also a smoothly varying process, except that the slope of the change is steeper relative to light or no load, but no abrupt change occurs. When a certain working module is switched into a standby state or a non-working state from the working state, the communication between the working module and the main control module is still in a normal communication state, so that the working module still reports the accumulated electric quantity parameter value to the main control module, and abrupt change does not occur.
If the first state of charge is suddenly changed, the communication connection between the main control module and part of the working modules is abnormal, so that the main control module cannot receive the accumulated electric quantity parameter value of the part of the working modules. Since the integrated electric quantity parameter value is a value integrated from the initial time, the integrated electric quantity parameter value is a much larger value with respect to the electric quantity variation amount in each preset period, so that a larger deviation occurs in the calculation of the first state of charge. Therefore, a first preset threshold may be preset for the absolute value of the difference between the first state of charge acquired in the current cycle and the first state of charge acquired in the previous cycle. If the absolute value of the difference value is larger than a first preset threshold value, the first charge state obtained in the current period is suddenly changed, and further, the communication connection between at least one working module and the main control module is determined to be abnormal.
Wherein the first preset threshold should be set reasonably by a person skilled in the art, and the setting of the first preset threshold must be larger than the change value of the first state of charge that changes smoothly. For example, if the current load power of the electronic device does not change, and the work of each work module and the communication between each work module are also normal, the change value of the first charge state of the electronic device in each preset period is 0.1%, and the first preset threshold value can be set to be 0.3% or 0.5%, so that the situation of abnormal communication can be accurately judged, and the situation of certain fluctuation of the first charge state caused by sudden change of the load of the electronic device can be satisfied. The first preset threshold may be a fixed value, or may be set according to an operation state of the electronic device. For example, the main control module can determine the electricity consumption condition of each working module in a normal state in a preset period according to the current charge and discharge state, the power supply capacity of the power supply or the required power of the load, and the like, and determine a corresponding first preset threshold according to the electricity consumption condition. It is understood that the above setting of the first preset threshold is only used as an example and is not limited to the protection scope of the present application.
In an embodiment, after obtaining the first state of charge of the electronic device according to the initial power parameter value and each accumulated power parameter value, the method further includes:
and when the absolute value of the difference value between the first charge state acquired in the current period and the first charge state acquired in the previous period is smaller than or equal to a first preset threshold value, determining that the communication connection between each working module and the main control module is normal.
In this embodiment, as described above, the first state of charge of the electronic device should be smoothly changed under normal operation. In normal conditions, the absolute value of the difference between the first states of charge in each two adjacent cycles is always less than or equal to the first preset threshold value described above, for example 0.3% as described above.
In some embodiments, when the master control module determines that the communication connection between itself and each working module is normal, the master control module may consider that the current accumulated electric quantity value of each working module acquired by itself is accurate data, and the first state of charge calculated according to the data is also trusted. The main control module determines the first charge state acquired in the current period as the display charge state of the current period and displays the display charge state.
In this embodiment, when the absolute value of the difference value between the first states of charge acquired in two adjacent periods is smaller than or equal to the first preset threshold, the master control module determines that the communication connection between each working module and the master control module is normal, and based on the absolute value, the first state of charge calculated in the current period is used as the display state of charge, so as to accurately display the electric quantity of the electronic device in the current period.
The first state of charge of the electronic equipment has stronger timeliness, so that the state of charge of the electronic equipment in each preset period can be reflected more timely and accurately. Therefore, based on the first state of charge, the main control module can more timely and accurately detect that the communication connection between the working module and the main control module is abnormal, so that the electronic equipment can more timely and accurately respond to the situation that the communication connection between the working module and the main control module is abnormal.
In one embodiment, the accumulated electric quantity parameter values refer to the accumulated state of charge, i.e. the ratio between the accumulated electric quantity of each working module and the full electric quantity of the battery module, i.e. the state of charge SOC n . At this time, the main control module obtains the state of charge SOC output by each working module n . Each working module calculates the respective module electric quantity parameter value according to the following formula:
Figure BDA0004001538040000071
SOC n =F n /F*100%
wherein F is n Represents the accumulated electric quantity of the nth working module, t represents the current moment, I n Representing the current value obtained by monitoring the n-th working module in real time in the time period of 0-t (the time period of 0-t can comprise one or more preset periods, and the moment of 0 can represent the power-on moment of equipment), and the SOC n Representing the state of charge of the nth operating module, and F represents the full charge of the battery module of the electronic device. It should be noted that the current I n Is a parameter having a vector direction so that it can be determined whether the current operating module is charging the battery module or is consuming the power of the battery module according to its current direction. When the battery module is charged by an external power supply, a current I n The direction of (2) is negative and the opposite direction is positive.
Therefore, the initial electric quantity parameter value of the battery module obtained by the main control module is also the state of charge (SOC) of the battery module past . The state of charge SOC past Representing the past remaining state of charge of the electronic device, namely the remaining state of charge of the electronic device at the time of power-up. The main control module is used for controlling the SOC according to the state of charge past And state of charge SOC output by each work module n Calculating a first state of charge, SOC, of the device according to the formula A
Figure BDA0004001538040000081
Figure BDA0004001538040000082
Representing the sum of the states of charge of the working modules output to the master control module by integrating the initial state of charge SOC past Subtracting the sum of the charge states obtained in each preset period to obtain the current first charge state SOC of the electronic equipment A
In another embodiment, each working module can also be directly connected with each otherCalculated accumulated electric quantity F n The parameter value is transmitted to a main control module as an accumulated electric quantity parameter value, and at the moment, the main control module needs to sum the accumulated electric quantity of each working module according to the requirement to obtain the total accumulated electric quantity F of each working module A The following formula:
Figure BDA0004001538040000083
in the process of obtaining the total accumulated electric quantity F of each working module A Then, if the initial electric quantity parameter value obtained by the main control module is the initial residual electric quantity F 0 Then the first state of charge SOC is calculated by A
Figure BDA0004001538040000084
In an embodiment, after determining that there is an abnormality in the communication connection between the at least one working module and the main control module, the method further includes:
and detecting the working module which does not send the parameter value of the accumulated electric quantity, and determining the working module which does not send the parameter value of the accumulated electric quantity as a communication abnormal module.
In this embodiment, after determining that a communication abnormality occurs between the working module and the main control module, the main control module may track the module that has the communication abnormality, and determine the module that has no communication abnormality by detecting the working module that has not sent the parameter value of the accumulated electric quantity. Because under the normal communication condition, the working module with normal communication can send the self accumulated electric quantity parameter to the main control module at certain intervals, even if the working module does not work in the current period, the last calculated accumulated electric quantity parameter can be continuously sent to the main control module periodically, for example, the inversion module needs to perform inversion work in the first period, but in the next period, inversion is not needed, but as long as the communication of the inversion module is normal, the last calculated accumulated electric quantity parameter in the first period can be still sent to the main control module in each period. When the communication of the working module is abnormal, namely the working module does not send the accumulated electric quantity parameter to the main control module, and the main control module determines the working module which does not receive the accumulated electric quantity parameter as an abnormal module through checking.
In some embodiments, when the working module sends the self accumulated electric quantity parameter to the main control module, the working module may be sent in a signal form carrying the accumulated electric quantity parameter. Therefore, when the working module sends the signal, the number pointing to the working module is added, for example, the number of the inversion module is 01, the number of the heat dissipation module is 02, when the main control module receives the signal carrying the number 01, the inversion module is considered to have no communication fault, and when the main control module does not receive the signal carrying the number 02, the heat dissipation module is considered to be a communication abnormal module. It is understood that the mode of the master control module for detecting the working module that does not send the parameter value of the accumulated electric quantity may be other communication judging modes, and is not limited to the example of the above embodiment, and a person skilled in the art may set the working module appropriately according to the actual requirement, which is not described herein.
In an embodiment, after determining that there is an abnormality in the communication connection between the at least one working module and the main control module, the electronic device control method provided in the present application further includes: and generating prompt information, wherein the prompt information is configured to prompt that the communication connection is abnormal.
In this embodiment, after determining that there is an abnormality in the communication connection between at least one working module and the main control module, in order to remind a host computer of the electronic device or a user of the electronic device, the main control module generates a prompt message for prompting that there is an abnormality in the communication connection. If the main control module is used for reminding the upper computer, the main control module can generate a contracted error code as prompt information according to the contract with the upper computer, so that the upper computer is reminded of abnormal communication connection. If so, the main control module can generate text or voice as prompt information to remind the user of abnormal communication connection. The prompt information can also be embodied in the forms of light, vibration and the like, and the specific expression form of the prompt information is not limited in the embodiment of the application.
In one embodiment, after determining that the working module that does not send the accumulated electricity parameter value is the communication anomaly module, the method further includes:
and taking the accumulated electric quantity parameter value which is transmitted by the communication abnormal module last time as the accumulated electric quantity parameter value which corresponds to the communication abnormal module and is acquired in the current period.
And updating the first charge state of the current period according to the initial electric quantity value and each accumulated electric quantity parameter value acquired in the current period.
In this embodiment, after determining that the communication abnormal module occurs in the electronic device, in order not to seriously affect the calculation of the first state of charge of the entire electronic device, after determining that the communication abnormal module is determined, the main control module may further use the last transmitted accumulated electric quantity parameter of the communication abnormal module as the accumulated electric quantity parameter value corresponding to the communication abnormal module obtained in the current period even if the accumulated electric quantity parameter of the communication abnormal module is not temporarily obtained due to the communication fault. For example, after determining that the heat dissipation module is a communication abnormal module in the current period, the main control module is about to acquire the accumulated electric quantity parameter of the heat dissipation module in the nearest period as the accumulated electric quantity parameter of the heat dissipation module in the current period.
Thus, the main control module can have the accumulated electric quantity parameters of all the working modules (including the communication abnormal module) in the electronic equipment, and calculate the new first state of charge according to the initial electric quantity value and the accumulated electric quantity parameters of all the working modules (including the communication abnormal module) so as to update the first state of charge in the current period.
In this embodiment, the accumulated electric quantity parameter of the communication abnormal module sent last time is replaced by the accumulated electric quantity parameter of the communication abnormal module in the current period, so that the gap of data loss caused by communication abnormality is filled, and further the problem of larger error of the main control module when calculating the first charge state of the electronic device is avoided.
In an embodiment, displaying the first state of charge acquired in the current period includes:
and acquiring the display charge state of the previous period.
And when the absolute value of the difference value between the first charge state acquired in the current period and the display charge state of the previous period is smaller than or equal to a second preset threshold value, determining the first charge state acquired in the current period as the display charge state of the current period and displaying the display charge state.
The second preset threshold is set for giving the user a better use experience, so that the display charge state is stably changed in a certain linear relation rather than abrupt change when displayed. For example, the second preset threshold may be set to 1%, that is, the absolute value of the difference between the display states of charge for display in two adjacent periods before and after the electronic device is charged or discharged is only allowed to have an error of 1%.
As mentioned previously, the first state of charge is merely an accumulated charge parameter value that can be obtained for each of the operating modules. When the communication abnormality exists, the working module which needs to acquire the communication abnormality acquires the accumulated electric quantity parameter values recently and sequentially, and then the first state of charge is corrected and displayed. Of course, other correction methods may be used to correct the final state of charge to have higher accuracy. Therefore, the first charge state obtained directly is compared with the display charge state of the previous period, whether an abnormality occurs can be also determined, and if the absolute value of the difference value between the first charge state and the display charge state is smaller than the second preset threshold value, the communication can be determined to be normal, so that the first charge state can be displayed as the display charge state without being corrected directly.
In an embodiment, when the absolute value of the difference between the first state of charge acquired in the current period and the display state of charge of the previous period is greater than a second preset threshold, the display state of charge of the current period is determined and displayed according to the display state of charge of the previous period and a preset adjustment value.
Specifically, after the first state of charge of the current period is calculated, the main control module temporarily stores the first state of charge in a memory for calculation and comparison of the next period. And determining and displaying the display charge state of the current period according to the preset regulating value and the display charge state of the previous period.
In an embodiment, the electronic device control method provided by the present application further includes: and respectively acquiring sampling current values of the working modules in each preset period. And calculating a second charge state of the equipment according to each sampling current value and the initial electric quantity parameter value. And when the absolute value of the difference value between the first charge state and the second charge state is smaller than a preset threshold value, determining and displaying the charge state of the device according to the first charge state and the second charge state.
In this embodiment, the sampling current value of the working module refers to a current value obtained by sampling its own current by the working module. And in each preset period, the main control module establishes communication with each working module, and then obtains the sampling current value of each working module. And then the main control module can calculate the accumulated electric quantity parameter value of each working module according to each sampling current value, and then calculate the second state of charge of the equipment by combining the initial electric quantity parameter value of the battery module.
It should be noted that, the value of the accumulated electric quantity parameter of the working module for calculating the first state of charge is calculated by each working module independently. The accumulated electric quantity parameter value of the working module for calculating the second state of charge is calculated by the main control module according to the sampling current value of each working module.
If the absolute value of the difference between the first state of charge and the second state of charge is smaller than the preset threshold, both of the absolute value and the second state of charge can be used for reflecting the state of charge at the current moment of the device, so that in order to improve the rationality of the state of charge displayed by the device, the state of charge which should be displayed at the current moment of the device (namely the displayed state of charge of the current period) is determined by integrating the first state of charge and the second state of charge. For example, the first state of charge and the second state of charge are weighted and averaged to obtain the amount of power to be displayed.
In one embodiment, the master control module calculates the second state of charge of the device according to the following formula:
Figure BDA0004001538040000121
Figure BDA0004001538040000122
wherein F is B Sampling current value I 'representing the main control module according to n working modules' n The calculated total electric quantity values of the n working modules, namely, the main control module firstly obtains the electric current values of all the working modules, and the total electric quantity values of the n working modules are obtained through ampere-hour integration according to the sum of the electric current values of all the working modules. t represents the current time, I' n Representing the sampling current value of the nth working module in the period of 0-t (the period of 0-t can comprise one or more preset periods, and the moment of 0 can represent the power-on moment of the equipment), and SOC B Represents a second state of charge, F 0 Representing the charge capacity value corresponding to the initial charge parameter value of the battery module, and F represents the total charge capacity value of the device.
Fig. 3 shows a device control apparatus according to an embodiment of the present application, where the apparatus is provided in a main control module of the device, and the device further includes a battery module and a plurality of working modules, where the battery module, each working module, and the main control module are communicatively connected, and the apparatus includes:
a first obtaining module 210 configured to obtain an initial power parameter value of the battery module;
the second obtaining module 220 is configured to obtain, in each preset period, the module electric quantity parameter value obtained by independently calculating each working module through communication;
a determining module 230 configured to obtain a first state of charge of the device according to the initial power parameter value and each of the module power parameter values;
the abnormality determination module 240 is configured to determine that an abnormality exists in the communication connection between the at least one working module and the main control module when an absolute value of a difference between the first state of charge acquired in the current period and the first state of charge acquired in the previous period is greater than a preset threshold.
In an exemplary embodiment of the present application, the communication anomaly determination module is configured to: when the absolute value of the difference value between the first charge state acquired in the current period and the first charge state acquired in the previous period is larger than a preset threshold value, acquiring a first number of operating modules from a memory of the main control module; counting a second number of working modules in communication according to the acquired module electric quantity parameter value; and if the first quantity is not equal to the second quantity, determining that the communication connection is abnormal.
In an exemplary embodiment of the present application, the apparatus is configured to: predicting the predicted state of charge of the equipment in the current period according to the state of charge of the equipment acquired in the historical period; and updating and displaying the first charge state of the current period according to the predicted charge state.
In an exemplary embodiment of the present application, the apparatus is configured to: determining a working module corresponding to the unobtained module electric quantity parameter value as an abnormal module; predicting the module electric quantity parameter value of the abnormal module in the current period according to the module electric quantity parameter value of the abnormal module acquired in the history period; and updating and displaying the first charge state of the current period according to the module electric quantity parameter values of the working modules and the predicted module electric quantity parameter values of the abnormal modules, which are acquired in the current period.
In an exemplary embodiment of the present application, the apparatus is configured to: and when the absolute value of the difference value between the first charge state acquired in the current period and the first charge state acquired in the previous period is smaller than or equal to the first preset threshold value, determining that the communication connection is recovered to be normal.
In an exemplary embodiment of the present application, the apparatus is configured to: and displaying the first state of charge acquired in the current period when the absolute value of the difference between the first state of charge acquired in the current period and the first state of charge acquired in the previous period is smaller than or equal to the first preset threshold value.
In an exemplary embodiment of the present application, the apparatus is configured to: and generating prompt information, wherein the prompt information is used for prompting that the communication connection is abnormal.
In an exemplary embodiment of the present application, the apparatus is configured to: respectively acquiring sampling current values of the working modules in each preset period; calculating a second state of charge of the device from each of the sampled current values and the initial charge parameter value; and when the absolute value of the difference value between the first charge state and the second charge state is smaller than the second preset threshold value, determining the display charge state of the equipment according to the first charge state and the second charge state and displaying the display charge state.
An electronic device 30 according to an embodiment of the present application is described below with reference to fig. 4. The electronic device 30 shown in fig. 4 is only an example and should not be construed as limiting the functionality and scope of use of the embodiments herein.
As shown in fig. 4, the electronic device 30 is in the form of a general purpose computing device. Components of electronic device 30 may include, but are not limited to: the battery module, a plurality of operation modules (the battery module and the plurality of operation modules are not shown in fig. 4 for simplicity of the drawing), the at least one processing unit 310, the at least one storage unit 320, and a bus 330 connecting different system components including the storage unit 320 and the processing unit 310.
Wherein the storage unit stores program code that is executable by the processing unit 310 such that the processing unit 310 performs the steps according to various exemplary embodiments of the present invention described in the description of the exemplary methods described above in this specification. For example, the processing unit 310 may perform the various steps as shown in fig. 2.
The storage unit 320 may include readable media in the form of volatile storage units, such as one or more of Random Access Memory (RAM) 3201, cache memory 3202, read Only Memory (ROM) 3203.
The storage unit 320 may also include a program/utility 3204 having a set (at least one) of program modules 3205, such program modules 3205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 330 may be any of several types of bus structures that represent one or more of a variety of bus architectures, such as a memory unit bus, a peripheral bus, and the like.
The electronic device 30 may also communicate with one or more external devices 400 (e.g., a keyboard, etc.). Such communication may occur through an input/output (I/O) interface 350. An input/output (I/O) interface 350 may also be connected to the display unit 340.
Also, the electronic device 30 may communicate with one or more networks (e.g., local area network (Local Area Network, LAN), internet (Internet), etc.) through the network adapter 360. As shown, the network adapter 360 communicates with other modules of the electronic device 30 over the bus 330.
It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 30, such as a device driver, an external disk drive array, a tape drive, etc.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. The electronic equipment control method is applied to a main control module of the electronic equipment; the electronic device further comprises a battery module and a plurality of working modules; the battery module and each working module are in communication connection with the main control module; the method comprises the following steps:
acquiring an initial electric quantity parameter value of the battery module;
in each preset period, acquiring the accumulated electric quantity parameter value of each working module through communication; the accumulated electricity quantity parameter value is configured to represent the total electricity quantity of the working module, which is accumulated from the initial moment and flows through the working module;
obtaining a first state of charge of the electronic device according to the initial electric quantity parameter value and each accumulated electric quantity parameter value;
and when the absolute value of the difference value between the first charge state acquired in the current period and the first charge state acquired in the previous period is larger than a first preset threshold value, determining that the communication connection between at least one working module and the main control module is abnormal.
2. The method of claim 1, further comprising, after said determining that there is an abnormality in the communication connection between the at least one work module and the master module:
and detecting the working module which does not send the accumulated electric quantity parameter value, and determining the working module which does not send the accumulated electric quantity parameter value as a communication abnormal module.
3. The method of claim 2, further comprising, after the determining that the operational module that did not transmit the accumulated electrical quantity parameter value is a communication anomaly module:
taking the accumulated electric quantity parameter value which is transmitted by the communication abnormal module last time as the accumulated electric quantity parameter value which is corresponding to the communication abnormal module and is acquired in the current period;
and updating the first charge state of the current period according to the initial electric quantity value and each accumulated electric quantity parameter value acquired in the current period.
4. The method of claim 1, wherein after the deriving the first state of charge of the electronic device from the initial charge parameter value and each of the accumulated charge parameter values, the method further comprises:
and when the absolute value of the difference value between the first charge state acquired in the current period and the first charge state acquired in the previous period is smaller than or equal to the first preset threshold value, determining that the communication connection between each working module and the main control module is normal.
5. The method of claim 4, wherein after the deriving the first state of charge of the electronic device from the initial charge parameter value and each of the accumulated charge parameter values, the method further comprises:
and displaying the first state of charge acquired in the current period when the absolute value of the difference between the first state of charge acquired in the current period and the first state of charge acquired in the previous period is smaller than or equal to the first preset threshold value.
6. The method of claim 5, wherein displaying the first state of charge acquired during the current period comprises:
acquiring the display charge state of the previous period;
and when the absolute value of the difference value between the first charge state acquired in the current period and the display charge state of the previous period is smaller than or equal to a second preset threshold value, determining the first charge state acquired in the current period as the display charge state of the current period and displaying the display charge state.
7. The method of claim 1, wherein after determining that there is an abnormality in the communication connection between the at least one work module and the master module, the method further comprises:
generating prompt information, wherein the prompt information is configured to prompt that the communication connection is abnormal.
8. The method according to claim 1, wherein the method further comprises:
respectively acquiring sampling current values of the working modules in each preset period;
calculating a second state of charge of the device from each of the sampled current values and the initial charge parameter value;
and when the absolute value of the difference value between the first charge state and the second charge state is smaller than the preset threshold value, determining the display charge state of the equipment according to the first charge state and the second charge state and displaying the display charge state.
9. An electronic device, comprising:
a battery module;
a plurality of work modules;
one or more processors; the battery module, each working module and the processor are in communication connection;
a storage configured to store one or more programs that, when executed by the one or more processors, cause the electronic device to implement the method of any of claims 1-8.
10. A computer readable storage medium having stored thereon computer readable instructions which, when executed by a processor of a computer, cause the computer to perform the method of any of claims 1 to 8.
CN202280005048.4A 2022-10-26 2022-10-26 Electronic device control method, electronic device and storage medium Pending CN116114137A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/127737 WO2024087061A1 (en) 2022-10-26 2022-10-26 Control method for electronic device, and electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN116114137A true CN116114137A (en) 2023-05-12

Family

ID=86264224

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202280005048.4A Pending CN116114137A (en) 2022-10-26 2022-10-26 Electronic device control method, electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN116114137A (en)
WO (1) WO2024087061A1 (en)

Also Published As

Publication number Publication date
WO2024087061A1 (en) 2024-05-02

Similar Documents

Publication Publication Date Title
JP4615439B2 (en) Secondary battery management device, secondary battery management method and program
US10386901B2 (en) Adaptive power management
CN103038657B (en) Monitor the rechargeable battery with many kinds of parameters renewal rate
US9041356B2 (en) Battery charge management using a scheduling application
CN102195304B (en) Method and device for managing service time of cell and portable computer
CN101206246A (en) Method for preestimating battery residual capacity
CN111781507B (en) SOC value display method and device and energy storage system
CN101149422A (en) Battery life forecasting system and method, communication terminal device and battery life forecasting device
US10928880B2 (en) Power storage adapter for communicating battery data with a portable information handling system
JP2014025738A (en) Residual capacity estimation device
JP2017229137A (en) Power supply system
JP6464247B2 (en) Power management apparatus, power management system, and power management method
JP2017225212A (en) Charge/discharge control device
EP2849274A1 (en) Storage battery management device, storage battery management method, and program
KR20120119598A (en) Apparatus and method for estimating battery state and battery pack using it
US11846677B2 (en) Method and apparatus for monitoring battery backup unit, server, and readable storage medium
CN116114137A (en) Electronic device control method, electronic device and storage medium
CN112398212B (en) Standby power supply control method and device, energy storage system and storage medium
CN117639036B (en) Charging and discharging planning method and system for charging pile
CN113013507A (en) Secondary battery management device and method, non-transitory recording medium
CN115940166B (en) Base station scheduling method, base station scheduling device, electronic equipment and readable storage medium
US11808819B2 (en) Real time backup battery life check
CN109525003B (en) Charging method, device, storage medium and processor
CN117269812A (en) Storage battery health state monitoring method and device, medium and electronic equipment
CN115848144A (en) Battery power supplementing method, storage medium and battery management system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication