Slave assembly, battery management system and parameter read-write method

The slave component with a daisy chain communication line enhances flexibility in parameter reading and writing by using front-end chips and storage devices, addressing the inflexibility in traditional battery management systems.

CN119254566APending Publication Date: 2025-01-03SHENZHEN TOPBAND CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411410202.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-10
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

The flexibility of parameter reading and writing in traditional battery management systems using a daisy chain topology is low, making it inconvenient to control and configure cascaded slaves.

Method used

A slave component with a daisy chain communication line, where each slave device includes a front-end chip and storage device, allowing for parameter control instructions to be transmitted and executed, enhancing flexibility through storage device configuration and data reading.

Benefits of technology

Improves the flexibility of parameter reading and writing in battery management systems, enabling convenient control and configuration of cascaded slaves.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119254566A_ABST
    Figure CN119254566A_ABST
Patent Text Reader

Abstract

The invention relates to a slave assembly, a battery management system and a parameter read-write method, the slave assembly comprises a plurality of slave devices, the slave devices form a daisy chain communication line through cascade connection, and the slave device at the head end or the tail end after cascade connection is used for receiving a parameter control instruction; the slave equipment comprises a front-end chip and a storage device which are connected, and the front-end chip is also connected with the front-end chips of the upper and lower slave equipment for communication so as to transmit a parameter control instruction and perform parameter read-write operation on the storage device connected with the front-end chip in response to the parameter control instruction. The storage devices are configured for the slave devices on the daisy chain, parameters are configured into the storage devices of the slave devices, and target data detected by the slave devices can be read from the storage devices of the slave devices, so that the communication mode of the battery management system forming the daisy chain topology through master-slave cascade connection can be realized, and the communication efficiency of the battery management system is improved. And the parameter reading and writing flexibility in the communication process is greatly improved, so that the host can conveniently control and configure the cascaded slaves.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication control technology, and in particular to a slave component, a battery management system, and a parameter reading and writing method. Background Art

[0002] With the development of battery technology, battery management systems are widely used in various battery usage scenarios. Among them, battery management systems can not only be used to balance the battery pack to solve the problems caused by the inconsistency caused by the production, use and storage of lithium batteries, extend the battery life and improve the economic efficiency of battery use. In addition, it can also be used to control the charging and discharging process of the battery pack to prevent overcharging and over-discharging of the battery and improve the energy utilization of the battery pack.

[0003] In traditional technology, battery management systems generally use a master-slave communication method, and the master and slave can communicate in a daisy chain topology. However, in practical applications, the flexibility of parameter reading and writing in the conventional daisy chain topology is very low, and it is often inconvenient for the host to control and configure the cascaded slaves. Summary of the invention

[0004] Based on this, it is necessary to provide a slave component, a battery management system and a parameter reading and writing method to address the technical problem that the flexibility of parameter reading and writing in the above-mentioned daisy chain topology is very low during the communication process.

[0005] A slave assembly includes a plurality of slave devices, each of which is cascaded to form a daisy chain communication line, and the slave device at the head end or the tail end after the cascading is used to receive parameter control instructions;

[0006] The slave device includes a connected front-end chip and a storage device. The front-end chip is also connected to the front-end chip of an adjacent slave device for communication to transmit the parameter control instruction, and in response to the parameter control instruction, performs parameter read and write operations on the connected storage device.

[0007] In one embodiment,

[0008] The front-end chip is also used to parse the parameter control instruction, and when it is determined that the parameter control instruction needs to be executed, perform parameter read and write operations on the storage device connected to it based on the target parameters obtained by the analysis.

[0009] In one embodiment, the parameter control instruction includes a write control instruction and a read control instruction;

[0010] When receiving the write control instruction, the front-end chip is further used to parse the write control instruction, and when it is determined that the write control instruction needs to be executed, configure the to-be-configured data corresponding to the target parameter obtained by the parsing to the storage device connected thereto;

[0011] When receiving the read control instruction, the front-end chip is further used to parse the read control instruction, and when determining that the read control instruction needs to be executed, reads out the target data corresponding to the parsed target parameters from the storage device connected thereto.

[0012] In one of the embodiments, the storage device of the slave device is an EEPROM memory.

[0013] A battery management system comprises a host device and a slave assembly as described above, wherein the host device is connected to a slave device at the head end or the tail end of the cascaded slave assembly, and each of the slave devices in the slave assembly is also connected to a corresponding battery module;

[0014] The host device is used to send parameter control instructions to the slave components connected thereto, so as to perform parameter read and write operations on any slave device or all slave devices in the slave components;

[0015] The slave device is used to monitor the operating status of the battery module to which it is connected, and store the collected operating status data.

[0016] In one of the embodiments, a host device is further included, which is connected to the host device and is used to send parameter read and write requests to the host device, so that the host device generates parameter control instructions based on the parameter read and write requests.

[0017] In one embodiment, a parameter reading and writing method is provided, which is applied to the battery management system as described above, and the method includes:

[0018] Parsing a parameter read / write request and generating a parameter control instruction corresponding to the parameter read / write request;

