Communication control method and equipment for battery operation information
Through the main controller, the communication control of multiple storage devices is realized, and the synchronous writing and reading of battery operation information is ensured to be backed up by each other, and the information loss problem caused by the corruption of the battery operation information storage device is solved, and the data reliability is improved Sex and efficiency.
Patent Information
- Application Number
- CN202411228737.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2024-12-31
AI Technical Summary
In the prior art, battery operation information is recorded using only one storage device. Once the components located in the storage device are problematic or damaged and data needs to be replaced or migrated, it is easy to cause information to be lost, increasing cost and difficulty.
采用主控制器对多个存储设备进行通讯控制,通过时钟信号和数据线进行同步写入和读取电池运行信息,确保数据在多个存储设备之间互为备份,避免信息丢失。
It realizes that even if there is a problem or damage to the storage device components, it can still be used through backup information, avoiding the increased cost of data migration and information loss, and improving the read and write efficiency and reliability of battery operation information.
Smart Images

Figure CN119226196A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data communication, and in particular to a communication control method and device for battery operation information. Background Art
[0002] During actual use, the life and performance of the battery are easily affected by the external environment and the way it is used. Therefore, it is necessary to record the operating information of the entire battery system in real time during actual use to facilitate subsequent after-sales or product improvements. The existing solution for obtaining battery operating information is to integrate a non-volatile storage device (such as a memory card (SD card), a flash chip (Flash chip)), an electrically erasable programmable read-only memory (EEPROM), etc.) into the battery management system (BMS for short) to record data. The BMS is responsible for recording and reporting the entire battery operating information.
[0003] Battery operation information includes multiple dimensions, such as cell status information, BMS status information, external environment information, etc. At present, due to factors such as cost and chip power consumption, only a single storage device can be used to record the battery operation information. However, the lifespan of various components on the battery varies greatly, and during use, it is often necessary to replace a certain component separately, such as replacing the BMS separately. Once the storage device is located on the component to be replaced, professional equipment is required to export and migrate the data, which greatly increases the difficulty and cost of the operation. And if the battery itself fails or is accidentally damaged, such as lithium batteries that can cause high temperature or fire when used improperly, if the damage or failure affects the storage device that stores the battery operation information, it will cause information loss, seriously affecting the subsequent problem location.
[0004] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:
[0005] Currently, battery operation information is stored and recorded using only one storage device. Once a component where the storage device is located has a problem and needs to be replaced or is damaged, data migration will be required or information will be lost. Summary of the invention
[0006] The purpose of the present invention is to provide a communication control method and device for battery operation information to solve the technical problem in the prior art that once a component of a storage device has a problem and needs to be replaced or damaged, data migration or information loss will be required. The preferred technical solution among the many technical solutions provided by the present invention can produce many technical effects as described below.
[0007] To achieve the above object, the present invention provides the following technical solutions:
[0008] A communication control method for battery operation information provided by the present invention is applied to a communication control device for battery operation information, wherein the communication control device for battery operation information comprises a main controller and multiple storage devices, wherein the data output end of the main controller is connected to the data input end of each of the storage devices; the data output end of each of the storage devices is connected to the data input end of the main controller via an independent data line respectively; the communication control method for battery operation information is executed by the main controller, and the communication control method for battery operation information comprises: when it is necessary to store battery operation information, sending a first clock signal to each of the storage devices and synchronously sending data to be written, so as to synchronously write the data to be written into each of the storage devices for storage; wherein the data to be written includes the battery operation information; when it is necessary to call the battery operation information in each of the storage devices, sending a second clock signal to each of the storage devices, so as to synchronously receive the battery operation information output by each of the storage devices via each independent data line.
[0009] Preferably, the data output end of the main controller is connected to the data input end of each of the storage devices through a data bus, and the clock interface of the main controller is connected to the clock interface of each of the storage devices through a clock bus; the sending of a first clock signal to each of the storage devices and synchronously sending the data to be written includes: sending a first clock signal to each of the storage devices through the clock bus, and sending the data to be written to each of the storage devices through the data bus; wherein the clock bus is a clock line composed of the clock interfaces of all devices connected together, and the all devices include the main controller and the storage devices; the data bus is a data line composed of the data output end of the main controller and the data input ends of all the storage devices connected together.
[0010] Preferably, sending the first clock signal to each storage device through the clock bus, and sending the data to be written to each storage device through the data bus, includes: sending the first clock signal to the clock bus and capturing the clock level of the first clock signal at the same time; sending the data to be written to the data bus according to the clock level of the first clock signal, so that the data bus can synchronously send the data to be written to each storage device.
[0011] Preferably, sending the data to be written to the data bus according to the clock level of the first clock signal includes: monitoring whether the response of each of the storage devices is normal; if the response of each of the storage devices is normal, sending the data to be written to each of the storage devices; if there is a storage device with an abnormal response, stopping sending the data to be written to the storage device with the abnormal response.
[0012] Preferably, sending the data to be written to each of the storage devices via the data bus includes: outputting the data to be written to the data bus based on a built-in standard communication interface, or outputting the data to be written to the data bus via a custom communication interface, thereby sending the data to be written to each of the storage devices.
[0013] Preferably, sending a second clock signal to each of the storage devices so as to synchronously receive the battery operation information output by each of the storage devices through each independent data line includes: sending a second clock signal to the clock bus and simultaneously capturing the clock level of the second clock signal, and synchronously reading the battery operation information in each of the storage devices through each independent data line at the clock edge of the clock level of the second clock signal.
[0014] Preferably, synchronously reading the battery operation information in each of the storage devices through each of the independent data lines includes: synchronously receiving the battery operation information in each of the storage devices through each of the independent data lines; performing data verification on the battery operation information in each of the storage devices; if each of the storage devices passes the data verification, it is determined that the reading of the battery operation information in each of the storage devices is successful; if there is an abnormal storage device, querying whether there is backup data of the abnormal storage device in other of the storage devices; wherein the abnormal storage device is the storage device that has not passed the data verification; the backup data is the same battery operation information as the abnormal storage device that exists in other of the storage devices; if the backup data of the abnormal storage device does not exist in other of the storage devices, reading the battery operation information in the abnormal storage device fails; if the backup data of the abnormal storage device exists in other of the storage devices and passes the data verification, it is determined that the reading of the backup data in the storage device is successful.
[0015] Preferably, the signal direction of the data bus and the clock bus flows from the main controller to each of the storage devices, and each of the storage devices only passively receives; the data output direction of the storage device flows to the main controller through the data line, and the main controller only passively receives.
[0016] A communication control device for battery operation information, the communication control device for battery operation information comprises: a main controller and multiple storage devices, the data output end of the main controller is connected to the data input end of each of the storage devices; the data output end of each of the storage devices is connected to the data input end of the main controller through an independent data line; the main controller is used to perform write control or read control on the battery operation information; the main controller is also used to send a first clock signal to each of the storage devices and synchronously send the data to be written when the battery operation information needs to be stored; each of the storage devices is used to store the data to be written; the main controller is also used to send a second clock signal to each of the storage devices when the battery operation information in each of the storage devices needs to be called; each of the storage devices is also used to synchronously send the battery operation information through each independent data line based on the second clock signal; the main controller is also used to synchronously receive the battery operation information output by each of the storage devices through each independent data line.
[0017] Preferably, the communication control device for the battery operation information also includes a data bus and a clock bus; the data output end of the main controller is connected to the data input end of each of the storage devices through the data bus; the clock interface of the main controller is connected to the clock interface of each of the storage devices through the clock bus.
[0018] Implementing one of the above technical solutions of the present invention has the following advantages or beneficial effects:
[0019] The present invention controls communication between multiple storage devices through a main controller, and does not limit the number of storage devices. Different battery operation information can be stored in each storage device, or multiple storage devices can be used to store the same battery operation information, so that the multiple storage devices can back up each other. Even if the components where the storage devices are located have problems and need to be replaced or damaged, there is backup information that can be used, thereby avoiding the increased cost of data migration and information loss caused by component damage. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. It is obvious that the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0021] Figure 1 It is a structural schematic diagram of a communication control device for battery operation information according to Embodiment 1 and Embodiment 2 of the present invention;
[0022] Figure 2is a flow chart of a communication control method for battery operation information according to a first embodiment of the present invention;
[0023] Figure 3 is a timing waveform diagram of multiple data lines in embodiment 1 of the present invention;
[0024] Figure 4 This is a flow chart of reading battery operation information in each storage device in the first embodiment of the present invention. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solutions and advantages of the present invention clearer, the various exemplary embodiments to be described below will refer to the corresponding drawings, which constitute a part of the exemplary embodiments, wherein various exemplary embodiments that may be used to implement the present invention are described. Unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation methods described in the following exemplary embodiments do not represent all implementation methods consistent with the present disclosure. It should be understood that they are only examples of processes, methods, devices, etc. that are consistent with some aspects of the present disclosure as detailed in the attached claims, and other embodiments may also be used, or the embodiments listed herein may be modified in structure and function without departing from the scope and essence of the present invention.
[0026] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", etc. indicate the orientation or positional relationship based on the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the elements referred to must have a specific orientation, be constructed and operated in a specific orientation. The terms "first", "second", etc. are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. The term "multiple" means two or more. The terms "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, an integral connection, a mechanical connection, an electrical connection, a communication connection, a direct connection, an indirect connection through an intermediate medium, and can be the internal connection of two elements or the interaction relationship between two elements. The term "and / or" includes any and all combinations of one or more related listed items. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances.
[0027] In order to illustrate the technical solution of the present invention, a specific embodiment is used below for description, and only the parts related to the embodiment of the present invention are shown.
[0028] Embodiment 1:
[0029] The present invention provides a communication control method for battery operation information, which is applied to a communication control device for battery operation information, such as Figure 1 As shown, the communication control device for the battery operation information includes a main controller and multiple storage devices, the data output end of the main controller is connected to the data input end of each storage device; the data output end of each storage device is connected to the data input end of the main controller through an independent data line. The main controller and each storage device adopt full-duplex communication transmission, which can simultaneously perform two-way transmission of signals, and the main controller can read the information in the storage device while controlling the storage device to store, so that the time for writing and reading data will not increase with the increase in the number of storage devices, greatly improving the reading and writing efficiency of the battery operation information.
[0030] The communication control method of the battery operation information is executed by the main controller, such as Figure 2 As shown, the communication control method for battery operation information includes: S1. When the battery operation information needs to be stored, a first clock signal is sent to each storage device and the data to be written is synchronously sent to synchronize the data to be written into each storage device for storage; wherein the data to be written includes the battery operation information; S2. When the battery operation information in each storage device needs to be called, a second clock signal is sent to each storage device, thereby synchronously receiving the battery operation information output by each storage device through each independent data line.
[0031] This embodiment controls communication between multiple storage devices through a main controller, and does not limit the number of storage devices. Different battery operation information can be stored in each storage device, or multiple storage devices can be used to store the same battery operation information, so that the multiple storage devices can back up each other. Even if a component where the storage device is located has a problem and needs to be replaced or damaged, there is backup information that can be used, thereby avoiding the increased cost of data migration and information loss due to component damage.
[0032] As an optional implementation method, the data output end of the main controller is connected to the data input end of each storage device through a data bus, and the clock interface of the main controller is connected to the clock interface of each storage device through a clock bus; wherein, the clock bus is a clock line composed of the clock interfaces of all devices connected together, and all devices include the main controller and the storage device; the data bus is a data line composed of the data output end of the main controller and the data input end of all storage devices connected together. At present, if the communication between the main controller and multiple storage devices is to be realized, the main controller and the storage device need to be based on a bus interface that supports arbitration (such as IIC, Inter-Integrated Circuit, integrated circuit bus, a serial communication interface) or use multiple independent communication interfaces (such as UART, Universal Synchronous / Asynchronous Receiver / Transmitter, universal synchronous / asynchronous serial interface / transmitter), the former needs to be used in conjunction with the bus arbitration mechanism, and the latter has a complex hardware circuit design, which will increase the cost. The data bus in the method of this embodiment is a data line composed of the data output end of the main controller and the data input end of all storage devices connected together, which is different from the traditional bus that is not limited by the type of communication interface, and can reduce the complexity of the hardware circuit design while also greatly expanding the scope of use.
[0033] The signal direction of the data bus and the clock bus flows from the main controller to each storage device, and each storage device only passively receives, so no arbitration is required; the data output direction of the storage device flows to the main controller through the data line, and the main controller only passively receives, so no arbitration is required. The setting of the arbitration mechanism can be omitted, further reducing the circuit design cost.
[0034] Sending a first clock signal to each storage device and synchronously sending the data to be written includes: sending the first clock signal to each storage device through a clock bus, and sending the data to be written to each storage device through a data bus. Specifically, sending the first clock signal to the clock bus, while capturing the clock level of the first clock signal; according to the clock level of the first clock signal, sending the data to be written to the data bus, so that the data bus can synchronously send the data to be written to each storage device. The main controller sends the clock signal to all storage devices through the clock bus, and all storage devices can receive the clock signal and the data to be written at the same time, so that the main controller can synchronously write the data to be written to all storage devices.
[0035] As an optional implementation, according to the clock level of the first clock signal, the data to be written is sent to the data bus, including: monitoring whether the response of each storage device is normal; if the response of each storage device is normal, the data to be written is sent to each storage device; if there is a storage device with an abnormal response, the data to be written is stopped from being sent to the storage device with the abnormal response. In the process of writing data, the main controller also needs to monitor each storage device to ensure that the battery operation information is successfully stored in the storage device. If the storage device is monitored to respond abnormally, the abnormal storage device will no longer be used, and it will be reported in time to remind manual maintenance or replacement of the abnormal storage device.
[0036] As an optional implementation, the data to be written is sent to each storage device via the data bus, including: outputting the data to be written to the data bus based on the built-in standard communication interface, or outputting the data to be written to the data bus by means of a custom communication interface, thereby sending the data to be written to each storage device. The storage device of this embodiment can adopt a storage device that supports full-duplex communication, such as a serial FLASH chip, etc.; it can also use an MCU that supports full-duplex communication in combination with any storage medium, such as an EEPROM including an MCU and an IIC interface. The communication interface of the main controller can use the hardware port that supports full-duplex communication that comes with the main controller, or it can be a full-duplex communication interface simulated by software. Not limiting the communication interface between the main controller and the storage device can simplify circuit design and reduce costs.
[0037] As an optional implementation, sending a second clock signal to each storage device, so as to synchronously receive the battery operation information output by each storage device through each independent data line, includes: sending the second clock signal to the clock bus, capturing the clock level of the second clock signal at the same time, and synchronously reading the battery operation information in each storage device through each independent data line at the clock edge of the clock level of the second clock signal. Figure 3 As shown, the level changes on all data lines in_x (x = 1, 2, ..., n) are aligned with the edge of the clock level change. When the main controller sends out the clock signal, it will use the capture module to capture the clock signal output by itself, and read the level of all data lines at the set clock edge (rising edge or falling edge), so as to read the output data of all storage devices. As shown in Figure 3, the data read by the main controller through the data line in_1 is 0b0110, the data read through the data line in_2 is 0b0100, and the data read through the data line in_n is 0b0110. Since all storage devices output data based on the same clock bus, the main controller can synchronously read the battery operation information in each storage device.
[0038] As an alternative embodiment, Figure 4 As shown, the battery operation information in each storage device is synchronously read through each independent data line, including: S21, synchronously receiving the battery operation information in each storage device through each independent data line; S22, performing data verification on the battery operation information in each storage device, such as calculating the CRC32 verification value of each battery operation information, and detecting whether each battery operation information is abnormal through S23CRC32 verification value; S23, if each storage device passes the data verification, it is determined that the battery operation information in each storage device is successfully read; S24, if there is an abnormal storage device, query whether there is an abnormal storage device in other storage devices The backup data of the storage device; wherein the abnormal storage device is a storage device that has not passed the data verification; the backup data is the battery operation information that exists in other storage devices and is the same as that of the abnormal storage device; S25. If the backup data of the abnormal storage device does not exist in other storage devices, the reading of the battery operation information in the abnormal storage device fails, indicating that the required battery operation information has not been read, and the main controller is promptly reported to inform that this abnormal information is lost, and the abnormal storage device is repaired or replaced; S26. If the backup data of the abnormal storage device exists in other storage devices and passes the data verification, it is determined that the backup data in the storage device is successfully read. If even if there is backup data of the abnormal storage device in other storage devices, it cannot pass the data verification, it means that the backup storage device is also abnormal and needs to be reported in time. By performing data verification on the received storage data, it is ensured that the correct battery operation information can be successfully read.
[0039] The embodiment is only a specific example and does not represent only one implementation mode of the present invention.
[0040] Embodiment 2:
[0041] The difference between the second embodiment and the first embodiment is that: Figure 1 As shown, a communication control device for battery operation information includes: a main controller and multiple storage devices, the data output end of the main controller is connected to the data input end of each storage device; the data output end of each storage device is connected to the data input end of the main controller through an independent data line respectively; the main controller is used to control the writing or reading of the battery operation information; the main controller is also used to send a first clock signal to each storage device and synchronously send the data to be written when the battery operation information needs to be stored; each storage device is used to store the data to be written; the main controller is also used to send a second clock signal to each storage device when the battery operation information in each storage device needs to be called; each storage device is also used to synchronously send the battery operation information through each independent data line based on the second clock signal; the main controller is also used to synchronously receive the battery operation information output by each storage device through each independent data line.
[0042] As an optional implementation, the communication control device for battery operation information also includes a data bus and a clock bus; the data output end of the main controller is connected to the data input end of each storage device through the data bus; the clock interface of the main controller is connected to the clock interface of each storage device through the clock bus.
[0043] The communication control device for battery operation information of this embodiment is used to execute the communication control method for battery operation information described in Example 1. The device does not limit the number of storage devices, nor does it limit the installation location of the storage devices. Different storage devices can back up each other or store data independently, which can ensure that the battery operation information will not be lost after some components are damaged or replaced; the device also does not limit the type of communication interface, which can simplify circuit design and reduce costs; access to multiple storage devices is performed synchronously, and data recording time does not increase with the increase in the number of storage devices, thereby improving the efficiency of the main controller in reading and writing data.
[0044] The above description is only the preferred embodiment of the present invention. It is known to those skilled in the art that various changes or equivalent substitutions may be made to these features and embodiments without departing from the spirit and scope of the present invention. In addition, under the teachings of the present invention, these features and embodiments may be modified to adapt to specific circumstances and materials without departing from the spirit and scope of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of this application belong to the protection scope of the present invention.
Claims
1. A communication control method for battery operation information, characterized in that: A communication control device for battery operation information, the communication control device for battery operation information comprises a main controller and a plurality of storage devices, the data output end of the main controller is connected to the data input end of each of the storage devices; the data output end of each of the storage devices is connected to the data input end of the main controller through an independent data line; The communication control method of the battery operation information is executed by the main controller, and the communication control method of the battery operation information includes: When the battery operation information needs to be stored, a first clock signal is sent to each of the storage devices and the data to be written is sent synchronously, so that the data to be written is synchronously written into each of the storage devices for storage; wherein the data to be written includes the battery operation information; When the battery operation information in each of the storage devices needs to be called, a second clock signal is sent to each of the storage devices, so that the battery operation information output by each of the storage devices is synchronously received through each of the independent data lines.
2. A method for controlling the communication of battery operation information according to claim 1, characterized in that: The data output terminal of the main controller is connected to the data input terminal of each of the storage devices through a data bus, and the clock interface of the main controller is connected to the clock interface of each of the storage devices through a clock bus; The sending of the first clock signal to each of the storage devices and synchronously sending the data to be written comprises: Sending a first clock signal to each of the storage devices via the clock bus, and sending the data to be written to each of the storage devices via the data bus; Among them, the clock bus is a clock line composed of clock interfaces of all devices connected together, and all devices include the main controller and the storage device; the data bus is a data line composed of the data output end of the main controller and the data input end of all the storage devices connected together.
3. A method for controlling the communication of battery operation information according to claim 2, characterized in that: The sending of the first clock signal to each storage device through the clock bus, and sending the data to be written to each storage device through the data bus, comprises: Sending the first clock signal to the clock bus and capturing a clock level of the first clock signal; The data to be written is sent to the data bus according to the clock level of the first clock signal, so that the data bus can synchronously send the data to be written to each of the storage devices.
4. A method for controlling the communication of battery operation information according to claim 3, characterized in that: The step of sending the data to be written to the data bus according to the clock level of the first clock signal includes: Monitoring whether the responses of each of the storage devices are normal; If the responses of the storage devices are normal, the data to be written are sent to the storage devices; If there is a storage device that responds abnormally, the sending of the data to be written to the storage device that responds abnormally is stopped.
5. A method for controlling the communication of battery operation information according to claim 2, characterized in that: The sending the data to be written to each of the storage devices through the data bus includes: The data to be written is output to the data bus based on a built-in standard communication interface, or is output to the data bus through a custom communication interface, thereby sending the data to be written to each of the storage devices.
6. A method for controlling the communication of battery operation information according to claim 2, characterized in that: The sending of the second clock signal to each of the storage devices, thereby synchronously receiving the battery operation information output by each of the storage devices through each of the independent data lines, includes: A second clock signal is sent to the clock bus, and a clock level of the second clock signal is captured at the same time. At the clock edge of the clock level of the second clock signal, the battery operation information in each of the storage devices is synchronously read through each independent data line.
7. A method for controlling the communication of battery operation information according to claim 6, characterized in that: The synchronously reading the battery operation information in each of the storage devices through each of the independent data lines includes: Synchronously receiving the battery operation information in each of the storage devices through each of the independent data lines; Performing data verification on the battery operation information in each of the storage devices; If each of the storage devices passes the data verification, it is determined that the battery operation information in each of the storage devices is read successfully; If there is an abnormal storage device, query whether there is backup data of the abnormal storage device in other storage devices; wherein the abnormal storage device is the storage device that has not passed the data verification; the backup data is the battery operation information that exists in other storage devices and is the same as that of the abnormal storage device; If the backup data of the abnormal storage device does not exist in the other storage devices, reading the battery operation information in the abnormal storage device fails; If the backup data of the abnormal storage device exists in the other storage devices and passes the data verification, it is determined that the reading of the backup data in the storage device is successful.
8. A method for controlling the communication of battery operation information according to claim 2, characterized in that: The signal direction of the data bus and the clock bus flows from the main controller to each of the storage devices, and each of the storage devices only passively receives; the data output direction of the storage device flows to the main controller through the data line, and the main controller only passively receives.
9. A communication control device for battery operation information, characterized in that: The communication control device for battery operation information comprises: a main controller and a plurality of storage devices, wherein the data output end of the main controller is connected to the data input end of each of the storage devices; the data output end of each of the storage devices is connected to the data input end of the main controller via an independent data line; The main controller is used to control writing or reading of battery operation information; The main controller is further used to send a first clock signal to each of the storage devices and synchronously send the data to be written when the battery operation information needs to be stored; Each of the storage devices is used to store the data to be written; The main controller is further used to send a second clock signal to each of the storage devices when it is necessary to call the battery operation information in each of the storage devices; Each of the storage devices is further used to synchronously send the battery operation information through each independent data line based on the second clock signal; The main controller is also used to synchronously receive the battery operation information output by each storage device through each independent data line.
10. A battery operation information communication control device according to claim 9, characterized in that: The communication control device for the battery operation information also includes a data bus and a clock bus; the data output end of the main controller is connected to the data input end of each of the storage devices through the data bus; the clock interface of the main controller is connected to the clock interface of each of the storage devices through the clock bus.
