Battery sampling method and device, electronic equipment and storage medium
By distinguishing the status of the battery sampling link and taking corresponding measures, the data error problem caused by interference in the battery sampling link of electric vehicles is solved, the reliability and speed of battery status monitoring and fault diagnosis are improved, and the battery management system is ensured. Stability and data integrity.
Patent Information
- Application Number
- CN202411189873.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-12-27
AI Technical Summary
During the operation of an electric vehicle, the battery sampling link may be affected by electromagnetic interference or noise, resulting in data loss or transmission errors, affecting the reliability of battery status estimation and the accuracy of vehicle status judgment. The existing technology lacks reliable diagnosis of faults. and a method to ensure maximum sampling.
By determining the link status of the battery sampling communication link, distinguishing the sampling links from normal, single-point and multi-point disconnection, and using the corresponding sampling process for sampling and diagnosis, ensuring effective battery status monitoring and in various situations Fault diagnosis and improve fault response speed and system reliability through validity verification and cycle verification mechanisms.
It realizes flexible link status response, improves fault response speed and system reliability, enhances the stability of the battery management system and the accuracy of fault diagnosis, and ensures the timeliness and completeness of data.
Smart Images

Figure CN119199583A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of battery sampling, and in particular to a battery sampling method, device, electronic device and storage medium. Background Art
[0002] Electric vehicles should monitor the status of power batteries in real time during operation to estimate the status of electric vehicle power batteries. The current common battery sampling method for electric vehicles usually uses multiple battery sampling simulators through a series communication link to receive the battery acquisition instructions from the battery master controller in the form of serial communication, and transmit the acquired power battery voltage and temperature values back to the battery sampling master controller. However, during the actual operation of electric vehicles, the battery sampling link may be affected by electromagnetic interference or noise, resulting in data loss or transmission errors during the sampling process, causing abnormal battery sampling data, affecting the reliability of battery status estimation and the accuracy of vehicle status judgment, and thus affecting vehicle safety.
[0003] In order to improve the reliability of sampling link communication, the existing technologies all adopt the method of two-way link communication to increase the resistance to interference or failure. However, there is a lack of reliable diagnosis of faults and methods to ensure sampling to the maximum extent in the event of a fault. Summary of the invention
[0004] In view of this, embodiments of the present application provide a battery sampling method, device, electronic device, and storage medium, which can improve the reliability of diagnosis.
[0005] The technical solution of the embodiment of the present application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides a battery sampling method, the method comprising:
[0007] Determine the link status of the battery sampling communication link and confirm the sampling process, wherein the link status includes the sampling link being normal, the sampling link being single-point disconnected, and the sampling link being multi-point disconnected;
[0008] When the link status is that the sampling link is normal, sampling is performed through a first sampling process, wherein the first sampling process is used for full-function sampling and diagnosis;
[0009] When the link status is that the sampling link has a single-point disconnection, sampling is performed through a second sampling process, wherein the second sampling process is used for sampling and diagnosing partial functions, and the partial functions are determined based on the single-point disconnection situation;
[0010] When the link status is that the sampling link is disconnected at multiple points, the link status of the battery sampling communication link is continuously determined until the link status of the battery sampling communication link is restored to the normal state of the sampling link or the single-point disconnection of the sampling link, and when the link status is restored to the normal state of the sampling link or the single-point disconnection of the sampling link, the corresponding sampling process is executed for sampling.
[0011] In a second aspect, an embodiment of the present application further provides a battery sampling device, the device comprising:
[0012] A determination module, used to determine the link status of the battery sampling communication link, wherein the link status includes the sampling link being normal, the sampling link being single-point disconnected, and the sampling link being multi-point disconnected;
[0013] A sampling module is used to perform sampling through a first sampling process when the link status is that the sampling link is normal, wherein the first sampling process is used for full-function sampling and diagnosis; when the link status is that the sampling link is single-point broken, perform sampling through a second sampling process, wherein the second sampling process is used for partial function sampling and diagnosis, and the partial functions are determined based on the single-point broken situation; when the link status is that the sampling link is multi-point broken, continuously determine the link status of the battery sampling communication link until the link status of the battery sampling communication link is restored to the sampling link being normal or the sampling link being single-point broken, and when it is restored to the sampling link being normal or the sampling link being single-point broken, execute the corresponding sampling process for sampling.
[0014] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to execute the battery sampling method described in any one of the first aspects.
[0015] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the battery sampling method according to any one of the first aspects is executed.
[0016] The embodiments of the present application have the following beneficial effects:
[0017] (1) Flexible response to link status: By distinguishing the different states of the sampling link (normal, single-point disconnection, and multi-point disconnection) and taking corresponding sampling processes for different states, this method can flexibly respond to various problems in the battery sampling communication link and ensure effective battery status monitoring and fault diagnosis in various situations.
[0018] (2) Improving fault response speed: By verifying the validity of the sampling data and promptly recording and waking up the sampling main control module for fault identification when an abnormality is found, this method can quickly respond to various faults in the battery sampling process and improve the fault response speed and processing accuracy.
[0019] (3) Enhanced system reliability: Through a detailed link status determination process and a cyclic verification mechanism, this method can accurately determine the status of the sampling link and take corresponding measures when the link status is determined to be a single-point break or a multi-point break, thereby enhancing the reliability and stability of the entire battery management system.
[0020] (4) Flexible sleep sampling configuration: allows configuration of the sleep sampling parameters of the battery sampling module, such as the number of sleep sampling modules, detection cycle, and abnormal alarm threshold, etc. This enables the system to be flexibly configured according to different application scenarios and requirements, further optimizing system performance and power consumption.
[0021] (5) Comprehensive fault diagnosis capability: Not limited to the monitoring of battery parameters, it also includes a variety of diagnostic functions such as sampling line diagnosis and sampling chip diagnosis, enabling the system to comprehensively detect faults in batteries and related components, improving the accuracy and comprehensiveness of fault diagnosis.
[0022] (6) Efficient data transmission mechanism: When the link status is normal or a single point is disconnected, the source module periodically wakes up and transmits monitoring data to ensure the timeliness and integrity of the data. At the same time, the sampling bridge module monitors the data transmitted from the link within a fixed period, and records the cause of the fault and reversely wakes up the sampling main control module when an abnormality is found, further improving the efficiency and reliability of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0024] Figure 1 It is a flowchart of steps S101-S102 provided in an embodiment of the present application;
[0025] Figure 2 It is a flowchart of steps S201-S202 provided in an embodiment of the present application;
[0026] Figure 3 It is a flowchart of steps S301-S304 provided in an embodiment of the present application;
[0027] Figure 4 This is a schematic diagram of the sampling link disconnection judgment principle provided in an embodiment of the present application;
[0028] Figure 5 It is a flowchart of steps S501-S505 provided in an embodiment of the present application;
[0029] Figure 6 is a schematic diagram of the structure of a battery sampling device provided in an embodiment of the present application;
[0030] Figure 7 It is a schematic diagram of the composition structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0031] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
[0032] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0033] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0034] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0035] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0036] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0037] See also Figure 1 , Figure 1 is a flow chart of steps S101-S102 of the battery sampling method provided in the embodiment of the present application, which will be combined with Figure 1 Steps S101-S102 are shown for explanation.
[0038] In step S101, the link status of the battery sampling communication link is determined and the sampling process is confirmed, wherein the link status includes the sampling link being normal, the sampling link being disconnected at a single point, and the sampling link being disconnected at multiple points.
[0039] Here, a normal sampling link means that all communication lines are working normally without any break or short circuit, and can support full-function sampling and diagnosis. A single-point break in the sampling link means that a break occurs at a certain point in the communication link. Although some functions may be restricted at this time, the system can still perform partial functional sampling and diagnosis based on the remaining normal links. A multi-point break in the sampling link means that there are multiple break points in the communication link, which usually makes the system unable to perform effective sampling and diagnosis.
[0040] In step S102, when the link status is that the sampling link is normal, sampling is performed through a first sampling process, wherein the first sampling process is used for full-function sampling and diagnosis;
[0041] When the link status is that the sampling link has a single-point disconnection, sampling is performed through a second sampling process, wherein the second sampling process is used for sampling and diagnosing partial functions, and the partial functions are determined based on the single-point disconnection situation;
[0042] When the link status is that the sampling link is disconnected at multiple points, the link status of the battery sampling communication link is continuously determined until the link status of the battery sampling communication link is restored to the normal state of the sampling link or the single-point disconnection of the sampling link, and when the link status is restored to the normal state of the sampling link or the single-point disconnection of the sampling link, the corresponding sampling process is executed for sampling.
[0043] Specifically, the first sampling process (full-function sampling and diagnosis): When the link status is normal, the system starts the full-function sampling process, which includes comprehensive collection of parameters such as voltage, current, temperature, etc. of all battery cells, and performs detailed health status diagnosis.
[0044] Second sampling process (partial function sampling and diagnosis): When a single-point circuit break is detected, the system dynamically adjusts the sampling process according to the specific location of the circuit break, sampling and diagnosing only the battery cells that can still be accessed through the normal link. This flexibility ensures that the system can continue to operate and provide useful data even in the case of partial failure.
[0045] When the system detects multiple points of disconnection, since effective sampling and diagnosis may not be possible at this time, the system will continue to monitor the link status and wait for the link to return to normal or single-point disconnection. Once the link status returns to normal or single-point disconnection, the system immediately starts the corresponding sampling process according to the new link status to ensure that full or partial monitoring of the battery status is restored as soon as possible.
[0046] The above method can dynamically adjust the sampling strategy according to different link states to ensure that as much useful data as possible can be obtained in any situation. By monitoring the link status in real time and taking corresponding countermeasures, the system's fault detection and handling capabilities are improved. Even in the case of partial link failure, the battery status can be monitored through partial function sampling and diagnosis, reducing the risk of system paralysis caused by interference.
[0047] In summary, this battery sampling method provides a more reliable and efficient sampling solution for the battery management system through intelligent link status monitoring and flexible sampling process adjustment.
[0048] In some embodiments, the first sampling process includes periodically performing battery voltage sampling, temperature sampling, balancing control, sampling line diagnosis, and sampling chip diagnosis.
[0049] The first sampling process, i.e., the full-function sampling and diagnostic process, includes the periodic execution of multiple key tasks to ensure comprehensive monitoring of the battery status and healthy operation of the system. Battery voltage sampling is the periodic sampling of the voltage of each battery cell in the battery pack. Temperature sampling is the periodic acquisition of the temperature of the battery and / or the surrounding environment by the system. Balance control is an important part of battery management, which aims to reduce or eliminate the voltage difference between each battery cell in the battery pack. By periodically performing balance control, the overall life and performance of the battery pack can be extended. The sampling line is a key component that transmits information such as the voltage and temperature of the battery cell to the sampling chip or the main controller. The sampling line diagnosis is used to check the connection status, resistance change or potential short circuit / open circuit problems of the sampling line to ensure the accuracy and reliability of the sampling data. The sampling chip is the core component responsible for collecting information such as battery cell voltage and temperature. The sampling chip diagnosis involves checking the performance of the chip itself, including its measurement accuracy, response speed, and whether there is a potential risk of failure or failure.
[0050] These tasks together constitute the core content of the first sampling process. By periodically performing these tasks, the system can monitor the battery status in real time and accurately, detect potential problems in a timely manner, and take appropriate measures to intervene and repair. At the same time, this comprehensive sampling and diagnostic process also helps to improve the reliability and safety of the battery management system and extend the battery life.
[0051] It should be noted that the execution frequency and specific parameters (such as sampling period, balancing control strategy, etc.) of the first sampling process need to be adjusted and optimized according to factors such as the type, scale, usage scenario and system requirements of the battery pack.
[0052] In some embodiments, the second sampling process includes periodically performing battery voltage sampling, temperature sampling, and sampling line open line diagnosis.
[0053] In the second sampling process, i.e., the partial function sampling and diagnosis process, the system takes more streamlined but critical sampling and diagnosis measures for the case of a single-point break in the sampling link. Despite the single-point break in the link, the system will still try to periodically collect the voltage of those battery cells that can still be accessed through the normal link. Voltage data is critical for assessing the remaining battery power and health. Similarly, the system periodically collects the temperature of accessible battery cells and their surroundings. Temperature is a key factor affecting battery performance and life, so temperature monitoring is indispensable even in the case of partial link failure. In the case of a single-point break, the sampling line open line diagnosis is an important sampling part, focusing on checking the connection status of the sampling line adjacent to the break point to determine the specific location of the break and evaluate its impact on the sampling data. Through the open line diagnosis, the system can understand which battery cell data may not be accurately obtained, and thus take appropriate measures to compensate for this defect.
[0054] In addition, the execution frequency and specific parameters of the second sampling process (such as sampling period, diagnostic strategy, etc.) also need to be adjusted and optimized according to factors such as the actual link status, battery pack characteristics, and system requirements. In actual applications, the system may need to dynamically evaluate the link status and flexibly switch the sampling process based on the evaluation results to ensure that the battery status can be effectively monitored under any circumstances.
[0055] In some embodiments, see Figure 2 , Figure 2 It is a flowchart of steps S201-S202 provided in an embodiment of the present application. The method also includes steps S201-S202, which will be described in combination with each step.
[0056] In step S201, the validity of the sampled data is checked, instructions are sent through the sampling main control module, confirmation requests from the sampling modules and replied sampling results are received, and the sent and received data frames are monitored through the sampling main control module; wherein the validity check includes periodically executing sampling, diagnosis, and control functions through the main controller, and the monitoring content includes at least one of verifying the data sent by all sampling modules, performing integrity checks on the data sent by all sampling modules, and performing continuity checks on the data sent by all sampling modules.
[0057] In step S202, when there is an error in the validity check, the sampling data of the corresponding sampling module in the sampling period is set to invalid.
[0058] The main controller periodically performs core functions such as sampling, diagnosis, and control. This is the basis for ensuring that the system can continuously monitor the battery status and respond accordingly. The sampling main control module is responsible for sending sampling instructions to each sampling module. These instructions contain specific requirements and parameters for sampling. After receiving the instructions, the sampling module will perform the corresponding sampling task and reply the sampling results to the sampling main control module in the form of a data frame. The sampling main control module will strictly monitor the data frame during the process of sending and receiving it. The monitoring content includes but is not limited to:
[0059] (1) Data verification: Verify whether the received data conforms to the predetermined format and specifications to ensure the validity of the data.
[0060] (2) Integrity check: Check whether the received data frame is complete and has no missing or damaged parts.
[0061] (3) Continuity check: Ensure that the received data frames are continuous in time and have no jumps or interruptions.
[0062] When the validity check finds errors (such as data format errors, incomplete data, discontinuous data, etc.), the sampling main control module will invalidate the sampling data of the corresponding sampling module in the sampling period. This means that these data will not be used for subsequent battery status evaluation, fault diagnosis or other related operations.
[0063] Through strict validity verification, the accuracy of the sampled data can be ensured to avoid misjudgment or misoperation caused by data errors. Timely detection and processing of errors in the sampled data can prevent the propagation of erroneous data within the system, thereby improving the reliability of the entire battery management system. An effective data verification mechanism can help the system locate the source of the fault more quickly and provide strong support for fault diagnosis and repair.
[0064] In summary, validating the sampling data is an integral part of the battery sampling method. This step can ensure the accuracy, integrity and continuity of the sampling data, thereby improving the overall performance and reliability of the battery management system.
[0065] In some embodiments, see Figure 3 , Figure 3 It is a flowchart of steps S301-S304 provided in an embodiment of the present application. The determination of the link status of the battery sampling communication link can be achieved through steps S301-S304, which will be described in combination with each step.
[0066] In step S301, the first link communication is executed, a first link sampling instruction is sent, and the validity of the first link data returned by the sampling module is checked. When the first link data is checked normally, the link state of the sampling link is determined to be normal.
[0067] In step S302, when the first link data verification is abnormal, the second link communication is executed, the second link sampling instruction is sent, and the validity of the second link data returned by the sampling module is verified. Based on the verification results of the first link data and the second link data, it is determined whether the condition of the single-point disconnection of the sampling link is met. If so, the link state is determined to be the single-point disconnection of the sampling link and the position of the single-point disconnection is determined.
[0068] In step S303, if the previous cycle has not confirmed that the sampling link is a single-point break or the single-point break position is different from this judgment, the first link communication and the second link communication are repeatedly executed based on a preset first number of cycles. If the cycle results are both single-point breaks in the sampling link and the single-point break positions are the same, the current cycle is determined to be a single-point break in the sampling link and the link status is reported as the single-point break in the sampling link and the single-point break position.
[0069] In step S304, if the loop result meets the condition of multiple-point disconnection of the sampling link, the first link communication and the second link communication are repeatedly executed based on a preset second number of cycles. If recovered, the state after recovery is determined; if not recovered, the link state of the sampling link is reported as multiple-point disconnection of the sampling link and the multiple-point disconnection secondary confirmation flag is set.
[0070] For examples, see Figure 4 , Figure 4 is a schematic diagram of the sampling link disconnection judgment principle provided in the embodiment of the present application, such as Figure 4 As shown, the system first executes the first link communication and sends the first link sampling instruction to the sampling module. After receiving the instruction, the sampling module executes the sampling task and returns the first link data to the system. The system performs a validity check on the received first link data. If the check is normal, the link status of the sampling link is directly determined to be the sampling link normal.
[0071] If the first link data verification is abnormal, the system switches to execute the second link communication and sends the second link sampling instruction. The sampling module returns the second link data, and the system performs validity verification again. Based on the verification results of the two link data, the system determines whether the conditions for the single-point disconnection of the sampling link are met. If it is met (that is, one link communication fails, the other succeeds, and the reason for the failure meets the characteristics of a single-point disconnection), the link status is determined to be a single-point disconnection of the sampling link, and an attempt is made to determine the location of the single-point disconnection.
[0072] If the sampling link is not confirmed as a single-point disconnection in the previous cycle, or the single-point disconnection position determined this time is different from that in the previous cycle, the system will repeat the first link communication and the second link communication according to the preset first cycle number.
[0073] If during the cycle, each result consistently indicates that the sampling link is single-point broken, and the single-point break position is the same, the system confirms that the sampling link is single-point broken in this cycle, and reports the link status and single-point break position.
[0074] If during the loop process, the verification result meets the conditions of multi-point disconnection of the sampling link (for example, both link communications fail, or the reason for the failure does not meet the characteristics of a single-point disconnection), the system will continue to repeat the link communication according to the preset second number of cycles.
[0075] If the link status is restored after multiple cycles (ie, at least one link communication is successful), the system determines the restored status.
[0076] If the link status is not restored, the system eventually reports the link status of the sampling link as a multi-point disconnection of the sampling link, and sets the multi-point disconnection secondary confirmation flag to indicate that this is a serious fault that has been confirmed multiple times.
[0077] Through multiple loop confirmations and multiple link communication methods, the system can more accurately determine the link status and reduce the possibility of misjudgment. When a link failure is found, the system can quickly locate the problem and take appropriate measures (such as switching to a backup link, reporting the fault, etc.), thereby enhancing the stability and reliability of the system. Reporting accurate link status and breakpoint location information helps maintenance personnel locate and resolve faults more quickly.
[0078] In summary, the link status determination process is an efficient, accurate and reliable solution that can ensure the stability and reliability of the battery sampling communication link.
[0079] In some embodiments, the conditions for determining that the sampling link is normal include: the number of sampling modules with valid data read by the first link is consistent with the number of sampling modules configured by initialization;
[0080] The conditions for determining the single-point disconnection of the communication link include: the sum of the number of sampling modules with valid data read by the first sampling communication link and the number of sampling modules read by the second sampling communication link is consistent with the number of sampling modules configured for initialization, and the sampling modules with valid data read by the first sampling communication link and the modules with valid data read by the second sampling communication link are not repeated;
[0081] The conditions for determining whether the communication link is disconnected at multiple points include conditions other than the conditions for determining whether the sampling link is normal and the conditions for determining whether the communication link is disconnected at a single point.
[0082] Please continue to see Figure 4 The condition for determining that the sampling link is normal is that the number of sampling modules with valid data read by the first link is consistent with the number of sampling modules configured during initialization. This condition means that in the first sampling communication link, the system can successfully read the same number of valid data as the number of sampling modules configured during initialization. This indicates that all sampling modules are working properly and there is no interruption or error in the data communication link.
[0083] The condition for determining a single-point break in a communication link is that the sum of the number of sampling modules with valid data read by the first sampling communication link and the number of sampling modules read by the second sampling communication link is consistent with the number of sampling modules configured for initialization. This condition ensures that the total number of valid data sampling modules read through two different sampling communication links matches the number of sampling modules configured for initialization. This is the basis for determining whether there is a single-point break. The condition that the sampling modules with valid data read by the first sampling communication link and the modules with valid data read by the second sampling communication link are not repeated further confirms the existence of a single-point break. If the valid data sampling modules read by the two links are not repeated, it means that at least one link has a break at a certain sampling module, resulting in the data of the module being read only through another link. This meets the characteristics of a single-point break.
[0084] The conditions for determining the multi-point disconnection of the communication link are conditions other than the conditions for determining the normal sampling link and the conditions for determining the single-point disconnection of the communication link. This condition is a method of elimination. If the link status does not meet the conditions for the normal sampling link and the single-point disconnection of the communication link, then it can be determined that the communication link is disconnected at multiple points. Multi-point disconnection means that there are multiple breakpoints in the communication link, resulting in the data of some or all sampling modules cannot be read correctly. Multi-point disconnection requires 2 confirmations before the fault is reported to increase the reliability of multi-point disconnection fault confirmation.
[0085] In the above way, by clearly determining the conditions, the system can more accurately determine the status of the communication link, whether it is normal, single-point disconnection or multi-point disconnection. Depending on the link status, the system can take different fault handling measures. For example, for a single-point disconnection, you can try to switch to a backup link or repair the disconnection point; for a multi-point disconnection, more complex repair or replacement operations may be required. Timely fault detection and accurate fault location help reduce system downtime and improve the overall reliability and availability of the system.
[0086] In summary, these determination conditions provide strong support for fault detection and diagnosis of battery sampling communication links.
[0087] In some embodiments, see Figure 5 , Figure 5 It is a flowchart of steps S501-S505 provided in an embodiment of the present application. The method also includes steps S501-S505, which will be described in combination with each step.
[0088] In step S501, the sleep sampling parameters of the battery sampling module are configured, wherein the sleep sampling parameters include at least one of the number of sleep sampling modules, a detection cycle, and an abnormal alarm threshold.
[0089] In step S502, when the main controller executes the sleep process, the battery sampling module periodically monitors its own battery parameters and sends them to the bridge module for monitoring; if the battery parameters exceed the abnormal alarm threshold, an abnormal alarm is sent through the battery sampling module; when the sampling bridge module recognizes that the number of valid modules on the sampling link is lower than the configured number of battery sampling modules, or the battery sampling module has an abnormal alarm, the sampling fault is recorded and the sampling main control module is awakened to enable the sampling main control module to identify the battery fault.
[0090] In step S503, if the link status is that the sampling link is normal, the sampling module at the farthest end in the first direction is set as the source module, and the source module is used to periodically wake up and monitor the status of the battery, and the monitoring result is passed to the next module, and the monitoring data of all sampling modules are transmitted to the sampling bridge module in sequence, so that the sampling bridge module monitors the monitoring data transmitted from the sampling link in the first direction within a fixed period. The monitoring data includes whether the monitoring data of all modules are received, and whether the monitoring data of all modules are normal. When there is any unsatisfactory situation in the monitoring data, the cause of the fault is recorded and the sampling main control module is reversely awakened.
[0091] In step S504, if the link status is a single-point break in the sampling link, the single-point break position is identified, the farthest sampling module in the first direction is set as the source module in the first direction, and the farthest sampling module in the second direction is set as the source module in the second direction. The source module in the first direction and the source module in the second direction are respectively periodically awakened and the battery status is monitored, and the monitoring results are passed to the next module. The monitoring data of all modules are sequentially transmitted to the sampling bridge module, so that the sampling bridge module monitors the monitoring data returned by the first direction and the second direction links within a fixed period. The monitoring data includes whether the monitoring data of all modules are received and whether the monitoring data of all modules are normal. When there is any unsatisfactory situation in the monitoring data, the cause of the fault is recorded and the sampling main control module is reversely awakened.
[0092] In step S505, if the link status is that the sampling link is disconnected at multiple points, all sampling modules are configured to enter a sleep state, and sleep monitoring is not performed.
[0093] Here, in order to perform sampling in the dormant state, the battery sampling module can be configured to enter the dormant mode, and the corresponding dormant sampling parameters can be set, such as the number of dormant sampling modules, detection cycle, abnormal alarm threshold, etc. These parameters can be adjusted according to actual needs to achieve a balance between power consumption and monitoring accuracy.
[0094] When the main controller is in sleep mode, some or all of the battery sampling modules will periodically monitor their own battery parameters. If the battery parameters exceed the preset abnormal alarm threshold, or the sampling bridge module recognizes that the number of valid modules on the sampling link is lower than the configured value, or the battery sampling module has an abnormal alarm, the system will record the sampling fault and wake up the sampling main control module to further identify and process the battery fault.
[0095] If the link status is determined to be a normal sampling link, the system will set the farthest sampling module in the first direction (such as from the positive pole to the negative pole) as the source module. The source module will periodically wake up and monitor the battery status, and then pass the monitoring results to the next module, and then pass the monitoring data of all sampling modules to the sampling bridge module in sequence. The sampling bridge module monitors these monitoring data within a fixed period to ensure that the monitoring data of all modules is received and the data is normal. If any conditions are not met, the system will record the cause of the fault and reversely wake up the sampling main control module for fault handling.
[0096] In the case of a single-point circuit break, the system will identify the breakpoint location and set the farthest sampling modules in the first direction and the second direction (such as from the negative pole to the positive pole) as the source modules. The source modules in the two directions will periodically wake up and monitor the battery status, and then pass the monitoring results to their respective next modules. The sampling bridge module will simultaneously monitor the monitoring data sent back from both directions to ensure the integrity and correctness of the data. If an abnormality occurs, the system will record the cause of the fault and take appropriate measures.
[0097] If the link status is determined to be a multi-point disconnection of the sampling link, this means that there are multiple breakpoints in the communication link, causing some or all sampling modules to fail to work properly. In this case, in order to avoid ineffective power consumption and possible system damage, the system will configure all sampling modules to enter a dormant state and wait for further maintenance or repair operations.
[0098] By configuring the dormant sampling parameters and the monitoring strategy during the dormant process, the system can reduce power consumption without sacrificing monitoring accuracy. By waking up the sampling main control module in time and recording the cause of the fault, the system can respond quickly to various abnormal situations to ensure the safety and stable operation of the battery. Different monitoring strategies and optimization measures are adopted for different link states to improve the reliability and stability of the system.
[0099] In summary, the embodiments of the present application have the following beneficial effects:
[0100] (1) Flexible response to link status: By distinguishing the different states of the sampling link (normal, single-point disconnection, and multi-point disconnection) and taking corresponding sampling processes for different states, this method can flexibly respond to various problems in the battery sampling communication link and ensure effective battery status monitoring and fault diagnosis in various situations.
[0101] (2) Improving fault response speed: By verifying the validity of the sampling data and promptly recording and waking up the sampling main control module for fault identification when an abnormality is found, this method can quickly respond to various faults in the battery sampling process and improve the fault response speed and processing accuracy.
[0102] (3) Enhanced system reliability: Through a detailed link status determination process and a cyclic verification mechanism, this method can accurately determine the status of the sampling link and take corresponding measures when the link status is determined to be a single-point break or a multi-point break, thereby enhancing the reliability and stability of the entire battery management system.
[0103] (4) Flexible sleep sampling configuration: allows configuration of the sleep sampling parameters of the battery sampling module, such as the number of sleep sampling modules, detection cycle, and abnormal alarm threshold, etc. This enables the system to be flexibly configured according to different application scenarios and requirements, further optimizing system performance and power consumption.
[0104] (5) Comprehensive fault diagnosis capability: Not limited to the monitoring of battery parameters, it also includes a variety of diagnostic functions such as sampling line diagnosis and sampling chip diagnosis, enabling the system to comprehensively detect faults in batteries and related components, improving the accuracy and comprehensiveness of fault diagnosis.
[0105] (6) Efficient data transmission mechanism: When the link status is normal or a single point is disconnected, the source module periodically wakes up and transmits monitoring data to ensure the timeliness and integrity of the data. At the same time, the sampling bridge module monitors the data transmitted from the link within a fixed period, and records the cause of the fault and reversely wakes up the sampling main control module when an abnormality is found, further improving the efficiency and reliability of data transmission.
[0106] Based on the same inventive concept, the embodiments of the present application also provide a battery sampling device corresponding to the battery sampling method in the first embodiment. Since the principle of solving the problem by the device in the embodiments of the present application is similar to that of the above-mentioned battery sampling method, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0107] like Figure 6 As shown, Figure 6 : is a schematic diagram of the structure of a battery sampling device 600 provided in an embodiment of the present application. The battery sampling device 600 includes:
[0108] The determination module 601 is used to determine the link status of the battery sampling communication link and confirm the sampling process, wherein the link status includes the sampling link being normal, the sampling link being disconnected at a single point, and the sampling link being disconnected at multiple points;
[0109] The sampling module 602 is used to perform sampling through a first sampling process when the link status is that the sampling link is normal, wherein the first sampling process is used for full-function sampling and diagnosis; when the link status is that the sampling link is single-point broken, perform sampling through a second sampling process, wherein the second sampling process is used for partial function sampling and diagnosis, and the partial function is determined based on the single-point broken situation; when the link status is that the sampling link is multi-point broken, continuously determine the link status of the battery sampling communication link until the link status of the battery sampling communication link is restored to the sampling link normal or the sampling link single-point broken, and when it is restored to the sampling link normal or the sampling link single-point broken, execute the corresponding sampling process for sampling.
[0110] Those skilled in the art should understand that Figure 6 The functions implemented by each unit in the battery sampling device 600 shown can be understood by referring to the related description of the aforementioned battery sampling method. Figure 6 The functions of each unit in the battery sampling device 600 shown can be implemented by a program running on a processor, or by a specific logic circuit.
[0111] In a possible implementation, the first sampling process includes periodically executing battery voltage sampling, temperature sampling, balancing control, sampling line diagnosis, and sampling chip diagnosis.
[0112] In a possible implementation manner, the second sampling process includes periodically performing battery voltage sampling, temperature sampling, and sampling line open line diagnosis.
[0113] In a possible implementation, the sampling module 602 further includes:
[0114] Perform validity check on the sampled data, send instructions through the sampling main control module, receive confirmation requests from the sampling modules and the replied sampling results, and monitor the sent and received data frames through the sampling main control module; wherein the validity check includes periodically executing sampling, diagnosis, and control functions through the main controller, and the monitoring content includes at least one of verifying the data sent by all sampling modules, performing integrity check on the data sent by all sampling modules, and performing continuity check on the data sent by all sampling modules;
[0115] When there is an error in the validity check, the sampling data of the corresponding sampling module in the sampling period is set to invalid.
[0116] In a possible implementation manner, the determining module 601 determines the link status of the battery sampling communication link, including:
[0117] Execute the first link communication, send the first link sampling instruction, and perform validity verification on the first link data returned by the sampling module, and when the first link data verification is normal, determine that the link state of the sampling link is that the sampling link is normal;
[0118] When the first link data verification is abnormal, the second link communication is executed, the second link sampling instruction is sent, and the validity of the second link data returned by the sampling module is verified, and based on the verification results of the first link data and the second link data, it is determined whether the condition of the single-point disconnection of the sampling link is met, and if so, the link state is determined to be the single-point disconnection of the sampling link and the position of the single-point disconnection is determined;
[0119] If the previous cycle was not confirmed as the single-point disconnection of the sampling link or the single-point disconnection position is different from the current judgment, the first link communication and the second link communication are repeatedly executed based on the preset first cycle number. If the cycle results are both the single-point disconnection of the sampling link and the single-point disconnection position is the same, the current cycle is determined to be the single-point disconnection of the sampling link and the link status is reported as the single-point disconnection of the sampling link and the single-point disconnection position;
[0120] If the cycle result meets the condition of multi-point disconnection of the sampling link, the first link communication and the second link communication are repeatedly executed based on a preset second number of cycles. If recovered, the state after recovery is determined; if not recovered, the link state of the sampling link is reported as multi-point disconnection of the sampling link and the multi-point disconnection secondary confirmation flag is set.
[0121] In a possible implementation manner, the condition for determining that the sampling link is normal includes: the number of sampling modules with valid data read by the first link is consistent with the number of sampling modules configured by initialization;
[0122] The conditions for determining the single-point disconnection of the communication link include: the sum of the number of sampling modules with valid data read by the first sampling communication link and the number of sampling modules read by the second sampling communication link is consistent with the number of sampling modules configured for initialization, and the sampling modules with valid data read by the first sampling communication link and the modules with valid data read by the second sampling communication link are not repeated;
[0123] The conditions for determining whether the communication link is disconnected at multiple points include conditions other than the conditions for determining whether the sampling link is normal and the conditions for determining whether the communication link is disconnected at a single point.
[0124] In a possible implementation, the sampling module 602 further includes:
[0125] Configuring sleep sampling parameters of the battery sampling module, wherein the sleep sampling parameters include at least one of the number of sleep sampling modules, a detection cycle, and an abnormal alarm threshold;
[0126] When the main controller executes the sleep process, the battery sampling module periodically monitors its own battery parameters and sends them to the bridge module for monitoring; if the battery parameters exceed the abnormal alarm threshold, the battery sampling module sends an abnormal alarm; when the sampling bridge module recognizes that the number of valid modules on the sampling link is lower than the configured number of battery sampling modules, or the battery sampling module has an abnormal alarm, the sampling fault is recorded and the sampling main control module is awakened, so that the sampling main control module can identify the battery fault;
[0127] If the link status is that the sampling link is normal, the sampling module at the farthest end in the first direction is set as the source module, and the source module is used to periodically wake up and monitor the battery status, and the monitoring result is passed to the next module, and the monitoring data of all sampling modules are sequentially transmitted to the sampling bridge module, so that the sampling bridge module monitors the monitoring data transmitted from the sampling link in the first direction within a fixed period, and the monitoring data includes whether the monitoring data of all modules are received, and whether the monitoring data of all modules are normal, and when there is any unsatisfactory situation in the monitoring data, the cause of the fault is recorded and the sampling main control module is reversely awakened;
[0128] If the link status is a single-point circuit break in the sampling link, identify the single-point circuit break position, set the farthest sampling module in the first direction as the source module in the first direction, set the farthest sampling module in the second direction as the source module in the second direction, periodically wake up and monitor the battery status through the source module in the first direction and the source module in the second direction respectively, pass the monitoring result to the next module, and pass the monitoring data of all modules to the sampling bridge module in sequence, so that the sampling bridge module monitors the monitoring data returned by the first direction and the second direction links within a fixed period, and the monitoring data includes whether the monitoring data of all modules are received and whether the monitoring data of all modules are normal, and when there is any unsatisfactory situation in the monitoring data, record the cause of the fault and reversely wake up the sampling main control module;
[0129] If the link status is that the sampling link is disconnected at multiple points, all sampling modules are configured to enter a dormant state.
[0130] The above battery sampling device has the following beneficial effects:
[0131] (1) Flexible response to link status: By distinguishing the different states of the sampling link (normal, single-point disconnection, and multi-point disconnection) and taking corresponding sampling processes for different states, this method can flexibly respond to various problems in the battery sampling communication link and ensure effective battery status monitoring and fault diagnosis in various situations.
[0132] (2) Improving fault response speed: By verifying the validity of the sampling data and promptly recording and waking up the sampling main control module for fault identification when an abnormality is found, this method can quickly respond to various faults in the battery sampling process and improve the fault response speed and processing accuracy.
[0133] (3) Enhanced system reliability: Through a detailed link status determination process and a cyclic verification mechanism, this method can accurately determine the status of the sampling link and take corresponding measures when the link status is determined to be a single-point break or a multi-point break, thereby enhancing the reliability and stability of the entire battery management system.
[0134] (4) Flexible sleep sampling configuration: allows configuration of the sleep sampling parameters of the battery sampling module, such as the number of sleep sampling modules, detection cycle, and abnormal alarm threshold, etc. This enables the system to be flexibly configured according to different application scenarios and requirements, further optimizing system performance and power consumption.
[0135] (5) Comprehensive fault diagnosis capability: Not limited to the monitoring of battery parameters, it also includes a variety of diagnostic functions such as sampling line diagnosis and sampling chip diagnosis, enabling the system to comprehensively detect faults in batteries and related components, improving the accuracy and comprehensiveness of fault diagnosis.
[0136] (6) Efficient data transmission mechanism: When the link status is normal or a single point is disconnected, the source module periodically wakes up and transmits monitoring data to ensure the timeliness and integrity of the data. At the same time, the sampling bridge module monitors the data transmitted from the link within a fixed period, and records the cause of the fault and reversely wakes up the sampling main control module when an abnormality is found, further improving the efficiency and reliability of data transmission.
[0137] like Figure 7 As shown, Figure 7 The present invention provides a schematic diagram of the structure of an electronic device 700, wherein the electronic device 700 includes:
[0138] A processor 701, a storage medium 702 and a bus 703, wherein the storage medium 702 stores machine-readable instructions executable by the processor 701. When the electronic device 700 is running, the processor 701 communicates with the storage medium 702 through the bus 703, and the processor 701 executes the machine-readable instructions to perform the steps of the battery sampling method described in the embodiment of the present application.
[0139] In actual application, the components in the electronic device 700 are coupled together via the bus 703. It is understood that the bus 703 is used to realize the connection and communication between these components. In addition to the data bus, the bus 703 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 7 Various buses are labeled as bus 703.
[0140] The electronic device has the following beneficial effects:
[0141] (1) Flexible response to link status: By distinguishing the different states of the sampling link (normal, single-point disconnection, and multi-point disconnection) and taking corresponding sampling processes for different states, this method can flexibly respond to various problems in the battery sampling communication link and ensure effective battery status monitoring and fault diagnosis in various situations.
[0142] (2) Improving fault response speed: By verifying the validity of the sampling data and promptly recording and waking up the sampling main control module for fault identification when an abnormality is found, this method can quickly respond to various faults in the battery sampling process and improve the fault response speed and processing accuracy.
[0143] (3) Enhanced system reliability: Through a detailed link status determination process and a cyclic verification mechanism, this method can accurately determine the status of the sampling link and take corresponding measures when the link status is determined to be a single-point break or a multi-point break, thereby enhancing the reliability and stability of the entire battery management system.
[0144] (4) Flexible sleep sampling configuration: allows configuration of the sleep sampling parameters of the battery sampling module, such as the number of sleep sampling modules, detection cycle, and abnormal alarm threshold, etc. This enables the system to be flexibly configured according to different application scenarios and requirements, further optimizing system performance and power consumption.
[0145] (5) Comprehensive fault diagnosis capability: Not limited to the monitoring of battery parameters, it also includes a variety of diagnostic functions such as sampling line diagnosis and sampling chip diagnosis, enabling the system to comprehensively detect faults in batteries and related components, improving the accuracy and comprehensiveness of fault diagnosis.
[0146] (6) Efficient data transmission mechanism: When the link status is normal or a single point is disconnected, the source module periodically wakes up and transmits monitoring data to ensure the timeliness and integrity of the data. At the same time, the sampling bridge module monitors the data transmitted from the link within a fixed period, and records the cause of the fault and reversely wakes up the sampling main control module when an abnormality is found, further improving the efficiency and reliability of data transmission.
[0147] The embodiment of the present application further provides a computer-readable storage medium, which stores executable instructions. When the executable instructions are executed by at least one processor 701, the battery sampling method described in the embodiment of the present application is implemented.
[0148] In some embodiments, the storage medium can be a magnetic random access memory (FRAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface storage, an optical disk, or a compact disc read-only memory (CDROM); it can also be various devices including one or any combination of the above memories.
[0149] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0150] As an example, executable instructions may, but do not necessarily, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, for example, in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (for example, files storing one or more modules, subroutines, or code portions).
[0151] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.
[0152] The computer-readable storage medium has the following advantages:
[0153] (1) Flexible response to link status: By distinguishing the different states of the sampling link (normal, single-point disconnection, and multi-point disconnection) and taking corresponding sampling processes for different states, this method can flexibly respond to various problems in the battery sampling communication link and ensure effective battery status monitoring and fault diagnosis in various situations.
[0154] (2) Improving fault response speed: By verifying the validity of the sampling data and promptly recording and waking up the sampling main control module for fault identification when an abnormality is found, this method can quickly respond to various faults in the battery sampling process and improve the fault response speed and processing accuracy.
[0155] (3) Enhanced system reliability: Through a detailed link status determination process and a cyclic verification mechanism, this method can accurately determine the status of the sampling link and take corresponding measures when the link status is determined to be a single-point break or a multi-point break, thereby enhancing the reliability and stability of the entire battery management system.
[0156] (4) Flexible sleep sampling configuration: allows configuration of the sleep sampling parameters of the battery sampling module, such as the number of sleep sampling modules, detection cycle, and abnormal alarm threshold, etc. This enables the system to be flexibly configured according to different application scenarios and requirements, further optimizing system performance and power consumption.
[0157] (5) Comprehensive fault diagnosis capability: Not limited to the monitoring of battery parameters, it also includes a variety of diagnostic functions such as sampling line diagnosis and sampling chip diagnosis, enabling the system to comprehensively detect faults in batteries and related components, improving the accuracy and comprehensiveness of fault diagnosis.
[0158] (6) Efficient data transmission mechanism: When the link status is normal or a single point is disconnected, the source module periodically wakes up and transmits monitoring data to ensure the timeliness and integrity of the data. At the same time, the sampling bridge module monitors the data transmitted from the link within a fixed period, and records the cause of the fault and reversely wakes up the sampling main control module when an abnormality is found, further improving the efficiency and reliability of data transmission.
[0159] In the several embodiments provided in the present application, it should be understood that the disclosed methods and electronic devices can be implemented in other ways. 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 can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0160] The modules described as separate components may or may not be physically separated, and the components shown as modules 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.
[0161] In addition, each functional unit in each embodiment of the present application 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.
[0162] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a platform server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.
[0163] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the 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
1. A battery sampling method, characterized in that: The method comprises: Determine the link status of the battery sampling communication link and confirm the sampling process, wherein the link status includes the sampling link being normal, the sampling link being single-point disconnected, and the sampling link being multi-point disconnected; When the link status is that the sampling link is normal, sampling is performed through a first sampling process, wherein the first sampling process is used for full-function sampling and diagnosis; When the link status is that the sampling link has a single-point disconnection, sampling is performed through a second sampling process, wherein the second sampling process is used for sampling and diagnosing partial functions, and the partial functions are determined based on the single-point disconnection situation; When the link status is that the sampling link is disconnected at multiple points, the link status of the battery sampling communication link is continuously determined until the link status of the battery sampling communication link is restored to the normal state of the sampling link or the single-point disconnection of the sampling link, and when the link status is restored to the normal state of the sampling link or the single-point disconnection of the sampling link, the corresponding sampling process is executed for sampling.
2. The method according to claim 1, characterized in that The first sampling process includes periodically executing battery voltage sampling, temperature sampling, balancing control, sampling line diagnosis, and sampling chip diagnosis.
3. The method according to claim 1, characterized in that The second sampling process includes periodically executing battery voltage sampling, temperature sampling, and sampling line open line diagnosis.
4. The method according to claim 1, characterized in that: The method further comprises: Perform validity check on the sampled data, send instructions through the sampling main control module, receive confirmation requests from the sampling modules and the replied sampling results, and monitor the sent and received data frames through the sampling main control module; wherein the validity check includes periodically executing sampling, diagnosis, and control functions through the main controller, and the monitoring content includes at least one of verifying the data sent by all sampling modules, performing integrity check on the data sent by all sampling modules, and performing continuity check on the data sent by all sampling modules; When there is an error in the validity check, the sampling data of the corresponding sampling module in the sampling period is set to invalid.
5. The method according to claim 1, characterized in that Determining the link status of the battery sampling communication link includes: Execute the first link communication, send the first link sampling instruction, and perform validity verification on the first link data returned by the sampling module, and when the first link data verification is normal, determine that the link state of the sampling link is that the sampling link is normal; When the first link data verification is abnormal, the second link communication is executed, the second link sampling instruction is sent, and the validity of the second link data returned by the sampling module is verified, and based on the verification results of the first link data and the second link data, it is determined whether the condition of the single-point disconnection of the sampling link is met, and if so, the link state is determined to be the single-point disconnection of the sampling link and the position of the single-point disconnection is determined; If the previous cycle was not confirmed as the single-point disconnection of the sampling link or the single-point disconnection position is different from the current judgment, the first link communication and the second link communication are repeatedly executed based on the preset first cycle number. If the cycle results are both the single-point disconnection of the sampling link and the single-point disconnection position is the same, the current cycle is determined to be the single-point disconnection of the sampling link and the link status is reported as the single-point disconnection of the sampling link and the single-point disconnection position; If the cycle result meets the condition of multi-point disconnection of the sampling link, the first link communication and the second link communication are repeatedly executed based on a preset second number of cycles. If recovered, the state after recovery is determined; if not recovered, the link state of the sampling link is reported as multi-point disconnection of the sampling link and the multi-point disconnection secondary confirmation flag is set.
6. The method according to claim 5, characterized in that The conditions for determining that the sampling link is normal include: the number of sampling modules with valid data read by the first link is consistent with the number of sampling modules configured by initialization; The conditions for determining the single-point disconnection of the communication link include: the sum of the number of sampling modules with valid data read by the first sampling communication link and the number of sampling modules read by the second sampling communication link is consistent with the number of sampling modules configured for initialization, and the sampling modules with valid data read by the first sampling communication link and the modules with valid data read by the second sampling communication link are not repeated; The conditions for determining whether the communication link is disconnected at multiple points include conditions other than the conditions for determining whether the sampling link is normal and the conditions for determining whether the communication link is disconnected at a single point.
7. The method according to claim 1, characterized in that The method further comprises: Configuring sleep sampling parameters of the battery sampling module, wherein the sleep sampling parameters include at least one of the number of sleep sampling modules, a detection cycle, and an abnormal alarm threshold; When the main controller executes the sleep process, the battery sampling module periodically monitors its own battery parameters and sends them to the bridge module for monitoring; if the battery parameters exceed the abnormal alarm threshold, the battery sampling module sends an abnormal alarm; when the sampling bridge module recognizes that the number of valid modules on the sampling link is lower than the configured number of battery sampling modules, or the battery sampling module has an abnormal alarm, the sampling fault is recorded and the sampling main control module is awakened, so that the sampling main control module can identify the battery fault; If the link status is that the sampling link is normal, the sampling module at the farthest end in the first direction is set as the source module, and the source module is used to periodically wake up and monitor the battery status, and the monitoring result is passed to the next module, and the monitoring data of all sampling modules are sequentially transmitted to the sampling bridge module, so that the sampling bridge module monitors the monitoring data transmitted from the sampling link in the first direction within a fixed period, and the monitoring data includes whether the monitoring data of all modules are received, and whether the monitoring data of all modules are normal, and when there is any unsatisfactory situation in the monitoring data, the cause of the fault is recorded and the sampling main control module is reversely awakened; If the link status is a single-point circuit break in the sampling link, identify the single-point circuit break position, set the farthest sampling module in the first direction as the source module in the first direction, set the farthest sampling module in the second direction as the source module in the second direction, periodically wake up and monitor the battery status through the source module in the first direction and the source module in the second direction respectively, pass the monitoring result to the next module, and pass the monitoring data of all modules to the sampling bridge module in sequence, so that the sampling bridge module monitors the monitoring data returned by the first direction and the second direction links within a fixed period, and the monitoring data includes whether the monitoring data of all modules are received and whether the monitoring data of all modules are normal, and when there is any unsatisfactory situation in the monitoring data, record the cause of the fault and reversely wake up the sampling main control module; If the link status is that the sampling link is disconnected at multiple points, all sampling modules are configured to enter a sleep state, and sleep monitoring is not performed.
8. A battery sampling device, characterized in that: The device comprises: A determination module, used to determine the link status of the battery sampling communication link and confirm the sampling process, wherein the link status includes the sampling link being normal, the sampling link being single-point disconnected, and the sampling link being multi-point disconnected; A sampling module is used to perform sampling through a first sampling process when the link status is that the sampling link is normal, wherein the first sampling process is used for full-function sampling and diagnosis; when the link status is that the sampling link is single-point broken, perform sampling through a second sampling process, wherein the second sampling process is used for partial function sampling and diagnosis, and the partial functions are determined based on the single-point broken situation; when the link status is that the sampling link is multi-point broken, continuously determine the link status of the battery sampling communication link until the link status of the battery sampling communication link is restored to the sampling link being normal or the sampling link being single-point broken, and when it is restored to the sampling link being normal or the sampling link being single-point broken, execute the corresponding sampling process for sampling.
9. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the battery sampling method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the battery sampling method according to any one of claims 1 to 7 is executed.