[0019] The parameter control instruction is sent to the slave component to perform parameter read and write operations on a target slave device in the slave component; the target slave device is any slave device or all slave devices in the slave component.

[0020] In one of the embodiments, the parameter control instruction includes a write control instruction;

[0021] The sending of the parameter control instruction to the slave component to perform parameter read and write operations on the target slave device in the slave component includes:

[0022] In a case where the target slave device is any slave device in the slave assembly, issuing a write control instruction to the target slave device and its previous slave device to perform parameter configuration operations on the target slave device;

[0023] In the case that the target slave devices are all the slave devices in the slave assembly, write control instructions are issued to all the slave devices to perform parameter configuration operations on the target slave devices.

[0024] In one of the embodiments, after performing parameter configuration operation on the target slave device, the method further includes:

[0025] Sending a write verification instruction to the slave component, and obtaining the write data fed back by the slave component based on the write verification instruction;

[0026] In the case where the written data is consistent with the data to be configured, determining that the target parameter corresponding to the write control instruction is configured successfully;

[0027] In the case that the written data is inconsistent with the data to be configured, it is determined that the configuration of the target parameter corresponding to the write control instruction fails, and a write state variable is set.

[0028] In one of the embodiments, the parameter control instruction includes a read control instruction;

[0029] The sending of the parameter control instruction to the slave component to perform parameter read and write operations on the target slave device in the slave component includes:

[0030] A read control instruction is issued to all slave devices in the slave assembly to perform a parameter read operation on the target slave device.

[0031] The above-mentioned slave assembly, battery management system and parameter reading and writing method include multiple slave devices, each of which is cascaded to form a daisy chain communication line. The slave device at the head or tail end of the cascade is used to receive parameter control instructions; the slave device includes a connected front-end chip and a storage device, and the front-end chip is also connected to the front-end chips of the upper and lower slave devices for communication to transmit parameter control instructions, and performs parameter reading and writing operations on the storage device connected to it in response to the parameter control instructions. By configuring a storage device for each slave device on the daisy chain, the parameters are configured in the storage device of the slave device, and the target data detected by the slave device can also be read from the storage device of the slave device, so that the battery management system, which forms a daisy chain topology through master-slave cascading, has a much improved flexibility in parameter reading and writing during the communication process, which is convenient for the host to control and configure the cascaded slaves. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0033] Figure 1 A schematic diagram of a system block diagram of a slave component in one embodiment;

[0034] Figure 2 A schematic diagram of a system block diagram of a battery management system in one embodiment;

[0035] Figure 3 A schematic diagram of a system block diagram of a battery management system in another embodiment;

[0036] Figure 4 A flow chart of a parameter reading and writing method in one embodiment;

[0037] Figure 5 A schematic flow chart of parameter writing operation steps in one embodiment;

[0038] Figure 6 A schematic diagram of a flow chart of a step of checking a write control instruction in one embodiment;

[0039] Figure 7 A schematic flow chart of parameter writing operation steps in another embodiment;

[0040] Figure 8 The figure is a flow chart of parameter reading operation steps in one embodiment. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0042] In an exemplary embodiment, Figure 1 As shown, a slave component 100 is provided, including multiple slave devices 10, each slave device 10 is cascaded to form a daisy chain communication line, and the slave device 10 at the head end or the tail end after cascading is used to receive parameter control instructions; the slave device includes a connected front-end chip 11 and a storage device 12, and the front-end chip 11 is also connected to the front-end chip 11 of the adjacent slave device 10 for communication to transmit the parameter control instruction, and in response to the parameter control instruction, performs parameter read and write operations on the storage device 12 connected thereto.

[0043] The slave assembly 100 includes a plurality of slave devices 10, each of which may have the same structure to connect to the same type of control object and implement the same control and acquisition functions. Of course, based on the different types of control objects connected to each slave device 10, each of the slave devices 10 in the slave assembly 100 may also have slightly different structures, thereby implementing different functions for different types of control objects.

[0044] Taking the application of the slave component 100 in the field of battery management as an example, each slave device 100 may be an AFE (Analog Front End) slave device, also known as an analog front end device. Each slave device 100 may be connected to a battery module to collect data from the battery module connected to it, for example, by collecting the voltage, current and temperature data of the battery module to monitor the battery module.

[0045] Specifically, the slave devices 10 in the slave assembly 100 can form a daisy chain communication line by cascading, that is, the slave devices 10 are connected in series to form a daisy chain topology. After the daisy chain communication line is formed in series, the slave devices 10 can only communicate through two adjacent slave devices 10 on the communication line.

[0046] Among them, the daisy chain topology can be understood as a wiring method in the communication system. For example, slave device A and slave device B are connected with a cable, slave device B is connected with slave device C with a cable, and slave device C is connected with slave device D with a cable. In this connection method, a mesh topology structure will not be formed, and only adjacent slave devices can communicate directly. For example, in the above example, slave device A cannot communicate directly with slave device C. They must be transferred through slave device B. This method will also not form a loop because the last device will not be connected to the first device. Furthermore, in the slave assembly 100 composed of a daisy chain, each slave device 10 can achieve effective isolated communication, and at the same time, a limited signal transmission line is used to connect multiple slave devices, and there is no problem of bus competition and blocking.

