BMS power supply status detection method, controller, system and storage medium

By performing refined detection of the BMS power supply voltage and adjusting adjacent gears, low-voltage instability and high-voltage instability state detection, the problem of low accuracy of existing BMS power supply state detection is solved, and high-precision detection of the power supply voltage is achieved. Stability monitoring.

CN118050652BActive Publication Date: 2024-12-17CHENGDU XUSHANYU CONSTRUCTION ENGINEERING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311219368.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-20
Publication Date
2024-12-17
Estimated Expiration
2043-09-20

AI Technical Summary

Technical Problem

The existing BMS has low accuracy when detecting power supply voltage, which cannot meet the requirements for equipment with high supply voltage accuracy, and cannot perform refined division and stability detection.

Method used

By sampling the initial power supply voltage of the power supply voltage, it is divided into low voltage, normal voltage and high voltage states, and power supply adjustment and detection of adjacent gear positions is carried out according to preset judgment rules, and the detection of low voltage instability and high voltage instability states is increased to achieve More refined power supply voltage status grading.

Benefits of technology

It improves the accuracy of BMS power supply status detection, can meet the equipment needs with high power supply voltage accuracy, reduce power supply abnormalities, and extend the service life of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118050652B_ABST
    Figure CN118050652B_ABST
Patent Text Reader

Abstract

The present invention discloses a BMS power supply status detection method, controller, system and storage medium; the method obtains an initial power supply voltage state, adjusts the initial power supply voltage state to adjust the power supply of adjacent gears, and if the initial power supply voltage state is a low voltage state, detects whether the power supply voltage state of the adjacent gear is in a normal voltage state, a low voltage state or a low voltage unstable state according to a first preset judgment rule; if the initial power supply voltage state is a normal voltage state, detects whether the power supply voltage state of the adjacent gear is in a low voltage state, a low voltage unstable state, a high voltage state, a high voltage unstable state or a normal voltage state according to a second preset judgment rule; if the initial power supply voltage state is a high voltage state, determines whether the power supply voltage state of the adjacent gear is in a high voltage state, a high voltage unstable state or a normal voltage state according to a third preset judgment rule, thereby solving the technical problems in the related art that the power supply voltage detection accuracy is low and it is impossible to power equipment with high power supply accuracy requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of BMS power supply detection, and in particular to a BMS power supply status detection method, controller, system and storage medium. Background Art

[0002] BMS (BATTERY MANAGEMENT SYSTEM) is an important management method for battery management. It monitors the battery status to ensure that the battery is working in a good state. When BMS controls the battery supply voltage to adjust, short-term voltage value fluctuations often occur. For devices that require high power supply voltage accuracy, voltage value fluctuations often reduce the function or service life of the device. In related technologies, BMS mainly divides the supply voltage into three levels of low voltage, normal voltage and high voltage for power output after ADC voltage sampling of the battery and a period of voltage oscillation. However, for devices that require high power supply voltage accuracy, the power supply voltage is only divided into low voltage, normal voltage or high voltage. There is still a risk of power supply. If the power supply voltage is continuously unstable at a certain level, it still cannot meet the device's requirements for power supply voltage.

[0003] Therefore, how to solve the problem that the BMS in the related art cannot finely divide the power supply voltage to ensure the accuracy of the power supply voltage has become a technical problem that technical personnel in this field urgently need to solve. Summary of the invention

[0004] The embodiments of the present invention provide a BMS power supply status detection method, a controller, a system and a storage medium, so as to solve the technical problem in the related art that the BMS cannot perform refined detection of the power supply status.

[0005] In a first aspect, an embodiment of the present invention provides a BMS power supply status detection method, comprising:

[0006] Sampling the initial supply voltage of the power supply to obtain an initial supply voltage state, wherein the initial supply voltage state includes a low voltage state, a normal voltage state, and a high voltage state;

[0007] Adjusting the power supply to adjacent gears based on the initial power supply voltage state;

[0008] If the initial power supply voltage state is the low voltage state, detecting whether the adjacent gear power supply voltage state is in a normal voltage state, a low voltage state or a low voltage unstable state according to a first preset judgment rule;

[0009] If the initial power supply voltage state is the normal pressure state, then according to the second preset judgment rule, the adjacent gear power supply voltage state is detected to be in a low voltage state, a low voltage unstable state, a high voltage state, a high voltage unstable state or a normal pressure state;

[0010] If the initial power supply voltage state is the high voltage state, the adjacent gear power supply voltage state is detected to be in the high voltage state, the high voltage unstable state or the normal voltage state according to the third preset judgment rule.

[0011] The BMS power supply status detection method of the embodiment of the present invention has at least the following beneficial effects:

[0012] In an embodiment of the present invention, a BMS power supply status detection method is provided, which obtains an initial power supply voltage state by sampling an initial power supply voltage of a power source, wherein the initial power supply voltage state includes a low voltage state, a normal voltage state and a high voltage state, and after the initial power supply voltage state is adjusted to perform adjacent gear power supply adjustment, if the initial power supply voltage state is a low voltage state, then the adjacent gear power supply voltage state is detected to be in a normal voltage state, a low voltage state or a low voltage unstable state according to a first preset judgment rule; if the initial power supply voltage state is a normal voltage state, then the adjacent gear power supply voltage state is detected to be in a low voltage state, a low voltage unstable state, a high voltage state, a high voltage unstable state or a normal voltage state according to a second preset judgment rule; if the initial power supply voltage state is a high voltage state, then the adjacent gear power supply voltage state is judged to be in a high voltage state, a high voltage unstable state or a normal voltage state according to a third preset judgment rule, which solves the technical problems in the related art that the power supply voltage detection has low detection accuracy and cannot power equipment with high power supply accuracy requirements, and provides a high-precision BMS power supply status detection method.

