WO2024087061A1 - Control method for electronic device, and electronic device and storage medium - Google Patents

Control method for electronic device, and electronic device and storage medium Download PDF

Info

Publication number
WO2024087061A1
WO2024087061A1 PCT/CN2022/127737 CN2022127737W WO2024087061A1 WO 2024087061 A1 WO2024087061 A1 WO 2024087061A1 CN 2022127737 W CN2022127737 W CN 2022127737W WO 2024087061 A1 WO2024087061 A1 WO 2024087061A1
Authority
WO
WIPO (PCT)
Prior art keywords
state
charge
module
power parameter
working
Prior art date
Application number
PCT/CN2022/127737
Other languages
French (fr)
Chinese (zh)
Inventor
张凯
赵密
陈熙
王雷
Original Assignee
深圳市正浩创新科技股份有限公司
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 深圳市正浩创新科技股份有限公司 filed Critical 深圳市正浩创新科技股份有限公司
Priority to PCT/CN2022/127737 priority Critical patent/WO2024087061A1/en
Priority to CN202280005048.4A priority patent/CN116114137A/en
Publication of WO2024087061A1 publication Critical patent/WO2024087061A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/371Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC] with remote indication, e.g. on external chargers
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/382Arrangements for monitoring battery or accumulator variables, e.g. SoC
    • G01R31/3828Arrangements for monitoring battery or accumulator variables, e.g. SoC using current integration
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/385Arrangements for measuring battery or accumulator variables
    • G01R31/387Determining ampere-hour charge capacity or SoC
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/389Measuring internal impedance, internal conductance or related variables
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/392Determining battery ageing or deterioration, e.g. state of health
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/396Acquisition or processing of data for testing or for monitoring individual cells or groups of cells within a battery
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • 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