[0047] It can be understood that each slave device 10 in the slave component 100 includes a front-end chip 11, which is used to cascade the front-end chips 11 of other slave devices 10 to form a daisy chain communication line, that is, the front-end chip 11 of the slave device 10 is connected to the front-end chips 11 of its two adjacent slave devices 10 for communication.

[0048] Furthermore, after the daisy chain communication line is formed in series, the slave devices 10 at both ends of the communication line, that is, the slave devices 10 at the head end or the tail end after cascading, are used to receive parameter control instructions. After the front-end chip 11 in the slave device 10 at the head end or the tail end receives the parameter control instruction, the parameter control instruction can be transmitted to the front-end chip 11 of the slave device 10 in the adjacent communication, and then the front-end chip 11 of the slave device 10 transmits the parameter control instruction to the front-end chip 11 of the slave device 10 in the adjacent communication, so as to realize the transmission of the parameter control instruction.

[0049] Among them, the source of the parameter control instruction is determined by the device to which the slave device 10 at the head end or the tail end is connected. For example, it can be connected to the main controller, or it can be connected to the host device, or it can be connected to the upper system with control function, as long as it can communicate with the daisy chain communication line of the slave component 100.

[0050] Among them, the parameter control instruction can be understood as an instruction for configuring the parameters of the slave device 10 in the slave component 100. For example, the hardware version number, serial number, front-end chip model and other parameters of the slave device 10 are configured. In the embodiment of the present application, in addition to the front-end chip 11 and necessary peripheral auxiliary circuits or devices, the slave device 10 in the slave component 100 is also provided with a storage device 12 for storing the parameter configuration corresponding to the parameter configuration instruction.

[0051] Similarly, the parameter control instruction can also be an instruction for reading parameters of the slave device 10 in the slave component 100, that is, when the above-mentioned parameter information corresponding to a certain slave device 10 needs to be queried during the inspection of the tooling or normal use, the corresponding required parameter data can be quickly read through the parameter control instruction. It can be understood that by adding a storage device 12 to the slave device 10 for parameter configuration and data storage, the flexibility of parameter reading and writing during the communication process can be effectively improved.

[0052] It can be understood that on the daisy chain communication line, each slave device 10 is in a transparent transmission mode, that is, the slave device 10 forwards the information received to the adjacent slave device 10. In the embodiment of the present application, the parameter control instruction received by the slave component 100 can be specified to be transmitted to any slave device 10 on the daisy chain communication line, or it can be transmitted to all slave devices 10 on the daisy chain communication line.

[0053] Among them, since the slave devices 10 in the slave component 100 are connected in series and transmit the same parameter control instruction, and then when the parameter control instruction is specified to be transmitted to any slave device 10 on the daisy chain communication line, the method of configuring the parameter control instruction to the target slave device can be to first allocate addresses for each slave device 10 in the slave component 100, and then write a standard format command recognizable by the slave device for the instruction with the slave address of the target slave device, and write an unrecognizable invalid format command for the instruction with the slave address of other slave devices, so as to achieve the purpose of only the target slave device obtaining the parameter control instruction transmitted to it. The method of configuring the parameter control instruction to the target slave device can also be to only add the slave address of the target slave device in the parameter control instruction to indicate that the target slave device obtains the parameter control instruction transmitted to it, while other slave devices are skipped and not processed because the slave addresses do not match. In addition, the parameter control instruction can be configured to the target slave device by carrying the sequence number of the target slave device on the daisy chain communication line in the parameter control instruction, and then when the incremental field corresponding to the parameter control instruction is increased to the corresponding sequence number, it can be determined that the parameter control instruction has been passed to the target slave device.

[0054] The above-mentioned slave assembly includes a plurality of slave devices, each of which is cascaded to form a daisy chain communication line, and the slave device at the head or tail end of the cascade is used to receive parameter control instructions; the slave device includes a connected front-end chip and a storage device, and the front-end chip is also connected to the front-end chips of the upper and lower slave devices for communication to transmit parameter control instructions, and performs parameter read and write operations on the storage device connected to it in response to the parameter control instructions. By configuring a storage device for each slave device on the daisy chain, the parameters are configured in the storage device of the slave device, so that the slave assembly cascaded to form a daisy chain topology has much improved parameter reading and writing flexibility during the communication process, which is convenient for controlling and configuring the cascaded slaves.

[0055] The specific device used by the storage device 12 in the slave device 10 is not unique and can be set according to actual technical requirements. For example, it can be a non-volatile memory or a volatile memory. Among them, the non-volatile memory may include a read-only memory (ROM), a magnetic tape, a floppy disk, a flash memory, an optical memory, a high-density embedded non-volatile memory, a resistive random access memory (ReRAM), a magnetoresistive random access memory (MRAM), a ferroelectric random access memory (FRAM), a phase change memory (PCM), a graphene memory, etc. The volatile memory may include a random access memory (RAM) or an external cache memory, etc.

