Battery signal acquisition system and method
By dynamically updating the CAN logo and data collection configuration, the problem of frequent upgrades of the battery signal collection system is solved, the system's versatility and cost reduction are achieved, and it adapts to different battery brands and big data analysis needs.
Patent Information
- Application Number
- CN202410767560.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-14
AI Technical Summary
The existing battery signal acquisition system needs frequent upgrades to adapt to different battery brands and big data analysis needs, resulting in increased human resource consumption and software maintenance costs.
Through production line configuration and remote configuration protocols, the CAN identification and data collection configuration in the microcontroller are dynamically updated to realize the filtering and reporting of CAN messages, reducing the number of software versions and maintenance requirements.
It achieves the versatility of the battery signal acquisition system, reduces the manual development and maintenance costs of system software, and improves development efficiency and adaptability.
Smart Images

Figure CN118330473B
Abstract
Description
Technical Field
[0001] The present application relates to the field of battery management technology, and in particular to a battery signal acquisition system and method. Background Art
[0002] At present, with the rapid and continuous growth of the use rate of new energy vehicles, the corresponding battery demand on each vehicle is also growing synchronously, and the monitoring of battery status is very necessary. In particular, the battery life and performance optimization require big data analysis of the battery's related status, and continuous optimization and improvement.
[0003] The battery signal acquisition system (Remote Data Bridge, RDB) can remotely monitor the battery, provide real-time feedback on the battery status, and promptly detect battery alarms. At the same time, it can collect battery data for data analysis to improve battery performance. As cloud platform big data analysis becomes more professional and in-depth, more and more battery status data is required. RDB devices need to perform remote software upgrades every once in a while to obtain more battery status data. At the same time, RDB devices also need to adapt to the corresponding CAN identifiers for different battery brands, filter CAN messages, and report the corresponding data that needs to be collected. This leads to an increasing number of software versions of RDB devices that need to be maintained. In order to avoid the increasing amount of data required for big data analysis and adapt to different battery manufacturers, RDB devices need to be continuously upgraded.
[0004] Therefore, how to reduce the human resource consumption and software maintenance costs caused by the need to continuously upgrade RDB devices is a technical problem that urgently needs to be solved in this field. Summary of the invention
[0005] The purpose of this application is to provide a battery signal acquisition system and method, which can achieve the versatility of the battery signal acquisition system and reduce the manual development and maintenance costs of the system software.
[0006] In a first aspect, an embodiment of the present application provides a battery signal acquisition system, including:
[0007] A microcontroller, a communication module, a CAN filtering and acquisition module and an external serial port module; the microcontroller is respectively connected to the communication module, the CAN filtering and acquisition module and the external serial port module; the communication module is connected to the cloud platform via a mobile network; the CAN filtering and acquisition module is connected to the power battery management system BMS via a CAN bus, and each state of the power battery corresponds to a CAN identifier;
[0008] The peripheral serial port module is used for the production line tool to write the initial configuration into the storage unit of the microcontroller through the peripheral serial port module according to the production line configuration protocol; the initial configuration includes the CAN identifier that needs to be filtered and the CAN identifier that needs to collect data;
[0009] The microcontroller is used to parse the remote configuration according to the remote configuration protocol to obtain an updated configuration after receiving the remote configuration through the communication module; write the updated configuration into the storage unit of the microcontroller and delete the initial configuration; the updated configuration includes the CAN identifier that needs to be filtered and the CAN identifier that needs to collect data;
[0010] The CAN filtering and collecting module is used to filter and collect CAN messages according to the initial configuration or the updated configuration, and store the collected CAN messages in the microcontroller;
[0011] The microcontroller is also used to report the collected CAN messages to the cloud platform through the communication module according to the remote data reporting protocol.
[0012] In some embodiments of the present application, the storage unit of the microcontroller includes an internal storage unit and an external storage unit of the microcontroller.
[0013] In some embodiments of the present application, the production line configuration protocol includes: a message header, a CAN identifier length to be filtered, a CAN identifier list to be filtered, a CAN identifier length to be collected, a CAN identifier list to be collected, a check code and a message tail.
[0014] In some embodiments of the present application, the remote configuration protocol includes: a message header, a device code of a battery signal acquisition system, a remote configuration delivery time, a service type, a CAN identifier length to be filtered, a CAN identifier list to be filtered, a CAN identifier length to be collected, a CAN identifier list to be collected, a check code, and a message tail.
[0015] In some embodiments of the present application, the remote data reporting protocol includes: a message header, a device code of the battery signal acquisition system, a data reporting time, a service type, a total length of the CAN message, a reported CAN identifier and corresponding data, a check code and a message tail.
[0016] In some embodiments of the present application, the system further comprises:
[0017] A GPS positioning module, which is in communication with the microcontroller and is used to locate the position of the battery signal acquisition system;
[0018] The microcontroller is also used to report the location of the battery signal acquisition system to the cloud platform.
[0019] In a second aspect, an embodiment of the present application provides a battery signal acquisition method, based on the battery signal acquisition system described in the first aspect, the method comprising:
[0020] The production line tool writes the initial configuration into the storage unit of the microcontroller through the peripheral serial port module according to the production line configuration protocol; the initial configuration includes the CAN identifiers that need to be filtered and the CAN identifiers that need to collect data;
[0021] After receiving the remote configuration through the communication module, the microcontroller parses the remote configuration according to the remote configuration protocol to obtain an updated configuration; writes the updated configuration into the storage unit of the microcontroller and deletes the initial configuration; the updated configuration includes the CAN identifier that needs to be filtered and the CAN identifier that needs to collect data;
[0022] The CAN filtering and collecting module filters and collects CAN messages according to the initial configuration or the updated configuration, and stores the collected CAN messages in the microcontroller;
[0023] The microcontroller reports the collected CAN messages to the cloud platform through the communication module according to the remote data reporting protocol.
[0024] In some embodiments of the present application, the method further comprises:
[0025] Locate the battery signal acquisition system;
[0026] The location of the battery signal acquisition system is reported to the cloud platform.
[0027] Compared with the prior art, the battery signal acquisition system and method provided by the present application, the production line tool writes the initial configuration into the storage unit of the microcontroller through the peripheral serial port module according to the production line configuration protocol; the initial configuration includes the CAN identifier that needs to be filtered and the CAN identifier for the data that needs to be collected; after the microcontroller receives the remote configuration through the communication module, the remote configuration is parsed according to the remote configuration protocol to obtain an updated configuration; the updated configuration is written into the storage unit of the microcontroller and the initial configuration is deleted; the updated configuration includes the CAN identifier that needs to be filtered and the CAN identifier for the data that needs to be collected; the CAN filtering and acquisition module filters and collects CAN messages according to the initial configuration or the updated configuration, and stores the collected CAN messages in the microcontroller; the microcontroller reports the collected CAN messages to the cloud platform through the communication module according to the remote data reporting protocol. It can be seen that in this application, through production line configuration and remote configuration, the CAN identifiers that need to be filtered and the CAN identifiers that need to be collected and reported and the corresponding battery data can be configured according to needs, so as to meet the signal acquisition needs in various scenarios and achieve the universality of the system software, thereby realizing the universality of the battery signal acquisition system, reducing the manual development and maintenance costs of the system software, and improving the system development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0029] Figure 1 A schematic diagram of the structure of a battery signal acquisition system provided in an embodiment of the present application is shown;
[0030] Figure 2 A flow chart of a battery signal acquisition method provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0031] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0032] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should have the common meanings understood by technicians in the field to which this application belongs.
[0033] In addition, the terms "first" and "second" etc. are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0034] Please refer to Figure 1 , Figure 1 It is a structural schematic diagram of a battery signal acquisition system provided in an embodiment of the present application. The acquisition system 10 includes: a microcontroller 100 (MCU), a communication module 200, a CAN filtering and acquisition module 300 and a peripheral serial port module 400; the microcontroller 100 is respectively communicated with the communication module 200, the CAN filtering and acquisition module 300 and the peripheral serial port module 400; the communication module 200 can be communicated with the cloud platform through mobile networks such as 4G and 5G; the CAN filtering and acquisition module 300 is communicated with the power battery management system BMS through the CAN bus, and each state of the power battery corresponds to a CAN identifier (CANID).
[0035] The peripheral serial port module 400 is used for the production line tool to write the initial configuration into the storage unit of the microcontroller 100 through the peripheral serial port module 400 according to the production line configuration protocol; the initial configuration includes the CAN identifier that needs to be filtered and the CAN identifier that needs to collect data; the storage unit of the microcontroller 100 includes the internal storage unit of the microcontroller and the external storage unit (for example, external FLASH).
[0036] In the power battery system, there are many battery states (such as temperature, voltage, etc.), and the corresponding CANIDs are also large. The number of CAN signals in the battery system is huge, and the MCU's ability to process CANID is limited. Therefore, hardware filtering of CANID is required, and these CANIDs need to reserve an area inside the MCU for storage. If the internal storage resources of the MCU are limited, an external FLASH is required to store the CANID.
[0037] The production line configuration protocol includes: a message header, a CAN identifier length to be filtered, a CAN identifier list to be filtered, a CAN identifier length to be collected, a CAN identifier list to be collected, a check code and a message tail.
[0038] The production line configuration protocol is shown in Table 1 below. 0xAA and 0x55 are the message headers. The next part is the length of all CANIDs that need to be filtered, which is 2 bytes in size. The following is the list of CANIDs that need to be filtered, which is composed of multiple 4-byte CANIDs. Next is the length of all CANIDs that need to be collected, which is 2 bytes in size. The next part is the list of CANIDs that need to be collected and reported, which is composed of multiple 4-byte CANIDs, followed by the CRC16 checksum and the message tail. Among them, CRC16 is the checksum of all bytes from the message header to the checksum.
[0039] Table 1: Production line configuration protocol
[0040]
[0041] Specifically, when the battery signal acquisition system (RDB device) leaves the factory, the corresponding CANID is matched according to the customer's battery manufacturer, and the CANID to be filtered and the CANID to be collected are written into the RDB device or external FLASH through the production line tool.
[0042] After the production line tool configures the CANID, when the RDB device is powered on, it reads the CANID from the internal storage space of the MCU or reads the CANID from the external FLASH to filter the CAN message and report the CANID and corresponding data to be collected.
[0043] The microcontroller 100 is used to parse the remote configuration according to the remote configuration protocol to obtain an updated configuration after receiving the remote configuration through the communication module 200; write the updated configuration into the storage unit of the microcontroller 100 and delete the initial configuration; the updated configuration includes the CAN identifier that needs to be filtered and the CAN identifier that needs to collect data.
[0044] The remote configuration protocol includes: a message header, a device code of a battery signal acquisition system, a remote configuration delivery time, a service type, a CAN identifier length to be filtered, a CAN identifier list to be filtered, a CAN identifier length to be collected, a CAN identifier list to be collected, a check code and a message tail.
[0045] Specifically, when a new signal or RDB device is installed in a battery system of a different battery manufacturer, it is sent to the RDB device for analysis through remote configuration. After analysis, the CANID to be filtered and the CANID to be collected are written into the RDB device or external FLASH.
[0046] When the RDB device is restarted, the CANID is read from the internal storage space of the MCU or from the external FLASH to filter the CAN message and report the CANID and corresponding data to be collected.
[0047] For example, when the cloud platform analyzes big data and finds that a new CAN signal is needed, it can be sent to the communication module of the RDB device through remote configuration.
[0048] The remote configuration protocol is shown in Table 2 below. 0x33 and 0x33 are the message headers, followed by the RDB device number and the UTC time when the message was sent. The service type is 0x02 configuration message. The next part is the length of all CANIDs to be filtered, which is 2 bytes in size. The subsequent CANID list to be filtered is composed of multiple 4-byte CANIDs. Next is the length of all CANIDs to be collected, which is 2 bytes in size. The next part is the list of CANIDs that need to be collected and reported, which is composed of multiple 4-byte CANIDs, followed by a CRC16 checksum and the message tail. CRC16 is the checksum of all bytes from the message header to the checksum. The configuration content is the CANID to be filtered and the CANID to be collected and reported in Table 2. The remote configuration protocol is consistent with the production line configuration protocol in the data part.
[0049] Table 2: Remote configuration protocols
[0050]
[0051] With the above configuration, RDB, as a signal acquisition device, can meet signal acquisition requirements without software upgrades as the number of signals increases, or without software upgrades when switching to a different battery manufacturer. This reduces the maintenance cost of the system software, improves efficiency, and achieves the versatility of the system software.
[0052] The CAN filtering and collecting module 300 is used to filter and collect CAN messages according to the initial configuration or the updated configuration, and store the collected CAN messages in the microcontroller 100 .
[0053] The microcontroller 100 is also used to report the collected CAN messages to the cloud platform through the communication module 200 according to the remote data reporting protocol.
[0054] The remote data reporting protocol includes: a message header, a device code of a battery signal acquisition system, a data reporting time, a service type, a total length of a CAN message, a reported CAN identifier and corresponding data, a check code and a message tail.
[0055] Specifically, after receiving the remote configuration, restart, perform CANID hardware filtering and software filtering, and report the CANID of the corresponding battery and the corresponding data to the cloud platform. The remote data reporting protocol is shown in Table 3, where the service type is 0x01 data reporting, followed by the length of the data report, CANID and the data part of the corresponding CANID. CANID (N) and Data (N) represent multiple message reports, which are only abbreviations in the protocol. The number of CANs reported is determined by the total length of the CAN message.
[0056] Table 3: Remote data reporting protocol
[0057]
[0058] It can be seen that if the RDB device is installed on the battery collection system of different battery manufacturers after leaving the factory, it only needs to remotely configure and re-send the CANID that needs to be filtered and the CANID that needs to be collected to the RDB device.
[0059] Through the above production line and remote configuration process, the CANID that needs to be filtered and the CANID that needs to be collected and reported and the corresponding battery data reporting can be configured according to needs to meet the signal collection requirements in various scenarios. This reduces the maintenance cost of the software, improves efficiency, and achieves the versatility of the software.
[0060] like Figure 1 As shown, in some embodiments, the system 10 further includes: a GPS positioning module 500, which is communicatively connected to the microcontroller and is used to locate the position of the battery signal acquisition system; the microcontroller 100 is also used to report the position of the battery signal acquisition system to the cloud platform.
[0061] The present application also provides a battery signal acquisition method based on the battery signal acquisition system described in the first aspect. Figure 2 As shown, the method includes:
[0062] S101, the production line tool writes the initial configuration into the storage unit of the microcontroller through the peripheral serial port module according to the production line configuration protocol; the initial configuration includes the CAN identifier that needs to be filtered and the CAN identifier that needs to collect data;
[0063] S102, after receiving the remote configuration through the communication module, the microcontroller parses the remote configuration according to the remote configuration protocol to obtain an updated configuration; writes the updated configuration into a storage unit of the microcontroller and deletes the initial configuration; the updated configuration includes a CAN identifier that needs to be filtered and a CAN identifier that needs to collect data;
[0064] S103, the CAN filtering and collecting module filters and collects CAN messages according to the initial configuration or the updated configuration, and stores the collected CAN messages in the microcontroller;
[0065] S104, the microcontroller reports the collected CAN messages to the cloud platform through the communication module according to the remote data reporting protocol.
[0066] In some embodiments of the present application, the method further includes: locating the position of the battery signal acquisition system; and reporting the position of the battery signal acquisition system to a cloud platform.
[0067] The battery signal acquisition method provided in this application can solve the problem that the existing software version has a large amount of maintenance and needs to be continuously upgraded to adapt to the larger amount of signals required for big data analysis and the needs of different battery manufacturers to collect different CAN messages, thereby reducing the cost of manual development and maintenance of software and improving the versatility of the software.
[0068] The battery signal acquisition system and method provided by the present application, the production line tool writes the initial configuration into the storage unit of the microcontroller through the peripheral serial port module according to the production line configuration protocol; the initial configuration includes the CAN identifier that needs to be filtered and the CAN identifier that needs to collect data; after the microcontroller receives the remote configuration through the communication module, it parses the remote configuration according to the remote configuration protocol to obtain the updated configuration; the updated configuration is written into the storage unit of the microcontroller and the initial configuration is deleted; the updated configuration includes the CAN identifier that needs to be filtered and the CAN identifier that needs to collect data; the CAN filtering and acquisition module filters and collects CAN messages according to the initial configuration or the updated configuration, and stores the collected CAN messages in the microcontroller; the microcontroller reports the collected CAN messages to the cloud platform through the communication module according to the remote data reporting protocol. It can be seen that in this application, through the production line configuration and remote configuration, the CAN identifier that needs to be filtered and the CAN identifier that needs to be collected and reported and the corresponding battery data can be configured according to the needs, meeting the signal acquisition requirements in various scenarios, achieving the versatility of the system software, thereby realizing the versatility of the battery signal acquisition system, reducing the manual development and maintenance costs of the system software, and improving the system development efficiency.
[0069] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application, and they should all be included in the scope of the claims and specification of the present application.
Claims
1. A battery signal acquisition system, characterized in that: include: Microcontroller, communication module, CAN filtering and acquisition module and peripheral serial port module; The microcontroller is respectively connected to the communication module, the CAN filtering and acquisition module and the peripheral serial port module; the communication module is connected to the cloud platform via a mobile network; the CAN filtering and acquisition module is connected to the power battery management system BMS via a CAN bus, and each state of the power battery corresponds to a CAN identifier; The peripheral serial port module is used for the production line tool to write the initial configuration into the storage unit of the microcontroller through the peripheral serial port module according to the production line configuration protocol; the initial configuration includes the CAN identifier that needs to be filtered and the CAN identifier that needs to collect data; The microcontroller is used to parse the remote configuration according to the remote configuration protocol to obtain an updated configuration after receiving the remote configuration through the communication module; write the updated configuration into the storage unit of the microcontroller and delete the initial configuration; the updated configuration includes the CAN identifier that needs to be filtered and the CAN identifier that needs to collect data; The CAN filtering and collecting module is used to filter and collect CAN messages according to the initial configuration or the updated configuration, and store the collected CAN messages in the microcontroller; The microcontroller is also used to report the collected CAN messages to the cloud platform through the communication module according to the remote data reporting protocol; Specifically, when the system leaves the factory, the corresponding CAN identifier is matched according to the customer's battery manufacturer, and the CAN identifier to be filtered and the CAN identifier to be collected are written into the RDB device or the external FLASH through the production line tool; After the production line tool configures the CAN identifier, when the system is powered on, the CAN identifier is read from the internal storage space of the MCU or from the external FLASH to filter the CAN message and report the CAN identifier and corresponding data to be collected; Specifically, when a new signal or RDB device is installed in a battery system of a different battery manufacturer, it is sent to the system through remote configuration for analysis; after analysis, the CAN identifiers to be filtered and the CAN identifiers to be collected are written into the system internal or external FLASH; When the system is restarted, the CAN identifier is read from the internal storage space of the MCU or the CAN identifier is read from the external FLASH to filter the CAN message and report according to the CAN identifier and corresponding data to be collected; After the cloud platform analyzes the big data, if it is found that a new CAN signal needs to be added, it will be sent to the communication module through remote configuration.
2. The system according to claim 1, characterized in that The storage unit of the microcontroller includes an internal storage unit and an external storage unit of the microcontroller.
3. The system according to claim 1, characterized in that The production line configuration protocol includes: a message header, a CAN identifier length to be filtered, a CAN identifier list to be filtered, a CAN identifier length to be collected, a CAN identifier list to be collected, a check code and a message tail.
4. The system according to claim 1, characterized in that The remote configuration protocol includes: a message header, a device code of a battery signal acquisition system, a remote configuration delivery time, a service type, a CAN identifier length to be filtered, a CAN identifier list to be filtered, a CAN identifier length to be collected, a CAN identifier list to be collected, a check code and a message tail.
5. The system according to claim 1, characterized in that The remote data reporting protocol includes: a message header, a device code of a battery signal acquisition system, a data reporting time, a service type, a total length of a CAN message, a reported CAN identifier and corresponding data, a check code and a message tail.
6. The system according to claim 1, characterized in that The system further comprises: A GPS positioning module, which is in communication with the microcontroller and is used to locate the position of the battery signal acquisition system; The microcontroller is also used to report the location of the battery signal acquisition system to the cloud platform.
7. A battery signal acquisition method, characterized in that: Based on the battery signal acquisition system according to any one of claims 1 to 6, the method comprises: The production line tool writes the initial configuration into the storage unit of the microcontroller through the peripheral serial port module according to the production line configuration protocol; the initial configuration includes the CAN identifiers that need to be filtered and the CAN identifiers that need to collect data; After receiving the remote configuration through the communication module, the microcontroller parses the remote configuration according to the remote configuration protocol to obtain an updated configuration; writes the updated configuration into the storage unit of the microcontroller and deletes the initial configuration; the updated configuration includes the CAN identifier that needs to be filtered and the CAN identifier that needs to collect data; The CAN filtering and collecting module filters and collects CAN messages according to the initial configuration or the updated configuration, and stores the collected CAN messages in the microcontroller; The microcontroller reports the collected CAN messages to the cloud platform through the communication module according to the remote data reporting protocol; Specifically, when the system leaves the factory, the corresponding CAN identifier is matched according to the customer's battery manufacturer, and the CAN identifier to be filtered and the CAN identifier to be collected are written into the RDB device or the external FLASH through the production line tool; After the production line tool configures the CAN identifier, when the system is powered on, the CAN identifier is read from the internal storage space of the MCU or from the external FLASH to filter the CAN message and report the CAN identifier and corresponding data to be collected; Specifically, when a new signal or RDB device is installed in a battery system of a different battery manufacturer, it is sent to the system through remote configuration for analysis; after analysis, the CAN identifiers to be filtered and the CAN identifiers to be collected are written into the system internal or external FLASH; When the system is restarted, the CAN identifier is read from the internal storage space of the MCU or the CAN identifier is read from the external FLASH to filter the CAN message and report according to the CAN identifier and corresponding data to be collected; After the cloud platform analyzes the big data, if it is found that a new CAN signal needs to be added, it will be sent to the communication module through remote configuration.
8. The method according to claim 7, characterized in that The method further comprises: Locate the battery signal acquisition system; The location of the battery signal acquisition system is reported to the cloud platform.