Definitions

  • the present application relates to the field of new energy, and specifically to an electronic device control method, an electronic device and a storage medium.
  • main control module In addition to the main control module, many electrical devices are also equipped with various working modules (for example, power conversion module, wireless network module, storage module, etc.).
  • the main control module communicates with each working module to control and schedule each working module. It can be seen that if there is an abnormality in the communication between the main control module and the working module, it will have an adverse effect on the control of the device.
  • the means for detecting whether there is an abnormality in the communication between the main control module and the working module are relatively limited, and it is difficult to effectively detect the communication abnormality between the main control module and the working module.
  • a method for controlling an electronic device, an electronic device, and a storage medium are provided.
  • the present application provides an electronic device control method, which is applied to a main control module in the electronic device, wherein the electronic device further comprises a battery module and a plurality of working modules, wherein the battery module, each of the working modules and the main control module are communicatively connected, and the method comprises:
  • the cumulative power parameter value of each working module is obtained through communication; the cumulative power parameter value is configured to represent the total power flowing through the working module accumulated from the initial moment;
  • an electronic device comprising: a battery module; a plurality of working modules; one or more processors; the battery module, each of the working modules and the processor are communicatively connected; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the electronic device implements the methods provided in the above-mentioned various optional implementation modes.
  • a computer-readable storage medium on which computer-readable instructions are stored.
  • the computer-readable instructions are executed by a processor of a computer, the computer executes the methods provided in the above-mentioned various optional implementations.
  • FIG1 is a schematic diagram showing the organizational structure of internal modules of an electronic device according to an embodiment of the present application.
  • FIG. 2 shows a flow chart of a method for controlling an electronic device according to an embodiment of the present application.
  • FIG3 shows a block diagram of an electronic device control device 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.
  • the present application provides an electronic device control method, which can be used to control various electronic devices.
  • the electronic devices that can be used to control include but are not limited to: mobile energy storage batteries, mobile phones, computers, cars, etc.
  • the electronic device control method provided in the present application is applied to a main control module in an electronic device.
  • the main control module can be any one or more combinations of processors such as a microcontroller unit (MCU), an application processor (AP) and/or a neural-network processing unit (NPU).
  • MCU microcontroller unit
  • AP application processor
  • NPU neural-network processing unit
  • BMS battery management system
  • the above-mentioned main control module can be arranged on the BMS of the above-mentioned electronic device.
  • the electronic device 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 here.
  • the working module refers to a module that can realize a preset function and needs to consume power.
  • the battery module is connected to the main control module in communication and accepts the control scheduling of the main control module.
  • Each working module is also connected to the main control module in communication and accepts the control scheduling of the main control module.
  • the device control method provided by the present application includes:
  • Step S110 obtaining an initial power parameter value of the battery module.
  • the initial power parameter value of the battery module is mainly used to describe the power value at the time when the device is powered on (also referred to as the initial moment). It should be noted that the battery module always has a minimum power value during the discharge or charging process. The battery module will not release the power to 0 when discharging, and it will stop discharging after releasing to the minimum power value.
  • the initial power parameter value of the battery module can be the remaining power corresponding to the time when the device is powered on, or it can be the state of charge SOC (State of Charge) at the time when the device is powered on, that is, the ratio between the remaining power and the full power of the battery module.
  • the above-mentioned initial power parameter value can be the state of charge displayed by the energy storage power supply when it is connected to the mains for charging.
  • Powering on an electronic device usually means that the device is in the on state, at which time the electronic device can be in working state or in sleep state.
  • Step S120 in each preset period, the accumulated power parameter value independently calculated by each working module is obtained through communication.
  • each working module independently calculates the corresponding module power parameter value.
  • the cumulative power parameter value is configured to characterize the total power flowing into or out of the working module after the working module is powered on, that is, from the initial moment.
  • the cumulative power parameter value can be directly the cumulative power calculated by the working module through the ampere-hour integration method, or it can be the ratio of the cumulative power to the power of the battery module at full power.
  • the length of the preset period can be set as needed, for example, according to the sampling period of each working module.
  • the preset period can be greater than the sampling period of each working module, or can be equal to the sampling period of each working module.
  • the preset period can be set to millisecond level.
  • the main control module establishes communication with each working module, and then obtains the cumulative power parameter value independently calculated by each working module. Since the working module can monitor its own status in real time and will not be interfered by other factors, such as data loss due to communication anomalies, which will affect the accuracy of the cumulative power parameter value. Therefore, as long as the main control module can establish communication with the working module normally, what is obtained must be the accurate cumulative power parameter value measured by the working module during the cumulative metering cycle. The main control module will not be unable to obtain accurate power parameter values due to communication anomalies in the middle, so it has stronger timeliness and data accuracy.
  • the electronic device obtains the instantaneous current parameter value on each working module in real time through the main control module, and then calculates the remaining power or charge state based on the instantaneous current parameter value.
  • the instantaneous current parameter of the abnormal device cannot be obtained, so that the remaining power or charge parameter calculated by the main control module will have a large deviation from the actual value, and cannot be automatically calibrated after the communication is restored.
  • each time what is obtained is the cumulative power parameter value calculated independently by each working module. Even if there is a communication abnormality in a certain period of time, resulting in a certain calculation deviation of the main control module, it can be restored to the actual power value after the communication is restored, thereby improving the reliability and accuracy of the data.
  • Step S130 Obtain a first state of charge of the device according to the initial power parameter value and each accumulated power parameter value.
  • the main control module after the main control module obtains the initial power parameter value of the battery module and the cumulative power parameter value of each working module in each preset cycle, it combines the initial power parameter value and the cumulative power parameter value to obtain the first state of charge of the device. Since the cumulative power parameter value of each preset cycle obtained by the working module independently calculated has a stronger timeliness and can more timely and accurately reflect the power value of the working module in each preset cycle, the first state of charge of the electronic device obtained on this basis also has a stronger timeliness, so that it can more timely and accurately reflect the state of charge of the electronic device in each preset cycle.
  • Step S140 When 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 is greater than a first preset threshold, it is determined that there is an abnormality in the communication connection between at least one working module and the main control module.
  • the first state of charge usually does not change suddenly.
  • the power consumed or transmitted by each working module in each preset cycle is stable, so the absolute value of the difference between the first state of charge obtained in two adjacent cycles will satisfy such a stable relationship, which can be reflected by the first preset threshold value, so that when the absolute value of the difference is less than the first preset threshold value, it can be considered as a smooth change, not a sudden change.
  • the electronic device suddenly increases the load or suddenly increases the power supply, the current of the electronic device will not change suddenly, but will gradually increase from small to large through strategies such as slow start.
  • the preset cycle belongs to the millisecond level, so it can also ensure that the first state of charge finally obtained will not change suddenly.
  • the first state of charge is also a smooth change process, but the slope of the change is steeper than that of light load or no load, but it will not change suddenly.
  • a certain working module switches from the working state to the standby state or the non-working state, its communication with the main control module is still in the normal communication state, so that the working module will still report the accumulated power parameter value to the main control module, so that no sudden change will occur.
  • the first state of charge changes suddenly, it means that the communication connection between the main control module and some working modules is abnormal, resulting in the main control module being unable to receive the accumulated power parameter value of these working modules. Since the accumulated power parameter value is a value accumulated from the initial moment, the accumulated power parameter value is much larger than the amount of power change in each preset cycle, resulting in a large deviation in the calculation of the first state of charge. Therefore, a first preset threshold value can be pre-set for the absolute value of the difference between the first state of charge obtained in the current cycle and the first state of charge obtained in the previous cycle. If the absolute value of the difference is greater than the first preset threshold value, it means that the first state of charge obtained in the current cycle has changed suddenly, and then it is determined that there is an abnormality in the communication connection between at least one working module and the main control module.
  • the first preset threshold should be reasonably set by those skilled in the art, and the setting of the first preset threshold must be greater than the change value of the smooth change of the first state of charge. For example, if the power currently carried by the electronic device has not changed, the operation of each working module and the communication between each working module are also normal, the change value of the first state of charge of the electronic device in each preset cycle is 0.1%, then the first preset threshold can be set to 0.3% or 0.5%, so that the abnormal communication situation can be accurately judged, and the sudden change of the load of the electronic device can also meet the situation where the first state of charge fluctuates to a certain extent.
  • the first preset threshold can be a fixed value, or it can be set according to the operating state of the electronic device.
  • the main control module can determine the power consumption of each working module in a normal state in a preset cycle according to the current charging and discharging state, the power supply capacity of the power supply, or the required power of the load, and determine the corresponding first preset threshold according to the power consumption. It can be understood that the setting of the above first preset threshold is only for example, and is not limited to the scope of protection of this application.
  • the method further includes:
  • the electronic device when the electronic device is working normally, its first state of charge should change smoothly. Under normal conditions, the absolute value of the difference between the first states of charge in every two adjacent cycles is always less than or equal to the first preset threshold, such as the aforementioned 0.3%.
  • the main control module when the main control module determines that the communication connection between itself and each working module is normal, it can be considered that the accumulated power value of each working module currently obtained by itself is accurate data, and the first state of charge calculated based on these data is also trustworthy.
  • the main control module will determine the first state of charge obtained in the current cycle as the display state of charge of the current cycle and display it.
  • the main control module can determine that the communication connection between each working module and the main control module is normal when the absolute value of the difference between the first charge states obtained in two adjacent cycles is less than or equal to a first preset threshold value, and on this basis, use the first charge state calculated in the current cycle as the display charge state to accurately display the power of the electronic device in the current cycle.
  • the main control module can more timely and accurately detect the abnormality of the communication connection between the working module and the main control module, so that the electronic device can more timely and accurately respond to the abnormality of the communication connection between the working module and the main control module.
  • each accumulated power parameter value refers to the accumulated charge state, that is, the ratio between the accumulated power of each working module and the full power of the battery module, that is, the state of charge SOCn .
  • the main control module obtains the state of charge SOCn output by each working module.
  • Each working module calculates its own module power parameter value according to the following formula:
  • Fn represents the accumulated power of the nth working module
  • t represents the current moment
  • In represents the current value obtained by the nth working module monitoring itself in real time during the time period of 0 to t (the time period of 0 to t may include one or more preset cycles, and the moment of "0" may represent the power-on moment of the device)
  • SOCn represents the state of charge of the nth working module
  • F represents the full power of the battery module of the electronic device.
  • the current In is a parameter with a vector direction, so it can be determined whether the working module is currently charging the battery module or consuming the power of the battery module according to its current direction. When the battery module is charged using an external power supply, the direction of the current In is negative, and vice versa.
  • the initial power parameter value of the battery module obtained by the main control module is also the state of charge SOC past of the battery module.
  • the state of charge SOC past represents the remaining state of charge of the electronic device in the past, that is, it can be understood as the remaining state of charge of the electronic device when it is powered on.
  • the main control module calculates the first state of charge SOC A of the device according to the following formula based on the state of charge SOC past and the state of charge SOC n output by each working module:
  • the sum of the states of charge of each working module output to the main control module is represented.
  • the initial state of charge SOC past is represented.
  • the accumulated power Fn calculated by each working module may be directly transmitted to the main control module as the accumulated power parameter value.
  • the main control module needs to sum the accumulated power of each working module as needed to obtain the total accumulated power F A of each working module, as shown in the following formula:
  • the first state of charge SOC A is calculated by the following formula:
  • the method further includes:
  • the working module that has not sent the accumulated power parameter value is detected, and the working module that has not sent the accumulated power parameter value is determined as a communication abnormality module.
  • the main control module can track the module with the communication anomaly, and determine the module with no communication anomaly by detecting the working module that has not sent the cumulative power parameter value. Because under normal communication conditions, the working module with normal communication will send its own cumulative power parameter to the main control module at a certain interval period. Even if the working module does not work in the current cycle, it will periodically send the last calculated cumulative power parameter to the main control module. For example, the inverter module needs to perform inversion work in the first cycle, but does not need to perform inversion in the next cycle.
  • the cumulative power parameter calculated in the first cycle will still be sent to the main control module in each subsequent cycle.
  • the main control module will determine the working module that has not received the cumulative power parameter as an abnormal module through investigation.
  • the working module when the working module sends its own accumulated power parameters to the main control module, it may be sent in the form of a signal carrying the accumulated power parameters. Therefore, the working module may attach a number pointing to itself when sending the signal. For example, the inverter module is numbered 01, and the heat dissipation module is numbered 02.
  • the main control module receives a signal carrying the number 01, it believes that there is no communication failure in the inverter module.
  • it does not receive a signal carrying the number 02, it identifies the heat dissipation module as a communication abnormality module.
  • the way the main control module detects the working module that has not sent the accumulated power parameter value may be other communication judgment methods, and is not limited to the examples in the above embodiments. Those skilled in the art may make appropriate settings according to actual needs, which will not be repeated here.
  • the electronic device control method provided in the present application further includes: generating prompt information, and the prompt information is configured to prompt that there is an abnormality in the communication connection.
  • the main control module 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 the host computer of the electronic device or the user of the electronic device, the main control module generates a prompt message for prompting that there is an abnormality in the communication connection.
  • the main control module can generate an agreed error code as a prompt message in accordance with the agreement with the host computer, thereby reminding the host computer that there is an abnormality in the communication connection.
  • the main control module can generate text or voice as a prompt message, thereby reminding the user that there is an abnormality in the communication connection.
  • the above prompt information can also be embodied in the form of light, vibration, etc., and the embodiment of the present application does not limit the specific form of expression of the above prompt information.
  • the method further includes:
  • the accumulated power parameter value most recently sent by the communication abnormality module is used as the accumulated power parameter value corresponding to the communication abnormality module obtained in the current cycle.
  • the first state of charge of the current cycle is updated according to the initial power value and each accumulated power parameter value obtained in the current cycle.
  • the main control module can use the most recently sent cumulative power parameter of the communication abnormality module as the cumulative power parameter value corresponding to the communication abnormality module obtained in the current cycle, even if the cumulative power parameter of the communication abnormality module cannot be obtained temporarily due to a communication failure. For example, after determining that the heat dissipation module is the communication abnormality module in the current cycle, the main control module uses the cumulative power parameter of the heat dissipation module obtained in the nearest cycle as the cumulative power parameter of the heat dissipation module in the current cycle.
  • the main control module can have the accumulated power parameters of each working module (including the communication abnormality module) in the electronic device, and calculate the new first charge state based on the initial power value and the accumulated power parameters of the aforementioned working modules (including the communication abnormality module) to update the first charge state in the current cycle.
  • the gap in data loss caused by the communication abnormality is filled, thereby avoiding the problem of large errors in the main control module calculating the first charge state of the electronic device.
  • displaying the first state of charge acquired in the current cycle includes:
  • the first state of charge acquired in the current cycle is determined as the displayed state of charge in the current cycle and displayed.
  • the second preset threshold is set to provide users with a better user experience, so that the state of charge is displayed in a stable linear relationship instead of a sudden change.
  • the second preset threshold can be set to 1%, that is, during the charging or discharging process of the electronic device, the absolute value of the difference between the two adjacent cycles of the displayed state of charge is allowed to have an error of only 1%.
  • the first state of charge is only the cumulative power parameter value of each working module that can be obtained.
  • the cumulative power parameter values that have been recently obtained in sequence by the working modules with the communication abnormality, and then correct the first state of charge before displaying it.
  • it can also be corrected by other correction methods to make the final displayed state of charge have higher accuracy. Therefore, by comparing the first state of charge directly obtained with the displayed state of charge of the previous cycle, it can also be determined whether an abnormality has occurred. If the absolute value of the difference between the two is less than the second preset threshold, it can be determined that the communication is normal, so that the first state of charge can be directly displayed as the displayed state of charge without correcting it.
  • the displayed state of charge of the current cycle is determined and displayed based on the displayed state of charge of the previous cycle and a preset adjustment value.
  • the main control module after calculating the first state of charge of the current cycle, temporarily stores the first state of charge in the memory for calculation and comparison in the next cycle, and determines and displays the displayed state of charge of the current cycle according to the preset adjustment value and the displayed state of charge of the previous cycle.
  • the electronic device control method provided by the present application further includes: obtaining the sampled current value of each working module in each preset cycle. Calculating the second state of charge of the device according to each sampled current value and the initial power parameter value. When the absolute value of the difference between the first state of charge and the second state of charge is less than a preset threshold, determining and displaying the display state of charge of the device according to the first state of charge and the second state of charge.
  • the sampled current value of the working module refers to the current value obtained by the working module sampling its own current.
  • the main control module establishes communication with each working module, and then obtains the sampled current value of each working module. Then the main control module can calculate the accumulated power parameter value of each working module according to each sampled current value, and then calculate the second state of charge of the device in combination with the initial power parameter value of the battery module.
  • the cumulative power parameter value of the working module used to calculate the first state of charge is calculated independently by each working module.
  • the cumulative power parameter value of the working module used to calculate the second state of charge is calculated by the main control module based on the sampled current values of each working module.
  • the first state of charge and the second state of charge are combined to determine the state of charge that the device should display at the current moment (i.e., the displayed state of charge of the current cycle). For example, the first state of charge and the second state of charge are weighted averaged to obtain the power to be displayed.
  • the main control module calculates the second state of charge of the device according to the following formula:
  • FB represents the total power value of n working modules calculated by the main control module according to the sampled current values I'n of n working modules, that is, the main control module first obtains the current value of each working module, and obtains the total power value of n working modules through ampere-hour integration according to the sum of the current values of each working module.
  • t represents the current moment
  • I'n represents the sampled current value of the nth working module in the time period of 0 to t (the time period of 0 to t may include one or more preset cycles, and the moment "0" may represent the power-on moment of the device)
  • SOC B represents the second state of charge
  • F0 represents the charge capacity value corresponding to the initial power parameter value of the battery module
  • F represents the total charge capacity value of the device.
  • FIG3 shows a device control device according to an embodiment of the present application, wherein the device is provided in a main control module in the device, wherein the device further comprises a battery module and a plurality of working modules, wherein the battery module, each of the working modules and the main control module are communicatively connected, and the device comprises:
  • a first acquisition module 210 is configured to acquire an initial power parameter value of the battery module
  • the second acquisition module 220 is configured to acquire the module power parameter values independently calculated by each working module through communication in each preset period;
  • a determination module 230 configured to obtain a first state of charge of the device according to the initial power parameter value and each module power parameter value;
  • the abnormality determination module 240 is configured to determine that there is an abnormality in the communication connection between at least one working module and the main control module when the absolute value of the difference between the first charge state obtained in the current cycle and the first charge state obtained in the previous cycle is greater than a preset threshold.
  • the communication abnormality determination module is configured as follows: when the absolute value of the difference between the first charge state obtained in the current cycle and the first charge state obtained in the previous cycle is greater than a preset threshold, obtaining the first number of working modules in operation from the memory of the main control module; counting the second number of working modules in communication based on the obtained module power parameter value; if the first number is not equal to the second number, determining that there is an abnormality in the communication connection.
  • the device is configured to: predict the predicted state of charge of the device in the current cycle based on the state of charge of the device acquired in the historical cycle; update the first state of charge of the current cycle based on the predicted state of charge and display it.
  • the device is configured to: determine the working module corresponding to the module power parameter value that has not been obtained as an abnormal module; predict the module power parameter value of the abnormal module in the current cycle based on the module power parameter value of the abnormal module obtained in the historical cycle; update and display the first charge state of the current cycle based on the module power parameter value of each of the working modules obtained in the current cycle and the predicted module power parameter value of the abnormal module.
  • the device is configured to determine that the communication connection has returned to normal when 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 is less than or equal to the first preset threshold.
  • the device is configured to display the first state of charge obtained in the current cycle when the absolute value of the difference between the first state of charge obtained in the current cycle and the first state of charge obtained in the previous cycle is less than or equal to the first preset threshold.
  • the device is configured to: generate prompt information, where the prompt information is used to prompt that there is an abnormality in the communication connection.
  • the device is configured as follows: within each preset cycle, respectively obtain the sampled current value of each working module; calculate the second state of charge of the device based on each sampled current value and the initial power parameter value; when the absolute value of the difference between the first state of charge and the second state of charge is less than the second preset threshold value, determine and display the display state of charge of the device based on the first state of charge and the second state of charge and display it.
  • the electronic device 30 according to the 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 bring any limitation to the function and application scope of the embodiment of the present application.
  • the electronic device 30 is presented in the form of a general-purpose computing device.
  • the components of the electronic device 30 may include, but are not limited to: a battery module, a plurality of working modules (to make the drawing simple, the battery module and the plurality of working modules are not shown in FIG4 ), 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).
  • the storage unit stores a program code, which can be executed by the processing unit 310, so that the processing unit 310 performs the steps according to various exemplary embodiments of the present invention described in the description section of the exemplary method described above in this specification.
  • the processing unit 310 can perform the various steps shown in Figure 2.
  • the storage unit 320 may include a readable medium in the form of a volatile storage unit, such as one or more of a random access memory unit (RAM) 3201 , a cache memory unit 3202 , and a read-only memory unit (ROM) 3203 .
  • RAM random access memory
  • ROM read-only memory
  • 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 of which or some combination may include an implementation of a network environment.
  • program modules 3205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
  • the bus 330 may represent one or more of several types of bus structures, such as any one or more of a storage unit bus, a peripheral bus, and the like.
  • the electronic device 30 may also communicate with one or more external devices 400 (eg, a keyboard, etc.). Such communication may be performed via an input/output (I/O) interface 350.
  • the input/output (I/O) interface 350 may also be connected to a display unit 340.
  • the electronic device 30 can also communicate with one or more networks (such as a local area network (LAN), the Internet, etc.) through the network adapter 360.
  • networks such as a local area network (LAN), the Internet, etc.
  • the network adapter 360 communicates with other modules of the electronic device 30 through the bus 330.
  • the disclosed devices and methods can be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
  • Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple 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.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in each embodiment of the present invention.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Power Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Electromagnetism (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Testing Electric Properties And Detecting Electric Faults (AREA)
  • Secondary Cells (AREA)

Abstract

A control method for an electronic device, the method comprising: acquiring an initial power amount parameter value of a battery module; in each preset period, acquiring an accumulated power amount parameter value of each operating module by means of communication; according to the initial power amount parameter value and each accumulated power amount parameter value, obtaining a first state of charge of an electronic device; and when the absolute value of the difference between a first state of charge acquired in the current period and a first state of charge acquired in the previous period is greater than a first preset threshold value, determining that the communication connection between at least one operating module and a main control module is abnormal.

Description

电子设备控制方法、电子设备及存储介质Electronic device control method, electronic device and storage medium 技术领域Technical Field
本申请涉及新能源领域,具体涉及一种电子设备控制方法、电子设备及存储介质。The present application relates to the field of new energy, and specifically to an electronic device control method, an electronic device and a storage medium.
背景技术Background technique
这里的陈述仅提供与本申请有关的背景信息,而不必然地构成示例性技术。The statements herein merely provide background information related to the present application and do not necessarily constitute exemplary techniques.
许多用电设备中除了设置有主控模块外,还设置有各类工作模块(例如:功率变换模块、无线网络模块、存储模块等)。主控模块与各工作模块进行通讯,以对各工作模块进行控制调度。由此可见,若主控模块与工作模块之间通讯存在异常,将对设备的控制造成不利影响。In addition to the main control module, many electrical devices are also equipped with various working modules (for example, power conversion module, wireless network module, storage module, etc.). The main control module communicates with each working module to control and schedule each working module. It can be seen that if there is an abnormality in the communication between the main control module and the working module, it will have an adverse effect on the control of the device.
相关技术中,用于检测主控模块与工作模块之间通讯是否存在异常的手段较为局限,难以有效检测出主控模块与工作模块之间存在的通讯异常。In the related art, the means for detecting whether there is an abnormality in the communication between the main control module and the working module are relatively limited, and it is difficult to effectively detect the communication abnormality between the main control module and the working module.
发明内容Summary of the invention
根据本申请的各个实施例,提出一种电子设备控制方法、电子设备及存储介质。According to various embodiments of the present application, a method for controlling an electronic device, an electronic device, and a storage medium are provided.
本申请提供了一种电子设备控制方法,应用于所述电子设备中的主控模块,所述电子设备还包括电池模块和多个工作模块,所述电池模块、各所述工作模块和所述主控模块通讯连接,所述方法包括:The present application provides an electronic device control method, which is applied to a main control module in the electronic device, wherein the electronic device further comprises a battery module and a plurality of working modules, wherein the battery module, each of the working modules and the main control module are communicatively connected, and the method comprises:
获取所述电池模块的初始电量参数值;Obtaining an initial power parameter value of the battery module;
在每个预设周期内,通过通讯获取各工作模块的累计电量参数值;所述累计电量参数值被配置为表征所述工作模块从初始时刻开始累计的流经所述工作模块的总电量;In each preset cycle, the cumulative power parameter value of each working module is obtained through communication; the cumulative power parameter value is configured to represent the total power flowing through the working module accumulated from the initial moment;
根据所述初始电量参数值以及各所述累计电量参数值得到所述电子设备的第一荷电状态;Obtaining a first state of charge of the electronic device according to the initial power parameter value and each of the accumulated power parameter values;
在当前周期获取到的第一荷电状态与上一周期获取到的第一荷电状态之间的差值的绝对值大于第一预设阈值时,确定至少一个工作模块与所述主控模块之间的通讯连接存在异常。When 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 is greater than a first preset threshold, it is determined that there is an abnormality in the communication connection between at least one working module and the main control module.
根据本申请实施例的一方面,公开了一种电子设备,包括:电池模块;多个工作模块;一个或多个处理器;所述电池模块、各所述工作模块和所述处理器通讯连接;存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述电子设备实现上述各种可选实现方式中提供的方法。According to one aspect of an embodiment of the present application, an electronic device is disclosed, comprising: a battery module; a plurality of working modules; one or more processors; the battery module, each of the working modules and the processor are communicatively connected; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the electronic device implements the methods provided in the above-mentioned various optional implementation modes.
根据本申请实施例的一方面,公开了一种计算机可读存储介质,其上存储有计算机可读指令,当所述计算机可读指令被计算机的处理器执行时,使计算机执行上述各种可选实现方式中提供的方法。According to one aspect of an embodiment of the present application, a computer-readable storage medium is disclosed, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the methods provided in the above-mentioned various optional implementations.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其他特征、目的和优点将从说明书、附图以及权利要求书变得明显。The details of one or more embodiments of the present application are set forth in the following drawings and description. Other features, objects, and advantages of the present application will become apparent from the description, drawings, and claims.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本申请。It should be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present application.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或示例性技术中的技术方案,下面将对实施例或示例性技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他实施例的附图。通过参考附图详细描述其示例实施例,本申请的上述和其它目标、特征及优点将变得更加显而易见。In order to more clearly illustrate the technical solutions in the embodiments or exemplary technologies of the present application, the following briefly introduces the drawings required for use in the embodiments or exemplary technical descriptions. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, drawings of other embodiments can also be obtained based on these drawings without creative work. By describing the exemplary embodiments in detail with reference to the drawings, the above and other objectives, features and advantages of the present application will become more obvious.
图1示出了本申请一个实施例的电子设备内部模块的组织架构示意图。FIG1 is a schematic diagram showing the organizational structure of internal modules of an electronic device according to an embodiment of the present application.
图2示出了本申请一个实施例的电子设备控制方法流程图。FIG. 2 shows a flow chart of a method for controlling an electronic device according to an embodiment of the present application.
图3示出了本申请一个实施例的电子设备控制装置的框图。FIG3 shows a block diagram of an electronic device control device according to an embodiment of the present application.
图4示出了本申请一个实施例的电子设备硬件图。FIG. 4 shows a hardware diagram of an electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些示例实施方式使得本申请的描述将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。附图仅为本申请的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these example embodiments are provided so that the description of the present application will be more comprehensive and complete and the concepts of the example embodiments will be fully conveyed to those skilled in the art. The accompanying drawings are only schematic illustrations of the present application and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.
此外,所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多示例实施方式中。在下面的描述中,提供许多具体细节从而给出对本申请的示例实施方式的充分理解。然而,本领域技术人员将意识到,可以实践本申请的技术方案而省略所述特定细节中的一个或更多,或者可以采用其它的方法、组元、步骤等。在其它情况下,不详细示出或描述公知结构、方法、实现或者操作以避免喧宾夺主而使得本申请的各方面变得模糊。In addition, the described features, structures or characteristics may be combined in one or more example embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the example embodiments of the present application. However, those skilled in the art will appreciate that the technical solution of the present application may be practiced while omitting one or more of the specific details, or other methods, components, steps, etc. may be adopted. In other cases, known structures, methods, implementations or operations are not shown or described in detail to avoid obscuring the present application and making the various aspects of the present application obscure.
附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。Some of the blocks shown in the accompanying drawings are functional entities that do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
本申请提供了一种电子设备控制方法,可用于控制各类电子设备。可用于控制的电子设备包括但不限于:移动储能电池、手机、电脑、汽车等。The present application provides an electronic device control method, which can be used to control various electronic devices. The electronic devices that can be used to control include but are not limited to: mobile energy storage batteries, mobile phones, computers, cars, etc.
具体的,本申请所提供电子设备控制方法,应用于电子设备中的主控模块。主控模块可以为微控制单元(Microcontroller Unit,MCU)、应用处理器(application processor,AP)和/或神经网络处理器(neural-networkprocessing unit,NPU)等类型的处理器中的任意一种或多种的组合。当上述电子设备设置有电池管理系统(Battery Management System,BMS)时,上述主控模块可以设置于上述电子设备的BMS上。Specifically, the electronic device control method provided in the present application is applied to a main control module in an electronic device. The main control module can be any one or more combinations of processors such as a microcontroller unit (MCU), an application processor (AP) and/or a neural-network processing unit (NPU). When the above-mentioned electronic device is provided with a battery management system (BMS), the above-mentioned main control module can be arranged on the BMS of the above-mentioned electronic device.
参考图1所示,本申请一实施例中的电子设备内部模块的组织架构示意图,本申请的电子设备除了包括主控模块外,还包括电池模块和多个工作模块。工作模块可以包括电子设备的功率变换模块,也可以包括电子设备的无线网络模块,也可以包括电子设备的存储模块,也可以包括其他类 型的模块,此处不予限制。在本实施例中,工作模块是指能够实现预设功能,且需要损耗电量的模块。电池模块与主控模块通讯连接,接受主控模块的控制调度。各工作模块同样和主控模块通讯连接,接受主控模块的控制调度。Referring to FIG1, a schematic diagram of the organizational structure of the internal modules of an electronic device in an embodiment of the present application, the electronic device 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 here. In this embodiment, the working module refers to a module that can realize a preset function and needs to consume power. The battery module is connected to the main control module in communication and accepts the control scheduling of the main control module. Each working module is also connected to the main control module in communication and accepts the control scheduling of the main control module.
参考图2所示,本申请一实施例中的设备控制方法的流程图,本申请所提供设备控制方法包括:Referring to FIG. 2 , which is a flow chart of a device control method in an embodiment of the present application, the device control method provided by the present application includes:
步骤S110、获取电池模块的初始电量参数值。Step S110: obtaining an initial power parameter value of the battery module.
本申请实施例中,电池模块的初始电量参数值,主要用于描述设备上电时刻(也可以称之为初始时刻)的电量值。需要说明的是,电池模块在放电或者充电过程中,始终都有一个最低电量值。电池模块放电不会将电量释放为0,释放至最低电量值后便停止放电。其中,电池模块的初始电量参数值,可以是设备上电时刻对应的剩余电量,也可以是设备上电时刻的荷电状态SOC(State ofCharge),也即剩余电量与电池模块的满电量之间的比值。例如,在通过市电给储能电源充电场景下,上述初始电量参数值可以是储能电源在接入市电进行充电时所显示的荷电状态。电子设备上电通常是指设备处于开机状态,此时电子设备可以处于工作状态或者休眠状态。In the embodiment of the present application, the initial power parameter value of the battery module is mainly used to describe the power value at the time when the device is powered on (also referred to as the initial moment). It should be noted that the battery module always has a minimum power value during the discharge or charging process. The battery module will not release the power to 0 when discharging, and it will stop discharging after releasing to the minimum power value. Among them, the initial power parameter value of the battery module can be the remaining power corresponding to the time when the device is powered on, or it can be the state of charge SOC (State of Charge) at the time when the device is powered on, that is, the ratio between the remaining power and the full power of the battery module. For example, in the scenario where the energy storage power supply is charged by the mains, the above-mentioned initial power parameter value can be the state of charge displayed by the energy storage power supply when it is connected to the mains for charging. Powering on an electronic device usually means that the device is in the on state, at which time the electronic device can be in working state or in sleep state.
步骤S120、在每个预设周期内,通过通讯获取各工作模块独立计算得出的累计电量参数值。Step S120: in each preset period, the accumulated power parameter value independently calculated by each working module is obtained through communication.
本申请实施例中,各工作模块独立计算对应的模块电量参数值。累计电量参数值被配置为表征该工作模块在上电后,也即从初始时刻开始累计的流入或者流出该工作模块的总电量。该累计电量参数值,可以直接为该工作模块通过安时积分方式计算得到的累计电量,也可以是该累计电量与电池模块在满电量下的电量的比值。In the embodiment of the present application, each working module independently calculates the corresponding module power parameter value. The cumulative power parameter value is configured to characterize the total power flowing into or out of the working module after the working module is powered on, that is, from the initial moment. The cumulative power parameter value can be directly the cumulative power calculated by the working module through the ampere-hour integration method, or it can be the ratio of the cumulative power to the power of the battery module at full power.
预设周期的时间长度可以根据需要进行设置,比如根据各工作模块的采样周期来进行设定。预设周期可以大于各工作模块的采样周期,也可以等于各工作模块的采样周期,通常该预设周期可以设定为毫秒级别。The length of the preset period can be set as needed, for example, according to the sampling period of each working module. The preset period can be greater than the sampling period of each working module, or can be equal to the sampling period of each working module. Usually, the preset period can be set to millisecond level.
在每个预设周期,主控模块与各工作模块建立通讯,然后获取各工作模块独立计算得到的累计电量参数值。由于工作模块能够实时监测其自身状态,且不会受到其他因素的干扰,比如不会因为通讯的异常导致数据丢失,进而影响累计电量参数值的精准度。因此,只要主控模块能够正常的 与该工作模块建立通讯,那么获取到的一定是该工作模块在累计计量周期内所计量得到的准确的累计电量参数值。主控模块不会因为中间的通讯异常导致无法获得准确的电量参数值,从而具有更强的时效性以及数据准确性。In each preset cycle, the main control module establishes communication with each working module, and then obtains the cumulative power parameter value independently calculated by each working module. Since the working module can monitor its own status in real time and will not be interfered by other factors, such as data loss due to communication anomalies, which will affect the accuracy of the cumulative power parameter value. Therefore, as long as the main control module can establish communication with the working module normally, what is obtained must be the accurate cumulative power parameter value measured by the working module during the cumulative metering cycle. The main control module will not be unable to obtain accurate power parameter values due to communication anomalies in the middle, so it has stronger timeliness and data accuracy.
在相关的技术中,电子设备是通过主控模块实时获取各个工作模块上的瞬时电流参数值,从而基于瞬时电流参数值来进行剩余电量或者电荷状态的计算。一旦主控模块与对应工作模块之间存在通讯异常,则无法获取到异常器件的瞬时电流参数,从而使得主控模块计算出来的剩余电量或者电荷参数与实际的值会存在较大偏差,且无法在通讯恢复后被自动校准。而本实施例中,每一次获取到的都是各工作模块独立计算的累计电量参数值,即便是某个时间段内通讯异常,导致主控模块会存在一定计算偏差,但是在恢复通讯之后,即可恢复至实际的电量值,从而提高了数据的可靠性以及准确性。In the related technology, the electronic device obtains the instantaneous current parameter value on each working module in real time through the main control module, and then calculates the remaining power or charge state based on the instantaneous current parameter value. Once there is a communication abnormality between the main control module and the corresponding working module, the instantaneous current parameter of the abnormal device cannot be obtained, so that the remaining power or charge parameter calculated by the main control module will have a large deviation from the actual value, and cannot be automatically calibrated after the communication is restored. In this embodiment, each time what is obtained is the cumulative power parameter value calculated independently by each working module. Even if there is a communication abnormality in a certain period of time, resulting in a certain calculation deviation of the main control module, it can be restored to the actual power value after the communication is restored, thereby improving the reliability and accuracy of the data.
步骤S130、根据初始电量参数值以及各累计电量参数值得到设备的第一荷电状态。Step S130: Obtain a first state of charge of the device according to the initial power parameter value and each accumulated power parameter value.
本申请实施例中,主控模块得到电池模块的初始电量参数值和各工作模块每个预设周期的累计电量参数值后,结合初始电量参数值和累计电量参数值,得到设备的第一荷电状态。由于工作模块独立计算得到的每个预设周期的累计电量参数值具有更强的时效性,能够更及时准确地反映出工作模块在每个预设周期内的电量值,因此在此基础上得到的电子设备的第一荷电状态同样具有更强的时效性,从而能够更及时准确地反映出电子设备在每个预设周期内的荷电状态。In the embodiment of the present application, after the main control module obtains the initial power parameter value of the battery module and the cumulative power parameter value of each working module in each preset cycle, it combines the initial power parameter value and the cumulative power parameter value to obtain the first state of charge of the device. Since the cumulative power parameter value of each preset cycle obtained by the working module independently calculated has a stronger timeliness and can more timely and accurately reflect the power value of the working module in each preset cycle, the first state of charge of the electronic device obtained on this basis also has a stronger timeliness, so that it can more timely and accurately reflect the state of charge of the electronic device in each preset cycle.
步骤S140、在当前周期获取到的第一荷电状态与上一周期获取到的第一荷电状态之间的差值的绝对值大于第一预设阈值时,确定至少一个工作模块与主控模块之间的通讯连接存在异常。Step S140: When 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 is greater than a first preset threshold, it is determined that there is an abnormality in the communication connection between at least one working module and the main control module.
可以理解的,设备在正常工作的情况下,第一荷电状态通常不会发生突变。比如,在设备平稳带载时,各个工作模块在每个预设周期内所消耗的电量或者所传递的电量都是稳定的,因此相邻两个周期内得到的第一荷电状态之间的差值的绝对值是会满足这样一个稳定关系的,该稳定关系可以通过第一预设阈值来进行反映,从而在差值的绝对值小于该第一预设阈 值时都可以认定为是平滑变化,而不是突变。当电子设备突然增加负载或者突然增加供电电源时,由于电子设备的电流不会发生突变,而是会通过缓启等策略从小到大逐渐增大。并且预设周期属于毫秒级别的,从而也可以确保最终得到的第一荷电状态不会发生突变。第一荷电状态也是一个平滑变化的过程,只是变化的斜率相对于轻载或者空载时是更陡峭的,但是也不会发生突变。并且,在某个工作模块从工作状态切入待机状态或者不工作状态时,其与主控模块的通讯还处于正常通信状态,从而使得该工作模块依然会将累计电量参数值上报给主控模块,从而也不会发生突变。It is understandable that when the device is working normally, the first state of charge usually does not change suddenly. For example, when the device is stably loaded, the power consumed or transmitted by each working module in each preset cycle is stable, so the absolute value of the difference between the first state of charge obtained in two adjacent cycles will satisfy such a stable relationship, which can be reflected by the first preset threshold value, so that when the absolute value of the difference is less than the first preset threshold value, it can be considered as a smooth change, not a sudden change. When the electronic device suddenly increases the load or suddenly increases the power supply, the current of the electronic device will not change suddenly, but will gradually increase from small to large through strategies such as slow start. And the preset cycle belongs to the millisecond level, so it can also ensure that the first state of charge finally obtained will not change suddenly. The first state of charge is also a smooth change process, but the slope of the change is steeper than that of light load or no load, but it will not change suddenly. In addition, when a certain working module switches from the working state to the standby state or the non-working state, its communication with the main control module is still in the normal communication state, so that the working module will still report the accumulated power parameter value to the main control module, so that no sudden change will occur.
如果第一荷电状态发生突变,则表示主控模块与部分工作模块的通讯连接发生异常,导致主控模块无法接收到这部分工作模块的累计电量参数值。由于累计电量参数值是从初始时刻开始进行累计的一个值,所以相对于每个预设周期内的电量变化量,累计电量参数值是大的多的一个值,从而使第一荷电状态的计算出现较大的偏差。因此,针对当前周期获取到的第一荷电状态与上一周期获取到的第一荷电状态之间的差值的绝对值,可以预先设置一个第一预设阈值。若该差值的绝对值大于第一预设阈值,则说明当前周期获取到的第一荷电状态发生了突变,进而确定至少一个工作模块与主控模块之间的通讯连接存在异常。If the first state of charge changes suddenly, it means that the communication connection between the main control module and some working modules is abnormal, resulting in the main control module being unable to receive the accumulated power parameter value of these working modules. Since the accumulated power parameter value is a value accumulated from the initial moment, the accumulated power parameter value is much larger than the amount of power change in each preset cycle, resulting in a large deviation in the calculation of the first state of charge. Therefore, a first preset threshold value can be pre-set for the absolute value of the difference between the first state of charge obtained in the current cycle and the first state of charge obtained in the previous cycle. If the absolute value of the difference is greater than the first preset threshold value, it means that the first state of charge obtained in the current cycle has changed suddenly, and then it is determined that there is an abnormality in the communication connection between at least one working module and the main control module.
其中,第一预设阈值应当由本领域技术人员合理设置,并且第一预设阈值的设置一定是大于第一荷电状态平滑变化的变化值的。例如,若电子设备当前带载的功率没有发生变化,各工作模块的工作以及各工作模块之间的通讯也是正常的情况下,电子设备的第一荷电状态在每个预设的周期内的变化值为0.1%,则可以将第一预设阈值设置为0.3%或者0.5%,以此即可以准确判断出通讯异常的情况,也能够满足电子设备带载突然变化,导致的第一荷电状态发生一定波动的情况。第一预设阈值可以是一个固定值,也可以根据电子设备所处的运行状态进行设置。比如主控模块可以根据当前的充放电状态、供电电源的供电能力或者负载的需求功率等情况来确定在一个预设周期内各工作模块正常状态下的电量消耗情况,并根据该电量消耗情况确定相应的第一预设阈值。可以理解的是,以上第一预设阈值的设置仅用于举例,并不限于限定本申请的保护范围。Among them, the first preset threshold should be reasonably set by those skilled in the art, and the setting of the first preset threshold must be greater than the change value of the smooth change of the first state of charge. For example, if the power currently carried by the electronic device has not changed, the operation of each working module and the communication between each working module are also normal, the change value of the first state of charge of the electronic device in each preset cycle is 0.1%, then the first preset threshold can be set to 0.3% or 0.5%, so that the abnormal communication situation can be accurately judged, and the sudden change of the load of the electronic device can also meet the situation where the first state of charge fluctuates to a certain extent. The first preset threshold can be a fixed value, or it can be set according to the operating state of the electronic device. For example, the main control module can determine the power consumption of each working module in a normal state in a preset cycle according to the current charging and discharging state, the power supply capacity of the power supply, or the required power of the load, and determine the corresponding first preset threshold according to the power consumption. It can be understood that the setting of the above first preset threshold is only for example, and is not limited to the scope of protection of this application.
在一实施例中,在根据所述初始电量参数值以及各累计电量参数值得 到电子设备的第一荷电状态之后,还包括:In one 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:
在当前周期获取到的第一荷电状态与上一周期获取到的第一荷电状态之间的差值的绝对值小于或等于第一预设阈值时,确定各工作模块与主控模块通讯连接正常。When 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 is less than or equal to the first preset threshold, it is determined that the communication connection between each working module and the main control module is normal.
本实施例中,如前所述,电子设备在正常工作的情况下,其第一荷电状态应该是平滑变化的。在正常状态下,在每两个相邻的周期内的第一荷电状态之间的差值的绝对值始终是小于或者等于上述的第一预设阈值的,例如前述的0.3%。In this embodiment, as mentioned above, when the electronic device is working normally, its first state of charge should change smoothly. Under normal conditions, the absolute value of the difference between the first states of charge in every two adjacent cycles is always less than or equal to the first preset threshold, such as the aforementioned 0.3%.
在一些实施例中,主控模块在判定自己与各工作模块之间的通讯连接是正常的情况下,即可认为当前自己获取到的各工作模块的累计电量值为准确无误的数据,以这些数据计算出的第一荷电状态也是为可被信任的。主控模块便会将当前周期内获取到的第一荷电状态确定为当前周期的显示荷电状态并显示。In some embodiments, when the main control module determines that the communication connection between itself and each working module is normal, it can be considered that the accumulated power value of each working module currently obtained by itself is accurate data, and the first state of charge calculated based on these data is also trustworthy. The main control module will determine the first state of charge obtained in the current cycle as the display state of charge of the current cycle and display it.
本实施例中,主控模块能够通过相邻两周期内获取到的第一荷电状态之间的差值的绝对值小于或者等于第一预设阈值时,确定各工作模块与主控模块的通讯连接是正常的,并在此基础上将当前周期计算的到的第一荷电状态作为显示荷电状态,以准确显示当前周期内电子设备的电量。In this embodiment, the main control module can determine that the communication connection between each working module and the main control module is normal when the absolute value of the difference between the first charge states obtained in two adjacent cycles is less than or equal to a first preset threshold value, and on this basis, use the first charge state calculated in the current cycle as the display charge state to accurately display the power of the electronic device in the current cycle.
由于电子设备的第一荷电状态具有更强的时效性,能够更及时准确地反映出电子设备在每个预设周期内的荷电状态。因此,基于第一荷电状态,主控模块能够更及时准确地检测出工作模块与主控模块之间的通信连接存在异常,从而使得电子设备能够更及时准确地对工作模块与主控模块之间的通信连接存在异常这一情况作出应对。Since the first state of charge of the electronic device has a stronger timeliness, it can more timely and accurately reflect the state of charge of the electronic device in each preset cycle. Therefore, based on the first state of charge, the main control module can more timely and accurately detect the abnormality of the communication connection between the working module and the main control module, so that the electronic device can more timely and accurately respond to the abnormality of the communication connection between the working module and the main control module.
在一实施例中,各累计电量参数值是指累计的电荷状态,也即各工作模块的累计电量与电池模块的满电电量之间的比值,也即荷电状态SOC n。此时,主控模块获取到的则是各工作模块输出的该荷电状态SOC n。各工作模块按照如下所示公式计算各自的模块电量参数值: In one embodiment, each accumulated power parameter value refers to the accumulated charge state, that is, the ratio between the accumulated power of each working module and the full power of the battery module, that is, the state of charge SOCn . At this time, the main control module obtains the state of charge SOCn output by each working module. Each working module calculates its own module power parameter value according to the following formula:
Figure PCTCN2022127737-appb-000001
Figure PCTCN2022127737-appb-000001
SOC n=F n/F*100% SOCnFn /F*100%
其中,F n代表第n个工作模块的累计电量,t代表当前时刻,I n代表0~t 这一时间段(0~t这一时间段内可以包括一个或多个预设周期,“0”这一时刻可以代表设备上电时刻)内第n个工作模块实时监测自身所得到的电流值,SOC n代表第n个工作模块的荷电状态,F代表电子设备的电池模块的满电电量。需要注意的是,电流I n是具有矢量方向的一个参数,从而可以根据其电流方向确定当前该工作模块是对电池模块进行充电还是在消耗电池模块的电量。当利用外部电源对电池模块进行充电时,电流I n的方向为负,反之方向为正。 Among them, Fn represents the accumulated power of the nth working module, t represents the current moment, In represents the current value obtained by the nth working module monitoring itself in real time during the time period of 0 to t (the time period of 0 to t may include one or more preset cycles, and the moment of "0" may represent the power-on moment of the device), SOCn represents the state of charge of the nth working module, and F represents the full power of the battery module of the electronic device. It should be noted that the current In is a parameter with a vector direction, so it can be determined whether the working module is currently charging the battery module or consuming the power of the battery module according to its current direction. When the battery module is charged using an external power supply, the direction of the current In is negative, and vice versa.
因此,主控模块获取到的电池模块的初始电量参数值也为电池模块的荷电状态SOC past。该荷电状态SOC past代表电子设备过去剩余的荷电状态,即可以理解为电子设备上电时刻所具备的剩余荷电状态。主控模块根据该荷电状态SOC past和各工作模块输出的荷电状态SOC n按照如下所示公式计算设备的第一荷电状态SOC ATherefore, the initial power parameter value of the battery module obtained by the main control module is also the state of charge SOC past of the battery module. The state of charge SOC past represents the remaining state of charge of the electronic device in the past, that is, it can be understood as the remaining state of charge of the electronic device when it is powered on. The main control module calculates the first state of charge SOC A of the device according to the following formula based on the state of charge SOC past and the state of charge SOC n output by each working module:
Figure PCTCN2022127737-appb-000002
Figure PCTCN2022127737-appb-000002
Figure PCTCN2022127737-appb-000003
表示输出至主控模块的各工作模块的荷电状态的总和,通过将初始的荷电状态SOC past与各预设周期内所获取到的荷电状态的总和进行相减,即可得到电子设备当前的第一荷电状态SOC A
Figure PCTCN2022127737-appb-000003
The sum of the states of charge of each working module output to the main control module is represented. By subtracting the initial state of charge SOC past from the sum of the states of charge acquired in each preset cycle, the current first state of charge SOC A of the electronic device can be obtained.
在另一实施例中,也可以直接将各工作模块计算的累计电量F n作为累计电量参数值传输至主控模块,此时,主控模块需要根据需要对各工作模块的累计电量进行求和得到各工作模块的总累计电量F A,如下公式: In another embodiment, the accumulated power Fn calculated by each working module may be directly transmitted to the main control module as the accumulated power parameter value. In this case, the main control module needs to sum the accumulated power of each working module as needed to obtain the total accumulated power F A of each working module, as shown in the following formula:
Figure PCTCN2022127737-appb-000004
Figure PCTCN2022127737-appb-000004
在求得各工作模块的总累计电量F A后,若主控模块获取到的初始电量参数值为初始的剩余电量F 0,则通过下式计算第一荷电状态SOC AAfter the total accumulated power F A of each working module is obtained, if the initial power parameter value obtained by the main control module is the initial remaining power F 0 , the first state of charge SOC A is calculated by the following formula:
Figure PCTCN2022127737-appb-000005
Figure PCTCN2022127737-appb-000005
在一实施例中,在确定至少一个工作模块与主控模块之间的通讯连接存在异常之后,还包括:In one embodiment, after determining that there is an abnormality in the communication connection between at least one working module and the main control module, the method further includes:
检测未发送累计电量参数值的工作模块,将未发送所述累计电量参数值的工作模块确定为通讯异常模块。The working module that has not sent the accumulated power parameter value is detected, and the working module that has not sent the accumulated power parameter value is determined as a communication abnormality module.
本实施例中,在判定工作模块和主控模块之间发生通讯异常之后,主 控模块可以对发生通讯异常的模块进行追踪,通过检测未发送累计电量参数值的工作模块,确定未通讯异常模块。因为在正常通讯情况下,通讯正常的工作模块会将自己的累计电量参数以一定的间隔周期发送给主控模块,即使该工作模块在当前的周期内不工作,也会周期性地将最后一次计算的累计电量参数持续发送给主控模块,比如,逆变模块在第一个周期内是需要进行逆变工作的,但是在下一周期内,并不需要进行逆变,但只要逆变模块的通讯是正常的,仍然会在往后的每一个周期内将第一个周期内计算的累计电量参数发送给主控模块。而当工作模块通讯发生异常,即不会将自己的累计电量参数发送给主控模块,主控模块通过排查,将未收到累计电量参数的工作模块确定为异常模块。In this embodiment, after determining that a communication anomaly occurs between the working module and the main control module, the main control module can track the module with the communication anomaly, and determine the module with no communication anomaly by detecting the working module that has not sent the cumulative power parameter value. Because under normal communication conditions, the working module with normal communication will send its own cumulative power parameter to the main control module at a certain interval period. Even if the working module does not work in the current cycle, it will periodically send the last calculated cumulative power parameter to the main control module. For example, the inverter module needs to perform inversion work in the first cycle, but does not need to perform inversion in the next cycle. However, as long as the communication of the inverter module is normal, the cumulative power parameter calculated in the first cycle will still be sent to the main control module in each subsequent cycle. When the communication of the working module is abnormal, that is, it will not send its own cumulative power parameter to the main control module, the main control module will determine the working module that has not received the cumulative power parameter as an abnormal module through investigation.
在一些实施例中,工作模块在向主控模块发送自己累计电量参数时,可以是以携带累计电量参数的信号形式发送。因此,工作模块可以在发送该信号时,附加上指向自己的编号,例如,逆变模块的编号为01,散热模块的编号为02,主控模块在接收到携带01编号的信号时,则认为逆变模块没有发生通讯故障,而未收到携带02编号的信号时,则将散热模块认定为通讯异常模块。可以理解的是,主控模块检测未发送累计电量参数值的工作模块的方式可以是其他通讯判断方式,并不限于上述实施例的举例,本领域技术人员可以根据实际需求适当设置,在此不再赘述。In some embodiments, when the working module sends its own accumulated power parameters to the main control module, it may be sent in the form of a signal carrying the accumulated power parameters. Therefore, the working module may attach a number pointing to itself when sending the signal. For example, the inverter module is numbered 01, and the heat dissipation module is numbered 02. When the main control module receives a signal carrying the number 01, it believes that there is no communication failure in the inverter module. When it does not receive a signal carrying the number 02, it identifies the heat dissipation module as a communication abnormality module. It is understandable that the way the main control module detects the working module that has not sent the accumulated power parameter value may be other communication judgment methods, and is not limited to the examples in the above embodiments. Those skilled in the art may make appropriate settings according to actual needs, which will not be repeated here.
在一实施例中,在确定至少一个工作模块与主控模块之间的通讯连接存在异常之后,本申请所提供电子设备控制方法还包括:生成提示信息,提示信息被配置为提示通讯连接存在异常。In one embodiment, after determining that there is an abnormality in the communication connection between at least one working module and the main control module, the electronic device control method provided in the present application further includes: generating prompt information, and the prompt information is configured to prompt that there is an abnormality in the communication connection.
本实施例中,在确定至少一个工作模块与主控模块之间的通讯连接存在异常之后,为了对电子设备的上位机或者电子设备的用户作出提醒,主控模块生成用于提示通讯连接存在异常的提示信息。其中,若是为了提醒上位机,主控模块则可以按照与上位机的约定,生成约定的错误码作为提示信息,从而提醒上位机通讯连接存在异常。若是为了提醒用户,主控模块则可以生成文本或者语音作为提示信息,从而提醒用户通讯连接存在异常。上述提示信息还可以通过灯光、振动等形式体现,本申请实施例对上述提示信息的具体表现形式不予限制。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 the host computer of the electronic device or the user of the electronic device, the main control module generates a prompt message for prompting that there is an abnormality in the communication connection. Among them, if it is to remind the host computer, the main control module can generate an agreed error code as a prompt message in accordance with the agreement with the host computer, thereby reminding the host computer that there is an abnormality in the communication connection. If it is to remind the user, the main control module can generate text or voice as a prompt message, thereby reminding the user that there is an abnormality in the communication connection. The above prompt information can also be embodied in the form of light, vibration, etc., and the embodiment of the present application does not limit the specific form of expression of the above prompt information.
在一实施例中,在将未发送累计电量参数值的工作模块确定为通讯异 常模块之后,还包括:In one embodiment, after determining the working module that does not send the cumulative power parameter value as a communication abnormality module, the method further includes:
将通讯异常模块最近一次发送的累计电量参数值作为当前周期获取到的通讯异常模块对应的累计电量参数值。The accumulated power parameter value most recently sent by the communication abnormality module is used as the accumulated power parameter value corresponding to the communication abnormality module obtained in the current cycle.
根据初始电量值以及在当前周期获取到的各累计电量参数值,更新当前周期的第一荷电状态。The first state of charge of the current cycle is updated according to the initial power value and each accumulated power parameter value obtained in the current cycle.
本实施例中,在确定电子设备中出现通讯异常模块后,为了不严重影响到对整个电子设备的第一荷电状态的计算,主控模块在确定出通讯异常模块之后,即使由于通讯故障暂时拿不到通讯异常模块的累计电量参数,还可以将通讯异常模块的最近一次发送的累计电量参数作为当前周期获取到的通讯异常模块对应的累计电量参数值。例如,在当前周期内确定散热模块为通讯异常模块后,主控模块即将最邻近的一周期内获取到的散热模块的累计电量参数,作为当前周期内的散热模块的累计电量参数。In this embodiment, after determining that a communication abnormality module appears 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 abnormality module is present, the main control module can use the most recently sent cumulative power parameter of the communication abnormality module as the cumulative power parameter value corresponding to the communication abnormality module obtained in the current cycle, even if the cumulative power parameter of the communication abnormality module cannot be obtained temporarily due to a communication failure. For example, after determining that the heat dissipation module is the communication abnormality module in the current cycle, the main control module uses the cumulative power parameter of the heat dissipation module obtained in the nearest cycle as the cumulative power parameter of the heat dissipation module in the current cycle.
如此,主控模块即可拥有电子设备内各工作模块(包括通讯异常模块)的累计电量参数,并根据初始电量值和前述的各工作模块的累计电量参数(包括通讯异常模块)计算新的第一荷电状态,以更新当前周期内第一荷电状态。In this way, the main control module can have the accumulated power parameters of each working module (including the communication abnormality module) in the electronic device, and calculate the new first charge state based on the initial power value and the accumulated power parameters of the aforementioned working modules (including the communication abnormality module) to update the first charge state in the current cycle.
本实施例中,通过将通讯异常模块的最近一次发送的累计电量参数替代为当前周期内该通讯异常模块的累计电量参数,填补了通讯异常带来的数据丢失的空缺,进而避免导致主控模块在计算电子设备的第一荷电状态时出现的较大误差的问题。In this embodiment, by replacing the accumulated power parameters most recently sent by the communication abnormality module with the accumulated power parameters of the communication abnormality module in the current cycle, the gap in data loss caused by the communication abnormality is filled, thereby avoiding the problem of large errors in the main control module calculating the first charge state of the electronic device.
在一实施例中,显示当前周期获取到的第一荷电状态,包括:In one embodiment, displaying the first state of charge acquired in the current cycle includes:
获取上一周期的显示荷电状态。Get the displayed state of charge for the last cycle.
在当前周期获取到的第一荷电状态与上一周期的显示荷电状态之间的差值的绝对值小于或者等于第二预设阈值时,将当前周期获取到的第一荷电状态确定为当前周期的显示荷电状态并显示。When the absolute value of the difference between the first state of charge acquired in the current cycle and the displayed state of charge in the previous cycle is less than or equal to the second preset threshold, the first state of charge acquired in the current cycle is determined as the displayed state of charge in the current cycle and displayed.
其中,第二预设阈值为给予用户更好的使用体验而设置的,使得显示荷电状态在显示时,是以一定的线性关系稳定变化的,而不是会发生急剧突变的。例如,可以将第二预设阈值设置为1%,即电子设备在充电或者放电的过程中,用于显示的显示荷电状态在前后两个相邻的周期内的差值的绝对值只允许误差为1%。The second preset threshold is set to provide users with a better user experience, so that the state of charge is displayed in a stable linear relationship instead of a sudden change. For example, the second preset threshold can be set to 1%, that is, during the charging or discharging process of the electronic device, the absolute value of the difference between the two adjacent cycles of the displayed state of charge is allowed to have an error of only 1%.
如前提及的,第一荷电状态仅仅是能够获取到的各工作模块的累计电量参数值。当存在通讯异常时,需要去获取通讯异常的工作模块最近依次获取到的累计电量参数值,然后对第一荷电状态进行修正后才进行显示。当然也可以通过其他的修正方式进行修正,以使得最终显示的荷电状态具有更高的准确性。因此,将直接获取到的第一荷电状态与上一周期的显示荷电状态进行比较,也可以确定是否发生异常,如果二者之间的差值的绝对值小于第二预设阈值,则可以确定通信是正常的,从而直接不对第一荷电状态进行修正即可作为显示荷电状态进行显示。As mentioned above, the first state of charge is only the cumulative power parameter value of each working module that can be obtained. When there is a communication abnormality, it is necessary to obtain the cumulative power parameter values that have been recently obtained in sequence by the working modules with the communication abnormality, and then correct the first state of charge before displaying it. Of course, it can also be corrected by other correction methods to make the final displayed state of charge have higher accuracy. Therefore, by comparing the first state of charge directly obtained with the displayed state of charge of the previous cycle, it can also be determined whether an abnormality has occurred. If the absolute value of the difference between the two is less than the second preset threshold, it can be determined that the communication is normal, so that the first state of charge can be directly displayed as the displayed state of charge without correcting it.
在一实施例中,在当前周期获取到的第一荷电状态与上一周期的显示荷电状态之间的差值的绝对值大于第二预设阈值时,根据上一周期的显示荷电状态和预设的调节值确定当前周期的显示荷电状态并显示。In one embodiment, when the absolute value of the difference between the first state of charge acquired in the current cycle and the displayed state of charge of the previous cycle is greater than a second preset threshold, the displayed state of charge of the current cycle is determined and displayed based on the displayed state of charge of the previous cycle and a preset adjustment value.
具体的,主控模块在计算出当前周期的第一荷电状态后,将该第一荷电状态暂存在存储器中,以供下一周期的计算和比对。并根据预设的调节值和上一周期的显示荷电状态确定当前周期的显示荷电状态并显示。Specifically, after calculating the first state of charge of the current cycle, the main control module temporarily stores the first state of charge in the memory for calculation and comparison in the next cycle, and determines and displays the displayed state of charge of the current cycle according to the preset adjustment value and the displayed state of charge of the previous cycle.
在一实施例中,本申请所提供电子设备控制方法还包括:在每个预设周期内,分别获取各工作模块的采样电流值。根据各采样电流值以及初始电量参数值计算设备的第二荷电状态。在第一荷电状态与第二荷电状态之间的差值的绝对值小于预设阈值时,根据第一荷电状态与第二荷电状态确定设备的显示荷电状态并显示。In one embodiment, the electronic device control method provided by the present application further includes: obtaining the sampled current value of each working module in each preset cycle. Calculating the second state of charge of the device according to each sampled current value and the initial power parameter value. When the absolute value of the difference between the first state of charge and the second state of charge is less than a preset threshold, determining and displaying the display state of charge of the device according to the first state of charge and the second state of charge.
本实施例中,工作模块的采样电流值,指的是工作模块对其自身电流进行采样所得到的电流值。在每个预设周期,主控模块与各工作模块建立通讯,然后获取各工作模块的采样电流值。然后主控模块根据各采样电流值可以计算得到各工作模块的累计电量参数值,然后结合电池模块的初始电量参数值,计算得到设备的第二荷电状态。In this embodiment, the sampled current value of the working module refers to the current value obtained by the working module sampling its own current. In each preset cycle, the main control module establishes communication with each working module, and then obtains the sampled current value of each working module. Then the main control module can calculate the accumulated power parameter value of each working module according to each sampled current value, and then calculate the second state of charge of the device in combination with the initial power parameter value of the battery module.
需要说明的是,用于计算第一荷电状态的工作模块的累计电量参数值,是各工作模块独立计算得到的。用于计算第二荷电状态的工作模块的累计电量参数值,是主控模块根据各工作模块的采样电流值计算得到的。It should be noted that the cumulative power parameter value of the working module used to calculate the first state of charge is calculated independently by each working module. The cumulative power parameter value of the working module used to calculate the second state of charge is calculated by the main control module based on the sampled current values of each working module.
若第一荷电状态与第二荷电状态之间的差值的绝对值小于预设阈值,说明二者均能够用于反映设备当前时刻的荷电状态,因此为了提高设备所显示荷电状态的合理性,综合第一荷电状态与第二荷电状态,确定设备当 前时刻应显示的荷电状态(即当前周期的显示荷电状态)。比如,对第一荷电状态和第二荷电状态进行加权平均得到待显示电量。If the absolute value of the difference between the first state of charge and the second state of charge is less than the preset threshold, it means that both can be used to reflect the state of charge of the device at the current moment. Therefore, in order to improve the rationality of the state of charge displayed by the device, the first state of charge and the second state of charge are combined to determine the state of charge that the device should display at the current moment (i.e., the displayed state of charge of the current cycle). For example, the first state of charge and the second state of charge are weighted averaged to obtain the power to be displayed.
在一实施例中,主控模块按照如下所示公式计算设备的第二荷电状态:In one embodiment, the main control module calculates the second state of charge of the device according to the following formula:
Figure PCTCN2022127737-appb-000006
Figure PCTCN2022127737-appb-000006
Figure PCTCN2022127737-appb-000007
Figure PCTCN2022127737-appb-000007
其中,F B代表主控模块根据n个工作模块的采样电流值I' n计算得到的n个工作模块的总电量值,即,主控模块是先获取各工作模块的电流值,并根据各工作模块的电流值的总和,通过安时积分获取到的n个工作模块的总电量值。t代表当前时刻,I' n代表0~t这一时间段内(0~t这一时间段内可以包括一个或多个预设周期,“0”这一时刻可以代表设备上电时刻)第n个工作模块的采样电流值,SOC B代表第二荷电状态,F 0代表电池模块的初始电量参数值对应的电荷容量值,F代表设备的总电荷容量值。 Among them, FB represents the total power value of n working modules calculated by the main control module according to the sampled current values I'n of n working modules, that is, the main control module first obtains the current value of each working module, and obtains the total power value of n working modules through ampere-hour integration according to the sum of the current values of each working module. t represents the current moment, I'n represents the sampled current value of the nth working module in the time period of 0 to t (the time period of 0 to t may include one or more preset cycles, and the moment "0" may represent the power-on moment of the device), SOC B represents the second state of charge, F0 represents the charge capacity value corresponding to the initial power parameter value of the battery module, and F represents the total charge capacity value of the device.
图3示出了根据本申请一实施例的设备控制装置,所述装置设于所述设备中的主控模块,所述设备还包括电池模块和多个工作模块,所述电池模块、各所述工作模块和所述主控模块通讯连接,所述装置包括:FIG3 shows a device control device according to an embodiment of the present application, wherein the device is provided in a main control module in the device, wherein the device further comprises a battery module and a plurality of working modules, wherein the battery module, each of the working modules and the main control module are communicatively connected, and the device comprises:
第一获取模块210,配置为获取所述电池模块的初始电量参数值;A first acquisition module 210 is configured to acquire an initial power parameter value of the battery module;
第二获取模块220,配置为在每个预设周期内,通过通讯分别获取各所述工作模块独立计算得出的模块电量参数值;The second acquisition module 220 is configured to acquire the module power parameter values independently calculated by each working module through communication in each preset period;
确定模块230,配置为根据所述初始电量参数值以及各所述模块电量参数值得到所述设备的第一荷电状态;A determination module 230, configured to obtain a first state of charge of the device according to the initial power parameter value and each module power parameter value;
异常确定模块240,配置为在当前周期获取到的第一荷电状态与上一周期获取到的第一荷电状态之间的差值的绝对值大于预设阈值时,确定至少一个工作模块与所述主控模块之间的通讯连接存在异常。The abnormality determination module 240 is configured to determine that there is an abnormality in the communication connection between at least one working module and the main control module when the absolute value of the difference between the first charge state obtained in the current cycle and the first charge state obtained in the previous cycle is greater than a preset threshold.
在本申请的一示例性实施例中,所述通讯异常确定模块配置为:在当前周期获取到的第一荷电状态与上一周期获取到的第一荷电状态之间的差值的绝对值大于预设阈值时,从所述主控模块的存储器中获取运行中的工作模块的第一数量;根据获取到的模块电量参数值统计通讯中的工作模块的第二数量;若所述第一数量不等于所述第二数量,则确定所述通讯连接存在异常。In an exemplary embodiment of the present application, the communication abnormality determination module is configured as follows: when the absolute value of the difference between the first charge state obtained in the current cycle and the first charge state obtained in the previous cycle is greater than a preset threshold, obtaining the first number of working modules in operation from the memory of the main control module; counting the second number of working modules in communication based on the obtained module power parameter value; if the first number is not equal to the second number, determining that there is an abnormality in the communication connection.
在本申请的一示例性实施例中,所述装置配置为:根据历史周期获取到的所述设备的荷电状态,预测所述设备在当前周期的预测荷电状态;根据所述预测荷电状态更新当前周期的第一荷电状态并显示。In an exemplary embodiment of the present application, the device is configured to: predict the predicted state of charge of the device in the current cycle based on the state of charge of the device acquired in the historical cycle; update the first state of charge of the current cycle based on the predicted state of charge and display it.
在本申请的一示例性实施例中,所述装置配置为:将未获取到的模块电量参数值对应的工作模块确定为异常模块;根据在历史周期内获取到的所述异常模块的模块电量参数值,预测所述异常模块在当前周期内的模块电量参数值;根据当前周期内获取到的各所述工作模块的模块电量参数值以及预测到的所述异常模块的模块电量参数值,更新当前周期的第一荷电状态并显示。In an exemplary embodiment of the present application, the device is configured to: determine the working module corresponding to the module power parameter value that has not been obtained as an abnormal module; predict the module power parameter value of the abnormal module in the current cycle based on the module power parameter value of the abnormal module obtained in the historical cycle; update and display the first charge state of the current cycle based on the module power parameter value of each of the working modules obtained in the current cycle and the predicted module power parameter value of the abnormal module.
在本申请的一示例性实施例中,所述装置配置为:在当前周期获取到的第一荷电状态与上一周期获取到的第一荷电状态之间的差值的绝对值小于或等于所述第一预设阈值时,确定所述通讯连接恢复正常。In an exemplary embodiment of the present application, the device is configured to determine that the communication connection has returned to normal when 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 is less than or equal to the first preset threshold.
在本申请的一示例性实施例中,所述装置配置为:在当前周期获取到的第一荷电状态与所述上一周期获取到的第一荷电状态之间的差值的绝对值小于或等于所述第一预设阈值时,显示当前周期获取到的第一荷电状态。In an exemplary embodiment of the present application, the device is configured to display the first state of charge obtained in the current cycle when the absolute value of the difference between the first state of charge obtained in the current cycle and the first state of charge obtained in the previous cycle is less than or equal to the first preset threshold.
在本申请的一示例性实施例中,所述装置配置为:生成提示信息,所述提示信息用于提示所述通讯连接存在异常。In an exemplary embodiment of the present application, the device is configured to: generate prompt information, where the prompt information is used to prompt that there is an abnormality in the communication connection.
在本申请的一示例性实施例中,所述装置配置为:在每个预设周期内,分别获取各所述工作模块的采样电流值;根据各所述采样电流值以及所述初始电量参数值计算所述设备的第二荷电状态;在第一荷电状态与第二荷电状态之间的差值的绝对值小于所述第二预设阈值时,根据所述第一荷电状态与所述第二荷电状态确定所述设备的显示荷电状态并显示。In an exemplary embodiment of the present application, the device is configured as follows: within each preset cycle, respectively obtain the sampled current value of each working module; calculate the second state of charge of the device based on each sampled current value and the initial power parameter value; when the absolute value of the difference between the first state of charge and the second state of charge is less than the second preset threshold value, determine and display the display state of charge of the device based on the first state of charge and the second state of charge and display it.
下面参考图4来描述根据本申请实施例的电子设备30。图4显示的电子设备30仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。The electronic device 30 according to the 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 bring any limitation to the function and application scope of the embodiment of the present application.
如图4所示,电子设备30以通用计算设备的形式表现。电子设备30的组件可以包括但不限于:电池模块、多个工作模块(为使得附图简洁,图4中并未示出电池模块和多个工作模块)、上述至少一个处理单元310、上述至少一个存储单元320、连接不同系统组件(包括存储单元320和处理单元310)的总线330。As shown in FIG4 , the electronic device 30 is presented in the form of a general-purpose computing device. The components of the electronic device 30 may include, but are not limited to: a battery module, a plurality of working modules (to make the drawing simple, the battery module and the plurality of working modules are not shown in FIG4 ), 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).
其中,所述存储单元存储有程序代码,所述程序代码可以被所述处理单元310执行,使得所述处理单元310执行本说明书上述示例性方法的描述部分中描述的根据本发明各种示例性实施方式的步骤。例如,所述处理单元310可以执行如图2中所示的各个步骤。The storage unit stores a program code, which can be executed by the processing unit 310, so that the processing unit 310 performs the steps according to various exemplary embodiments of the present invention described in the description section of the exemplary method described above in this specification. For example, the processing unit 310 can perform the various steps shown in Figure 2.
存储单元320可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)3201、高速缓存存储单元3202、只读存储单元(ROM)3203中的一种或多种。The storage unit 320 may include a readable medium in the form of a volatile storage unit, such as one or more of a random access memory unit (RAM) 3201 , a cache memory unit 3202 , and a read-only memory unit (ROM) 3203 .
存储单元320还可以包括具有一组(至少一个)程序模块3205的程序/实用工具3204,这样的程序模块3205包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。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 of which or some combination may include an implementation of a network environment.
总线330可以为表示几类总线结构中的一种或多种,例如存储单元总线、外围总线等多种总线结构中的任意一种或多种。The bus 330 may represent one or more of several types of bus structures, such as any one or more of a storage unit bus, a peripheral bus, and the like.
电子设备30也可以与一个或多个外部设备400(例如键盘等)通信。这种通信可以通过输入/输出(I/O)接口350进行。输入/输出(I/O)接口350还可以与显示单元340相连。The electronic device 30 may also communicate with one or more external devices 400 (eg, a keyboard, etc.). Such communication may be performed via an input/output (I/O) interface 350. The input/output (I/O) interface 350 may also be connected to a display unit 340.
并且,电子设备30还可以通过网络适配器360与一个或者多个网络(例如局域网(Local Area Network,LAN)、因特网(Internet)等)通信。如图所示,网络适配器360通过总线330与电子设备30的其它模块通信。Furthermore, the electronic device 30 can also communicate with one or more networks (such as a local area network (LAN), the Internet, etc.) through the network adapter 360. As shown in the figure, the network adapter 360 communicates with other modules of the electronic device 30 through the bus 330.
应当明白,尽管图中未示出,可以结合电子设备30使用其它硬件和/或软件模块,例如设备驱动器、外部磁盘驱动阵列、磁带驱动器等。It should be understood that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 30, such as device drivers, external disk drive arrays, tape drives, etc.
在本发明所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地 方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple 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 each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims (10)

  1. 一种电子设备的控制方法,应用于所述电子设备的主控模块;所述电子设备还包括电池模块和多个工作模块;所述电池模块和各所述工作模块均与所述主控模块通讯连接;所述方法包括:A control method of an electronic device is applied to a main control module of the electronic device; the electronic device further comprises a battery module and a plurality of working modules; the battery module and each of the working modules are communicatively connected to the main control module; the method comprises:
    获取所述电池模块的初始电量参数值;Obtaining an initial power parameter value of the battery module;
    在每个预设周期内,通过通讯获取各工作模块的累计电量参数值;所述累计电量参数值被配置为表征所述工作模块从初始时刻开始累计的流经所述工作模块的总电量;In each preset cycle, the cumulative power parameter value of each working module is obtained through communication; the cumulative power parameter value is configured to represent the total power flowing through the working module accumulated from the initial moment;
    根据所述初始电量参数值以及各所述累计电量参数值得到所述电子设备的第一荷电状态;Obtaining a first state of charge of the electronic device according to the initial power parameter value and each of the accumulated power parameter values;
    在当前周期获取到的第一荷电状态与上一周期获取到的第一荷电状态之间的差值的绝对值大于第一预设阈值时,确定至少一个工作模块与所述主控模块之间的通讯连接存在异常。When 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 is greater than a first preset threshold, it is determined that there is an abnormality in the communication connection between at least one working module and the main control module.
  2. 根据权利要求1所述的方法,其特征在于,在所述确定至少一个工作模块与所述主控模块之间的通讯连接存在异常之后,还包括:The method according to claim 1, characterized in that after determining that there is an abnormality in the communication connection between at least one working module and the main control module, it also includes:
    检测未发送所述累计电量参数值的工作模块,将未发送所述累计电量参数值的工作模块确定为通讯异常模块。The working module that has not sent the accumulated power parameter value is detected, and the working module that has not sent the accumulated power parameter value is determined as a communication abnormality module.
  3. 根据权利要求2所述的方法,其特征在于,在所述将未发送所述累计电量参数值的工作模块确定为通讯异常模块之后,还包括:The method according to claim 2 is characterized in that, after determining the working module that does not send the accumulated power parameter value as a communication abnormality module, it also includes:
    将所述通讯异常模块最近一次发送的累计电量参数值作为当前周期获取到的所述通讯异常模块对应的累计电量参数值;The accumulated power parameter value sent most recently by the communication abnormality module is used as the accumulated power parameter value corresponding to the communication abnormality module obtained in the current cycle;
    根据所述初始电量值以及在当前周期获取到的各累计电量参数值,更新当前周期的第一荷电状态。The first state of charge of the current cycle is updated according to the initial power value and each accumulated power parameter value acquired in the current cycle.
  4. 根据权利要求1所述的方法,其特征在于,在所述根据所述初始电量参数值以及各所述累计电量参数值得到所述电子设备的第一荷电状态之后,所述方法还包括:The method according to claim 1, characterized in that after obtaining the first state of charge of the electronic device according to the initial power parameter value and each of the accumulated power parameter values, the method further comprises:
    在当前周期获取到的第一荷电状态与上一周期获取到的第一荷电状态之间的差值的绝对值小于或等于所述第一预设阈值时,确定各所述工作模块与所述主控模块通讯连接正常。When 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 is less than or equal to the first preset threshold, it is determined that the communication connection between each of the working modules and the main control module is normal.
  5. 根据权利要求4所述的方法,其特征在于,在所述根据所述初始电量参数值以及各所述累计电量参数值得到所述电子设备的第一荷电状态之后,所述方法还包括:The method according to claim 4, characterized in that after obtaining the first state of charge of the electronic device according to the initial power parameter value and each of the accumulated power parameter values, the method further comprises:
    在当前周期获取到的第一荷电状态与上一周期获取到的第一荷电状态之间的差值的绝对值小于或等于所述第一预设阈值时,显示当前周期获取到的第一荷电状态。When 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 is less than or equal to the first preset threshold, the first state of charge acquired in the current cycle is displayed.
  6. 根据权利要求5所述的方法,其特征在于,所述显示当前周期获取到的第一荷电状态,包括:The method according to claim 5, characterized in that displaying the first state of charge acquired in the current cycle comprises:
    获取上一周期的显示荷电状态;Get the displayed state of charge of the previous cycle;
    在当前周期获取到的第一荷电状态与上一周期的显示荷电状态之间的差值的绝对值小于或等于第二预设阈值时,将当前周期获取到的第一荷电状态确定为当前周期的显示荷电状态并显示。When the absolute value of the difference between the first state of charge acquired in the current cycle and the displayed state of charge in the previous cycle is less than or equal to the second preset threshold, the first state of charge acquired in the current cycle is determined as the displayed state of charge in the current cycle and displayed.
  7. 根据权利要求1所述的方法,其特征在于,在所述确定至少一个工作模块与所述主控模块之间的通讯连接存在异常之后,所述方法还包括:The method according to claim 1, characterized in that after determining that there is an abnormality in the communication connection between at least one working module and the main control module, the method further comprises:
    生成提示信息,所述提示信息被配置为提示所述通讯连接存在异常。Prompt information is generated, where the prompt information is configured to prompt that an abnormality exists in the communication connection.
  8. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, characterized in that the method further comprises:
    在每个预设周期内,分别获取各所述工作模块的采样电流值;In each preset cycle, the sampling current value of each working module is obtained respectively;
    根据各所述采样电流值以及所述初始电量参数值计算所述设备的第二荷电状态;Calculating a second state of charge of the device according to each of the sampled current values and the initial power parameter value;
    在第一荷电状态与第二荷电状态之间的差值的绝对值小于所述预设阈值时,根据所述第一荷电状态与所述第二荷电状态确定所述设备的显示荷电状态并显示。When the absolute value of the difference between the first state of charge and the second state of charge is less than the preset threshold, the display state of charge of the device is determined and displayed according to the first state of charge and the second state of charge.
  9. 一种电子设备,包括:An electronic device, comprising:
    电池模块;Battery modules;
    多个工作模块;Multiple working modules;
    一个或多个处理器;所述电池模块、各所述工作模块和所述处理器通讯连接;One or more processors; the battery module, each of the working modules and the processor are communicatively connected;
    存储装置,被配置为存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述电子设备实现权利要求1至8任一项所述的方法。The storage device is configured to store one or more programs, and when the one or more programs are executed by the one or more processors, the electronic device implements the method according to any one of claims 1 to 8.
  10. 一种计算机可读存储介质,其上存储有计算机可读指令,当所述计算机可读指令被计算机的处理器执行时,使计算机执行权利要求1至8任一项所述的方法。A computer-readable storage medium having computer-readable instructions stored thereon, which, when executed by a processor of a computer, causes the computer to execute the method according to any one of claims 1 to 8.