[0056] Exemplarily, in an embodiment of the present application, the storage device of the slave device is an EEPROM (Electrically Erasable Programmable Read Only Memory) memory. Specifically, the EEPROM memory refers to an electrically erasable programmable read-only memory. Since the storage of data inside the EEPROM does not rely on power supply, the data can be retained for a long time even in the case of power failure or power-on, ensuring the reliability and durability of the data, which is very suitable for the scenario of parameter configuration storage of the slave device 10.

[0057] In an exemplary embodiment, referring to Figure 1 The front-end chip 11 is also used to parse the parameter control instruction, and when it is determined that the parameter control instruction needs to be executed, it performs parameter reading and writing operations on the storage device connected to it based on the target parameters obtained by the analysis.

[0058] It is understandable that the front-end chip 11 needs to parse the received parameter control instruction to obtain the specific instruction content corresponding to the parameter control instruction. Among them, the instruction content contained in the parameter control instruction is not unique and can be determined according to specific technical requirements.

[0059] For example, the parameter control instruction may include a read / write flag, that is, indicating whether the parameter control instruction is an instruction to read data or an instruction to write data, which can be used to determine the direction of data transmission. In the case where the parameter control instruction is an instruction to read data, it can be controlled to read data from the storage device of the slave device and then transmit it to the outside through the daisy chain communication line. In the case where the parameter control instruction is an instruction to write data, the corresponding to-be-configured data in the parameter control instruction can be sent down and stored in the storage device of the slave device.

[0060] The parameter control instruction also includes a target slave device flag, which indicates the corresponding target slave device, indicating which control device the parameter control instruction needs to control to complete the parameter read and write operation. The target slave device can be any slave device in the slave component, or all slave devices in the slave component.

[0061] The parameter control instruction also includes a target parameter flag, which indicates which parameter the parameter control instruction needs to complete the parameter read and write operation. Similarly, the target parameter can be one parameter, or it can be a parameter read and write operation for multiple parameters at the same time.

[0062] Further, after receiving a parameter control instruction, the slave device 11 can parse the parameter control instruction to obtain instruction contents such as a read-write flag, a target slave device flag, and a target parameter flag. After parsing the parameter control instruction, it can be determined whether the parameter control instruction needs to be executed according to the target slave device flag. It can be understood that in the case where the target slave device flag is characterized as a non-slave device, it is determined that the parameter control instruction does not need to be executed, and the parameter control instruction can be only transparently transmitted to its adjacent slave device 11 without performing other operations.

[0063] When the target slave device flag indicates the slave device, it is determined that the parameter control instruction needs to be executed, and the parameter control instruction can be transparently transmitted to the adjacent slave device 11, and the parameter read and write operation can be performed on the storage device connected to the slave device based on the target parameter obtained by parsing. Whether the parameter read operation or the parameter write operation needs to be performed can be determined by the parsed read and write flag.

[0064] In an exemplary embodiment, the parameter control instruction includes a write control instruction and a read control instruction. It can be understood that the parameter control instruction can be divided into two types according to the read-write flag, namely, a write control instruction and a read control instruction. As the name implies, the write control instruction is used to perform a parameter write operation on the storage device, and the read control instruction is used to perform a parameter read operation on the storage device.

[0065] Exemplarily, when a write control instruction is received, the front-end chip is further used to parse the write control instruction, and when it is determined that the write control instruction needs to be executed, configure the to-be-configured data corresponding to the target parameters obtained by the parsing to a storage device connected thereto.

[0066] Specifically, when the read-write flag indicates parameter writing, the parameter control instruction received by the front-end chip is a write control instruction.

[0067] Furthermore, when the write control instruction is parsed to obtain instruction contents such as the target slave device flag and the target parameter flag, and when it is determined based on the target slave device flag that the slave device needs to execute the write control instruction, the data to be configured corresponding to the target parameter obtained by parsing can be configured to the storage space corresponding to the target parameter in the storage device.

[0068] Among them, the method of storing the configuration data in the storage device is determined by the specific type of the storage device and the data transfer method, and can be implemented according to technical means familiar to those skilled in the art, and is not the focus of the embodiments of the present application.

[0069] Exemplarily, when a read control instruction is received, the front-end chip is further used to parse the read control instruction, and when it is determined that the read control instruction needs to be executed, reads out target data corresponding to the parsed target parameters from a storage device connected thereto.

[0070] Specifically, when the read / write flag is represented as parameter read, the parameter control instruction received by the front-end chip is a read control instruction.

[0071] Furthermore, when the read control instruction is parsed to obtain instruction contents such as the target slave device flag and the target parameter flag, and when it is determined based on the target slave device flag that the slave device needs to execute the read control instruction, the target data corresponding to the target parameter can be read out from the storage space corresponding to the target parameter in the storage device, and transmitted to the outside of the slave component via the daisy chain communication line.