[0013] According to some other embodiments of the present invention, the BMS power supply status detection method further includes:

[0014] Determining whether the adjacent gear power supply voltage state is in a preset power supply voltage state;

[0015] If so, the output power supply voltage is normal.

[0016] Otherwise, the power supply abnormality protection mechanism is triggered and the power supply abnormality information is fed back.

[0017] According to some other embodiments of the present invention, the BMS power supply status detection method, detecting that the power supply voltage status of an adjacent gear is in a normal voltage state, a low voltage state, or a low voltage unstable state according to a first preset judgment rule, includes:

[0018] Within a first preset time period, collecting a first preset number of first real-time power supply voltage values, and taking the valid number of times that the first real-time power supply voltage value is greater than or equal to the voltage value of the normal voltage state as a first detection value;

[0019] If the first detection value is greater than or equal to a first preset threshold, it is determined that the adjacent gear power supply voltage state is a normal voltage state;

[0020] If the first detection value is less than the first preset threshold, collecting the first current voltage value;

[0021] Determining whether the first current voltage value is greater than or equal to the voltage value of the normal voltage state;

[0022] If yes, it is determined that the adjacent gear power supply voltage state is a low voltage unstable state;

[0023] Otherwise, it is determined that the adjacent gear power supply voltage state is a low voltage state.

[0024] According to some other embodiments of the present invention, the BMS power supply status detection method, detecting the adjacent gear power supply voltage status as a low voltage state, a low voltage unstable state, a high voltage state, a high voltage unstable state or a normal voltage state according to the second preset judgment rule, includes:

[0025] Within a second preset time period, collecting a second preset number of second real-time power supply voltage values, and obtaining the valid number of times that the second real-time power supply voltage value is greater than or equal to the voltage value in the low voltage state as a second detection value;

[0026] If the second detection value is greater than or equal to a second preset threshold, it is determined that the adjacent gear power supply voltage state is a low voltage state;

[0027] Otherwise, it is determined that the adjacent gear power supply voltage state is a low voltage unstable state;

[0028] The effective number of times that the second real-time power supply voltage value is greater than or equal to the voltage value of the high-voltage state within the second preset time length is a third detection value;

[0029] If the third detection value is greater than or equal to the third preset threshold, it is determined that the adjacent gear supply voltage state is the high voltage state;

[0030] Otherwise, it is determined that the adjacent gear power supply voltage state is a high-voltage unstable state;

[0031] If within the second preset time period, the second real-time power supply voltage value obtained is greater than the voltage value of the low voltage state and less than the voltage value of the high voltage state, then the adjacent gear power supply voltage state is judged to be a normal pressure state.

[0032] According to some other embodiments of the present invention, the BMS power supply status detection method, detecting that the adjacent gear power supply voltage state is in a high voltage state, a high voltage unstable state or a normal voltage state according to the third preset judgment rule, includes:

[0033] Within a third preset time period, collecting a third real-time power supply voltage value for a third preset number of times, and obtaining a valid number of times that the third power supply voltage value is less than the voltage value in the normal voltage state as a fourth detection value;

[0034] If the fourth detection value is greater than or equal to a fourth preset threshold, it is determined that the adjacent gear supply voltage state is the normal voltage state;

[0035] Otherwise, collecting the second current voltage value;

[0036] If the second current voltage value is less than the voltage value of the normal voltage state, it is determined that the adjacent gear power supply voltage state is a high-voltage unstable state;

[0037] Otherwise, it is determined that the adjacent gear supply voltage state is a high voltage state.

[0038] According to some other embodiments of the present invention, the BMS power supply status detection method further includes:

[0039] Every fourth preset time period, the current power supply voltage state is self-checked. If the self-check result of the current power supply voltage state is inconsistent with the adjacent gear power supply voltage state, the power supply abnormality protection mechanism is triggered and the power supply abnormality information is fed back.

[0040] In a second aspect, an embodiment of the present invention provides a BMS controller, including:

[0041] A voltage initial state acquisition unit, used for sampling the initial supply voltage of the power supply to obtain an initial supply voltage state, wherein the initial supply voltage state includes a low voltage state, a normal voltage state and a high voltage state;

[0042] A power supply state adjustment unit, used to adjust the initial power supply voltage state to adjacent gear power supply;

[0043] A first detection unit, used for detecting, when the initial power supply voltage state is the low voltage state, whether the adjacent gear power supply voltage state is in a normal voltage state, a low voltage state or a low voltage unstable state according to a first preset judgment rule;

[0044] A second detection unit is used to detect whether the power supply voltage state of an adjacent gear is a low voltage state, a low voltage unstable state, a high voltage state, a high voltage unstable state or a normal voltage state according to a second preset judgment rule when the initial power supply voltage state is the normal voltage state;

[0045] A third detection unit is used to detect whether the adjacent gear power supply voltage state is in the high pressure state, the high pressure unstable state or the normal pressure state according to a third preset judgment rule when the initial power supply voltage state is in the high pressure state.

[0046] The BMS controller according to some other embodiments of the present invention further includes: a power supply status information prompt unit and a power supply abnormality protection unit;

[0047] The power supply status information prompt unit is used to output normal power supply voltage prompt information or abnormal power supply voltage prompt information;

[0048] The power supply abnormality protection unit is used to trigger a power supply abnormality protection mechanism when the power supply voltage is abnormal.

[0049] In a third aspect, an embodiment of the present invention provides a battery powered system, including a battery pack and a BMS controller;

[0050] The BMS controller detects the power supply status of the battery pack using the BMS power supply status detection method described above.

[0051] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores an executable program, and the executable program is executed by a processor to implement the BMS power supply status detection method as described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 It is a flowchart of a specific embodiment of a BMS power supply status detection method according to an embodiment of the present invention;

