Signal detection method and device, battery management system, medium and program product
By introducing coprocessors to the battery management system for high-frequency signal detection and storage, the real-time and load rate problems of power battery signal detection are solved, and more efficient signal detection and battery safety protection are achieved.
Patent Information
- Application Number
- CN202510950489.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-10
- Publication Date
- 2025-08-08
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The signal detection of power batteries has problems such as insufficient real-time performance and high load rate of main processors in new energy vehicles, which affects the execution of other tasks.
The coprocessor is used to detect signals, set the detection frequency higher than the main processor, and store the results in shared memory. The main processor obtains the results from the shared memory, and the coprocessor also performs filtering and abnormal detection.
It improves the real-time signal detection, reduces the load rate of the main processor, and allows the main processor to take into account the execution of other tasks, ensuring the safety of the battery pack.
Smart Images

Figure CN120446753A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of battery management systems, and in particular to a signal detection method, device, battery management system, medium, and program product. Background Art
[0002] With the development of new energy technologies, power batteries are widely used in new energy vehicles, consumer electronics, energy storage systems and other fields due to their advantages such as high energy density, rechargeable, safe and environmentally friendly.
[0003] Typically, power batteries include a battery management system (BMS), which performs signal detection at preset intervals. For certain signals, such as collision or overcurrent signals in new energy vehicles, longer detection intervals can affect real-time detection, while shorter detection intervals can increase the load and affect the execution of other tasks. Summary of the Invention
[0004] Based on the above problems, the present application provides a signal detection method, device, battery management system, medium and program product, which can improve the real-time performance of signal detection, reduce the load rate of the main processor, and enable the main processor to take into account the execution of other tasks.
[0005] In the first aspect, the present application provides a signal detection method, which is applied to the main processor in the battery management system. The battery management system also includes a coprocessor and a shared memory. The method includes: starting the coprocessor so that the coprocessor performs signal detection processing according to a first detection frequency, and stores the signal detection results in the shared memory; wherein the first detection frequency is higher than the second detection frequency of the main processor for signal detection processing; and obtaining the signal detection results from the shared memory.
[0006] In the technical solution of the embodiment of the present application, the first detection frequency of the coprocessor for signal detection is higher than the second detection frequency of the main processor for signal detection processing, which can increase the signal detection frequency and shorten the signal detection period, thereby improving the real-time performance of signal detection; and, the coprocessor assists the main processor in signal detection, which can reduce the load rate of the main processor and enable the main processor to take into account the execution of other tasks.
[0007] In some embodiments, the method further includes: enabling a coprocessor to perform signal detection processing at a first detection frequency, filtering the detected signal value, and storing the signal detection result obtained by the filtering processing in a shared memory. In the technical solution of the embodiments of the present application, filtering the detected signal value can improve the accuracy of signal detection.
[0008] In some embodiments, the method further includes: enabling a coprocessor to perform signal detection processing at a first detection frequency, performing anomaly detection based on the detected signal value, and storing a first anomaly detection result obtained from the anomaly detection in a shared memory; wherein the first anomaly detection result is used to indicate whether the new energy vehicle has experienced an overcurrent anomaly or a collision anomaly. In the technical solution of the embodiments of the present application, the coprocessor performs anomaly determination based on the detected signal value, which can further improve the real-time performance of signal detection, thereby enabling the new energy vehicle to promptly respond to an anomaly and protect the safety of the battery pack.
[0009] In some embodiments, the signal detection result includes at least one of a level state, frequency, and duty cycle of the measured signal. The method further includes: performing an anomaly detection based on the signal detection result to obtain a second anomaly detection result; wherein the second anomaly detection result is used to indicate whether the new energy vehicle has an overcurrent anomaly or a collision anomaly. In the technical solution of the embodiments of the present application, the main processor performs anomaly detection, which allows the main processor to promptly perform corresponding processing based on the anomaly detection result, thereby protecting the safety of the battery pack in the new energy vehicle.
[0010] In some embodiments, obtaining a signal detection result from a shared memory includes: detecting a signal detection completion flag in the shared memory; wherein the value of the signal detection completion flag is set by the coprocessor based on whether the signal detection is complete; and obtaining the signal detection result from the shared memory when the value of the signal detection completion flag indicates that the coprocessor has completed signal detection. In the technical solution of the embodiment of the present application, the signal detection completion flag can be used to indicate whether the signal detection result stored in the shared memory is complete, thereby ensuring the accuracy of the signal detection result obtained by the main processor from the shared memory.
[0011] In some embodiments, starting the coprocessor includes: initializing a signal port; retrieving a detection program from a preset storage space and loading the detection program into the coprocessor; and calling a pre-set interface function to start the coprocessor to run the detection program. In the technical solution of the embodiment of the present application, the detection program is set in the preset storage space to facilitate maintenance and updating of the detection program, thereby making the coprocessor detection more comprehensive.
[0012] In the second aspect, the present application provides a signal detection method, which is applied to a coprocessor in a battery management system. The battery management system also includes a main processor and a shared memory. The method includes: in response to the startup of the main processor, performing signal detection processing according to a first detection frequency; wherein the first detection frequency is higher than the second detection frequency of the main processor for signal detection processing; storing the signal detection result in the shared memory for the main processor to obtain the signal detection result from the shared memory.
[0013] In the technical solution of the embodiment of the present application, the first detection frequency of the coprocessor for signal detection is higher than the second detection frequency of the main processor for signal detection processing, which can increase the signal detection frequency and shorten the signal detection period, thereby improving the real-time performance of signal detection; and, the coprocessor assists the main processor in signal detection, which can reduce the load rate of the main processor and enable the main processor to take into account the execution of other tasks.
[0014] In some embodiments, the method further includes: after performing signal detection processing at the first detection frequency, filtering the detected signal value; and storing the signal detection result obtained by the filtering processing in a shared memory. In the technical solution of the embodiment of the present application, filtering the detected signal value can improve the accuracy of signal detection.
[0015] In some embodiments, the method further includes: after performing signal detection processing at a first detection frequency, performing anomaly detection based on the detected signal value; and storing a first anomaly detection result obtained from the anomaly detection in a shared memory; wherein the first anomaly detection result is used to indicate whether the new energy vehicle has experienced an overcurrent anomaly or a collision anomaly. In the technical solution of the embodiments of the present application, the coprocessor performs anomaly determination based on the detected signal value, which can further improve the real-time performance of signal detection, thereby enabling the new energy vehicle to promptly respond to an anomaly and protect the safety of the battery pack.
[0016] In some embodiments, the signal detection result includes at least one of the level state, frequency, and duty cycle of the measured signal. The signal detection result is used by the main processor to perform anomaly detection to obtain a second anomaly detection result; wherein the second anomaly detection result is used to indicate whether the new energy vehicle has an overcurrent anomaly or a collision anomaly. In the technical solution of the embodiments of the present application, the main processor performs anomaly detection, which allows the main processor to promptly perform corresponding processing based on the anomaly detection result, thereby protecting the safety of the battery pack in the new energy vehicle.
[0017] In some embodiments, the method further includes: setting a value of a signal detection completion flag in the shared memory; wherein the value of the signal detection completion flag is used to indicate whether the coprocessor has completed signal detection. In the technical solution of the embodiment of the present application, the signal detection completion flag can be used to indicate whether the signal detection results stored in the shared memory are complete, thereby ensuring the accuracy of the signal detection results obtained by the main processor from the shared memory.
[0018] In some embodiments, in response to the startup of the main processor, the main processor includes: initializing the signal port, retrieving the detection program from the preset storage space, loading the detection program into the coprocessor, and calling a preset interface function, and then running the detection program in response to the call of the preset interface function. In the technical solution of the embodiment of the present application, the detection program is set in the preset storage space, which facilitates the maintenance and updating of the detection program, thereby making the detection of the coprocessor more comprehensive.
[0019] In a third aspect, the present application provides a signal detection device, which is applied to a main processor in a battery management system. The battery management system also includes a coprocessor and a shared memory. The device includes:
[0020] a detection startup module, configured to start the coprocessor so that the coprocessor performs signal detection processing at a first detection frequency and stores the signal detection result in a shared memory; wherein the first detection frequency is higher than a second detection frequency at which the main processor performs signal detection processing;
[0021] The result acquisition module is used to obtain the signal detection results from the shared memory.
[0022] In a fourth aspect, the present application provides a signal detection device, which is applied to a coprocessor in a battery management system. The battery management system also includes a main processor and a shared memory. The device includes:
[0023] a signal detection module, configured to perform signal detection processing at a first detection frequency in response to activation of the main processor; wherein the first detection frequency is higher than a second detection frequency at which the main processor performs signal detection processing;
[0024] The result storage module is used to store the signal detection result in the shared memory so that the main processor can obtain the signal detection result from the shared memory.
[0025] In a fifth aspect, the present application provides a battery management system, the battery management system including a main processor and a coprocessor;
[0026] The main processor is configured to implement the steps of any one of the methods described in the first aspect;
[0027] The coprocessor is used to implement the steps of any one of the methods in the second aspect.
[0028] In a sixth aspect, the present application further provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements any one of the methods of the first aspect or the second aspect when executing the computer program.
[0029] In a seventh aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which implements the method of any one of the first aspect or the second aspect when the computer program is executed by a processor.
[0030] In an eighth aspect, the present application further provides a computer program product, comprising a computer program, which implements the method of any one of the first aspect or the second aspect when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the optional embodiments below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present application. The same reference numerals are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0032] Figure 1 This is a schematic structural diagram of a battery management system according to an embodiment of the present application;
[0033] Figure 2 1 is a flow chart of a signal detection method according to an embodiment of the present application;
[0034] Figure 3 1 is a flow chart of the steps of obtaining signal detection results according to an embodiment of the present application;
[0035] Figure 4 1 is a flowchart of the steps of starting a coprocessor according to an embodiment of the present application;
[0036] Figure 5 is a flow chart of a signal detection method according to another embodiment of the present application;
[0037] Figure 6 1 is a flow chart of the filtering process steps of an embodiment of the present application;
[0038] Figure 7 1 is a flow chart of anomaly detection steps according to an embodiment of the present application;
[0039] Figure 8 This is one of the structural block diagrams of a signal detection device according to an embodiment of the present application;
[0040] Figure 9 This is the second structural block diagram of the signal detection device according to an embodiment of the present application;
[0041] Figure 10 This is one of the structural block diagrams of a signal detection device according to another embodiment of the present application;
[0042] Figure 11 This is a second structural block diagram of a signal detection device according to another embodiment of the present application;
[0043] Figure 12 It is a diagram of the internal structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0044] The following embodiments of the technical solution of the present application will be described in detail with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application and are therefore only examples and are not intended to limit the scope of protection of the present application.
[0045] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned figure descriptions are intended to cover non-exclusive inclusions.
[0046] In the description of the embodiments of this application, the technical terms "first" and "second" are used only to distinguish different objects and should not be understood to indicate or imply relative importance or implicitly specify the quantity, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, the meaning of "plurality" is more than two, unless otherwise clearly and specifically defined.
[0047] References to "embodiments" herein mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0048] In the description of the embodiments of this application, the term "and / or" is simply a description of the association relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent the following three situations: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this document generally indicates that the associated objects are in an "or" relationship.
[0049] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).
[0050] In the description of the embodiments of the present application, unless otherwise expressly specified or limited, technical terms such as "installed," "connected," "connected," and "fixed" should be understood in a broad sense. For example, they can refer to fixed connections, detachable connections, or integration; mechanical connections or electrical connections; direct connections or indirect connections through an intermediate medium; internal connections between two components or interactions between two components. Those skilled in the art can understand the specific meanings of the above terms in the embodiments of the present application based on specific circumstances.
[0051] With the development of new energy technologies, power batteries, due to their high energy density, rechargeability, safety, and environmental friendliness, are widely used in new energy vehicles, consumer electronics, energy storage systems, and other fields. Typically, power batteries include a battery management system (BMS), which performs signal detection at preset intervals. For certain signals, such as collision signals or overcurrent signals in new energy vehicles, longer detection intervals can affect real-time detection, while shorter detection intervals can increase load and affect the execution of other tasks.
[0052] In response to the above-mentioned problems, an embodiment of the present application provides a battery management system, which includes a main processor, a coprocessor, and a shared memory. Based on the management system, a signal detection method is provided, in which the main processor starts the coprocessor, and then the coprocessor performs signal detection processing according to a first detection frequency, and stores the signal detection results in the shared memory; the main processor then obtains the signal detection results from the shared memory. On the one hand, the first detection frequency of the coprocessor for signal detection is higher than the second detection frequency of the main processor for signal detection processing, which can increase the signal detection frequency and shorten the signal detection cycle, thereby improving the real-time performance of signal detection; on the other hand, the coprocessor assists the main processor in signal detection, which can reduce the load rate of the main processor and enable the main processor to take into account the execution of other tasks.
[0053] The signal detection method provided in the embodiment of the present application can be applied to Figure 1 The battery management system 10 includes a main processor 101, a coprocessor 102, and a shared memory 103. The shared memory 103 communicates with the main processor 101 and the coprocessor 102, respectively. The main processor 101 can also communicate with the coprocessor 102. The battery management system 10 is used to monitor, control, and manage various battery performance to ensure safe, stable, and long-life operation of the battery.
[0054] According to some embodiments of the present application, referring to Figure 2 , provides a signal detection method, which is applied to Figure 1 Taking the main processor in the battery management system as an example, the following steps can be included:
[0055] Step 201 : Start the coprocessor to enable the coprocessor to perform signal detection processing according to a first detection frequency and store the signal detection result in a shared memory.
[0056] Among them, the measured signal can be a signal with high real-time requirements in new energy vehicles, such as overcurrent signals and collision signals. In some embodiments, overcurrent signal detection can prevent large currents from occurring in the battery during charging and discharging, which may cause serious damage to the battery pack and circuit. By monitoring the current of the battery pack in real time and quickly cutting off the power supply or output when the current exceeds the safe range, the overcurrent protection function of the BMS can effectively protect the battery pack from damage. The principle of collision signal detection is based on the working mechanism of the collision sensor. When a new energy vehicle collides, the sensor converts the detected signal into an electrical signal and transmits it to the BMS. The BMS needs to detect the electrical signal in real time, determine whether a collision event has occurred, and trigger the BMS safety protection measures.
[0057] The first detection frequency is higher than the second detection frequency of the main processor for performing signal detection processing.
[0058] The main processor can start the coprocessor in a variety of ways. For example, the main processor sends a detection trigger signal to the coprocessor, and the coprocessor starts after receiving the detection trigger signal; or the main processor executes a call function to call the coprocessor to start the coprocessor.
[0059] It should be noted that the method for the main processor to start the coprocessor is not limited to the above example and can be set according to actual conditions.
[0060] After startup, the coprocessor detects and processes signals at a pre-set first detection frequency. These signals can include collision signals and overcurrent signals in new energy vehicles. Understandably, if these signals were detected by the main processor, the detection frequency would be the second detection frequency. However, if these signals are detected by the coprocessor at a higher first detection frequency than the second detection frequency, the detection frequency is increased and the detection cycle is shortened. This improves the real-time performance of signal detection.
[0061] The coprocessor obtains a signal detection result after signal detection and stores the signal detection result in a shared memory.
[0062] Step 202: Obtain signal detection results from the shared memory.
[0063] The main processor reads the signal detection results from the shared memory.
[0064] In the above embodiment, the main processor starts the coprocessor, which then performs signal detection processing at a first detection frequency and stores the signal detection results in a shared memory; the main processor then retrieves the signal detection results from the shared memory. In the technical solution of the embodiment of the present application, the first detection frequency of the coprocessor for signal detection is higher than the second detection frequency of the main processor for signal detection processing, which can increase the signal detection frequency and shorten the signal detection cycle, thereby improving the real-time performance of signal detection. In addition, the coprocessor assisting the main processor in signal detection can reduce the load rate of the main processor, allowing the main processor to take into account the execution of other tasks.
[0065] According to some embodiments of the present application, the signal detection method may further include: starting a coprocessor so that the coprocessor performs signal detection processing according to a first detection frequency, filtering the detected signal value, and storing the signal detection result obtained by filtering processing in a shared memory.
[0066] The main processor activates the coprocessor, which performs signal detection at a first detection frequency. The coprocessor then filters the detected signal value to obtain a filtered signal detection result, and stores the filtered signal detection result in a shared memory. The main processor can retrieve the filtered signal detection result from the shared memory.
[0067] In some embodiments, the filtering process can use a filter. For example, after performing signal detection according to a first detection frequency, the detected signal value is input into the filter, and the filter outputs a signal detection result, which is filtered. The above-mentioned filter can be built using analog components such as resistors, capacitors, and inductors, such as RC filters, LC filters, etc. The above-mentioned filter can also be implemented using a digital signal processing algorithm, such as an infinite impulse response filter (IIR) or a finite impulse response filter (FIR).
[0068] It should be noted that the filtering processing method is not limited to the above method, and in practical applications, other methods can also be used.
[0069] In the above embodiment, the main processor activates the coprocessor to perform signal detection processing at the first detection frequency, filter the detected signal value, and store the signal detection result obtained by the filtering processing in the shared memory. In the technical solution of the embodiment of the present application, filtering the detected signal value can improve the accuracy of signal detection.
[0070] According to some embodiments of the present application, the signal detection method may further include: starting a coprocessor so that the coprocessor performs signal detection processing according to a first detection frequency, performing anomaly detection based on the detected signal value, and storing a first anomaly detection result obtained by the anomaly detection to a shared memory; wherein the first anomaly detection result is used to characterize whether the new energy vehicle has an overcurrent anomaly or a collision anomaly.
[0071] The main processor activates the coprocessor, which performs signal detection at a first detection frequency. The detected signal value may include at least one of a level, a frequency, and a duty cycle of the detected signal. The coprocessor then determines whether an overcurrent anomaly or a collision anomaly occurs based on the detected signal value.
[0072] The coprocessor's detection of overcurrent anomalies may include the following scenarios: 1) The coprocessor determines that no overcurrent anomaly has occurred based on the measured signal being at a low level; or the coprocessor determines that an overcurrent anomaly has occurred based on the measured signal being at a high level. 2) The coprocessor determines that an overcurrent anomaly has occurred based on the measured signal being at a low level; or the coprocessor determines that no overcurrent anomaly has occurred based on the measured signal being at a high level. 3) The coprocessor determines that no overcurrent anomaly has occurred based on the measured signal's frequency not changing; or the coprocessor determines that an overcurrent anomaly has occurred based on a change in the measured signal's frequency. 4) The coprocessor determines that no overcurrent anomaly has occurred based on the measured signal's frequency being within a preset range; or the coprocessor determines that an overcurrent anomaly has occurred based on the measured signal's frequency exceeding the preset range. 5) The coprocessor determines that no overcurrent anomaly has occurred based on the measured signal's duty cycle not changing; or the coprocessor determines that an overcurrent anomaly has occurred based on a change in the measured signal's duty cycle. 6) The coprocessor determines that no overcurrent anomaly has occurred based on the measured signal's duty cycle being at a preset ratio; or the coprocessor determines that an overcurrent anomaly has occurred based on the measured signal's duty cycle not being at the preset ratio.
[0073] The coprocessor's detection of collision anomalies may include the following scenarios: 1) The coprocessor determines that no collision anomaly has occurred based on the measured signal being at a low level; or the coprocessor determines that a collision anomaly has occurred based on the measured signal being at a high level. 2) The coprocessor determines that a collision anomaly has occurred based on the measured signal being at a low level; or the coprocessor determines that no collision anomaly has occurred based on the measured signal being at a high level. 3) The coprocessor determines that no collision anomaly has occurred based on the measured signal's frequency not changing; or the coprocessor determines that a collision anomaly has occurred based on the measured signal's frequency changing. 4) The coprocessor determines that no collision anomaly has occurred based on the measured signal's frequency being within a preset range; or the coprocessor determines that a collision anomaly has occurred based on the measured signal's frequency exceeding the preset range. 5) The coprocessor determines that no collision anomaly has occurred based on the measured signal's duty cycle not changing; or the coprocessor determines that a collision anomaly has occurred based on the measured signal's duty cycle changing. 6) The coprocessor determines that no collision anomaly has occurred based on the measured signal's duty cycle being at a preset ratio; or the coprocessor determines that a collision anomaly has occurred based on the measured signal's duty cycle not being at the preset ratio.
[0074] It should be noted that the abnormality detection method is not limited to the above examples, and the measured signal is not limited to overcurrent signals and collision signals, but can also be other signals with high real-time requirements in new energy vehicles.
[0075] After the coprocessor performs anomaly detection and obtains a first anomaly detection result, it stores the first anomaly detection result in the shared memory; the main processor can directly obtain the first anomaly detection result from the shared memory to determine whether the new energy vehicle has an overcurrent anomaly, a collision anomaly or other anomaly.
[0076] In the above embodiment, the main processor activates the coprocessor, causing it to perform signal detection and processing at a first detection frequency, perform anomaly detection based on the detected signal value, and store a first anomaly detection result obtained by the anomaly detection in the shared memory. In the technical solution of the embodiment of the present application, the coprocessor performs anomaly determination based on the detected signal value, which can further improve the real-time performance of signal detection, thereby enabling the new energy vehicle to promptly respond to an anomaly and protect the safety of the battery pack.
[0077] According to some embodiments of the present application, the signal detection result includes at least one of the level state, frequency and duty cycle of the measured signal. The embodiments of the present application may also include: performing abnormality detection based on the signal detection result to obtain a second abnormality detection result; wherein the second abnormality detection result is used to characterize whether the new energy vehicle has an overcurrent abnormality or a collision abnormality.
[0078] In actual applications, after the coprocessor performs signal detection according to the first detection frequency, it obtains at least one of the level state, frequency and duty cycle of the measured signal; then, it stores at least one of the level state, frequency and duty cycle of the measured signal in the shared memory.
[0079] The main processor obtains at least one of the level state, frequency and duty cycle of the measured signal from the shared memory; then, an abnormality detection is performed based on these signal detection results to detect whether the new energy vehicle has an overcurrent abnormality or a collision abnormality.
[0080] The way in which the main processor performs abnormality detection based on at least one of the level state, frequency and duty cycle of the measured signal can refer to the abnormality detection method of the coprocessor in the above embodiment, and the embodiments of this application will not be repeated here.
[0081] In the above embodiment, the main processor performs anomaly detection based on the signal detection result to obtain a second anomaly detection result. In the technical solution of the embodiment of the present application, the main processor performs anomaly detection, which allows the main processor to promptly perform corresponding processing based on the anomaly detection result, thereby protecting the safety of the battery pack in the new energy vehicle.
[0082] According to some embodiments of the present application, referring to Figure 3 In the above embodiment, “obtaining the signal detection result from the shared memory” may include the following steps:
[0083] Step 301: Detect the signal detection completion flag in the shared memory.
[0084] The value of the signal detection completion flag is set by the coprocessor according to whether the signal detection is completed.
[0085] A signal detection completion flag is set in the shared memory. In some embodiments, the value of the signal detection completion flag is 0, indicating that the coprocessor has not completed signal detection; the value of the signal detection completion flag is 1, indicating that the coprocessor has completed signal detection.
[0086] The main processor starts the coprocessor, and the coprocessor performs signal detection at the first detection frequency. After each detection, the signal detection result is stored in the shared memory, and the signal detection completion flag in the shared memory is set to 1. If the coprocessor does not complete the signal detection, the signal detection completion flag in the shared memory can be set to 0.
[0087] The main processor may detect the signal detection completion flag in the shared memory according to a preset cycle, and determine whether the coprocessor has completed signal detection according to the value of the signal detection completion flag.
[0088] Step 302 : When the value of the signal detection completion flag indicates that the coprocessor has completed signal detection, obtain the signal detection result from the shared memory.
[0089] If the value of the signal detection completion flag indicates that the coprocessor has completed signal detection, the main processor reads the signal detection result from the shared memory. If the value of the signal detection completion flag indicates that the coprocessor has not completed signal detection, the main processor does not read the signal detection result from the shared memory.
[0090] In the above embodiment, the signal detection completion flag in the shared memory is detected; if the value of the signal detection completion flag indicates that the coprocessor has completed signal detection, the signal detection result is obtained from the shared memory. In the technical solution of the embodiment of the present application, the signal detection completion flag is used to indicate whether the signal detection result stored in the shared memory is complete, thereby ensuring the accuracy of the signal detection result obtained by the main processor from the shared memory.
[0091] According to some embodiments of the present application, referring to Figure 4 In the above embodiment, “starting the coprocessor” may include the following steps:
[0092] Step 401: Initialize the signal port.
[0093] After powering on, the main processor sets the function of each signal port. For example, the main processor sets signal port 1 to detect overcurrent signals and signal port 2 to detect collision signals. After initializing the signal ports, the coprocessor learns the function of each signal port and determines the type of signal being measured—that is, whether it is an overcurrent signal, a collision signal, or something else.
[0094] Step 402 : Obtain a detection program from a preset storage space and load the detection program into the coprocessor.
[0095] The battery management system or new energy vehicle can preset storage space, such as Pflash, etc. After initializing the signal port, the main processor obtains the detection program from the preset storage space and loads the detection program into the running RAM of the coprocessor.
[0096] Step 403: Call a preset interface function to start the coprocessor to run the detection program.
[0097] The main processor pre-sets an interface function. After the detection program is loaded into the coprocessor, the main processor calls the interface function to start the coprocessor. After the coprocessor starts, the detection program runs and performs signal detection according to the first detection frequency.
[0098] In the above embodiment, the signal port is initialized, a detection program is retrieved from a preset storage space, and the detection program is loaded into the coprocessor, and a pre-set interface function is called to start the coprocessor to run the detection program. In the technical solution of the embodiment of the present application, the detection program is set in the preset storage space, which facilitates the maintenance and updating of the detection program, thereby making the detection of the coprocessor more comprehensive.
[0099] According to some embodiments of the present application, referring to Figure 5 , provides a signal detection method, which is applied to Figure 1 Taking the coprocessor in the battery management system as an example, the following steps can be included:
[0100] Step 501: In response to the start-up of the main processor, signal detection processing is performed according to a first detection frequency.
[0101] The first detection frequency is higher than the second detection frequency of the main processor for performing signal detection processing.
[0102] The main processor starts the coprocessor, and in response to the starting of the main processor, the coprocessor performs signal detection according to the first detection frequency.
[0103] In some embodiments, the detected signals may include overcurrent signals and collision signals in new energy vehicles. If these signals are detected by the main processor, the detection frequency is the second detection frequency; if these signals are detected by the coprocessor, the detection frequency is the first detection frequency. Because the first detection frequency is higher than the second detection frequency, using the coprocessor for signal detection increases the detection frequency and shortens the detection period.
[0104] Step 502: Store the signal detection result in the shared memory, so that the main processor can obtain the signal detection result from the shared memory.
[0105] After the coprocessor obtains the signal detection result through signal detection, it stores the signal detection result in the shared memory. The main processor reads the signal detection result from the shared memory.
[0106] In the above embodiment, the coprocessor performs signal detection processing according to the first detection frequency in response to the startup of the main processor. The signal detection result is stored in the shared memory, and the main processor obtains the signal detection result from the shared memory. In the technical solution of the embodiment of the present application, the first detection frequency of the coprocessor for signal detection is higher than the second detection frequency of the main processor for signal detection processing, which can increase the signal detection frequency and shorten the signal detection cycle, thereby improving the real-time performance of signal detection; and, the coprocessor assists the main processor in signal detection, which can reduce the load rate of the main processor and enable the main processor to take into account the execution of other tasks.
[0107] According to some embodiments of the present application, referring to Figure 6 , the embodiment of the present application may further include the following steps:
[0108] Step 601: After performing signal detection processing according to a first detection frequency, filtering processing is performed on the detected signal value.
[0109] The coprocessor performs signal detection according to the first detection frequency; then, the coprocessor performs filtering processing on the detected signal value.
[0110] In some embodiments, the filtering process may adopt an analog filtering method or a digital filtering method. The specific filtering method may refer to the above embodiments.
[0111] Step 602: Store the signal detection result obtained by filtering into the shared memory.
[0112] After filtering, the coprocessor stores the signal detection result obtained by the filtering process in the shared memory, and the main processor can obtain the signal detection result after filtering from the shared memory.
[0113] In the above embodiment, after the coprocessor performs signal detection processing at the first detection frequency, it filters the detected signal value and stores the signal detection result obtained by the filtering processing in the shared memory. In the technical solution of the embodiment of the present application, filtering the detected signal value can improve the accuracy of signal detection.
[0114] According to some embodiments of the present application, referring to Figure 7 , the embodiment of the present application may further include the following steps:
[0115] Step 701: After performing signal detection processing according to a first detection frequency, perform abnormality detection based on the detected signal value.
[0116] The detected signal value may include at least one of a level state, a frequency, and a duty cycle of the measured signal.
[0117] The coprocessor determines whether an overcurrent anomaly or a collision anomaly occurs based on the detected signal value.
[0118] The coprocessor's detection of overcurrent anomalies may include the following scenarios: 1) The coprocessor determines that no overcurrent anomaly has occurred based on the measured signal being at a low level; or the coprocessor determines that an overcurrent anomaly has occurred based on the measured signal being at a high level. 2) The coprocessor determines that an overcurrent anomaly has occurred based on the measured signal being at a low level; or the coprocessor determines that no overcurrent anomaly has occurred based on the measured signal being at a high level. 3) The coprocessor determines that no overcurrent anomaly has occurred based on the measured signal's frequency not changing; or the coprocessor determines that an overcurrent anomaly has occurred based on a change in the measured signal's frequency. 4) The coprocessor determines that no overcurrent anomaly has occurred based on the measured signal's frequency being within a preset range; or the coprocessor determines that an overcurrent anomaly has occurred based on the measured signal's frequency exceeding the preset range. 5) The coprocessor determines that no overcurrent anomaly has occurred based on the measured signal's duty cycle not changing; or the coprocessor determines that an overcurrent anomaly has occurred based on a change in the measured signal's duty cycle. 6) The coprocessor determines that no overcurrent anomaly has occurred based on the measured signal's duty cycle being at a preset ratio; or the coprocessor determines that an overcurrent anomaly has occurred based on the measured signal's duty cycle not being at the preset ratio.
[0119] The coprocessor's detection of collision anomalies may include the following scenarios: 1) The coprocessor determines that no collision anomaly has occurred based on the measured signal being at a low level; or the coprocessor determines that a collision anomaly has occurred based on the measured signal being at a high level. 2) The coprocessor determines that a collision anomaly has occurred based on the measured signal being at a low level; or the coprocessor determines that no collision anomaly has occurred based on the measured signal being at a high level. 3) The coprocessor determines that no collision anomaly has occurred based on the measured signal's frequency not changing; or the coprocessor determines that a collision anomaly has occurred based on the measured signal's frequency changing. 4) The coprocessor determines that no collision anomaly has occurred based on the measured signal's frequency being within a preset range; or the coprocessor determines that a collision anomaly has occurred based on the measured signal's frequency exceeding the preset range. 5) The coprocessor determines that no collision anomaly has occurred based on the measured signal's duty cycle not changing; or the coprocessor determines that a collision anomaly has occurred based on the measured signal's duty cycle changing. 6) The coprocessor determines that no collision anomaly has occurred based on the measured signal's duty cycle being at a preset ratio; or the coprocessor determines that a collision anomaly has occurred based on the measured signal's duty cycle not being at the preset ratio.
[0120] It should be noted that the abnormality detection method is not limited to the above examples, and the measured signal is not limited to overcurrent signals and collision signals, but can also be other signals with high real-time requirements in new energy vehicles.
[0121] Step 702: Store the first anomaly detection result obtained by the anomaly detection into the shared memory.
[0122] Among them, the first abnormality detection result is used to indicate whether the new energy vehicle has an overcurrent abnormality or a collision abnormality.
[0123] After the coprocessor performs an anomaly detection and obtains a first anomaly detection result, it stores the first anomaly detection result in the shared memory. The main processor can directly obtain the first anomaly detection result from the shared memory to determine whether the new energy vehicle has an overcurrent anomaly, a collision anomaly, or other anomalies.
[0124] In the above embodiment, after signal detection processing is performed at the first detection frequency, anomaly detection is performed based on the detected signal value; and the first anomaly detection result obtained by the anomaly detection is stored in the shared memory. In the technical solution of the embodiment of the present application, the coprocessor performs anomaly determination based on the detected signal value, which can further improve the real-time performance of signal detection, thereby enabling new energy vehicles to take timely appropriate measures when an anomaly occurs, protecting the safety of the battery pack.
[0125] According to some embodiments of the present application, the signal detection result includes at least one of the level state, frequency and duty cycle of the measured signal, and the signal detection result is provided to the main processor for abnormality detection to obtain a second abnormality detection result; wherein, the second abnormality detection result is used to characterize whether the new energy vehicle has an overcurrent abnormality or a collision abnormality.
[0126] After the coprocessor performs signal detection according to the first detection frequency, it obtains at least one of the level state, frequency and duty cycle of the measured signal; then, it stores at least one of the level state, frequency and duty cycle of the measured signal in the shared memory.
[0127] The main processor obtains at least one of the level state, frequency and duty cycle of the measured signal from the shared memory; then, an abnormality detection is performed based on these signal detection results to detect whether the new energy vehicle has an overcurrent abnormality or a collision abnormality.
[0128] The abnormality detection method of the main processor can refer to the abnormality detection method of the coprocessor in the above embodiment, and will not be repeated in this embodiment of the present application.
[0129] In the above embodiment, the signal detection result is used by the main processor to perform anomaly detection to obtain a second anomaly detection result. In the technical solution of the embodiment of the present application, the main processor performs anomaly detection, which allows the main processor to promptly perform corresponding processing based on the anomaly detection result, thereby protecting the safety of the battery pack in the new energy vehicle.
[0130] According to some embodiments of the present application, the embodiments of the present application may further include: setting the value of the signal detection completion flag in the shared memory; wherein the value of the signal detection completion flag is used to indicate whether the coprocessor has completed signal detection.
[0131] The main processor starts the coprocessor, and the coprocessor performs signal detection at a first detection frequency. After each detection, the signal detection result is stored in the shared memory, and a signal detection completion flag in the shared memory is set to 1. If the coprocessor does not complete the signal detection, the signal detection completion flag in the shared memory may be set to 0.
[0132] The main processor detects the signal detection completion flag in the shared memory according to a preset cycle, and determines whether the coprocessor has completed signal detection based on the signal detection completion flag. If it is determined that the coprocessor has completed signal detection, the signal detection result is obtained from the shared memory.
[0133] In the above embodiment, the coprocessor sets the value of the signal detection completion flag in the shared memory. In the technical solution of the embodiment of the present application, the signal detection completion flag can be used to indicate whether the signal detection results stored in the shared memory are complete, thereby ensuring the accuracy of the signal detection results obtained by the main processor from the shared memory.
[0134] According to some embodiments of the present application, "in response to the startup of the main processor" in the above embodiments may include: after the main processor initializes the signal port, obtains the detection program from a preset storage space, loads the detection program to the coprocessor, and calls a preset interface function, runs the detection program in response to the call of the preset interface function.
[0135] After powering on, the main processor initializes the signal ports, setting the functions of each port so that the coprocessor can determine the function of the signal being tested. It then retrieves the test program from a pre-set storage space and loads it into the coprocessor's RAM. The main processor then calls a pre-set interface function.
[0136] The coprocessor responds to the calling of the interface function, runs the detection program, and performs signal detection according to the first detection frequency.
[0137] In the above embodiment, the coprocessor initializes the signal port after the main processor, retrieves the detection program from the preset storage space, loads the detection program into the coprocessor, and calls the preset interface function, and then runs the detection program in response to the call of the preset interface function. In the technical solution of the embodiment of the present application, the detection program is set in the preset storage space, which facilitates the maintenance and updating of the detection program, thereby making the coprocessor's detection more comprehensive.
[0138] According to some embodiments of the present application, a signal detection method is provided, which is applied to Figure 1 Taking the battery management system as an example, the following steps can be included:
[0139] Step 1: The main processor initializes the signal port.
[0140] Step 2: The main processor obtains the detection program from the preset storage space and loads the detection program into the coprocessor.
[0141] Step 3: The main processor calls a preset interface function to start the coprocessor.
[0142] In step 4, the coprocessor runs the detection program, performs signal detection processing according to the first detection frequency, and filters the detected signal value; performs anomaly detection based on the signal value obtained by the filtering process, and stores the first anomaly detection result obtained by the anomaly detection into the shared memory.
[0143] Among them, the first abnormality detection result is used to indicate whether the new energy vehicle has an overcurrent abnormality or a collision abnormality.
[0144] Step 5: The coprocessor sets the value of the signal detection completion flag in the shared memory.
[0145] Step 6: The main processor detects the signal detection completion flag in the shared memory.
[0146] Step 7: When the value of the signal detection completion flag indicates that the coprocessor has completed signal detection, the main processor obtains the first abnormality detection result from the shared memory.
[0147] In an embodiment of the present application, the first detection frequency of the coprocessor for signal detection is higher than the second detection frequency of the main processor for signal detection processing, which can increase the signal detection frequency and shorten the signal detection period, thereby improving the real-time performance of signal detection; and, the coprocessor assists the main processor in signal detection, which can reduce the load rate of the main processor and enable the main processor to take into account the execution of other tasks. Furthermore, the coprocessor filters the detected signal value to improve the accuracy of signal detection. In addition, the coprocessor makes an abnormality judgment based on the detected signal value, which can further improve the real-time performance of signal detection, so that new energy vehicles can make corresponding processing in time when an abnormality occurs, thereby protecting the safety of the battery pack.
[0148] According to some embodiments of the present application, a signal detection method is provided, which is applied to Figure 1 Taking the battery management system as an example, the following steps can be included:
[0149] Step 1: The main processor initializes the signal port.
[0150] Step 2: The main processor obtains the detection program from the preset storage space and loads the detection program into the coprocessor.
[0151] Step 3: The main processor calls a preset interface function to start the coprocessor.
[0152] Step 4: The coprocessor runs the detection program, performs signal detection processing according to the first detection frequency, and performs filtering processing on the detected signal value; and stores the signal detection result obtained by the filtering processing into the shared memory.
[0153] Step 5: The coprocessor sets the value of the signal detection completion flag in the shared memory.
[0154] Step 6: The main processor detects the signal detection completion flag in the shared memory.
[0155] Step 7: When the value of the signal detection completion flag indicates that the coprocessor has completed signal detection, the main processor obtains the signal detection result from the shared memory.
[0156] In step 8, the main processor performs an abnormality detection based on the signal detection result to obtain a second abnormality detection result; wherein the second abnormality detection result is used to indicate whether the new energy vehicle has an overcurrent abnormality or a collision abnormality.
[0157] In an embodiment of the present application, the first detection frequency of the coprocessor for signal detection is higher than the second detection frequency of the main processor for signal detection processing, which can increase the signal detection frequency and shorten the signal detection cycle, thereby improving the real-time performance of signal detection; and, the coprocessor assists the main processor in signal detection, which can reduce the load rate of the main processor and enable the main processor to take into account the execution of other tasks. Furthermore, the coprocessor filters the detected signal value to improve the accuracy of signal detection. In addition, the main processor performs abnormality detection, which allows the main processor to timely combine the abnormality detection results for corresponding processing, thereby protecting the safety of the battery pack in the new energy vehicle.
[0158] It should be understood that, although the various steps in the above flow chart are shown in sequence as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the above flow chart may include multiple steps or multiple stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily to be performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0159] Based on the same inventive concept, the present application also provides a signal detection device for implementing the aforementioned signal detection method. The solution provided by this device is similar to the solution described in the aforementioned method. Therefore, the specific limitations in one or more signal detection device embodiments provided below can be found in the above-mentioned limitations on the signal detection method and will not be further elaborated here.
[0160] According to some embodiments of the present application, referring to Figure 8 , provides a signal detection device, which is applied to a main processor in a battery management system. The battery management system also includes a coprocessor and a shared memory. The device includes:
[0161] A detection startup module 801 is used to start the coprocessor so that the coprocessor performs signal detection processing according to a first detection frequency and stores the signal detection results in a shared memory; wherein the first detection frequency is higher than a second detection frequency at which the main processor performs signal detection processing;
[0162] The result acquisition module 802 is configured to acquire the signal detection result from the shared memory.
[0163] In some embodiments, the detection startup module 801 is also used to start the coprocessor so that the coprocessor performs signal detection processing according to the first detection frequency, filters the detected signal value, and stores the signal detection result obtained by the filtering processing in the shared memory.
[0164] In some embodiments, the detection startup module 801 is also used to start the coprocessor so that the coprocessor performs signal detection processing according to the first detection frequency, performs anomaly detection based on the detected signal value, and stores the first anomaly detection result obtained by the anomaly detection to the shared memory; wherein, the first anomaly detection result is used to characterize whether the new energy vehicle has an overcurrent anomaly or a collision anomaly.
[0165] In some embodiments, reference Figure 9 The signal detection result includes at least one of a level state, a frequency, and a duty cycle of the measured signal, and the device further includes:
[0166] The abnormality detection module 803 is used to perform abnormality detection according to the signal detection result to obtain a second abnormality detection result; wherein the second abnormality detection result is used to indicate whether the new energy vehicle has an overcurrent abnormality or a collision abnormality.
[0167] In some embodiments, the result acquisition module 802 is specifically used to detect the signal detection completion flag in the shared memory; wherein, the value of the signal detection completion flag is set by the coprocessor according to whether the signal detection is completed; when the value of the signal detection completion flag indicates that the coprocessor has completed the signal detection, the signal detection result is obtained from the shared memory.
[0168] In some embodiments, the detection startup module 801 is specifically used to initialize the signal port; obtain the detection program from the preset storage space and load the detection program to the coprocessor; call a preset interface function to start the coprocessor to run the detection program.
[0169] According to some embodiments of the present application, referring to Figure 10 , provides a signal detection device for use with a coprocessor in a battery management system, the battery management system also including a main processor and a shared memory, the device comprising:
[0170] The signal detection module 901 is configured to perform signal detection processing according to a first detection frequency in response to activation of the main processor; wherein the first detection frequency is higher than a second detection frequency at which the main processor performs signal detection processing;
[0171] The result storage module 902 is used to store the signal detection result in the shared memory so that the main processor can obtain the signal detection result from the shared memory.
[0172] In some embodiments, the signal detection module 901 is further configured to perform filtering on the detected signal value after performing signal detection processing according to the first detection frequency; and store the signal detection result obtained by the filtering processing in the shared memory.
[0173] In some embodiments, the signal detection module 901 is also used to perform anomaly detection based on the detected signal value after performing signal detection processing according to the first detection frequency; and store the first anomaly detection result obtained by the anomaly detection in the shared memory; wherein the first anomaly detection result is used to characterize whether the new energy vehicle has an overcurrent anomaly or a collision anomaly.
[0174] In some embodiments, the signal detection result includes at least one of the level state, frequency and duty cycle of the measured signal, and the signal detection result is provided to the main processor for abnormality detection to obtain a second abnormality detection result; wherein, the second abnormality detection result is used to characterize whether the new energy vehicle has an overcurrent abnormality or a collision abnormality.
[0175] In some embodiments, reference Figure 10 , the device further comprises:
[0176] The flag setting module 903 is used to set the value of the signal detection completion flag in the shared memory; wherein the value of the signal detection completion flag is used to indicate whether the coprocessor has completed signal detection.
[0177] In some embodiments, the signal detection module 901 is specifically used to initialize the signal port in the main processor, obtain the detection program from the preset storage space, load the detection program to the coprocessor, and run the detection program in response to the call of the preset interface function after calling the preset interface function.
[0178] Each module in the above-mentioned signal detection device can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in an electronic device in the form of hardware, or can be stored in a memory in the electronic device in the form of software, so that the processor can call and execute the corresponding operations of each module.
[0179] According to some embodiments of the present application, a battery management system is provided, which includes a main processor and a coprocessor; the main processor and the coprocessor are used to implement the signal detection method in the above embodiment.
[0180] According to some embodiments of the present application, an electronic device is provided. The electronic device may be a battery management system, and its internal structure diagram may be as follows: Figure 12 As shown. The electronic device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O) and a communication interface. The processor, memory and input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the electronic device is used to store signal detection data. The input / output interface of the electronic device is used to exchange information between the processor and an external device. The communication interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a signal detection method is implemented.
[0181] Those skilled in the art will understand that Figure 12 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the electronic device to which the solution of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0182] According to some embodiments of the present application, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory including instructions. The instructions can be executed by a processor of an electronic device to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0183] According to some embodiments of the present application, a computer program product is also provided. When executed by a processor, the computer program can implement the above-mentioned method. The computer program product includes one or more computer instructions. When these computer instructions are loaded and executed on a computer, part or all of the above-mentioned method can be implemented in whole or in part according to the processes or functions described in the embodiments of the present application.
[0184] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned embodiments. In particular, any reference to memory, database, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processors involved in the various embodiments provided herein may be, but are not limited to, general-purpose processors, central processing units (CPUs), graphics processing units (GPUs), digital signal processors (DSPs), programmable logic devices (PLDs), data processing logic devices based on quantum computing, and the like.
[0185] The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above-mentioned embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0186] The embodiments described above only express several implementation methods of the present application, which are convenient for understanding the technical solutions of the present application in a specific and detailed manner, but they cannot be understood as limiting the scope of protection of the invention patent. It should be pointed out that for ordinary technicians in this field, without departing from the concept of the present application, several variations and improvements can be made, which all fall within the scope of protection of the present application. It should be understood that the technical solutions obtained by those skilled in the art through logical analysis, reasoning or limited experiments on the basis of the technical solutions provided in the present application are all within the scope of protection of the attached claims described in the present application. Therefore, the scope of protection of the patent of this application shall be based on the content of the attached claims, and the description and drawings can be used to interpret the content of the claims.
Claims
1. A signal detection method, characterized in that: A main processor is applied to a battery management system, wherein the battery management system further includes a coprocessor and a shared memory, and the method includes: Starting the coprocessor so that the coprocessor performs signal detection processing according to a first detection frequency and stores the signal detection result in the shared memory; wherein the first detection frequency is higher than a second detection frequency of the main processor for performing signal detection processing; The signal detection result is obtained from the shared memory.
2. The method according to claim 1, characterized in that The method further comprises: The coprocessor is started to perform signal detection processing according to the first detection frequency, filter the detected signal value, and store the signal detection result obtained by the filtering processing in the shared memory.
3. The method according to claim 1, characterized in that The method further comprises: The coprocessor is started so that the coprocessor performs signal detection processing according to the first detection frequency, performs anomaly detection based on the detected signal value, and stores a first anomaly detection result obtained by the anomaly detection in the shared memory; wherein the first anomaly detection result is used to characterize whether the new energy vehicle has an overcurrent anomaly or a collision anomaly.
4. The method according to claim 1, wherein The signal detection result includes at least one of a level state, a frequency, and a duty cycle of the measured signal, and the method further includes: An abnormality detection is performed based on the signal detection result to obtain a second abnormality detection result; wherein the second abnormality detection result is used to indicate whether the new energy vehicle has an overcurrent abnormality or a collision abnormality.
5. The method according to claim 1, wherein The obtaining the signal detection result from the shared memory includes: Detecting a signal detection completion flag in the shared memory; wherein a value of the signal detection completion flag is set by the coprocessor according to whether the signal detection is completed; When the value of the signal detection completion flag indicates that the coprocessor has completed signal detection, the signal detection result is obtained from the shared memory.
6. The method according to claim 1, characterized in that The starting the coprocessor includes: Initialize the signal port; Retrieving a detection program from a preset storage space, and loading the detection program into the coprocessor; A preset interface function is called to start the coprocessor to run the detection program.
7. A signal detection method, characterized in that: A coprocessor is applied to a battery management system, wherein the battery management system further includes a main processor and a shared memory, and the method includes: In response to the activation of the main processor, signal detection processing is performed according to a first detection frequency; wherein the first detection frequency is higher than a second detection frequency of the main processor for performing signal detection processing; The signal detection result is stored in the shared memory, so that the main processor can obtain the signal detection result from the shared memory.
8. The method according to claim 7, characterized in that The method further comprises: After performing signal detection processing according to the first detection frequency, filtering the detected signal value; The signal detection result obtained by filtering is stored in the shared memory.
9. The method according to claim 7, characterized in that The method further comprises: After performing signal detection processing according to the first detection frequency, performing abnormality detection based on the detected signal value; The first abnormality detection result obtained by the abnormality detection is stored in the shared memory; wherein the first abnormality detection result is used to indicate whether the new energy vehicle has an overcurrent abnormality or a collision abnormality.
10. The method according to claim 7, characterized in that The signal detection result includes at least one of the level state, frequency and duty cycle of the measured signal, and the signal detection result is used by the main processor to perform abnormality detection to obtain a second abnormality detection result; wherein, the second abnormality detection result is used to indicate whether the new energy vehicle has an overcurrent abnormality or a collision abnormality.
11. The method according to claim 7, characterized in that The method further comprises: The value of the signal detection completion flag in the shared memory is set; wherein the value of the signal detection completion flag is used to indicate whether the coprocessor has completed signal detection.
12. The method according to claim 7, characterized in that The step of responding to the activation of the main processor includes: After the main processor initializes the signal port, obtains the detection program from the preset storage space, loads the detection program into the coprocessor, and calls the preset interface function, the detection program is run in response to the call of the preset interface function.
13. A signal detection device, characterized in that: A main processor is applied to a battery management system, wherein the battery management system further includes a coprocessor and a shared memory. The device includes: a detection startup module, configured to start the coprocessor so that the coprocessor performs signal detection processing at a first detection frequency and stores the signal detection result in the shared memory; wherein the first detection frequency is higher than a second detection frequency at which the main processor performs signal detection processing; A result acquisition module is used to acquire the signal detection result from the shared memory.
14. A signal detection device, characterized in that: A coprocessor used in a battery management system, wherein the battery management system further includes a main processor and a shared memory, and the device includes: a signal detection module, configured to, in response to the activation of the main processor, perform signal detection processing at a first detection frequency; wherein the first detection frequency is higher than a second detection frequency at which the main processor performs signal detection processing; The result storage module is used to store the signal detection result in the shared memory so that the main processor can obtain the signal detection result from the shared memory.
15. A battery management system, characterized in that: The battery management system includes a main processor and a coprocessor; The main processor is configured to implement the steps of the method according to any one of claims 1 to 6; The coprocessor is configured to implement the steps of the method according to any one of claims 7 to 12.
16. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.
17. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.