[0072] In an exemplary embodiment, Figure 2As shown, a battery management system is provided, including a host device 200 and a slave component 100 as described in any of the above embodiments, the host device 200 is connected to the slave device 10 at the head end or the tail end after cascading in the slave component 100, and each slave device 10 in the slave component 100 is also connected to a corresponding battery module (not shown in the figure); the host device 200 is used to send parameter control instructions to the slave component 100 connected to it, so as to perform parameter read and write operations on any slave device 10 or all slave devices 10 in the slave component 100; the slave device 10 is used to monitor the operating status of the battery module connected to it, and store the collected operating status data.

[0073] Specifically, the host device 200 is connected to the slave device 10 at the head end or the tail end of the cascade in the slave component 100 to form a daisy chain communication line in the battery management system. Each slave device 10 in the slave component 100 is also connected to a corresponding battery module to manage multiple battery modules through this master-slave device daisy chain communication method.

[0074] The host device 200 drives the slave assembly 100 through the daisy chain communication line to control each slave device 10 in the slave assembly 100 to read the voltage, current, temperature and other data of the battery module connected thereto, so as to monitor the operating status of the battery module. In addition, the host device 200 drives the slave assembly 100 through the daisy chain communication line to realize the GPIO, status register and control balancing functions.

[0075] It can be understood that after the slave device 10 monitors and obtains various types of data, it can also store the collected operating status data in its internal storage device for subsequent reading by the host device 200.

[0076] Furthermore, the host device 200 is also used to implement the assembly and issuance of parameter control instructions to perform parameter read and write operations on any slave device 10 or all slave devices 10 in the slave component 100 .

[0077] In an exemplary embodiment, Figure 3 As shown, the battery management system also includes a host device 300, which is connected to the host device 200 and is used to send parameter read and write requests to the host device 200, so that the host device 200 generates parameter control instructions based on the parameter read and write requests.

[0078] Specifically, the host device 300 can interact with the outside to obtain parameter read and write requests. For example, when a technician needs to perform parameter read and write operations on the slave component 100, he can interact with the host device 300 and initiate a parameter read and write request to the host device 200 through the host device 300.

[0079] It can be understood that the host device 300 can be a terminal device or a server device. The host device 200 can also be a terminal device or a service device. Among them, the terminal can be but not limited to various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. Head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.

[0080] Taking the scenario of functional performance testing of a battery management system as an example, based on the test requirements of the battery management system, the tester can perform parameter read and write operations on the slave component 100. In this scenario, the host device 300 can be a detection tooling device, which can communicate with the host device 200 to initiate a parameter read and write request to the host device 200 to implement parameter read and write operations on the slave component 100.

[0081] Furthermore, the host device 200 may also parse the parameter read and write request to obtain instruction content for generating the parameter control instruction, and assemble the parameter control instruction based on the instruction content.

[0082] The solution provided by the battery management system to solve the problem is similar to the solution described in the slave component above. Therefore, the specific limitations in one or more battery management system embodiments provided above can refer to the limitations on the slave component above and will not be repeated here.

[0083] In an exemplary embodiment, Figure 4 As shown, a parameter reading and writing method is provided, which is applied to the battery management system as described above, and specifically can be applied to a host device in the battery management system. The method includes steps 202 to 204, wherein:

[0084] Step 202: Parse the parameter read / write request and generate a parameter control instruction corresponding to the parameter read / write request.

[0085] Specifically, the host device can interact with the outside to obtain parameter read and write requests. For example, when a technician needs to perform parameter read and write operations on a slave component, he or she can interact with the host device and initiate a parameter read and write request to the host device through the host device.

[0086] Furthermore, after receiving the parameter read / write request, the host device may parse the parameter read / write request to obtain instruction content for generating the parameter control instruction, and assemble the parameter control instruction based on the instruction content.

[0087] Among them, the instruction content contained in the assembled parameter control instruction is not unique and can be determined according to specific technical requirements. For example, the parameter control instruction may include a read-write flag, that is, an instruction indicating whether the parameter control instruction is an instruction to read data or an instruction to write data, which can be used to determine the direction of data transmission. In the case where the parameter control instruction is an instruction to read data, it can be controlled to read data from the storage device of the slave device and then transmitted to the outside through the daisy chain communication line. In the case where the parameter control instruction is an instruction to write data, it can be that the corresponding to-be-configured data in the parameter control instruction is sent and stored in the storage device of the slave device. The parameter control instruction also includes a target slave device flag, that is, it is necessary to indicate its corresponding target slave device, characterizing which control device the parameter control instruction needs to control to complete the parameter read and write operation. Among them, the target slave device can be any slave device in the slave assembly, or it can be all slave devices in the slave assembly. The parameter control instruction also includes a target parameter flag, that is, it is necessary to indicate which parameter the parameter control instruction needs to complete the parameter read and write operation. Similarly, the target parameter can be a parameter, or it can be a parameter read and write operation for multiple parameters at the same time.

[0088] Step 204: Send the parameter control instruction to the slave component to perform parameter read and write operations on the target slave device in the slave component; the target slave device is any slave device or all slave devices in the slave component.

[0089] Specifically, on the daisy chain communication line, each slave device is in transparent transmission mode, that is, the slave device forwards the information it receives to the adjacent slave device. In the embodiment of the present application, the parameter control instruction received by the slave component can be specified to be transmitted to any slave device on the daisy chain communication line, or it can be transmitted to all slave devices on the daisy chain communication line.