[0053] Figure 2 It is a schematic flow chart of a specific sub-step of step S300 in a method for detecting a BMS power supply status according to an embodiment of the present invention;

[0054] Figure 3 It is a schematic diagram of a practical application implementation of a specific embodiment of step S300 in a BMS power supply status detection method according to an embodiment of the present invention;

[0055] Figure 4 It is a schematic flow chart of a specific sub-step of step S400 in a method for detecting a BMS power supply status according to an embodiment of the present invention;

[0056] Figure 5 It is a schematic diagram of a practical application implementation of a specific embodiment of step 400 in a BMS power supply status detection method according to an embodiment of the present invention;

[0057] Figure 6 It is a schematic flow chart of a specific sub-step of step S500 in a method for detecting a BMS power supply status according to an embodiment of the present invention;

[0058] Figure 7It is a schematic diagram of a practical application implementation of a specific embodiment of step 500 in a BMS power supply status detection method according to an embodiment of the present invention;

[0059] Figure 8 This is a circuit structure diagram of a specific embodiment of voltage sampling in a BMS power supply status detection method according to an embodiment of the present invention;

[0060] Fig. 9 It is a module schematic diagram of a specific embodiment of a BMS controller according to an embodiment of the present invention;

[0061] Fig.10 It is a module schematic diagram of a specific embodiment of a battery power supply system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0062] The following will clearly and completely describe the concept of the invention and the technical effects produced in combination with the embodiments, so as to fully understand the purpose, characteristics and effects of the invention. Obviously, the described embodiments are only part of the embodiments of the invention, not all of them. Based on the embodiments of the invention, other embodiments obtained by those skilled in the art without creative work are all within the scope of protection of the invention.

[0063] In the description of the embodiments of the present invention, if "several" is involved, it means more than one, if "multiple" is involved, it means more than two, if "greater than", "less than" or "exceed" is involved, it should be understood as not including the number itself, if "above", "below" or "within" is involved, it should be understood as including the number itself. If "first" or "second" is involved, it should be understood as being used to distinguish technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0064] Reference Figure 1 The embodiment of the present invention provides a method for detecting a BMS power supply status, which comprises the steps of:

[0065] S100, sampling the initial supply voltage of the power supply to obtain an initial supply voltage state;

[0066] The initial power supply voltage state includes a low voltage state, a normal voltage state and a high voltage state, and the power source includes at least one of a lithium battery pack, a storage battery pack or a battery cell.

[0067] S200, adjusting the power supply to adjacent gears according to the initial power supply voltage state;

[0068] Among them, the low voltage state and the normal voltage state are adjacent gears, and the normal voltage state and the high voltage state are adjacent gears. After the power supply of the adjacent gears is adjusted, there may be a situation where the voltage adjustment fails or the power supply voltage is unstable after adjustment, that is: if the initial power supply voltage state is a low voltage state, then its adjacent gear is a normal voltage state, and after the low voltage state is adjusted to the normal voltage state, the possibilities of the power supply voltage state of the adjacent gear include: normal voltage state, low voltage state and low voltage unstable state; if the initial power supply voltage state is a normal voltage state, then its adjacent gear is a low voltage state and a high voltage state, and the possibilities of the power supply voltage state of the adjacent gear after the normal voltage state is adjusted to the low voltage state include: low voltage state, low voltage unstable state, normal voltage state; the possibilities of the power supply voltage state of the adjacent gear after the normal voltage state is adjusted to the high voltage state include: high voltage state, high voltage unstable state, normal voltage state.

[0069] S300, if the initial power supply voltage state is a low voltage state, detecting whether the power supply voltage state of an adjacent gear is in a normal voltage state, a low voltage state, or a low voltage unstable state according to a first preset judgment rule;

[0070] S400, if the initial power supply voltage state is a normal pressure state, detecting, according to a second preset judgment rule, whether the power supply voltage state of an adjacent gear is a low voltage state, a low voltage unstable state, a high voltage state, a high voltage unstable state or a normal pressure state;

[0071] S500: If the initial power supply voltage state is a high voltage state, then according to a third preset judgment rule, detect whether the power supply voltage state of an adjacent gear is in a high voltage state, a high voltage unstable state or a normal voltage state.

[0072] In this embodiment, after the power supply voltage is adjusted to adjacent gears, the unstable power supply voltage is added to the three power supply voltage states of low voltage state, normal voltage state and high voltage state, so that the power supply voltage state is more refined and divided into detection grades, which can meet the power supply of equipment with high power supply voltage accuracy requirements and improve the applicability of the power supply system. In this embodiment, after the initial power supply voltage is sampled, the initial power supply voltage state is obtained. When the initial power supply voltage state is adjusted to adjacent gears, if the initial power supply voltage state is a low voltage state, the adjacent gear power supply voltage state is detected according to the first preset judgment rule; if the initial power supply voltage is a normal voltage state, the adjacent gear power supply voltage state is detected according to the second preset judgment rule; if the initial power supply voltage is a high voltage state, the adjacent gear power supply voltage state is detected according to the third preset judgment rule; it solves the technical problem that the BMS power supply state detection in the related art only divides the power supply voltage into three gears for detection, and the detection accuracy is low and the requirements of equipment with high power supply accuracy cannot be met.

[0073] In some embodiments, the BMS power supply status detection method further includes the steps of:

[0074] S600, determining whether the power supply voltage state of the adjacent gear is in a preset power supply voltage state;

[0075] If yes, then execute the steps:

[0076] S700, output power supply voltage is normal;

[0077] Otherwise, perform the following steps:

[0078] S800. Trigger the power supply abnormality protection mechanism and feedback the power supply abnormality information.

