Slave board communication diagnosis method, device and equipment of battery management system and medium
By sending forward and reverse communication instructions in the battery management system, the problem of inapplicability of BMS slave board communication diagnostic solution is solved, real-time monitoring and diagnosis of slave board links is realized, and the reliability and simplicity of communication diagnosis is improved.
Patent Information
- Application Number
- CN202510419885.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-03
- Publication Date
- 2025-07-08
AI Technical Summary
In the prior art, the communication diagnostic solution of the BMS slave board is not applicable to a distributed architecture battery management system and cannot monitor the communication status of the link in real time.
By sending forward and reverse communication instructions to the battery management system from the slave board, it is determined to simulate the link communication status of the front-end chip, including abnormality, forward link normality and reverse link normality, and access and diagnosis using the bridge chip.
It realizes real-time monitoring of the status of the slave board communication link during BMS operation, improves the reliability and simplicity of diagnosis, and is suitable for environments with high communication stability requirements.
Smart Images

Figure CN120281681A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of batteries, and in particular, to a method, device, equipment and medium for diagnosing the communication of a slave board of a battery management system. Background Art
[0002] With the booming development of new energy vehicles, the market has an increasing demand for electric vehicles with long cruising range and large battery capacity. The battery management systems (BMS) of these new energy vehicles with large battery capacity mainly adopt a distributed architecture, that is, usually a BMS main board and multiple BMS slave boards are set. The BMS slave boards detect the status of the batteries on the electric vehicle and send the battery data obtained from the detection to the BMS main board. The utility model patent filed by our company discloses a BMS slave board and a BMS system. Figure 1 For the utility model patent (2024213554955), it is an architecture diagram of a BMS slave board and a BMS system topology, as Figure 1 shown, including a BMS main board and at least one BMS slave board. The BMS main board includes an MCU and a transceiver connected to the MCU. The transceiver of the BMS slave board is connected to the transceiver of the BMS main board through a communication bus. The BMS slave board includes a bridge chip, a transceiver and a sampling chip. The bridge chip includes a communication module and a communication port. The bridge chip is connected to the transceiver through the communication module and to the sampling chip through the communication port. The BMS slave board is connected to the BMS main board through the transceiver, and the BMS slave board is connected to the battery sensor through the sampling chip to obtain the analog quantity data of the battery through the battery sensor. This system can further reduce the cost of the slave board while ensuring a relatively long communication distance. The topology network of the slave board communication in this patent solution is significantly different from the traditional two-way daisy chain and distributed CAN communication solutions. In the traditional two-way daisy chain communication, multiple slave boards are connected in series through a daisy chain. In the utility model patent of a BMS slave board and a BMS system, the daisy chain of each slave board is independent, and multiple slave boards form multiple daisy chains for parallel communication. Therefore, the traditional slave board communication diagnosis scheme is not applicable. Summary of the Invention
[0003] The embodiments of the present invention provide a method, device, equipment and medium for diagnosing the communication of a slave board of a battery management system, which solves the problem that the traditional slave board communication diagnosis scheme is not applicable to the utility model patent of a BMS slave board and a BMS system, and can monitor the communication status of the link in real time during the operation of the BMS.
[0004] In a first aspect, the embodiments of the present invention provide a method for diagnosing the communication of a slave board of a battery management system, including:
[0005] When the battery management system receives a diagnostic instruction, it sends a forward communication instruction for a first preset number of times and a reverse communication instruction for a second preset number of times to each analog front-end chip included in the slave board to be diagnosed included in the diagnostic instruction; at least one of the slave boards is included in the battery management system; each analog front-end chip in the slave board is connected in series through a daisy chain on the slave board; the bridging chips in the slave board are respectively connected to the analog front-end chip at the head end and the analog front-end chip at the tail end of the daisy chain; the slave board accesses the analog front-end chip forward and backward through the bridging chip;
[0006] Determine the communication status of the links of each of the analog front-end chips in the slave board according to the execution conditions of the forward communication instruction and the reverse communication instruction and end the diagnostic process; the communication status includes that the communication is abnormal, the forward link communication is normal, and the reverse link communication is normal.
[0007] In a second aspect, an embodiment of the present invention further provides a slave board communication diagnosis device for a battery management system, and the device includes:
[0008] A diagnostic instruction module, configured to send a forward communication instruction for a first preset number of times and a reverse communication instruction for a second preset number of times to each analog front-end chip included in the slave board to be diagnosed included in the diagnostic instruction when the battery management system receives a diagnostic instruction; at least one of the slave boards is included in the battery management system; each analog front-end chip in the slave board is connected in series through a daisy chain on the slave board; the bridging chips in the slave board are respectively connected to the analog front-end chip at the head end and the analog front-end chip at the tail end of the daisy chain; the slave board accesses the analog front-end chip forward and backward through the bridging chip;
[0009] A communication diagnosis module, configured to determine the communication status of the links of each of the analog front-end chips in the slave board according to the execution conditions of the forward communication instruction and the reverse communication instruction and end the diagnostic process; the communication status includes that the communication is abnormal, the forward link communication is normal, and the reverse link communication is normal.
[0010] In a third aspect, an embodiment of the present disclosure further provides an electronic device, and the electronic device includes:
[0011] One or more processors;
[0012] A storage device for storing one or more programs,
[0013] When the one or more programs are executed by the one or more processors, the one or more processors implement the slave board communication diagnosis method for a battery management system provided by the embodiments of the present disclosure.
[0014] Fourthly, an embodiment of the present disclosure further provides a storage medium containing computer-executable instructions, which are used to execute the method for diagnosing communication of a slave board of a battery management system provided by the embodiments of the present disclosure when executed by a computer processor.
[0015] Fifthly, an embodiment of the present disclosure further provides a computer program product, which includes a computer program that implements the method for diagnosing communication of a slave board of a battery management system provided by the embodiments of the present disclosure when executed by a processor.
[0016] The present invention discloses a method, device, equipment and medium for diagnosing communication of a slave board of a battery management system. The method includes: when the battery management system receives a diagnostic instruction, sending a first preset number of forward communication instructions and a second preset number of reverse communication instructions to each analog front-end chip included in the slave board to be diagnosed included in the diagnostic instruction; at least one of the slave boards is included in the battery management system; the analog front-end chips in the slave board are connected in series through a daisy chain on the slave board; the bridging chips in the slave board are respectively connected to the analog front-end chip at the head end and the analog front-end chip at the tail end of the daisy chain; the slave board accesses the analog front-end chip forward and backward through the bridging chip; determining the communication status of the links of each analog front-end chip in the slave board according to the execution conditions of the forward communication instruction and the reverse communication instruction and ending the diagnostic process; the communication status includes that the communication is abnormal, the forward link communication is normal, and the reverse link communication is normal. Using this method: it solves the problem that a traditional diagnostic scheme for slave board communication is not applicable to a BMS slave board and a BMS system in a utility model patent, and can monitor the communication status of the link in real time during the operation of the BMS. Description of the Drawings
[0017] Combined with the drawings and referring to the following specific embodiments, the above and other features, advantages and aspects of the embodiments of the present disclosure will become more obvious. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic, and the original components and elements are not necessarily drawn to scale.
[0018] Figure 1 It is a topology architecture diagram of a BMS slave board and a BMS system in a utility model patent;
[0019] Figure 2 It is a flowchart of a method for diagnosing communication of a slave board of a battery management system provided by an embodiment of the present disclosure;
[0020] Figure 3 It is a flow example diagram of a method for diagnosing communication of a slave board provided by an embodiment of the present disclosure;
[0021] Figure 4It is a flow example diagram of analog front-end chip (AFE) diagnosis in the slave board communication diagnosis method provided by the embodiments of the present disclosure;
[0022] Figure 5 It is another flow example diagram of the slave board communication diagnosis method provided by the embodiments of the present disclosure;
[0023] Figure 6 It is a flow schematic diagram of a communication sampling method provided by the embodiments of the present disclosure.
[0024] Figure 7 It is a flow schematic diagram of another communication sampling method provided by the embodiments of the present disclosure.
[0025] Figure 8 It is a structural schematic diagram of a slave board communication diagnosis device of a battery management system provided by the embodiments of the present disclosure;
[0026] Figure 9 It is a structural schematic diagram of an electronic device provided by the embodiments of the present disclosure. Detailed implementation manners
[0027] The embodiments of the present disclosure will be described in more detail with reference to the accompanying drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. On the contrary, these embodiments are provided to more thoroughly and completely understand the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not used to limit the protection scope of the present disclosure.
[0028] It should be understood that the various steps recorded in the method embodiments of the present disclosure can be executed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this regard.
[0029] The term "including" and its variants used herein are open-ended, that is, "including but not limited to". The term "based on" is "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0030] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependent relationships.
[0031] It should be noted that the modifiers "one" and "multiple" mentioned in this disclosure are illustrative rather than restrictive. Those skilled in the art should understand that, unless otherwise clearly specified in the context, it should be understood as "one or more".
[0032] It can be understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) should comply with the requirements of the corresponding laws, regulations and related provisions.
[0033] Embodiment 1
[0034] Figure 2 The figure is a flowchart of a method for diagnosing communication of a slave board of a battery management system provided by an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to providing a topological network for solving the communication of the slave board in the patent solutions of the BMS slave board and the BMS system, which is significantly different from the traditional two-way daisy chain and distributed CAN communication solutions, and the traditional slave board communication diagnosis solution is not applicable. This method can be executed by a device for diagnosing communication of a slave board of a battery management system, and this device can be implemented in the form of software and / or hardware. Optionally, it is implemented by an electronic device, and this electronic device can be a mobile terminal, a PC or a server, etc.
[0035] As Figure 2 shown, a method for diagnosing communication of a slave board of a battery management system provided by an embodiment of the present disclosure may specifically include the following steps:
[0036] S110. When the battery management system receives a diagnostic instruction, send a forward communication instruction for a first preset number of times and a reverse communication instruction for a second preset number of times to each analog front-end chip included in the slave board to be diagnosed included in the diagnostic instruction;
[0037] The battery management system includes at least one slave board; each analog front-end chip in the slave board is connected in series through a daisy chain on the slave board; the bridging chips in the slave board are respectively connected to the analog front-end chip at the head end and the analog front-end chip at the tail end of the daisy chain; the slave board accesses the analog front-end chip forward and backward through the bridging chip.
[0038] In this embodiment, the battery management system includes at least one slave board. The slave boards are in parallel connection with each other without interference. Each slave board has a unique access ID and can also send broadcast instructions to access all slave boards. The slave boards connect all the Analog Front-End (AFE) chips in series through the daisy chain on the board. The bridging chips in the slave boards are respectively connected to the AFE chip at the head end and the AFE chip at the tail end of the daisy chain. Each slave board can access all the AFE chips forward through the bridging chip port and can also access all the AFE chips backward through the bridging chip port. Within one slave board, each AFE chip needs to be assigned a unique address code. Each AFE chip supports two-way communication, that is, it can be accessed forward and can also be accessed backward. In addition, all the AFE chips can also be accessed through broadcast instructions, and each AFE chip defaults to forwarding the instructions of the previous AFE chip.
[0039] Continuing from the above, the diagnostic instruction can be the instruction information for the battery management system to perform communication diagnosis. The slave boards to be diagnosed and the corresponding AFE chips included therein are contained in the diagnostic instruction. The first preset number of times and the second preset number of times can be preset numbers of times, which are set according to actual needs and are not specifically limited in this embodiment.
[0040] Specifically, when the battery management system receives the diagnostic instruction, it sends the forward communication instruction for the first preset number of times and the reverse communication instruction for the second preset number of times to each of the AFE chips corresponding to the slave boards to be diagnosed included in the diagnostic instruction.
[0041] Using this method, by sending at least one communication instruction, the reliability of diagnosis is enhanced.
[0042] S120. Determine the communication status of the links of each AFE chip in the slave board according to the execution status of the forward communication instruction and the reverse communication instruction, and end the diagnostic process.
[0043] The communication status includes that the communication is abnormal, the forward link communication is normal, and the reverse link communication is normal.
[0044] In this embodiment, the instruction execution status can be the execution status of the AFE chip for the communication instruction. Among them, the instruction execution status can include successful execution and failed execution. The communication status can be whether the communication is normal. Among them, the communication status includes that the communication is abnormal, the forward link communication is normal, and the reverse link communication is normal. If the communication is abnormal, it is considered that the link cannot communicate. If the communication is normal, it can be considered that the link can communicate normally. Among them, the link includes the forward communication link and the reverse communication link. The link of the AFE chip can refer to the line from this AFE chip to the adjacent AFE chip or the bridging chip and the link from the bridging chip to the AFE chip.
[0045] Specifically, determine the communication status of the links of each analog front-end chip in the slave board according to the execution status of the forward communication instruction and the reverse communication instruction, and end the diagnosis process.
[0046] Based on the above embodiments, determining the communication status of the analog front-end chip in the slave board according to the execution status of the forward communication instruction and the reverse communication instruction includes the following steps:
[0047] a1) If a forward communication instruction is successfully executed once, the forward counter of the analog front-end chip is incremented by 1; if a reverse communication instruction is successfully executed once, the reverse counter of the analog front-end chip is incremented by 1.
[0048] b1) Determine whether the forward counter of the analog front-end chip is greater than the first threshold and whether the reverse counter of the analog front-end chip is greater than the second threshold.
[0049] c1) If the forward counter of the analog front-end chip is greater than the first threshold, the forward link communication of the analog front-end chip is normal; if the reverse counter of the analog front-end chip is greater than the second threshold, the reverse link communication of the analog front-end chip is normal.
[0050] d1) If the forward counter of the analog front-end chip is not greater than the first threshold and the reverse counter of the analog front-end chip is not greater than the second threshold, the communication of the analog front-end chip is abnormal.
[0051] In this embodiment, the counter can be a logic circuit that counts with input pulses. The forward counter and the reverse counter are circuits that count the successful execution of the forward communication instruction and the reverse communication instruction respectively. The first threshold and the second threshold can be preset thresholds, which are set according to actual needs and are not specifically limited in this embodiment. Exemplarily, the first threshold and the second threshold can be 0.
[0052] Specifically, if a forward communication instruction is successfully executed once, the forward counter of the analog front-end chip is incremented by 1; if a reverse communication instruction is successfully executed once, the reverse counter of the analog front-end chip is incremented by 1. Determine whether the forward counter of the analog front-end chip is greater than the first threshold and whether the reverse counter of the analog front-end chip is greater than the second threshold. If the forward counter of the analog front-end chip is greater than the first threshold, the forward link communication of the analog front-end chip is normal; if the reverse counter of the analog front-end chip is greater than the second threshold, the reverse link communication of the analog front-end chip is normal. If the forward counter of the analog front-end chip is not greater than the first threshold and the reverse counter of the analog front-end chip is not greater than the second threshold, the communication of the analog front-end chip is abnormal. Among them, there is no requirement for the order of sending communication diagnosis instructions, and there is no requirement for the order of judging the number of counters and the corresponding diagnosis results.
[0053] Preferably, when a forward communication instruction is successfully executed once and the number of executions is less than the preset number, the remaining executions may not be performed, and it is immediately determined whether the forward counter of the analog front-end chip is greater than the first threshold. The first threshold is set to 0. If the forward counter of the analog front-end chip is greater than the first threshold, the forward link communication of the analog front-end chip is normal. When a reverse communication instruction is successfully executed once and the number of executions is less than the preset number, the remaining executions are not performed, and it is immediately determined whether the reverse counter of the analog front-end chip is greater than the second threshold. The second threshold is set to 0. If the reverse counter of the analog front-end chip is greater than the second threshold, the reverse link communication of the analog front-end chip is normal.
[0054] Exemplarily, Figure 4 is a flow example diagram of the analog front-end chip (AFE) diagnosis in the slave board communication diagnosis method provided by the embodiments of the present disclosure. As Figure 4 shown, if a forward communication instruction is successfully executed once (i.e., the AFE forward communication is successful), the forward counter of the analog front-end chip is incremented by 1; if a reverse communication instruction is successfully executed once (i.e., the AFE reverse communication is successful), the reverse counter of the analog front-end chip is incremented by 1. It is determined whether the forward counter of the analog front-end chip is greater than 0 and whether the reverse counter of the analog front-end chip is greater than 0. If the forward counter of the analog front-end chip is greater than 0, the forward link communication of the analog front-end chip is normal; if the reverse counter of the analog front-end chip is greater than 0, the reverse link communication of the analog front-end chip is normal. If the forward counter of the analog front-end chip is not greater than 0 and the reverse counter of the analog front-end chip is not greater than 0, the communication of the analog front-end chip is abnormal.
[0055] Preferably, as Figure 5 shown, first, only the forward communication is enabled, and a forward communication diagnosis instruction is sent to all AFEs. If a forward communication instruction is successfully executed once, the forward counter of the analog front-end chip is incremented by 1; if a forward communication instruction is not successfully executed once, the forward counter of the analog front-end chip is incremented by 0. Then, only the reverse communication is enabled, and a reverse communication diagnosis instruction is sent to all AFEs. If a reverse communication instruction is successfully executed once, the reverse counter of the analog front-end chip is incremented by 1; if a reverse communication instruction is not successfully executed once, the reverse counter of the analog front-end chip is incremented by 0. Then, it is determined whether the forward counter of the analog front-end chip is greater than 0. If the forward counter of the analog front-end chip is greater than 0, the forward link communication of the analog front-end chip is normal; otherwise, it is determined whether the reverse counter of the analog front-end chip is greater than 0. If the reverse counter of the analog front-end chip is greater than 0, the reverse link communication of the analog front-end chip is normal. If the reverse counter of the analog front-end chip is also not greater than 0, the communication of the analog front-end chip is abnormal.
[0056] On the basis of the above embodiments, after determining the communication status of the analog front-end chip in the slave board according to the execution status of the forward communication instruction and the reverse communication instruction, the method further includes: determining the communication status of the slave board according to the communication status of the analog front-end chip.
[0057] Specifically, the communication status of the slave board is determined according to the communication status of the links of each analog front-end chip in the slave board.
[0058] On the basis of the above embodiments, after determining the communication status of the analog front-end chip in the slave board according to the execution status of the forward communication instruction and the reverse communication instruction, the method further includes the following specific steps:
[0059] a2) Obtain the first quantity of the analog front-end chips included in the slave board.
[0060] b2) Determine the sum of the quantity of the analog front-end chips with normal forward communication and the quantity of the analog front-end chips with normal reverse communication in the slave board as the second quantity.
[0061] c2) When the second quantity of the slave board is zero, the communication status of the slave board is complete communication loss.
[0062] d2) When the second quantity of the slave board is less than the first quantity and the second quantity is not zero, the communication status of the slave board is that at least one analog front-end chip in the slave board is in complete loss.
[0063] e2) When the second quantity of the slave board is equal to the first quantity, if the quantity of the analog front-end chips with normal forward communication is zero, the communication status of the slave board is normal reverse communication of the slave board.
[0064] f2) When the second quantity of the slave board is equal to the first quantity, if the quantity of the analog front-end chips with normal reverse communication is zero, the communication status of the slave board is normal forward communication of the slave board.
[0065] g2) When the second quantity of the slave board is equal to the first quantity, if both the quantity of the analog front-end chips with normal forward communication and the quantity of the analog front-end chips with normal reverse communication are not zero, there is a single-point disconnection in the communication of the analog front-end chips in the slave board.
[0066] h2) When the second quantity of slave boards is greater than the first quantity, the communication status of the slave boards is normal slave board communication. In this embodiment, the first quantity may be the quantity of analog front-end chips included in the detected slave boards, and the second quantity may be the sum of the quantity of normal forward communication of the analog front-end chips and the quantity of normal reverse communication of the analog front-end chips in the slave boards. Complete communication loss may mean that neither the forward nor the reverse link of the slave board or the analog front-end chip can communicate. The existence of a single-point disconnection in the communication of the analog front-end chips in the slave board may mean that the link between two analog front-end chips in the slave board is in an open circuit state. Normal reverse communication of the slave board may mean that the slave board can communicate in the reverse direction, normal forward communication of the slave board may mean that the slave board can communicate in the forward direction, and normal communication of the slave board means that the slave board can communicate both in the forward and reverse directions.
[0067] Exemplarily, when the number of analog front-end chips included in the slave board is 10 (as Figure 2 in which N1 = 10), the 10 analog front-end chips are sequentially denoted as AFE1 - AFE10 in the forward direction. For the i-th (1 ≤ i ≤ 10, and i is an integer) analog front-end chip AFEi, its forward communication link is that the forward communication instruction is sent by the bridging chip, passing through AFE1, AFE2...., and finally reaching AFEi; its reverse communication link is that the reverse communication instruction is sent by the bridging chip, passing through AFE10, AFE9...., and finally reaching AFEi. In this case, the following situations may occur:
[0068] (1) When the sum of the quantity of normal forward communication of the analog front-end chips and the quantity of normal reverse communication of the analog front-end chips in the slave board, that is, the second quantity, is zero, that is, all chips cannot communicate normally, the communication status of the slave board is complete communication loss.
[0069] (2) When the second quantity is less than 10 and non-zero, such as 1, 5, 9, etc., at least one analog front-end chip in the slave board is completely lost, that is, the forward and reverse communication links of at least one analog front-end chip cannot communicate normally. For example, the number of normal forward communications of the analog front-end chips in the slave board is 1, that is, the forward communication link between the bridge chip and AFE1 is normal, and the number of normal reverse communications of the analog front-end chips is zero, that is, the reverse communication links of all analog front-end chips are abnormal. At this time, the second quantity is 1, and AFE2 - AFE10 are completely lost. Another example, the number of normal forward communications of the analog front-end chips in the slave board is 1, that is, the forward communication link between the bridge chip and AFE1 is normal, and the number of normal reverse communications of the analog front-end chips is 4, that is, the reverse communication link between the bridge chip and AFE7 is normal. At this time, the second quantity is 5, and AFE2 - AFE6 are completely lost. Another example, the number of normal forward communications of the analog front-end chips in the slave board is 1, that is, the forward communication link between the bridge chip and AFE1 is normal, and the number of normal reverse communications of the analog front-end chips is 8, that is, the reverse communication link between the bridge chip and AFE3 is normal. At this time, the second quantity is 9, and AFE2 is completely lost.
[0070] (3) When the second quantity is equal to 10, if the number of normal forward communications of the analog front-end chips is zero, the communication status of the slave board is that the reverse communication of the slave board is normal. If the number of normal reverse communications of the analog front-end chips is zero, the communication status of the slave board is that the forward communication of the slave board is normal. If the number of normal forward communications and the number of normal reverse communications of the analog front-end chips are both non-zero, there is a single-point disconnection in the communication of the analog front-end chips in the slave board. For example, when the number of normal forward communications of the analog front-end chips is 0, the number of normal reverse communications of the analog front-end chips is 10, that is, the forward communication link between the bridge chip and AFE1 is abnormal, and the reverse communication link between the bridge chip and AFE1 is normal. At this time, the reverse communication of the slave board is normal. Another example, when the number of normal reverse communications of the analog front-end chips is 0, the number of normal forward communications of the analog front-end chips is 10, that is, the forward communication link between the bridge chip and AFE10 is normal, and the reverse communication link between the bridge chip and AFE10 is abnormal. At this time, the forward communication of the slave board is normal. Another example, when the number of normal forward communications of the analog front-end chips is 1 and the number of normal reverse communications of the analog front-end chips is 9, that is, the forward communication link between the bridge chip and AFE1 is normal and the reverse communication link between the bridge chip and AFE2 is normal. At this time, each analog front-end chip has normal communication in one direction, and no analog front-end chip is in a lost state. The possible reason for this situation is a disconnection in the communication between AFE1 - AFE2.
[0071] When the second quantity of slave boards is greater than 10, such as 11, 15, 20, the communication status of the slave boards is normal. For example, when the quantity of forward communication of the analog front-end chips is 1, the quantity of reverse communication of the analog front-end chips is 10, and the second quantity is 11, a possible situation is that the forward communication link between the bridge chip and AFE1 is normal, the reverse communication link between the bridge chip and AFE1 is normal, and at least one direction of communication of each analog front-end chip is normal. No analog front-end chip is in a lost state. The possible reason for this situation is that the forward communication link between AFE1 and AFE10 is interfered during the diagnosis process (such as the forward communication link between AFE1 and AFE2 is interfered) and cannot communicate normally. Another example, when the quantity of forward communication of the analog front-end chips is 7, the quantity of reverse communication of the analog front-end chips is 8, and the second quantity is 15, a possible situation is that the forward communication link between the bridge chip and AFE7 is normal, the reverse communication link between the bridge chip and AFE3 is normal, and at least one direction of communication of each analog front-end chip is normal. No analog front-end chip is in a lost state. The possible reasons are that the forward communication link between AFE7 and AFE10 is interfered during the diagnosis process (such as the forward communication link between AFE7 and AFE8 is interfered) and cannot communicate normally, and the reverse communication link between AFE3 and AFE1 is interfered during the diagnosis process (such as the forward communication link between AFE3 and AFE2 is interfered) and cannot communicate normally. In the above cases where the communication of the interfered part is interrupted, the communication link resumes normal communication after the interference disappears. Therefore, it can also be considered that the communication of the slave boards is normal.
[0072] Another example, when the quantity of forward communication of the analog front-end chips is 10, the quantity of reverse communication of the analog front-end chips is 10, and the second quantity is 20, that is, the forward communication link between the bridge chip and AFE10 is normal, the reverse communication link between the bridge chip and AFE1 is normal. At this time, the forward communication and reverse communication of all the analog front-end chips on the slave board are normal, and no analog front-end chip is in a lost state. The communication of the slave board is normal.
[0073] Specifically, obtain the first quantity of the analog front-end chips included in the slave board, and determine the sum of the quantity of normal forward communication of the analog front-end chips in the slave board and the quantity of normal reverse communication of the analog front-end chips as the second quantity, such as Figure 3As shown, when the second quantity of slave boards is zero, the communication status of the slave boards is complete communication loss. When the second quantity of slave boards is less than the first quantity and the second quantity is not zero, the communication status of the slave boards is that at least one analog front-end chip in the slave boards is in complete loss. When the second quantity of slave boards is equal to the first quantity, if the number of normal forward communications of the analog front-end chips is zero, the communication status of the slave boards is normal reverse communication of the slave boards. When the second quantity of slave boards is equal to the first quantity, if the number of normal reverse communications of the analog front-end chips is zero, the communication status of the slave boards is normal forward communication of the slave boards. When the second quantity of slave boards is equal to the first quantity, if the number of normal reverse communications of the analog front-end chips and the number of normal forward communications of the analog front-end chips are both not zero, the communication status of the slave boards is that there is a single-point disconnection in the communication of the analog front-end chips in the slave boards. When the second quantity of slave boards is greater than the first quantity, the communication status of the slave boards is normal slave board communication.
[0074] Preferably, obtain the first quantity of analog front-end chips included in the slave boards, and determine the sum of the number of normal forward communications of the analog front-end chips in the slave boards and the number of normal reverse communications of the analog front-end chips as the second quantity. As Figure 5 shown, according to the quantitative relationship of the second quantity, sequentially determine what communication status the slave boards are in. First, determine whether the second quantity of the slave boards (that is, the second quantity of AFE with normal slave board communication) is zero. If it is zero, the communication status of the slave boards is complete loss of slave board communication. When the second quantity is not zero, determine whether the second quantity of the slave boards is less than the first quantity. If it is less, the communication status of the slave boards is that at least one analog front-end chip (AFE) in the slave boards is in complete loss. If the second quantity of the slave boards is not less than the first quantity, determine whether the second quantity of the slave boards is equal to the first quantity. If it is equal, determine whether the number of normal reverse communications of the analog front-end chips (that is, the number of AFE with normal reverse communication) and the number of normal forward communications of the analog front-end chips (that is, the number of AFE with normal forward communication) are both not zero. If so, the communication status of the slave boards is that there is a single-point disconnection in the AFE communication of the slave boards. If at least one of the number of normal reverse communications of the analog front-end chips and the number of normal forward communications of the analog front-end chips is not zero, then determine whether the number of normal forward communications of the analog front-end chips is zero. If the number of normal forward communications of the analog front-end chips is zero (that is, the number of normal reverse communications of the analog front-end chips is not zero), the communication status of the slave boards is normal reverse communication of the slave boards. If the number of normal forward communications of the analog front-end chips is not zero, then determine whether the number of normal reverse communications of the analog front-end chips is zero. If the number of normal reverse communications of the analog front-end chips is zero, the communication status of the slave boards is normal forward communication of the slave boards. When the second quantity of the slave boards is also not equal to the first quantity, it is considered that when the second quantity of the slave boards is greater than the first quantity, the communication status of the slave boards is normal slave board communication.
[0075] Based on the above embodiments, after the diagnostic process is completed, for each analog front-end chip that has been sampled, the following steps are further included:
[0076] a3) When the communication of the analog front-end chip is abnormal, no sampling instruction is generated.
[0077] b3) When the forward communication of the analog front-end chip is normal, a forward sampling instruction is generated and filled into the communication queue.
[0078] c3) When the reverse communication of the analog front-end chip is normal, a reverse sampling instruction is generated and filled into the communication queue.
[0079] d3) Obtain the sampling instructions in the communication queue according to the first-in, first-out principle.
[0080] e3) If the communication direction of the current sampling instruction is the same as that of the previous sampling instruction, the sampling instruction is sent and executed.
[0081] f3) If the communication direction of the current sampling instruction is different from that of the previous sampling instruction, a direction switching instruction is sent and then the sampling instruction is sent and executed.
[0082] In this embodiment, the first-in, first-out principle can be that data enters from one end and exits from the other end, just like queuing, and the instructions that enter the queue first will be processed preferentially. The forward sampling instruction and the reverse sampling instruction can be instruction messages for respectively performing forward and reverse sampling on the analog front-end chip, and the communication directions are forward and reverse respectively.
[0083] Figure 6 It is a schematic flowchart of a communication sampling method provided by an embodiment of the present disclosure. As Figure 6 shown, after the diagnostic process is completed, for each analog front-end chip that has been sampled, when the communication of the analog front-end chip is abnormal, no sampling instruction is generated. When the forward communication of the analog front-end chip is normal, the analog front-end chip enables forward communication, generates a forward sampling instruction and fills it into the communication queue. When the reverse communication of the analog front-end chip is normal, the analog front-end chip enables reverse communication, generates a reverse sampling instruction and fills it into the communication queue. Obtain the sampling instructions in the communication queue according to the first-in, first-out principle. If the communication direction of the current sampling instruction is the same as that of the previous sampling instruction, the sampling instruction is sent and executed. If the communication direction of the current sampling instruction is different from that of the previous sampling instruction, a direction switching instruction is sent and then the sampling instruction is sent and executed. Among them, the forward sampling instruction is sent to the analog front-end chip through forward communication, and the sampling command is included in the sampling instruction.
[0084] Using this method, the diagnostic logic is simple and efficient, and there is no need to pay attention to the communication method of the slave board. At the same time, each analog front-end chip has only one communication direction, avoiding the possibility of positive and reverse communication conflicts, with higher security, and is suitable for environments with high requirements for communication stability, such as automobiles.
[0085] Based on the above embodiments, the following steps are further included:
[0086] c21) When the communication status of the slave board is complete loss of communication, the slave board cannot communicate.
[0087] d21) When the communication status of the slave board is that at least one analog front-end chip in the slave board is completely lost, the slave board can simultaneously enable forward communication and reverse communication.
[0088] e21) When the communication status of the slave board is that the reverse communication of the slave board is normal, the slave board can enable reverse communication.
[0089] f21) When the communication status of the slave board is that the forward communication of the slave board is normal, the slave board can enable forward communication.
[0090] g21) When the communication status of the slave board is that there is a single-point disconnection in the communication of the analog front-end chip in the slave board, the slave board can simultaneously enable forward communication and reverse communication.
[0091] h21) When the communication status of the slave board is that the communication of the slave board is normal, the slave board can enable forward communication or reverse communication at the same time.
[0092] In this embodiment, being unable to communicate can mean not performing communication. Enabling forward communication can mean opening a channel for sending forward instructions. Reverse communication can mean opening a channel for sending reverse instructions.
[0093] Based on the above embodiments, after the diagnostic process is completed, for each slave board that performs sampling, the following steps are further included:
[0094] a4) When the communication status of the slave board is complete loss of communication, no sampling instructions for the analog front-end chips in the slave board are generated.
[0095] b4) When the communication status of the slave board is that the forward communication of the slave board is normal, the slave board enables forward communication, and generates forward sampling instructions for the analog front-end chips in the slave board and fills them into the communication queue;
[0096] c4) When the communication status of the slave board is that the reverse communication of the slave board is normal, the slave board enables reverse communication, and generates reverse sampling instructions for the analog front-end chips in the slave board and fills them into the communication queue;
[0097] c4) When the communication status of the slave board is such that at least one analog front-end chip in the slave board is completely lost or there is a single-point disconnection in the communication of the analog front-end chips in the slave board, the slave board simultaneously enables forward communication and reverse communication, generates forward sampling instructions and reverse sampling instructions for the analog front-end chips in the slave board, and fills them into the communication queue;
[0098] d5) Send and execute the sampling instructions in the communication queue according to the first-in, first-out principle.
[0099] Figure 7 It is a schematic flowchart of another communication sampling method provided by an embodiment of the present disclosure. As Figure 7 shown, when the communication status of the slave board is complete communication loss, no sampling instructions for the analog front-end chips in the slave board are generated. When the communication status of the slave board is that the forward communication of the slave board is normal, the slave board enables forward communication, generates forward sampling instructions for the analog front-end chips in the slave board, and fills them into the communication queue; when the communication status of the slave board is that the reverse communication of the slave board is normal, the slave board enables reverse communication, generates reverse sampling instructions for the analog front-end chips in the slave board, and fills them into the communication queue; when the communication status of the slave board is such that at least one analog front-end chip in the slave board is completely lost or there is a single-point disconnection in the communication of the analog front-end chips in the slave board, the slave board simultaneously enables forward communication and reverse communication, generates forward sampling instructions and reverse sampling instructions for the analog front-end chips in the slave board, and fills them into the communication queue.
[0100] Exemplarily, when there are 10 analog front-end chips in the slave board, when the communication status of the slave board is that the second analog front-end chip in the slave board is completely lost, the slave board simultaneously enables forward communication and reverse communication, generates forward sampling instructions and reverse sampling instructions for the analog front-end chips in the slave board, and fills them into the communication queue. Since the second analog front-end chip is completely lost, only the first analog front-end chip can receive the forward sampling instructions, and the reverse sampling instructions are received by the third, fourth, and up to the tenth analog front-end chips.
[0101] Using this method, during communication diagnosis, the communication mode of each slave board is determined, and there is no need to switch the communication direction after entering the sampling task. When there is a reverse communication requirement, there is no need to switch the communication direction, and the communication time hardly increases.
[0102] The present invention discloses a method for diagnosing the communication of a slave board in a battery management system. The method includes: when the battery management system receives a diagnostic instruction, sending a first preset number of forward communication instructions and a second preset number of reverse communication instructions to each analog front-end chip included in the slave board to be diagnosed in the diagnostic instruction; at least one slave board is included in the battery management system; each analog front-end chip in the slave board is connected in series through a daisy chain on the slave board; the bridging chips in the slave board are respectively connected to the analog front-end chip at the head end and the analog front-end chip at the tail end of the daisy chain; the slave board accesses the analog front-end chip forward and backward through the bridging chip; determining the communication status of the links of each analog front-end chip in the slave board according to the execution status of the forward communication instruction and the reverse communication instruction and ending the diagnostic process; the communication status includes that the communication is abnormal, the forward link communication is normal, and the reverse link communication is normal. By using this method, the problem that a traditional slave board communication diagnosis scheme is not applicable to a BMS slave board and a BMS system in a utility model patent is solved, and the communication status of the link can be monitored in real time during the operation of the BMS.
[0103] Figure 8 The present invention embodiment also provides a schematic structural diagram of a device for a method for diagnosing the communication of a slave board in a battery management system, as Figure 8 shown, including a diagnostic instruction module 210 and a communication diagnosis module 220.
[0104] The diagnostic instruction module 210 is configured to, when the battery management system receives a diagnostic instruction, send a first preset number of forward communication instructions and a second preset number of reverse communication instructions to each analog front-end chip included in the slave board to be diagnosed in the diagnostic instruction; at least one of the slave boards is included in the battery management system; each analog front-end chip in the slave board is connected in series through a daisy chain on the slave board; the bridging chips in the slave board are respectively connected to the analog front-end chip at the head end and the analog front-end chip at the tail end of the daisy chain; the slave board accesses the analog front-end chip forward and backward through the bridging chip;
[0105] The communication diagnosis module 220 is configured to determine the communication status of the links of each of the analog front-end chips in the slave board according to the execution status of the forward communication instruction and the reverse communication instruction and end the diagnostic process; the communication status includes that the communication is abnormal, the forward link communication is normal, and the reverse link communication is normal.
[0106] The technical solution provided by the present disclosure embodiment, by using this method, solves the problem that a traditional slave board communication diagnosis scheme is not applicable to a BMS slave board and a BMS system, and can monitor the communication status of the link in real time during the operation of the BMS.
[0107] Further, the communication diagnosis module 220 includes a first communication status sub-module and a second communication status sub-module;
[0108] The first communication status sub-module can be used for:
[0109] If a forward communication instruction is successfully executed once, the forward counter of the analog front-end chip is incremented by 1; if a reverse communication instruction is successfully executed once, the reverse counter of the analog front-end chip is incremented by 1;
[0110] Determine whether the forward counter of the analog front-end chip is greater than a first threshold and whether the reverse counter of the analog front-end chip is greater than a second threshold;
[0111] If the forward counter of the analog front-end chip is greater than the first threshold, the forward link communication of the analog front-end chip is normal; if the reverse counter of the analog front-end chip is greater than the second threshold, the reverse link communication of the analog front-end chip is normal;
[0112] If the forward counter of the analog front-end chip is not greater than the first threshold and the reverse counter of the analog front-end chip is not greater than the second threshold, the communication of the analog front-end chip is abnormal.
[0113] Further, the second communication status sub-module can be used for:
[0114] After determining the communication status of the analog front-end chip in the daughter board according to the instruction execution situations of the forward communication instruction and the reverse communication instruction, it further includes:
[0115] Determine the communication status of the daughter board according to the communication status of the analog front-end chip.
[0116] Further, the second communication status sub-module can also be used for:
[0117] Obtain the first quantity of the analog front-end chips included in the daughter board;
[0118] Determine the sum of the quantities of the analog front-end chips with normal forward communication and normal reverse communication in the daughter board as the second quantity;
[0119] When the second quantity of the daughter board is zero, the communication status of the daughter board is complete communication loss;
[0120] When the second quantity of the daughter board is less than the first quantity and the second quantity is not zero, the communication status of the daughter board is that at least one analog front-end chip in the daughter board is in complete loss;
[0121] When the second quantity of the daughter board is equal to the first quantity, if the quantity of the analog front-end chips with normal forward communication is zero, the communication status of the daughter board is normal reverse communication of the daughter board;
[0122] When the second quantity of the slave boards is equal to the first quantity, if the number of normal reverse communications of the analog front-end chips is zero, the communication status of the slave boards is that the forward communication of the slave boards is normal;
[0123] When the second quantity of the slave boards is equal to the first quantity, if the number of normal forward communications and the number of normal reverse communications of the analog front-end chips are both non-zero, the communication status of the slave boards is that there is a single-point disconnection in the communication of the analog front-end chips in the slave boards;
[0124] When the second quantity of the slave boards is greater than the first quantity, the communication status of the slave boards is that the communication of the slave boards is normal.
[0125] Furthermore, the device can also be used for:
[0126] After the diagnosis process is ended, it further includes:
[0127] For each analog front-end chip that performs sampling:
[0128] When the communication of the analog front-end chip is abnormal, no sampling instruction is generated;
[0129] When the forward communication of the analog front-end chip is normal, a forward sampling instruction is generated and filled into the communication queue;
[0130] When the reverse communication of the analog front-end chip is normal, a reverse sampling instruction is generated and filled into the communication queue;
[0131] The sampling instructions in the communication queue are obtained according to the first-in, first-out principle;
[0132] If the communication direction of the current sampling instruction is the same as that of the previous sampling instruction, the sampling instruction is sent and executed;
[0133] If the communication direction of the current sampling instruction is different from that of the previous sampling instruction, a direction switching instruction is sent and then the sampling instruction is sent and executed.
[0134] Furthermore, the device can also be used for:
[0135] When the communication status of the slave boards is complete communication loss, the slave boards cannot communicate;
[0136] When at least one analog front-end chip in the slave boards is in complete loss in the communication status of the slave boards or the communication status of the slave boards is that there is a single-point disconnection in the communication of the analog front-end chips in the slave boards, the slave boards can simultaneously enable forward communication and reverse communication;
[0137] When the communication status of the slave boards is that the reverse communication of the slave boards is normal, the slave boards can enable reverse communication;
[0138] When the slave board communication status of the slave board is that the forward communication of the slave board is normal, the slave board can initiate forward communication;
[0139] When the slave board communication status of the slave board is that the communication of the slave board is normal, the slave board can initiate forward communication or reverse communication at the same time.
[0140] Furthermore, the device can also be used for:
[0141] After the diagnostic process is ended, it further includes:
[0142] For each slave board that performs sampling:
[0143] When the slave board communication status of the slave board is that the communication is completely lost, no sampling instruction for the analog front-end chip in the slave board is generated.
[0144] When the slave board communication status of the slave board is that the forward communication of the slave board is normal, the slave board initiates the forward communication, generates a forward sampling instruction for the analog front-end chip in the slave board, and fills it into the slave board communication queue;
[0145] When the slave board communication status of the slave board is that the reverse communication of the slave board is normal, the slave board initiates the reverse communication, generates a reverse sampling instruction for the analog front-end chip in the slave board, and fills it into the slave board communication queue;
[0146] When the slave board communication status of the slave board is that at least one analog front-end chip in the slave board is completely lost or there is a single-point disconnection in the communication of the analog front-end chip in the slave board, the slave board simultaneously initiates the forward communication and the reverse communication, generates a forward sampling instruction for the analog front-end chip in the slave board and a reverse sampling instruction for the analog front-end chip in the slave board, and fills them into the slave board communication queue;
[0147] Send and execute the sampling instructions in the slave board communication queue according to the first-in, first-out principle.
[0148] The above device can execute the methods provided by all the foregoing embodiments of the present invention, and has corresponding functional modules and beneficial effects for executing the above methods. For technical details not described in detail in this embodiment, reference can be made to the methods provided by all the foregoing embodiments of the present invention.
[0149] Figure 9FIG. 0 shows a schematic structural diagram of an electronic device 10 that can be used to implement embodiments of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0150] As Figure 9 shown, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc. The memory stores a computer program executable by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0151] Multiple components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disc, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0152] The processor 11 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the slave board communication diagnosis method of the battery management system.
[0153] In some embodiments, the method for diagnosing communication of the slave board of the battery management system can be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for diagnosing communication of the slave board of the battery management system described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the method for diagnosing communication of the slave board of the battery management system by any other suitable means (e.g., by means of firmware).
[0154] The various embodiments of the systems and techniques described above in this document can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGA), application specific integrated circuits (ASIC), application specific standard products (ASSP), systems on a chip (SOC), complex programmable logic devices (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special-purpose or general-purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit the data and instructions to the storage system, the at least one input device, and the at least one output device.
[0155] The computer programs for implementing the methods of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer programs are executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer programs can be executed entirely on the machine, partially on the machine, as a stand-alone software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0156] In the context of the present invention, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0157] In order to provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, speech input, or tactile input).
[0158] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected to each other by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), blockchain network, and the Internet.
[0159] A computing system may include a client and a server. The client and the server are generally far from each other and usually interact via a communication network. The client-server relationship is created by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system, and solves the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services.
[0160] It should be understood that various forms of the processes shown above can be used, with steps reordered, added, or deleted. For example, the steps recited in the present invention can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved, and no limitation is imposed herein.
[0161] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. A communication diagnosis method for a slave board of a battery management system, characterized in that, Including: When the battery management system receives a diagnostic instruction, it sends a first preset number of forward communication instructions and a second preset number of reverse communication instructions to each analog front-end chip included in the slave board to be diagnosed contained in the diagnostic instruction; at least one of the slave boards is included in the battery management system; the analog front-end chips in the slave board are connected in series through a daisy chain on the slave board; the bridging chips in the slave board are respectively connected to the analog front-end chip at the head end and the analog front-end chip at the tail end of the daisy chain; the slave board accesses the analog front-end chip forward and backward through the bridging chip. Determine the communication status of the links of each analog front-end chip in the slave board according to the execution conditions of the forward communication instruction and the reverse communication instruction and end the diagnostic process; the communication status includes that the communication is abnormal, the forward link communication is normal, and the reverse link communication is normal.
2. The method according to claim 1, wherein The determining the communication status of the analog front-end chip in the slave board according to the execution conditions of the forward communication instruction and the reverse communication instruction includes: If a forward communication instruction is successfully executed once, the forward counter of the analog front-end chip is incremented by 1; if a reverse communication instruction is successfully executed once, the reverse counter of the analog front-end chip is incremented by 1. Judge whether the forward counter of the analog front-end chip is greater than a first threshold and whether the reverse counter of the analog front-end chip is greater than a second threshold. If the forward counter of the analog front-end chip is greater than the first threshold, the forward link communication of the analog front-end chip is normal; if the reverse counter of the analog front-end chip is greater than the second threshold, the reverse link communication of the analog front-end chip is normal. If the forward counter of the analog front-end chip is not greater than the first threshold and the reverse counter of the analog front-end chip is not greater than the second threshold, the communication of the analog front-end chip is abnormal.
3. The method according to claim 1, wherein After determining the communication status of the analog front-end chip in the slave board according to the execution conditions of the forward communication instruction and the reverse communication instruction, it further includes: Determine the communication status of the slave board according to the communication status of the analog front-end chip.
4. The method according to claim 3, characterized in that The determining the communication status of the slave board according to the communication status of the analog front-end chip includes: Obtain the first quantity of the analog front-end chips included in the slave board. Determine the sum of the number of the analog front-end chips in the slave board with normal forward communication and the number of the analog front-end chips with normal reverse communication as the second quantity. When the second quantity of the slave board is zero, the communication status of the slave board is complete communication loss. When the second quantity of the slave board is less than the first quantity and the second quantity is not zero, the communication status of the slave board is that at least one of the analog front-end chips in the slave board is in complete loss. When the second quantity of the slave board is equal to the first quantity, if the number of the analog front-end chips with normal forward communication is zero, the communication status of the slave board is normal reverse communication of the slave board. When the second quantity of the slave board is equal to the first quantity, if the number of the analog front-end chips with normal reverse communication is zero, the communication status of the slave board is normal forward communication of the slave board. When the second quantity of the slave boards is equal to the first quantity, if the quantity of normal forward communication and the quantity of normal reverse communication of the analog front-end chips are both non-zero, the communication status of the slave boards is that there is a single-point disconnection in the communication of the analog front-end chips in the slave boards; When the second quantity of the slave boards is greater than the first quantity, the communication status of the slave boards is that the slave board communication is normal.
5. The method according to claim 2, wherein After the end of the diagnostic process, it further includes: For each analog front-end chip that performs sampling: When the communication of the analog front-end chip is abnormal, no sampling instruction is generated; When the forward communication of the analog front-end chip is normal, a forward sampling instruction is generated and filled into the communication queue; When the reverse communication of the analog front-end chip is normal, a reverse sampling instruction is generated and filled into the communication queue; Obtain the sampling instructions in the communication queue according to the first-in-first-out principle; If the communication direction of the current sampling instruction is the same as that of the previous sampling instruction, the sampling instruction is sent and executed; If the communication direction of the current sampling instruction is different from that of the previous sampling instruction, a direction switching instruction is sent and then the sampling instruction is sent and executed.
6. The method according to claim 4, characterized in that It further includes: When the communication status of the slave board is complete communication loss, the slave board cannot communicate; When the communication status of the slave board is that at least one analog front-end chip in the slave board is completely lost or the communication status of the slave board is that there is a single-point disconnection in the communication of the analog front-end chips in the slave board, the slave board can simultaneously enable forward communication and reverse communication; When the communication status of the slave board is that the reverse communication of the slave board is normal, the slave board can enable reverse communication; When the communication status of the slave board is that the forward communication of the slave board is normal, the slave board can enable forward communication; When the communication status of the slave board is that the slave board communication is normal, the slave board can enable forward communication or reverse communication at the same time.
7. The method according to claim 6, wherein After the end of the diagnostic process, it further includes: For each slave board that performs sampling: When the communication status of the slave board is complete communication loss, no sampling instruction for the analog front-end chips in the slave board is generated. When the communication status of the slave board is that the forward communication of the slave board is normal, the slave board enables the forward communication, and a forward sampling instruction for the analog front-end chips in the slave board is generated and filled into the slave board communication queue; When the communication status of the slave board is that the reverse communication of the slave board is normal, the slave board enables the reverse communication, and a reverse sampling instruction for the analog front-end chips in the slave board is generated and filled into the slave board communication queue; When the communication status of the slave board is that at least one analog front-end chip in the slave board is completely lost or there is a single-point disconnection in the communication of the analog front-end chips in the slave board, the slave board simultaneously enables the forward communication and the reverse communication, and a forward sampling instruction for the analog front-end chips in the slave board and a reverse sampling instruction for the analog front-end chips in the slave board are generated and filled into the slave board communication queue; Send and execute the sampling instructions in the slave board communication queue according to the first-in-first-out principle.
8. A slave board communication diagnostic device for a battery management system, characterized in that, It includes: A diagnostic instruction module, configured to, when the battery management system receives a diagnostic instruction, send a first preset number of forward communication instructions and a second preset number of reverse communication instructions to each analog front-end chip included in the slave board to be diagnosed included in the diagnostic instruction; at least one of the slave boards is included in the battery management system; the analog front-end chips in the slave board are connected in series through a daisy chain on the slave board; the bridging chips in the slave board are respectively connected to the analog front-end chip at the head end and the analog front-end chip at the tail end of the daisy chain; the slave board accesses the analog front-end chip forward and backward through the bridging chip; A communication diagnosis module, configured to determine the communication status of the links of each of the analog front-end chips in the slave board according to the execution conditions of the forward communication instruction and the reverse communication instruction and end the diagnostic process; the communication status includes that the communication is abnormal, the forward link communication is normal, and the reverse link communication is normal.
9. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the slave board communication diagnosis method of the battery management system according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing a processor to implement the slave board communication diagnosis method of the battery management system according to any one of claims 1-7 when executed.