[0090] Furthermore, the host device may send parameter control instructions to the slave component to perform parameter read and write operations on the target slave device in the slave component.

[0091] The parameter control instruction can be understood as an instruction for parameter configuration of the target slave device in the slave assembly. For example, the hardware version number, serial number, front-end chip model and other parameters of the slave device are configured. In addition to the front-end chip and necessary peripheral auxiliary circuits or devices, the slave devices in the slave assembly are also provided with a storage device for storing the parameter configuration corresponding to the parameter configuration instruction.

[0092] Similarly, the parameter control instruction can also be an instruction for reading parameters of a target slave device in the slave component, that is, when the above parameter information corresponding to a certain slave device needs to be queried during the inspection of the tooling or normal use, the corresponding required parameter data can be quickly read through the parameter control instruction. It can be understood that by adding a storage device in the slave device for parameter configuration and data storage, the flexibility of parameter reading and writing in the communication process can be effectively improved.

[0093] In an exemplary embodiment, the parameter control instruction includes a write control instruction and a read control instruction. It can be understood that the parameter control instruction can be divided into two types according to the read-write flag, namely, a write control instruction and a read control instruction. As the name implies, the write control instruction is used to perform a parameter write operation on the storage device, and the read control instruction is used to perform a parameter read operation on the storage device.

[0094] For example, Figure 5 As shown, step 204 includes steps 302 to 304, wherein:

[0095] Step 302: When the target slave device is any slave device in the slave assembly, a write control instruction is issued to the target slave device and its previous slave device to perform parameter configuration operations on the target slave device.

[0096] Step 304: When the target slave devices are all the slave devices in the slave assembly, a write control instruction is issued to all the slave devices to perform parameter configuration operations on the target slave devices.

[0097] Among them, whether the target slave device is a slave device in the slave component or all the slave devices in the slave component can be determined according to the target slave device flag in the write control instruction.

[0098] Specifically, when the target slave device mark indicates that the target slave device is any slave device in the slave assembly, a write control instruction can be issued to the slave device connected in the slave assembly so that it transmits the write control instruction to the target slave device. It can be understood that issuing a write control instruction to the target slave device and the slave device before it can be achieved by controlling the target slave device to no longer transparently transmit the write control instruction to its adjacent slave device after the write control instruction is transmitted to the target slave device. Before the write control instruction reaches the target slave device, the remaining slave devices only transparently transmit the write control instruction and do not execute the write control instruction.

[0099] Furthermore, when the target slave device flag indicates that the target slave device is all slave devices in the slave assembly, the transmission process is relatively simple. After the write control instruction is issued to the slave device connected to the slave assembly, the write control instruction will be transparently transmitted to all slave devices on the daisy chain communication line.

[0100] Among them, when the write control instruction is parsed to obtain instruction contents such as the target slave device flag and the target parameter flag, and when it is determined based on the target slave device flag that the slave device needs to execute the write control instruction, the target slave device can configure the to-be-configured data corresponding to the target parameters obtained by parsing to the storage space corresponding to the target parameters in the storage device.

[0101] In an exemplary embodiment, Figure 6 As shown, after performing parameter configuration operation on the target slave device, the parameter reading and writing method further includes steps 402 to 406. Among them:

[0102] Step 402: Send a write verification instruction to the slave component, and obtain the write data fed back by the slave component based on the write verification instruction.

[0103] Specifically, the write check instruction is used to check whether the issued write control instruction is executed correctly. The write check instruction is essentially a read control instruction, which is used to read the parameter value of the target parameter contained in the write control instruction to check whether the target parameter is configured correctly.

[0104] Furthermore, after receiving the write check instruction, the target slave device can obtain the parameter value of the target parameter based on the target parameter indicated in the write check instruction, and feed it back to the host device through the daisy chain communication line. It can be understood that the parameter value of the target parameter is the write data written into the storage space of the target parameter after the execution of the previous write control instruction.

[0105] Step 404: when the written data is consistent with the data to be configured, it is determined that the target parameter corresponding to the write control instruction is configured successfully.

[0106] Step 406: When the written data is inconsistent with the data to be configured, it is determined that the configuration of the target parameter corresponding to the write control instruction fails, and the write state variable is set.

[0107] The data to be configured is the configuration data of the target parameter contained in the write control instruction and needs to be configured in the slave device, and is also the data value of the target parameter to be configured indicated in the parameter read / write request issued by the host device.

[0108] Specifically, when the written data is consistent with the data to be configured, it indicates that the target parameter has been configured correctly, and it can be determined that the target parameter corresponding to the write control instruction is configured successfully. When the written data is inconsistent with the data to be configured, it indicates that the target parameter is not configured correctly, and it can be determined that the target parameter configuration corresponding to the write control instruction fails.

[0109] Furthermore, in the case where it is determined that the configuration of the target parameter corresponding to the write control instruction fails, the execution status of the instruction needs to be recorded, and the corresponding write status variable can be set to write failure.