[0079] In this embodiment, after the adjacent gear adjustment of the initial power supply voltage state is obtained in the above embodiment, the corresponding adjacent gear power supply voltage state is obtained. At this time, it is determined whether the adjacent gear power supply voltage state is consistent with the preset power supply voltage state. If they are consistent, it means that the power supply voltage state is normal at this time, and the normal power supply voltage prompt information is output to prompt the user that the current power supply voltage state is normal; if the adjacent gear power supply voltage state is inconsistent with the preset power supply voltage state, for example: the initial power supply voltage state needs to be adjusted from the low voltage state to the preset power supply voltage state as the normal voltage state for power supply, and at this time, through step S300 in the above embodiment, it is detected that the adjacent gear power supply voltage state is a low voltage unstable state or a low voltage state, then the adjacent gear power supply voltage state obtained at this time is inconsistent with the preset power supply voltage state, that is, the power supply abnormality protection mechanism is triggered, and the power supply abnormality information is fed back to remind the user that the current power supply voltage state is abnormal.

[0080] In some embodiments, the normal power supply voltage indication output in step S700 of the above embodiment is to control the normal power supply indication light to work by outputting a control signal; the power supply abnormality protection mechanism is triggered in step S800, and the power supply abnormality information is fed back specifically including: outputting a control signal to control the power supply to stop supplying power to the outside, and at the same time controlling the power supply abnormality indication light to work.

[0081] Reference Figure 2 In some embodiments, if the initial power supply voltage state is a low voltage state, step S300 detects whether the adjacent gear power supply voltage state is in a normal voltage state, a low voltage state, or a low voltage unstable state according to a first preset judgment rule, including sub-steps:

[0082] S310, collecting a first real-time power supply voltage value for a first preset number of times within a first preset time period;

[0083] Among them, the first preset duration is usually set to the voltage oscillation duration. The first preset duration and the first preset number are related to the application scenario and hardware device performance. The first preset duration and the first preset number can be adjusted according to different application scenarios and hardware device adaptability.

[0084] S320, taking the valid number of times that the first real-time power supply voltage value is greater than or equal to the voltage value of the normal voltage state as the first detection value;

[0085] Among them, since voltage fluctuations occur when the power supply state is adjusted from the low voltage state to the normal voltage state, the collected first real-time power supply voltage value may be greater than or equal to the voltage value of the normal voltage state, and may also be less than the voltage value of the normal voltage state. Therefore, the counting method of the valid times in this step is: the first valid times are when the currently collected first real-time power supply voltage value is greater than or equal to the voltage value of the normal voltage state, and the subsequently collected first real-time power supply voltage value does not have a voltage value less than the normal voltage state.

[0086] S330, determining whether the first detection value is greater than or equal to a first preset threshold;

[0087] Among them, the first preset threshold is also related to the application scenario and the performance of the hardware device, and can be set adaptively or an ideal value can be obtained through experiments.

[0088] If yes, then execute the steps:

[0089] S340, determining that the power supply voltage state of the adjacent gear is a normal voltage state;

[0090] Otherwise, perform the following steps:

[0091] S350, collecting a first current voltage value;

[0092] The collected first current voltage value is the first current voltage value obtained by re-sampling the current power supply voltage when step S330 is not satisfied.

[0093] S360, determining whether the first current voltage value is greater than or equal to the voltage value of the normal voltage state;

[0094] If yes, then execute the steps:

[0095] S370, determining that the power supply voltage state of the adjacent gear is a low voltage unstable state;

[0096] Otherwise, perform the following steps:

[0097] S380: Determine whether the power supply voltage state of the adjacent gear is a low voltage state.

[0098] In this embodiment, since the initial power supply voltage state is a low voltage state, the adjacent gear power supply voltage state is a normal voltage state. Therefore, when adjusting the low voltage state, if the adjacent gear power supply voltage state is determined to be a normal voltage state in step S340, it means that the power supply voltage state is normal at this time, otherwise, it means that the power supply voltage state is abnormal (low voltage unstable state or low voltage state).

[0099] Reference Figure 3 In some embodiments, a specific implementation of step S300 in practical application is as follows:

[0100] In this embodiment, the initial power supply voltage state is a low voltage state. When the adjacent gear is adjusted to the normal voltage state, it is necessary to perform a state detection to confirm the adjacent gear power supply voltage state after the gear adjustment. Among them, within the first preset time length, the first real-time power supply voltage value collected each time is judged. If the voltage value is greater than or equal to the voltage value of the normal voltage state, the counter performs a self-increment action. The initial value of the counter is 0. Each time the self-increment action is performed, it increases by 1 compared to the previous value. If the voltage value is less than the voltage value of the normal voltage state, the counter is assigned a value of 0. Therefore, the cumulative time point when the first valid value of the counter is 1 is: when the first real-time voltage value collected is greater than or equal to the voltage value of the normal voltage state, and when the first real-time power supply voltage value collected subsequently does not have a voltage value less than the normal voltage state. After the first preset time, the collection of the first preset number of times is completed, and the final value of the counter, i.e., the first detection value (valid number of times), is obtained. If the first detection value is greater than or equal to the first preset threshold value, the detection result is that the power supply voltage state of the adjacent gear is in a normal pressure state (gear adjustment is successful); if the first detection value is less than the first preset threshold value, voltage collection is performed to obtain a first current voltage value. If the first current voltage value is greater than or equal to the voltage value of the normal pressure state, the detection result is that the power supply voltage state of the adjacent gear is in a low-voltage unstable state (gear adjustment fails), otherwise the detection result is that the power supply voltage state of the adjacent gear is in a low-voltage state (gear adjustment fails).