PCT/CN2022/127737 2022-10-26 2022-10-26 Control method for electronic device, and electronic device and storage medium WO2024087061A1 (en)

Priority Applications (2)

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
CN202280005048.4A CN116114137A (en) 2022-10-26 2022-10-26 Electronic device control method, electronic device and storage medium

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
WO2024087061A1 true WO2024087061A1 (en) 2024-05-02

Family

ID=86264224

Family Applications (1)

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

Country Status (2)

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

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117686915A (en) * 2023-12-04 2024-03-12 广东天汇储能科技有限公司 Method, device and equipment for determining energy state of embedded battery

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150355286A1 (en) * 2013-01-22 2015-12-10 Sanyo Electric Co., Ltd. System for estimating failure in cell module
CN111679206A (en) * 2020-06-01 2020-09-18 Oppo(重庆)智能科技有限公司 Electric quantity detection method and device, and storage medium
CN113740745A (en) * 2020-05-29 2021-12-03 北京金风科创风电设备有限公司 Battery detection method, device, medium and system
WO2021244085A1 (en) * 2020-06-04 2021-12-09 珠海格力电器股份有限公司 Soc value display method and display device, and energy storage system
CN114661555A (en) * 2022-03-29 2022-06-24 Oppo广东移动通信有限公司 Equipment monitoring method, device, server and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150355286A1 (en) * 2013-01-22 2015-12-10 Sanyo Electric Co., Ltd. System for estimating failure in cell module
CN113740745A (en) * 2020-05-29 2021-12-03 北京金风科创风电设备有限公司 Battery detection method, device, medium and system
CN111679206A (en) * 2020-06-01 2020-09-18 Oppo(重庆)智能科技有限公司 Electric quantity detection method and device, and storage medium
WO2021244085A1 (en) * 2020-06-04 2021-12-09 珠海格力电器股份有限公司 Soc value display method and display device, and energy storage system
CN114661555A (en) * 2022-03-29 2022-06-24 Oppo广东移动通信有限公司 Equipment monitoring method, device, server and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
BAO, HUI; YU, YANG: "State of Charge Estimation Calibration Based on Ampere-Hour Method", JISUANJI-FANGZHEN = COMPUTER SIMULATION, ZHONGGUO HANGTIAN GONGYE ZONGGONGSI, CN, vol. 30, no. 11, 30 November 2013 (2013-11-30), CN , pages 148 - 151, 159, XP009554743, ISSN: 1006-9348 *