[0110] It can be understood that in both cases where the target slave device flag represents that the target slave device is any slave device in the slave component or all slave devices, it is necessary to verify by sending a write verification instruction after the write control instruction is executed to ensure the accuracy of the parameter configuration and the accuracy of the subsequent reading of the configuration parameters.

[0111] In an exemplary embodiment, step 204 includes: issuing a read control instruction to all slave devices in the slave assembly to perform a parameter read operation on the target slave device.

[0112] It can be understood that during the parameter reading operation, no matter the target slave device is any slave device in the slave assembly or all slave devices in the slave assembly, the parameter reading operation can be implemented by sending a read control instruction to all slave devices in the slave assembly.

[0113] Specifically, after parsing the read control instruction to obtain instruction contents such as the target slave device flag and the target parameter flag, and determining that the slave device needs to execute the read control instruction based on the target slave device flag, the target data corresponding to the target parameter can be read out from the storage space corresponding to the target parameter in the storage device, and transmitted to the host device via the daisy chain communication line.

[0114] In a specific embodiment, a battery management system (BMS) is provided, in which an AFE slave device in the BMS has an EEPROM memory for storing data, and a host device in the BMS can read and write various parameters of the AFE slave device, and can also select any one of multiple cascaded AFE slave devices to write parameters without caring about data transmitted by other slave devices through a daisy chain, or write parameters to all cascaded AFE slave devices at one time.

[0115] like Figure 7As shown in the figure, after the BMS receives a request from the monitoring system (backstage or host device) to configure the parameters of the AFE slave device, if only the AFE slave device x needs to be configured, the BMS host device controls the cascaded AFE slave devices through the daisy chain communication line, and controls the AFE slave devices to write the corresponding parameters into the EEPROM memory connected to the AFE chip. Among them, the slave devices before the AFE slave device No. x all send invalid write commands. After the writing is completed, the BMS host device reads the parameters in the EEPROM memory of the AFE slave device through the daisy chain, and compares them with the written parameters. If they are inconsistent, it is determined that the writing fails and the write status variable is set. If all AFE slave devices are configured, the BMS host device controls the cascaded AFE slaves through the daisy chain communication line, and sends valid data and write commands to the slave device No. x and all AFE slave devices before No. x. After the writing is completed, the BMS host device reads the parameters in the EEPROM memory of all AFE slave devices for comparison. If they are inconsistent, it is determined that the writing fails and the write status variable is set.

[0116] like Figure 8 As shown, when the BMS host device receives a request from the monitoring system to read the parameter x of the AFE slave device, it controls all AFE slave devices through the daisy chain to read the parameters in the corresponding EEPROM memory, sends a valid read command to all slave devices, and returns the obtained data to the monitoring system.

[0117] It can be understood that the battery management system provided in this embodiment can configure the hardware version number, material number, SN (serial) number, AFE model and other parameters of the AFE slave device. The detection tool or BMS host can query the information recorded by the AFE slave device. Among them, the SN number can be used to trace and manage the AFE slave device, and the AFE model can be obtained by the BMS host device to detect whether all cascaded AFE slave devices are AFE slave devices of the same model.

[0118] Similarly, the battery management system provided in this embodiment can also configure parameters such as battery type, battery parameters, capacity, production batch, etc. The detection tooling or BMS host can query the information recorded by the AFE slave device. The BMS host device reads these data for comparison, and reports a fault when it detects that the battery type, parameters, capacity, and production batch are different to prevent such mismatching. When mismatching occurs, it is not conducive to the rational use of the battery cells in the battery module and affects the normal service life of the battery cells.

[0119] In this embodiment, any one of the cascaded AFE slave devices can be configured or all of the AFE slave devices can be configured. The data sent by other AFE slave devices before the daisy chain communication link can be any value. By sending invalid commands to them, they cannot be started to write parameters to the corresponding EEPROM memory. The parameter configuration function of the specified slave device can be realized by sending the desired data and the correct command to the AFE slave device to be written. By sending valid data and commands to all cascaded AFE slave devices through the daisy chain communication link, the parameters of all cascaded AFE slave devices can be configured to the EEPROM memory at one time, which effectively improves the flexibility of the storage top of the slave device.

[0120] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0121] Based on the same inventive concept, the embodiment of the present application also provides a parameter reading and writing device for implementing the parameter reading and writing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more parameter reading and writing device embodiments provided below can refer to the limitations on the parameter reading and writing method above, and will not be repeated here.

[0122] In an exemplary embodiment, a parameter reading and writing device is provided, comprising: a parsing module and a sending module, wherein:

[0123] A parsing module, used to parse parameter read and write requests and generate parameter control instructions corresponding to the parameter read and write requests;

[0124] The sending module is used to send parameter control instructions to the slave component to perform parameter read and write operations on the target slave device in the slave component; the target slave device is any slave device or all slave devices in the slave component.

[0125] In an exemplary embodiment, the parameter control instruction includes a write control instruction;