[0101] Reference Figure 4 In some embodiments, step S400 detects that the power supply voltage state of the adjacent gear is in a low voltage state, a low voltage unstable state, a high voltage state, a high voltage unstable state or a normal voltage state according to the second preset judgment rule, and includes sub-steps:

[0102] S410, collecting a second real-time supply voltage value a second preset number of times within a second preset time period;

[0103] Among them, the second preset duration is usually set to the voltage oscillation duration. The second preset duration and the second preset number are related to the application scenario and hardware device performance. The second preset duration and the second preset number can be adjusted according to different application scenarios and hardware device adaptability.

[0104] S420, taking the valid number of times that the second real-time power supply voltage value is greater than or equal to the voltage value in the low voltage state as the second detection value;

[0105] Among them, when the power supply state is adjusted from the normal voltage state to the low voltage state, the voltage fluctuation that occurs when the adjustment is just made may fluctuate in the direction of the low voltage state or in the direction of the high voltage state. Therefore, the counting method of the effective number of times in this step is: the second real-time power supply voltage value currently collected is less than or equal to the voltage value of the low voltage state, and the second real-time power supply voltage value collected subsequently is not greater than the voltage value of the low voltage state as the first effective number.

[0106] S430, determining whether the second detection value is greater than or equal to a second preset threshold;

[0107] Among them, the second preset threshold is also related to the application scenario and the performance of the hardware device, and can be set adaptively or an ideal value can be obtained through experiments.

[0108] If yes, then execute the steps:

[0109] S440, determining that the power supply state of the adjacent gear is in a low voltage state;

[0110] Otherwise, execute the following steps:

[0111] S450, determining that the power supply state of the adjacent gear is in a low voltage unstable state;

[0112] Wherein, while executing step S420, the following steps are also executed:

[0113] S460, taking the valid number of times that the second real-time power supply voltage value is greater than or equal to the voltage value in the high voltage state as the third detection value;

[0114] Among them, when the power supply state is adjusted from the normal voltage state to the high voltage state, the voltage fluctuation that occurs when the adjustment is just made may fluctuate in the direction of the low voltage state or in the direction of the high voltage state. Therefore, the counting method of the effective number of times in this step is: the second real-time power supply voltage value collected currently is greater than or equal to the voltage value of the high voltage state, and the second real-time power supply voltage value collected subsequently is not less than the voltage value of the high voltage state as the first effective number.

[0115] S470, determining whether the third detection value is greater than or equal to a third preset threshold;

[0116] Among them, the third preset threshold is also related to the application scenario and the performance of the hardware device, and can be set adaptively or the ideal value can be obtained through experiments.

[0117] If yes, then execute the steps:

[0118] S480, determining that the power supply state of the adjacent gear is in a high voltage state;

[0119] Otherwise, perform the following steps:

[0120] S490: Determine whether the power supply state of the adjacent gear is in a high-voltage unstable state.

[0121] In addition, in this embodiment, if the second real-time power supply voltage values ​​collected for the second preset number of times within the second preset time are greater than the voltage value of the low voltage state and less than the voltage value of the high voltage state, it is judged that the adjacent gear power supply state is in the normal pressure state.

[0122] Reference Figure 5 In some embodiments, a specific implementation of step S400 in practical application is as follows:

[0123] In this embodiment, when the initial power supply voltage is in a normal voltage state, its adjacent gear adjustment includes a low voltage state and a high voltage state. When adjusting to a low voltage state or a high voltage state, it is necessary to perform a state detection to confirm the adjacent gear power supply voltage state after the gear adjustment. Among them, when adjusting from a normal voltage state to a low voltage state, within a second preset time period, the second real-time power supply voltage value collected each time is judged. If the voltage value is less than or equal to the voltage value of the low voltage state, the voltage label value at this time is judged, and the initial value of the voltage label is assigned to 0. When adjusting from a normal voltage state to a low voltage state, the counter starts counting when the voltage label is 1 (that is, counting is started only when the collected second real-time power supply voltage value is less than or equal to the voltage value of the low voltage state). When the second real-time power supply voltage value collected next time is less than or equal to the voltage value of the low voltage state, the counter performs a self-incrementing action, and the counter The initial value is 0, and each time the self-increment action is executed, the value increases by 1 compared to the previous value. At the same time, if the second real-time power supply voltage value collected subsequently appears to be greater than the voltage value of the low-voltage state, the voltage label is assigned to 0 or 2, and the counter is assigned to 0. The final value of the counter is the second detection value (valid number of times). If the second detection value is greater than or equal to the second preset threshold, the state when the normal pressure state is adjusted to the low pressure state is judged to be a low pressure state (meets the requirements). If the second detection value is less than the second preset threshold, the state when the normal pressure state is adjusted to the low pressure state is judged to be a low pressure unstable state (does not meet the requirements). At the same time, when the normal pressure state is adjusted to the high-voltage state, within the second preset time, the second real-time power supply voltage value collected each time is judged. If the voltage value is greater than or equal to the voltage value of the high-voltage state, the voltage label value at this time is judged, and the initial value of the voltage label is assigned to 0. When the normal pressure state is adjusted to the high-voltage state, the counter starts counting when the voltage label is 2 (that is, counting is started only when the collected second real-time power supply voltage value is greater than or equal to the voltage value of the high-voltage state). When the next collected second real-time power supply voltage value is greater than or equal to the voltage value of the high-voltage state, the counter performs a self-incrementing action, and the initial value of the counter is 0. , each time the self-increment action is executed, the value increases by 1 compared to the previous value. At the same time, if the second real-time power supply voltage value collected subsequently appears to be less than the voltage value of the high-voltage state, the voltage label is assigned to 0 or 2, and the counter is assigned to 0. After the second preset time, the value of the counter is the third detection value (valid times). If the third detection value is greater than or equal to the third preset threshold, the state when the normal pressure state is adjusted to the high-voltage state is judged to be a high-voltage state (meets the requirements). If the third detection value is less than the third preset threshold, the state when the normal pressure state is adjusted to the high-voltage state is judged to be a high-voltage unstable state (does not meet the requirements). In this embodiment, the counters used to obtain the second detection value and the third detection value correspond to different counters.