Also Published As

Publication number Publication date
CN116114137A (en) 2023-05-12

Similar Documents

Publication Publication Date Title
CN102195304B (en) Method and device for managing service time of cell and portable computer
US9041356B2 (en) Battery charge management using a scheduling application
US7630843B2 (en) Method, apparatus, and system for power source failure prediction
JP2708344B2 (en) Computer system
JP5816906B2 (en) Battery status monitoring system
JP4615439B2 (en) Secondary battery management device, secondary battery management method and program
JP5303577B2 (en) Backup power supply system and method
TWI544714B (en) Platform device, article and system for adaptive demand/response energy management
US11422601B2 (en) Methods and systems for advanced battery charge capacity forecasting
CN106338690A (en) Standby battery detection method, device and system and power supply method
CN103135731A (en) Method and device for intelligent power supply control for portable computer
WO2024087061A1 (en) Control method for electronic device, and electronic device and storage medium
CN105068915B (en) Electric power controller and method
US20150229128A1 (en) Method of managing electric power, power management device, and program
US11846677B2 (en) Method and apparatus for monitoring battery backup unit, server, and readable storage medium
CN106100037B (en) A kind of charging method and charging unit
JP2011086174A (en) Information processor and power consumption measuring device
JP6560359B2 (en) Power management server and power management method
JP2023553088A (en) Power battery charging method and battery management system
JP4028841B2 (en) Computer apparatus, power control method, and program
CN117639036B (en) Charging and discharging planning method and system for charging pile
US20230129347A1 (en) Real Time Backup Battery Life Check
CN115313552A (en) Method, device, equipment and medium for determining charging strategy of power consumption terminal
CN116691444A (en) Fault judging method, device and equipment of vehicle power supply system
CN115848144A (en) Battery power supplementing method, storage medium and battery management system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22963045

Country of ref document: EP

Kind code of ref document: A1