[0126] The sending module is also used to send write control instructions to the target slave device and its previous slave devices when the target slave device is any slave device in the slave component, so as to perform parameter configuration operations on the target slave device; when the target slave device is all slave devices in the slave component, send write control instructions to all slave devices to perform parameter configuration operations on the target slave device.

[0127] In an exemplary embodiment, the parameter reading and writing device further includes:

[0128] A verification module, used to send a write verification instruction to the slave component after performing parameter configuration operation on the target slave device, and obtain write data fed back by the slave component based on the write verification instruction;

[0129] The judgment module is used to judge that the target parameter configuration corresponding to the write control instruction is successful when the written data is consistent with the data to be configured; when the written data is inconsistent with the data to be configured, it is judged that the target parameter configuration corresponding to the write control instruction fails and the write status variable is set.

[0130] In an exemplary embodiment, the parameter control instruction includes a read control instruction;

[0131] The sending module is also used to send read control instructions to all slave devices in the slave assembly to perform parameter reading operations on the target slave devices.

[0132] Each module in the above parameter reading and writing device can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.

[0133] In an exemplary embodiment, a computer device is provided, which may be a server. The computer device includes a processor, a memory, an input / output interface (I / O for short) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer 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 the computer program in the non-volatile storage medium. The database of the computer device is used to store parameter read and write data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a parameter read and write method is implemented.

[0134] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0135] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0136] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0137] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and 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 embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory 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. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0138] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above 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 application.

[0139] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A slave component, characterized in that: It includes a plurality of slave devices, each of which is cascaded to form a daisy chain communication line, and the slave device at the head end or the tail end after the cascading is used to receive parameter control instructions; The slave device includes a connected front-end chip and a storage device. The front-end chip is also connected to the front-end chip of an adjacent slave device for communication to transmit the parameter control instruction, and in response to the parameter control instruction, performs parameter read and write operations on the connected storage device.

2. The slave assembly according to claim 1, characterized in that: The front-end chip is also used to parse the parameter control instruction, and when it is determined that the parameter control instruction needs to be executed, perform parameter read and write operations on the storage device connected to it based on the target parameters obtained by the analysis.

3. The slave assembly according to claim 2, characterized in that: The parameter control instructions include write control instructions and read control instructions; When receiving the write control instruction, the front-end chip is further used to parse the write control instruction, and when it is determined that the write control instruction needs to be executed, configure the to-be-configured data corresponding to the target parameter obtained by the parsing to the storage device connected thereto; When receiving the read control instruction, the front-end chip is further used to parse the read control instruction, and when determining that the read control instruction needs to be executed, reads out the target data corresponding to the parsed target parameters from the storage device connected thereto.

4. The slave assembly according to any one of claims 1 to 3, characterized in that: The storage device of the slave device is an EEPROM memory.

5. A battery management system, characterized in that: The invention comprises a host device and a slave assembly according to any one of claims 1 to 4, wherein the host device is connected to a slave device at a head end or a tail end of the cascaded slave assembly, and each of the slave devices in the slave assembly is also connected to a corresponding battery module; The host device is used to send parameter control instructions to the slave components connected thereto, so as to perform parameter read and write operations on any slave device or all slave devices in the slave components; The slave device is used to monitor the operating status of the battery module to which it is connected, and store the collected operating status data.

6. The battery management system according to claim 5, characterized in that: It also includes a host computer device, which is connected to the host device and is used to send parameter read and write requests to the host device, so that the host device generates parameter control instructions based on the parameter read and write requests.

7. A parameter reading and writing method, applied to the battery management system as claimed in claim 5 or 6, characterized in that: The method comprises: Parsing a parameter read / write request and generating a parameter control instruction corresponding to the parameter read / write request; The parameter control instruction is sent to the slave component to perform parameter read and write operations on a target slave device in the slave component; the target slave device is any slave device or all slave devices in the slave component.

8. The parameter reading and writing method according to claim 7, characterized in that: The parameter control instruction includes a write control instruction; The sending of the parameter control instruction to the slave component to perform parameter read and write operations on the target slave device in the slave component includes: In a case where the target slave device is any slave device in the slave assembly, issuing a write control instruction to the target slave device and its previous slave device to perform parameter configuration operations on the target slave device; In the case that the target slave devices are all the slave devices in the slave assembly, write control instructions are issued to all the slave devices to perform parameter configuration operations on the target slave devices.

9. The parameter reading and writing method according to claim 8, characterized in that: After performing parameter configuration operation on the target slave device, the method further includes: Sending a write verification instruction to the slave component, and obtaining write data fed back by the slave component based on the write verification instruction; In the case where the written data is consistent with the data to be configured, determining that the target parameter corresponding to the write control instruction is configured successfully; In the case that the written data is inconsistent with the data to be configured, it is determined that the configuration of the target parameter corresponding to the write control instruction fails, and a write state variable is set.

10. The parameter reading and writing method according to claim 7, characterized in that: The parameter control instructions include read control instructions; The sending of the parameter control instruction to the slave component to perform parameter read and write operations on the target slave device in the slave component includes: A read control instruction is issued to all slave devices in the slave assembly to perform a parameter read operation on the target slave device.