[0124] Reference Figure 6In some embodiments, step S500 detects that the adjacent gear power supply voltage state is in a high-voltage state, a high-voltage unstable state, or a normal-voltage state according to a third preset judgment rule, and includes the steps of:

[0125] S510, collecting a third real-time power supply voltage value for a third preset number of times within a third preset time period;

[0126] Among them, the third preset duration is usually set to the voltage oscillation duration. The third preset duration and the third preset number are related to the application scenario and hardware device performance. The third preset duration and the third preset number can be adjusted according to different application scenarios and hardware device adaptability.

[0127] S520, taking the valid number of times that the third real-time power supply voltage value is greater than or equal to the voltage value of the normal voltage state as the third detection value;

[0128] Among them, since voltage fluctuations occur when the power supply state is adjusted from the high-voltage state to the normal-voltage state, the collected third real-time power supply voltage value has a voltage value greater than or equal to the normal-voltage state, and also has a voltage value less than the normal-voltage state. Therefore, the counting method of the valid times in this step is: the first valid times are when the currently collected third real-time power supply voltage value has a voltage value less than the normal-voltage state, and the subsequently collected third real-time power supply voltage value does not have a voltage value greater than or equal to the normal-voltage state.

[0129] S530, determining whether the third detection value is greater than or equal to a fourth preset threshold;

[0130] Among them, the fourth preset threshold is also related to the application scenario and the performance of the hardware device, and can be set adaptively or an ideal value can be obtained through experiments.

[0131] If yes, then execute the steps:

[0132] S540, determining that the power supply voltage state of the adjacent gear is a normal voltage state;

[0133] Otherwise, perform the following steps:

[0134] S550, collecting a second current voltage value;

[0135] The collected second current voltage value is the second current voltage value obtained by re-sampling the current power supply voltage when step S530 is not satisfied.

[0136] S560, determining whether the second current voltage value is less than the voltage value of the normal voltage state;

[0137] If yes, then execute the steps:

[0138] S570, determining that the power supply voltage state of the adjacent gear is a high voltage unstable state;

[0139] Otherwise, perform the following steps:

[0140] S580: Determine whether the adjacent gear power supply voltage state is a high voltage state.

[0141] In this embodiment, since the initial power supply voltage state is a high voltage state, the adjacent gear power supply voltage state is a normal voltage state. Therefore, when adjusting the high voltage state, if the adjacent gear power supply voltage state is determined to be a normal voltage state in step S540, it means that the power supply voltage state is normal at this time, otherwise, it means that the power supply voltage state is abnormal (high voltage unstable state or high voltage state).

[0142] Reference Figure 7 In some embodiments, a specific implementation of step S500 in practical application is as follows:

[0143] In this embodiment, the initial power supply voltage state is a high voltage state. When the adjacent gear is adjusted to the normal voltage state, it is necessary to perform a state detection to confirm the adjacent gear power supply voltage state after the gear adjustment. Among them, within the third preset time length, the third real-time power supply voltage value collected each time is judged. If the voltage value is less than the voltage value of the normal voltage state, the counter performs a self-increment action. The initial value of the counter is 0. Each time the self-increment action is performed, it increases by 1 compared to the previous value. If the voltage value is greater than or equal to the voltage value of the normal state, the counter is assigned a value of 0. Therefore, the first effective value of the counter is 1. The cumulative time point is: when the collected third real-time voltage value is less than the voltage value of the normal voltage state, and the subsequent collected third real-time power supply voltage value does not have a voltage value greater than or equal to the normal voltage state. After the third preset time, the collection of the third preset number of times is completed, and the final value of the counter, i.e., the third detection value (valid number of times), is obtained. If the third detection value is greater than or equal to the fourth preset threshold, the detection result is that the power supply voltage state of the adjacent gear is in a normal pressure state (gear adjustment is successful); if the third detection value is less than the fourth preset threshold, voltage collection is performed to obtain a second current voltage value. If the second current voltage value is less than the voltage value of the normal pressure state, the detection result is that the power supply voltage state of the adjacent gear is in a high-voltage unstable state (gear adjustment fails), otherwise the detection result is that the power supply voltage state of the adjacent gear is in a high-voltage state (gear adjustment fails).

[0144] In some embodiments, the BMS power supply status detection method of the embodiment of the present invention further includes the steps of:

[0145] S900. Perform a self-check on the current power supply voltage state every fourth preset time period. If the self-check result of the current power supply voltage state is inconsistent with the power supply voltage state of the adjacent gear, trigger the power supply abnormality protection mechanism and feedback the power supply abnormality information.

[0146] Among them, the fourth preset duration is also adaptively set according to the application scenario. The purpose of the state self-check is to prevent the current power supply state from changing due to the influence of the equipment or the environment, thereby causing the current power supply state to fail to meet the power supply requirements of the power consumption equipment and affect the performance or service life of the power consumption equipment. Therefore, by self-checking the current power supply voltage state, it can be ensured that the current power supply voltage state meets the requirements of the power consumption equipment or by triggering the power supply abnormality protection mechanism, the power supply output is stopped to prevent the power consumption equipment from being affected.

[0147] Reference Figure 8 In some embodiments, the voltage acquisition in any of the above embodiments is collected by ADC voltage sampling. If ADC sampling is only implemented by a sampling resistor, the sampling range will be small. In this embodiment, a high resistance resistor R2 is connected in series on the basis of the sampling resistor R1, so that a larger range of sampling can be achieved. In this embodiment, the specific sampling formula is:

[0148]

[0149] Wherein, ADC is the sampling value, 5 / 4096 is the resolution, which is related to the hardware device parameters, V is the voltage value of the second resistor R2, R1 is the resistance value of the first resistor R1, and R2 is the resistance value of the second resistor R2. In addition, in other embodiments, in order to improve the accuracy of ADC voltage sampling, error compensation can also be performed by performing curve fitting after multi-point voltage sampling during the period when the power supply U changes the voltage supply state.

[0150] In summary, an embodiment of the present invention provides a BMS power supply state detection method, which obtains an initial power supply voltage state by sampling the initial power supply voltage of a power supply, wherein the initial power supply voltage state includes a low voltage state, a normal voltage state and a high voltage state. After the initial power supply voltage state is adjusted to perform adjacent gear power supply adjustment, if the initial power supply voltage state is a low voltage state, then the adjacent gear power supply voltage state is detected to be in a normal voltage state, a low voltage state or a low voltage unstable state according to a first preset judgment rule; if the initial power supply voltage state is a normal voltage state, then the adjacent gear power supply voltage state is detected to be in a low voltage state, a low voltage unstable state, a high voltage state, a high voltage unstable state or a normal voltage state according to a second preset judgment rule; if the initial power supply voltage state is a high voltage state, then the adjacent gear power supply voltage state is judged to be in a high voltage state, a high voltage unstable state or a normal voltage state according to a third preset judgment rule. This solves the technical problem that the BMS power supply state detection in the related art only divides the power supply voltage into three gears for detection, and has low detection accuracy and cannot meet the requirements of equipment with high power supply accuracy, and provides a high-precision BMS power supply state detection method.

[0151] Reference Fig. 9 An embodiment of the present invention provides a BMS controller, which includes a voltage initial state acquisition unit, a power supply state adjustment unit, a first detection unit, a second detection unit and a third detection unit; wherein the voltage initial state acquisition unit is used to perform voltage acquisition on the initial power supply voltage of the power source to obtain the initial voltage power supply state, and the initial power supply voltage state includes a low voltage state, a normal voltage state and a high voltage state; the power supply state adjustment unit is used to adjust the initial power supply voltage state to adjacent gear power supply; the first detection unit is used to detect that the adjacent gear power supply voltage state is in a normal voltage state, a low voltage state or a low voltage unstable state according to a first preset judgment rule when the initial power supply voltage state is a low voltage state; the second detection unit is used to detect that the adjacent gear power supply voltage state is in a low voltage state, a low voltage unstable state, a high voltage state, a high voltage unstable state or a normal voltage state according to a second preset judgment rule when the initial power supply voltage state is a normal voltage state; the third detection unit is used to detect that the adjacent gear power supply voltage state is in a high voltage state, a high voltage unstable state or a normal voltage state according to a third preset judgment rule when the initial power supply voltage state is a high voltage state. In this embodiment, the working principle of each component unit corresponds to the working principle of the BMS power supply status monitoring method in the above embodiment, and will not be repeated here. In this embodiment, a BMS controller divides the power supply status into low voltage state, low voltage unstable state, normal voltage state, high voltage unstable state and high voltage state through refined detection of the power supply status, which solves the technical problem of low power supply status detection accuracy of the BMS controller in the related art and inability to meet the needs of equipment with high power supply requirements.

[0152] In some embodiments, the BMS controller further includes a power supply status information prompt unit and a power supply abnormality protection unit; wherein the power supply status information prompt unit is used to output normal power supply voltage prompt information or abnormal power supply voltage prompt information, that is, after the power supply status of the adjacent gears is detected by the first detection unit, the second detection unit and the third detection unit, if it is inconsistent with the preset power supply status, the power supply status information prompt unit outputs abnormal power supply prompt information to prompt the user that the current power supply voltage is abnormal, and if it is consistent with the preset power supply status, it outputs normal power supply prompt information to prompt the user that the current power supply voltage is normal. The power supply abnormality protection unit is used to trigger the power supply protection mechanism when the power supply voltage is abnormal; wherein, after the power supply protection mechanism is triggered, protection measures such as power-off protection or voltage reduction power supply protection can be performed.

[0153] Reference Fig.10, an embodiment of the present invention further provides a battery power supply system, which includes a battery pack and a BMS controller; wherein the BMS controller uses the BMS power supply status detection method described in any of the above embodiments to detect the power supply status of the battery pack. In this embodiment, the BMS controller performs refined detection of the battery power supply status, and divides the power supply status of the battery pack into a low voltage state, a low voltage unstable state, a normal voltage state, a high voltage unstable state, and a high voltage state, which solves the technical problem in the related art that the battery power supply system has low power supply status detection accuracy and cannot meet the needs of equipment with high power supply requirements. In this embodiment, the process principle of the BMS controller detecting the power supply status of the battery pack corresponds to the process principle of the BMS power supply status detection method in the above embodiments, and will not be repeated here.

[0154] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores an executable program, and when the executable program is executed by a processor, the BMS power supply status detection method as described in any of the above embodiments is implemented.

[0155] The embodiments of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above embodiments. Various changes can be made within the knowledge of ordinary technicians in the relevant technical field without departing from the purpose of the present invention. In addition, the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.

Claims

1. A BMS power supply status detection method, characterized in that: include: Sampling the initial supply voltage of the power supply to obtain an initial supply voltage state, wherein the initial supply voltage state includes a low voltage state, a normal voltage state, and a high voltage state; Adjusting the power supply to adjacent gears based on the initial power supply voltage state; If the initial power supply voltage state is the low voltage state, detecting whether the adjacent gear power supply voltage state is in a normal voltage state, a low voltage state or a low voltage unstable state according to a first preset judgment rule; If the initial power supply voltage state is the normal pressure state, then according to the second preset judgment rule, the adjacent gear power supply voltage state is detected to be in a low voltage state, a low voltage unstable state, a high voltage state, a high voltage unstable state or a normal pressure state; If the initial power supply voltage state is the high voltage state, the adjacent gear power supply voltage state is detected to be in the high voltage state, the high voltage unstable state or the normal voltage state according to the third preset judgment rule.

2. The BMS power supply status detection method according to claim 1, characterized in that: Also includes: Determining whether the adjacent gear power supply voltage state is in a preset power supply voltage state; If so, the output power supply voltage is normal. Otherwise, the power supply abnormality protection mechanism is triggered and the power supply abnormality information is fed back.

3. The BMS power supply status detection method according to claim 1 or 2, characterized in that: The step of detecting, according to the first preset judgment rule, whether the adjacent gear power supply voltage state is in a normal voltage state, a low voltage state, or a low voltage unstable state comprises: Within a first preset time period, collecting a first preset number of first real-time power supply voltage values, and taking the valid number of times that the first real-time power supply voltage value is greater than or equal to the voltage value of the normal voltage state as a first detection value; If the first detection value is greater than or equal to a first preset threshold, it is determined that the adjacent gear power supply voltage state is a normal voltage state; If the first detection value is less than the first preset threshold, collecting the first current voltage value; Determining whether the first current voltage value is greater than or equal to the voltage value of the normal voltage state; If yes, it is determined that the adjacent gear power supply voltage state is a low voltage unstable state; Otherwise, it is determined that the adjacent gear power supply voltage state is a low voltage state.

4. The BMS power supply status detection method according to claim 3, characterized in that: The detecting, according to the second preset judgment rule, that the power supply voltage state of the adjacent gear is a low voltage state, a low voltage unstable state, a high voltage state, a high voltage unstable state or a normal voltage state comprises: Within a second preset time period, collecting a second preset number of second real-time power supply voltage values, and obtaining the valid number of times that the second real-time power supply voltage value is greater than or equal to the voltage value in the low voltage state as a second detection value; If the second detection value is greater than or equal to a second preset threshold, it is determined that the adjacent gear power supply voltage state is a low voltage state; Otherwise, it is determined that the adjacent gear power supply voltage state is a low voltage unstable state; The effective number of times that the second real-time power supply voltage value is greater than or equal to the voltage value of the high-voltage state within the second preset time length is a third detection value; If the third detection value is greater than or equal to the third preset threshold, it is determined that the adjacent gear supply voltage state is the high voltage state; Otherwise, it is determined that the adjacent gear power supply voltage state is a high-voltage unstable state; If within the second preset time period, the second real-time power supply voltage value obtained is greater than the voltage value of the low voltage state and less than the voltage value of the high voltage state, then the adjacent gear power supply voltage state is judged to be a normal pressure state.

5. The BMS power supply status detection method according to claim 1 or 4, characterized in that: The step of judging, according to the third preset judgment rule, whether the adjacent gear power supply voltage state is in a high-voltage state, a high-voltage unstable state, or a normal-voltage state comprises: Within a third preset time period, collecting a third preset number of third real-time power supply voltage values, and obtaining a valid number of times that the third real-time power supply voltage value is less than the voltage value of the normal voltage state as a fourth detection value; If the fourth detection value is greater than or equal to a fourth preset threshold, it is determined that the adjacent gear supply voltage state is the normal voltage state; Otherwise, collecting the second current voltage value; If the second current voltage value is less than the voltage value of the normal voltage state, it is determined that the adjacent gear power supply voltage state is a high-voltage unstable state; Otherwise, it is determined that the adjacent gear supply voltage state is a high voltage state.

6. The BMS power supply status detection method according to claim 1 or 2, characterized in that: Also includes: Every fourth preset time period, the current power supply voltage state is self-checked. If the self-check result of the current power supply voltage state is inconsistent with the adjacent gear power supply voltage state, the power supply abnormality protection mechanism is triggered and the power supply abnormality information is fed back.

7. A BMS controller, characterized in that: include: A voltage initial state acquisition unit, used for sampling the initial supply voltage of the power supply to obtain an initial supply voltage state, wherein the initial supply voltage state includes a low voltage state, a normal voltage state and a high voltage state; A power supply state adjustment unit, used for adjusting the initial power supply voltage state to an adjacent gear power supply voltage state; A first detection unit, configured to detect, when the initial power supply voltage state is the low voltage state, whether the adjacent gear power supply voltage state is in a normal voltage state, a low voltage state or a low voltage unstable state according to a first preset judgment rule; A second detection unit is used to detect, when the initial power supply voltage state is the normal pressure state, according to a second preset judgment rule, whether the adjacent gear power supply voltage state is a low voltage state, a low voltage unstable state, a high voltage state, a high voltage unstable state or a normal pressure state; The third detection unit is used to determine whether the adjacent gear power supply voltage state is in the high pressure state, the high pressure unstable state or the normal pressure state according to a third preset judgment rule when the initial power supply voltage state is in the high pressure state.

8. The BMS controller according to claim 7, characterized in that: Also includes: Power supply status information prompt unit and power supply abnormality protection unit; The power supply status information prompt unit is used to output normal power supply voltage prompt information or abnormal power supply voltage prompt information; The power supply abnormality protection unit is used to trigger a power supply abnormality protection mechanism when the power supply voltage is abnormal.

9. A battery powered system, characterized in that: Including battery pack and BMS controller; The BMS controller detects the power supply status of the battery pack using the BMS power supply status detection method according to any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an executable program, and the executable program is executed by a processor to implement the BMS power supply status detection method according to any one of claims 1 to 6.