Battery data transmission method, device, electronic device and storage medium

By receiving the transmission instructions of the terminal in the battery management system, configuring the data to be transmitted into an extended information packet with a fixed transmission cycle, and sending the packet when the transmission cycle arrives, the problem of untimely transmission of data to the terminal is solved, and the timely and effective data transmission is achieved.

CN115118789BActive Publication Date: 2025-04-25ZHUHAI COSMX POWER CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210842876.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-18
Publication Date
2025-04-25
Estimated Expiration
2042-07-18

AI Technical Summary

Technical Problem

The prior art is difficult to realize that the battery management system can transmit data in a timely and effective manner to the terminal, resulting in the terminal being unable to know the battery situation in time, affecting normal operation.

Method used

By receiving the transmission instructions sent by the terminal, according to the transmission cycle of the generated extended information packet, an appropriate extended information packet is selected from the extended information packet, and the data to be transmitted is configured into the mounted packet of the extended information packet. As the transmission cycle arrives, the configured extended information packet is sent to the terminal.

Benefits of technology

The battery management system can transmit data promptly and effectively to the terminal, ensure that the terminal can promptly understand the battery situation and improve the normal operation ability of the terminal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115118789B_ABST
    Figure CN115118789B_ABST
Patent Text Reader

Abstract

The present application provides a battery data transmission method, device, electronic device and storage medium. The method includes: receiving a first transmission instruction sent by a terminal, the first transmission instruction represents the data to be transmitted; selecting a first extended information packet from the generated extended information packets according to the transmission cycle of the generated extended information packets; configuring the identifier and the mounted package in the first extended information packet according to the data to be transmitted; when the transmission cycle of the first extended information packet arrives, sending the configured first extended information packet to the terminal. The scheme of the present application realizes timely and effective data transmission to the terminal based on the terminal request.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to battery technology, and more particularly to a battery data transmission method, device, electronic device and storage medium. Background Art

[0002] With the rapid development of science and technology, power products have been accepted by more and more consumers, and products need to be constantly updated and iterated to meet the growing demands of consumers. Correspondingly, terminals have higher requirements for the amount of information and data security of batteries.

[0003] At present, in order to ensure the normal operation of the terminal, the terminal needs to obtain the battery status from the battery management system in a timely manner. Therefore, based on the terminal request, how to realize the battery management system to transmit data to the terminal in a timely and effective manner has become a problem that needs to be solved urgently. Summary of the invention

[0004] The present application provides a battery data transmission method, device, electronic device and storage medium, which are used to enable a battery management system to transmit data to a terminal in a timely and effective manner based on a terminal request.

[0005] In a first aspect, the present application provides a battery data transmission method, comprising: receiving a first transmission instruction sent by a terminal, the first transmission instruction representing data to be transmitted; selecting a first extended information packet from the generated extended information packet according to the transmission cycle of the generated extended information packet, the extended information packet comprising: a basic information data packet header, basic information data, a mount package identifier and a mount package; wherein the mount package identifier and mount of the first extended information packet are empty; according to the data to be transmitted, configuring the mount package identifier and the mount package in the first extended information packet, wherein the configured mount package identifier represents the storage location of the data to be transmitted, and the configured mount package encapsulates the data to be transmitted; when the transmission cycle of the first extended information packet arrives, sending the configured first extended information packet to the terminal.

[0006] In a possible implementation, the selecting a first extended information packet from the generated extended information packets according to the transmission period of the generated extended information packets includes: according to the transmission period of the generated extended information packets, taking the extended information packet with the earliest transmission period among the generated extended information packets as the first extended information packet.

[0007] In a possible implementation, the configuration of the mount package identifier and the mount package in the first extended information packet according to the data to be transmitted includes: obtaining the storage time of the data to be transmitted; and encapsulating the data to be transmitted into the mount package in the order of storage time using a one-way linked list; wherein each data to be transmitted in the mount package carries a pointer to the next data to be transmitted, and the pointer carried by the last data to be transmitted is empty; and updating the identifier of the mount package to a first pointer, and the first pointer points to the storage address of the first data to be transmitted in the mount package.

[0008] In a possible implementation, before sending the configured first extended information packet to the terminal, it also includes: if there is urgent data currently, encapsulating the urgent data into the first position of the mount package encapsulating the data to be transmitted; moving the data to be transmitted in the mount package to after the urgent data, or deleting the data to be transmitted in the mount package.

[0009] In a possible implementation, the method further includes: if the data volume of the data to be transmitted exceeds the preset transmittable data volume of a single mount package, splitting the data to be transmitted into multiple sub-data according to the transmittable data volume of the single mount package; selecting the first extended information packet from the generated extended information packet includes: selecting multiple first extended information packets with the same number as the multiple sub-data from the generated extended information packet, and the multiple first extended information packets correspond one-to-one to the multiple sub-data; configuring the mount package identifier and the mount package in the first extended information packet according to the data to be transmitted includes: configuring the mount package identifier and the mount package in the first extended information packet according to the data to be transmitted, wherein the configured mount package identifier represents the storage location of the sub-data corresponding to the first extended information packet, and the configured mount package encapsulates the sub-data corresponding to the first extended information packet.

[0010] In a possible implementation manner, the method further includes: for a second extended information packet other than the first extended information packet in the generated extended information packets, sending the second extended information packet to the terminal based on a transmission period of the second extended information packet.

[0011] In a second aspect, the present application provides a battery data transmission device, comprising: a receiving module, used to receive a first transmission instruction sent by a terminal, the first transmission instruction representing the data to be transmitted; a selection module, used to select a first extended information packet from the generated extended information packet according to the transmission cycle of the generated extended information packet, the extended information packet including: a basic information data packet header, basic information data, a mount package identifier and a mount package; wherein the mount package identifier and mount of the first extended information packet are empty; a configuration module, used to configure the mount package identifier and the mount package in the first extended information packet according to the data to be transmitted, wherein the configured mount package identifier represents the storage location of the data to be transmitted, and the configured mount package encapsulates the data to be transmitted; a sending module, used to send the configured first extended information packet to the terminal when the transmission cycle of the first extended information packet arrives.

[0012] In a possible implementation manner, the selection module is specifically configured to: according to the transmission periods of the generated extended information packets, use the extended information packet with the earliest transmission period among the generated extended information packets as the first extended information packet.

[0013] In a possible implementation, the configuration module includes: an encapsulation unit, used to obtain the storage time of the data to be transmitted; and, in the order of storage time, encapsulating the data to be transmitted into the mount package in a one-way linked list manner; wherein each data to be transmitted in the mount package carries a pointer to the next data to be transmitted, and the pointer carried by the last data to be transmitted is empty; an update unit, used to update the identifier of the mount package to a first pointer, and the first pointer points to the storage address of the first data to be transmitted in the mount package.

[0014] In a possible implementation, the configuration module also includes: an insertion unit, used to encapsulate the urgent data into the first position of the mount package encapsulating the data to be transmitted if there is urgent data currently; a processing unit, used to move the data to be transmitted in the mount package to after the urgent data, or to delete the data to be transmitted in the mount package.

[0015] In a possible implementation, the device also includes: a splitting module, which is used to split the data to be transmitted into multiple sub-data according to the transmittable data volume of the single mount package if the data volume of the data to be transmitted exceeds the preset transmittable data volume of a single mount package; the selection module is specifically used to: select multiple first extended information packets with the same number as the multiple sub-data from the generated extended information packets, and the multiple first extended information packets correspond to the multiple sub-data one-to-one; the configuration module is specifically used to: configure the mount package identifier and the mount package in the first extended information packet according to the data to be transmitted, wherein the configured mount package identifier represents the storage location of the sub-data corresponding to the first extended information packet, and the configured mount package encapsulates the sub-data corresponding to the first extended information packet.

[0016] In a possible implementation manner, the sending module is further configured to: for a second extended information packet other than the first extended information packet in the generated extended information packets, send the second extended information packet to the terminal based on a transmission period of the second extended information packet.

[0017] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method described above.

[0018] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to implement the method as described above when executed by a processor.

[0019] In the battery data transmission method, device, electronic device and storage medium provided by the present application, a first transmission instruction sent by a receiving terminal represents the data to be transmitted; according to the transmission cycle of the generated extended information packet, a first extended information packet is selected from the generated extended information packet; according to the data to be transmitted, the identifier and the mounted package in the first extended information packet are configured; when the transmission cycle of the first extended information packet arrives, the configured first extended information packet is sent to the terminal. The scheme of the present application configures the data to be transmitted requested by the terminal into the mounted package in the first extended information packet with a fixed transmission cycle based on the data request of the terminal, and transmits the data to be transmitted to the terminal through the first extended information packet, thereby realizing the battery management system to transmit data to the terminal in a timely and effective manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0021] Figure 1 A schematic diagram of a battery data transmission scenario provided for this application;

[0022] Figure 2 A flowchart of a battery data transmission method provided in Embodiment 1 of the present application;

[0023] Figure 3 A schematic diagram of the structure of the extended information package provided in Example 1 of the present application;

[0024] Figure 4 A schematic diagram of the structure of a battery data transmission device provided in Embodiment 2 of the present application;

[0025] Figure 5 This is a schematic diagram of the structure of an electronic device provided in Example 3 of the present application.

[0026] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0027] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0028] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.

[0029] The terms "first", "second", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise indicated. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, for example, they can be implemented in an order other than those given in the diagrams or descriptions of the embodiments of this application.

[0030] In addition, the terms "including" and "having" and any variations thereof are intended to cover but not exclude inclusion, for example, a product or device comprising a series of components is not necessarily limited to those components explicitly listed, but may include other components not explicitly listed or inherent to these products or devices. The term "module" as used in this application refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic or combination of hardware and / or software code that can perform the functions associated with the element.

[0031] The term "Battery Management System (BMS)" used in the embodiments of this application refers to a management system for battery charging and discharging, which mainly has the following functions: intelligent management and maintenance of batteries, prevention of overcharging and overdischarging of batteries, extension of battery life, and monitoring of battery status. The battery management system can conduct an in-depth assessment of the battery status based on the monitored information, mainly including: state of charge, power boundary, health status, fault status, etc.

[0032] The technical solutions of the present application and the technical solutions of the present application are described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. In the description of the present application, unless otherwise clearly specified and limited, each term should be understood in a broad sense in the art. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0033] Figure 1 This is a schematic diagram of the battery data transmission scenario provided by this application. Figure 1 As shown, the battery management system 100 transmits the battery status data to the terminal 120 .

[0034] The terminal 120 may be a communication device, such as a mobile terminal, a computer, a server, a tablet computer, a laptop computer, a smart watch, etc. The terminal 120 may also be a smart device, such as a drone, a cordless power tool, a robot, a robot dog, a sweeper, a cordless vacuum cleaner, etc. The terminal 120 may also be a transportation device, such as a pure electric vehicle, a hybrid vehicle, a fuel cell vehicle, an electric vehicle, an unmanned vehicle, etc.

[0035] In practical applications, according to the relevant requirements of the field, the battery management system 100 will periodically send information packets 110 to the terminal. Among them, the information packet 110 includes: a data frame header 111, data 112, and a check 113. The data frame header 111 represents the type identifier of the information packet, such as a voltage information packet identifier, a current information packet identifier, a temperature information packet identifier, a capacity information packet identifier, etc. The data 112 is real-time data corresponding to the information packet type, such as voltage real-time data, current real-time data, temperature real-time data, capacity real-time data, etc. The check 113 is used to protect the data 112 to avoid data distortion caused by the transmission process. Optionally, according to the requirements of the terminal 120, the periods of sending different types of information packets can be the same or different. For example, the battery management system 100 sends a current information packet to the terminal 120 every hour, and the battery management system 100 sends a capacity information packet to the terminal 120 every two hours. In practical applications, in order to ensure the normal operation of the terminal, the terminal needs to obtain the battery status from the battery management system in a timely manner, and the terminal sends a data request to the battery management system to request data transmission. In an embodiment of the present application, based on the terminal request, the battery management system is applied to periodically send information packets to the terminal, and the data requested by the terminal is mounted into the periodically sent information packets and transmitted to the terminal together, thereby enabling the battery management system to transmit data to the terminal in a timely and effective manner.

[0036] Embodiment 1

[0037] Figure 2 This is a flow chart of a battery data transmission method provided in the first embodiment of the present application. The implementation subject of this embodiment may be a battery data transmission device, such as Figure 2 As shown, the method includes:

[0038] S201, receiving a first transmission instruction sent by a terminal, where the first transmission instruction represents data to be transmitted;

[0039] S202, selecting a first extended information packet from the generated extended information packets according to the transmission period of the generated extended information packets;

[0040] S203, configuring the mount package identifier and the mount package in the first extended information package according to the data to be transmitted;

[0041] S204: When a transmission period of the first extended information packet arrives, send the configured first extended information packet to the terminal.

[0042] Among them, the first transmission instruction is an instruction for the terminal to request data to be transmitted, and the first transmission instruction represents the data to be transmitted. For example, the first transmission instruction may include: the address of the data to be transmitted; for example, the first transmission instruction includes address 1, and the data in address 1 is used as the data to be transmitted. For another example, the first transmission instruction may include: the type of data to be transmitted and the monitoring time. For example, the first transmission instruction includes: battery overvoltage data and 10:00:00. The battery overvoltage data at 10:00:00 is used as the data to be transmitted.

[0043] In practical applications, the execution subject of the battery data transmission method can be a battery data transmission device, which can be implemented in many ways, for example, it can be implemented through a computer program, such as application software, etc.; or, for example, a chip, etc. It can also be implemented as a medium storing relevant computer programs, such as a USB disk, a cloud disk, etc.; or, it can also be implemented through a physical device integrated or installed with relevant computer programs, such as a server, etc.

[0044] In order to better understand the solution, an example is given with reference to the structural diagram of the extended information packet. Figure 3 A schematic diagram of the structure of the extended information package provided in the first embodiment of the present application, such as Figure 3 As shown, the extended information packet includes: a basic information data packet header 301, basic information data 302, a basic check 303, a mount package identifier 304, a mount package 305 and a mount check 306. The basic information data packet header 301 represents the type of the extended information packet, which can be an extended information packet type identifier; the basic information data 302 is the real-time data corresponding to the extended information packet type. For example, the basic information packet data includes a voltage identifier, and the basic information data is voltage real-time data. The basic check 303 is used to protect the basic information data to prevent distortion during the transmission of the basic information data. The mount package identifier 304 represents whether data is encapsulated in the mount package; when the mount package identifier is empty, it means that there is no data in the current mount package; correspondingly, when the mount package identifier is not empty, it means that there is data in the mount package at this time. The mount package 305 can be used to encapsulate the data to be transmitted. The mount check 306 is used to protect the data to be transmitted to prevent distortion during the transmission of the data to be transmitted.

[0045] In actual applications, the basic information data packet header and basic information data of the generated extended information packet are not empty, and the identification and mounting package of the mount package are empty. Correspondingly, the basic information data packet header and basic information data of the unconfigured first extended information packet are not empty, and the identification and mounting package of the mount package are empty. After configuration, the data to be transmitted is encapsulated into the mount package.

[0046] Specifically, in S204, when the transmission cycle of the first extended information packet arrives, the configured first extended information packet is sent to the terminal. For example, the data to be transmitted is the battery overvoltage data at 10:10:00, and the first extended information packet is a current information packet. The configured first extended information packet includes: a current information packet identifier, current real-time data, the address of the battery overvoltage data at 10:10:00, and the battery overvoltage data at 10:10:00. When the transmission cycle of the first extended information packet arrives, the first extended information packet is sent to the terminal, and the terminal can obtain the voltage real-time data and the voltage overvoltage data at 10:10:00 at one time.

[0047] In this embodiment, based on the transmission request of the terminal, the data to be transmitted is encapsulated into the mounting package of the first extended information package, and the first extended information package is sent to the terminal, so that the battery management system can transmit data to the terminal in a timely and effective manner.

[0048] In addition, regarding the determination process of the first extended information packet, in one implementation, the S202 includes:

[0049] According to the transmission periods of the generated extended information packets, the extended information packet with the earliest transmission period among the generated extended information packets is used as the first extended information packet.

[0050] The transmission period of the extended information packet is the transmission period of the basic information data in the extended information packet, and the transmission periods corresponding to extended information packets of different basic data types are different. The first extended information packet is a special extended information packet for transmitting the data to be transmitted, and the transmission period of the first extended information packet is also determined according to the type of the basic information data.

[0051] Specifically, according to the transmission period of the generated extended information packets, the extended information packet with the earliest transmission period in the generated extended information packets is used as the first extended information packet. For example, assuming that the generated extended information packets include a voltage extended information packet and a current extended information packet, the transmission period of the voltage extended information packet is 30 seconds, and the transmission period of the current extended information packet is 15 seconds, it is found that the voltage extended information packet will start to be transmitted after 2 seconds from the current moment, and the current extended information will start to be transmitted after 10 seconds from the current moment, then the voltage extended information packet is selected as the first extended information packet.

[0052] It should be noted that when the mount packet in the extended information packet that arrives first in the transmission cycle has encapsulated other data to be transmitted, and the amount of data to be transmitted exceeds the remaining transmittable data amount of the mount packet, it is necessary to re-evaluate the extended information packet that arrives first in the transmission cycle. When the remaining transmittable data amount of the mount packet in the re-evaluated extended information packet can meet the data amount requirement of the data to be transmitted, the re-evaluated extended information packet will be used as the first extended information packet.

[0053] In this implementation, according to the transmission cycle of the extended information packets, the extended information packet with the earliest transmission cycle among the generated extended information packets is dynamically determined as the first extended information packet, so that the data to be transmitted can be transmitted to the terminal as quickly as possible, thereby improving the transmission efficiency of the data to be transmitted.

[0054] In addition, regarding the identification of the mount package and the configuration method of the mount package, in one embodiment, the S203 includes: obtaining the storage time of the data to be transmitted; and, in the order of storage time, encapsulating the data to be transmitted into the mount package in a one-way linked list; wherein each data to be transmitted in the mount package carries a pointer to the next data to be transmitted, and the pointer carried by the last data to be transmitted is empty; updating the identification of the mount package to a first pointer, and the first pointer points to the storage address of the first data to be transmitted in the mount package.

[0055] In actual applications, the data to be transmitted is stored in chronological order. According to the storage time of the data to be transmitted, the corresponding data to be transmitted in the storage space can be determined. For example, the battery management system monitors the battery status, stores the battery overvoltage data every 10 seconds, and stores the battery overvoltage data in the storage space corresponding to the battery management system in chronological order. If the data to be transmitted is the battery overvoltage data between 10:00:00 and 10:01:00, the battery management system extracts the battery overvoltage data between 10:00:00 and 10:01:00 from the storage space, and stores the data to be transmitted in the temporary cache in chronological order. For example, the data to be transmitted can be stored in the temporary cache in a stacked manner, with the battery overvoltage data at 10:00:00 at the bottom of the stack and the battery overvoltage data at 10:01:00 at the top of the stack.

[0056] Specifically, the data to be transmitted is encapsulated into the mount package in the order of storage time using a one-way linked list. For example, the data to be transmitted is the battery overvoltage data from 10:00:00 to 10:01:00, and the data to be transmitted is taken out from the temporary cache in sequence according to the time sequence and encapsulated into the mount package. For example, the data to be transmitted is stored in the temporary cache in a stack manner, and the battery overvoltage data at 10:00:00 is at the bottom of the stack, and the battery overvoltage data at 10:01:00 is at the top of the stack. In chronological order, the battery overvoltage data at 10:01:00 is taken out first and configured at the first position of the mount package, and the subsequent data is configured in sequence. There is a pointer behind each data, which points to the storage address of the next data, and the pointer behind the last data is empty.

[0057] Correspondingly, the identifier of the mount package is updated to a first pointer, and the first pointer points to the storage address of the first data to be transmitted in the mount package. For example, the first data in the mount package is the battery overvoltage data at 10:01:00, and the first pointer points to the storage address of the battery overvoltage data at 10:01:00.

[0058] In this implementation, the data to be transmitted is encapsulated into the mount package in a one-way linked list manner according to the storage time of the data to be transmitted, so that the terminal can obtain the data to be transmitted in time sequence, thereby improving the efficiency of data transmission.

[0059] In addition, considering the transmission of emergency data, in one implementation, the S204 further includes:

[0060] If there is urgent data currently, encapsulate the urgent data into the first position of the mount package encapsulating the data to be transmitted;

[0061] The data to be transmitted in the mount package is moved to after the urgent data, or the data to be transmitted in the mount package is deleted.

[0062] In practical applications, emergency data refers to data that the battery management system needs to transmit to the terminal urgently, and may be prompt data when the battery is abnormal, such as battery short circuit data, battery power data, etc.

[0063] Specifically, if there is urgent data currently, the urgent data is encapsulated into the first position of the mount package encapsulating the data to be transmitted. For example, if the current battery power is 10%, it may cause the terminal to automatically shut down. The battery management system needs to send the terminal the remaining battery power data, encapsulate the remaining battery power data into the first position of the extended package of the first extended information package to be transmitted, and update the mount package identifier to the storage address of the urgent data.

[0064] Correspondingly, the data to be transmitted in the mount package is moved to after the urgent data, or the data to be transmitted in the mount package is deleted. For example, the amount of data to be transmitted in the first extended information packet is small. After the urgent data is placed at the first position of the mount package, the data to be transmitted is retained, which has little impact on the transmission time of the first information extension packet. The data to be transmitted can be moved to after the urgent data. At this time, the pointer after the urgent data points to the storage address of the first data to be transmitted. For another example, the amount of data to be transmitted in the first extended information packet is large, and the time required for the transmission of the first information extension packet is long. After the urgent data is inserted into the first position of the mount package, the original data to be transmitted in the package is deleted, and only the urgent data is retained. At this time, the pointer after the urgent data is empty.

[0065] In this embodiment, if there is an urgent data transmission demand, the urgent data is inserted into the first position of the mount package, and according to the transmission status of the first information extension package, it is dynamically determined whether the data to be transmitted is retained. This can ensure that the urgent data is transmitted to the terminal in a timely manner, thereby improving the reliability and safety of the battery.

[0066] In addition, considering that the amount of data to be transmitted exceeds the preset transmittable amount of data of a single mount package, in one embodiment, the method further includes:

[0067] If the amount of the data to be transmitted exceeds the preset transmittable data amount of a single mount package, the data to be transmitted is split into a plurality of sub-data according to the transmittable data amount of the single mount package;

[0068] The S202 includes:

[0069] Selecting a plurality of first extended information packets having the same number as the plurality of sub-data from the generated extended information packets, wherein the plurality of first extended information packets correspond to the plurality of sub-data in a one-to-one manner;

[0070] The S203 includes:

[0071] According to the data to be transmitted, the identifier of the mount package and the mount package in the first extended information package are configured, wherein the identifier of the configured mount package represents the storage location of the sub-data corresponding to the first extended information package, and the configured mount package encapsulates the sub-data corresponding to the first extended information package.

[0072] In practical applications, in order to ensure the efficiency of data transmission between the battery and the terminal, the amount of data that can be transmitted by a single mounted package can be set. For example, the amount of data that can be transmitted by a single mounted package is 5. Specifically, if the amount of data to be transmitted exceeds the preset amount of data that can be transmitted by a single mounted package, the data to be transmitted is split into multiple sub-data according to the amount of data that can be transmitted by the single mounted package. For example, if the amount of data to be transmitted is 20, the data to be transmitted can be divided into sub-data 1, sub-data 2, sub-data 3 and sub-data 4 in chronological order.

[0073] Correspondingly, from the generated extended information packets, multiple first extended information packets are selected that are consistent with the number of the multiple sub-data, and the multiple first extended information packets correspond to the multiple sub-data one by one. For example, the number of sub-data is 4, and the four first extended information packets are selected, namely: first extended information packet 1, first extended information packet 2, first extended information packet 3, and first extended information packet 4. First extended information packet 1 is used to transmit sub-data 1, first extended information packet 2 is used to transmit sub-data 2, first extended information packet 3 is used to transmit sub-data 3, and first extended information packet 4 is used to transmit sub-data 4.

[0074] Correspondingly, according to the data to be transmitted, the identifier of the mount package and the mount package in the first extended information package are configured, wherein the identifier of the configured mount package represents the storage location of the sub-data corresponding to the first extended information package, and the configured mount package encapsulates the sub-data corresponding to the first extended information package. For example, the mount package identifier in the configured first information extension package 1 represents the storage address of the first data of sub-data 1, and the mount package encapsulates sub-data 1; the mount package identifier in the configured first information extension package 2 represents the storage address of the first data of sub-data 2, and the mount package encapsulates sub-data 2; the mount package identifier in the configured first information extension package 3 represents the storage address of the first data of sub-data 3, and the mount package encapsulates sub-data 3; the mount package identifier in the configured first information extension package 4 represents the storage address of the first data of sub-data 4, and the mount package encapsulates sub-data 4.

[0075] In this embodiment, when the amount of data to be transmitted exceeds the preset transmittable data amount of a single mount package, the data to be transmitted is split into multiple sub-data, and a corresponding number of first extended information packets are used to transmit the data to be transmitted, thereby improving the transmission efficiency of the data to be transmitted.

[0076] In addition, for the transmission process of the extended information packet that is not selected to transmit the data to be transmitted, in one embodiment, the method also includes: for the second extended information packet other than the first extended information packet in the generated extended information packet, based on the transmission period of the second extended information packet, sending the second extended information packet to the terminal.

[0077] The second extended information packet is an extended information packet that is not selected to transmit the data to be transmitted, and is only used to transmit basic information data. The mount package identifier and the mount package are empty. In actual applications, if the first transmission instruction is not received, all the generated extended information packets are second extended information packets, which are only used to transmit basic information data; or, if the first transmission instruction is received and the extended information packet that is not selected as the first extended information packet is used as the second extended information packet, which is only used to transmit basic information data.

[0078] In actual applications, when the transmission cycle of the extended information packet arrives, the extended information packet is sent to the terminal. Specifically, based on the transmission cycle of the second extended information packet, the second extended information packet is sent to the terminal. For example, the transmission cycle of the battery capacity extended information packet is 30 seconds. According to the transmission cycle, it is determined that the next battery capacity extended information packet will be transmitted in 10 seconds. Before the transmission cycle arrives, the battery capacity extended information packet is not selected to transmit the data to be transmitted. In this case, the battery capacity extended information packet is used as the second extended information packet, and when the transmission cycle arrives, the second extended information packet is transmitted to the terminal.

[0079] In this embodiment, when the second extended information packet transmission period arrives, the second extended information packet is transmitted to the terminal, thereby ensuring the transmission of basic information data and providing reliable and secure data for the terminal.

[0080] In the battery data transmission method provided in this embodiment, a first transmission instruction sent by a receiving terminal represents the data to be transmitted; according to the transmission cycle of the generated extended information packet, a first extended information packet is selected from the generated extended information packet; according to the data to be transmitted, the identifier and the mounted package in the first extended information packet are configured; when the transmission cycle of the first extended information packet arrives, the configured first extended information packet is sent to the terminal. In the battery data transmission process of this embodiment, based on the request of the terminal, the data to be transmitted required by the terminal is configured into the mounted package in the first extended information packet with a fixed transmission cycle, and the data to be transmitted is transmitted to the terminal through the first extended information packet, so that the battery management system can transmit data to the terminal in a timely and effective manner.

[0081] Embodiment 2

[0082] Figure 4 This is a schematic diagram of the structure of the battery data transmission device provided in the second embodiment of the present application. Figure 4 As shown, the device comprises:

[0083] A receiving module 41, configured to receive a first transmission instruction sent by a terminal, wherein the first transmission instruction represents data to be transmitted;

[0084] A selection module 42, configured to select a first extended information packet from the generated extended information packets according to the transmission period of the generated extended information packets;

[0085] A configuration module 43, configured to configure the mount package identifier and the mount package in the first extended information package according to the data to be transmitted;

[0086] The sending module 44 is configured to send the configured first extended information packet to the terminal when the transmission period of the first extended information packet arrives.

[0087] The first transmission instruction is an instruction for the terminal to request the data to be transmitted, and the first transmission instruction represents the data to be transmitted.

[0088] In actual applications, the basic information data packet header and basic information data of the generated extended information packet are not empty, and the identification and mounting package of the mount package are empty. Correspondingly, the basic information data packet header and basic information data of the unconfigured first extended information packet are not empty, and the identification and mounting package of the mount package are empty. After configuration, the data to be transmitted is encapsulated into the mount package.

[0089] In this embodiment, based on the transmission request of the terminal, the data to be transmitted is encapsulated into the mounting package of the first extended information package and sent to the terminal through the first extended information package, thereby realizing timely and effective data transmission from the battery management system to the terminal.

[0090] In addition, in one embodiment, the selection module 42 is specifically used for:

[0091] According to the transmission periods of the generated extended information packets, the extended information packet with the earliest transmission period among the generated extended information packets is used as the first extended information packet.

[0092] The transmission period of the extended information packet is the transmission period of the basic information data in the extended information packet, and the transmission periods corresponding to extended information packets of different basic data types are different. The first extended information packet is a special extended information packet for transmitting the data to be transmitted, and the transmission period of the first extended information packet is also determined according to the type of the basic information data.

[0093] It should be noted that when other data to be transmitted have been encapsulated in the mount packet in the extended information packet that arrives first in the transmission cycle, and the amount of data to be transmitted exceeds the remaining transmittable data amount of the mount packet, it is necessary to re-evaluate the extended information packet that arrives first in the transmission cycle. When the remaining transmittable data amount of the mount packet in the re-evaluated extended information packet can meet the data amount requirement of the data to be transmitted, the re-evaluated extended information packet is used as the first extended information packet. In this embodiment, according to the transmission cycle of the extended information packet, the extended information packet that arrives first in the transmission cycle among the generated extended information packets is dynamically determined as the first extended information packet, so that the data to be transmitted can be transmitted to the terminal as quickly as possible, thereby improving the transmission efficiency of the data to be transmitted.

[0094] In addition, in one embodiment, the configuration module 43 includes:

[0095] An encapsulation unit is used to obtain the storage time of the data to be transmitted; and, in the order of the storage time, the data to be transmitted is encapsulated into the mount package in a one-way linked list; wherein each data to be transmitted in the mount package carries a pointer to the next data to be transmitted, and the pointer carried by the last data to be transmitted is empty; an update unit is used to update the identifier of the mount package to a first pointer, and the first pointer points to the storage address of the first data to be transmitted in the mount package.

[0096] In practical applications, the data to be transmitted are stored in chronological order. According to the storage time of the data to be transmitted, the corresponding data to be transmitted in the storage space can be determined.

[0097] In this implementation, the data to be transmitted is encapsulated into the mount package in a one-way linked list manner according to the storage time of the data to be transmitted, so that the terminal can obtain the data to be transmitted in time sequence, thereby improving the efficiency of data transmission.

[0098] In addition, in one implementation, the configuration module 43 further includes:

[0099] an inserting unit, configured to encapsulate the urgent data into the first position of the mount package encapsulating the data to be transmitted if there is urgent data currently;

[0100] The processing unit is used to move the data to be transmitted in the mount package to after the urgent data, or to delete the data to be transmitted in the mount package.

[0101] In practical applications, emergency data refers to data that the battery management system needs to transmit to the terminal urgently, and may be prompt data when the battery is abnormal.

[0102] In this embodiment, if there is an urgent data transmission demand, the urgent data is inserted into the first position of the mount package, and according to the transmission status of the first information extension package, it is dynamically determined whether the data to be transmitted is retained. This can ensure that the urgent data is transmitted to the terminal in a timely manner, thereby improving the reliability and safety of the battery.

[0103] In addition, in one embodiment, the device further comprises:

[0104] A splitting module, configured to split the data to be transmitted into a plurality of sub-data according to the transmittable data volume of the single mount package if the data volume of the data to be transmitted exceeds the transmittable data volume of the preset single mount package;

[0105] The selection module 42 is specifically used for:

[0106] Selecting a plurality of first extended information packets having the same number as the plurality of sub-data from the generated extended information packets, wherein the plurality of first extended information packets correspond to the plurality of sub-data in a one-to-one manner;

[0107] The configuration module 43 is specifically used for:

[0108] According to the data to be transmitted, the identifier of the mount package and the mount package in the first extended information package are configured, wherein the identifier of the configured mount package represents the storage location of the sub-data corresponding to the first extended information package, and the configured mount package encapsulates the sub-data corresponding to the first extended information package.

[0109] In practical applications, in order to ensure the efficiency of data transmission between the battery and the terminal, the amount of data that can be transmitted by a single mount package can be set.

[0110] In this embodiment, when the amount of data to be transmitted exceeds the preset transmittable data amount of a single mount package, the data to be transmitted is split into multiple sub-data, and a corresponding number of first extended information packets are used to transmit the data to be transmitted, thereby improving the transmission efficiency of the data to be transmitted.

[0111] In addition, in one implementation, the sending module is further configured to: for a second extended information packet other than the first extended information packet in the generated extended information packets, send the second extended information packet to the terminal based on a transmission period of the second extended information packet.

[0112] Among them, the second extended information packet is an extended information packet that is not selected to transmit the data to be transmitted, and is only used to transmit basic information data. The mount package identifier and the mount package are empty. In actual applications, if the first transmission instruction is not received, all the generated extended information packets are second extended information packets, which are only used to transmit basic information data; or, if the first transmission instruction is received and the extended information packet is not selected as the first extended information packet, it is used as the second extended information packet, which is only used to transmit basic information data. In actual applications, when the transmission period of the extended information packet arrives, the extended information packet is sent to the terminal.

[0113] In this embodiment, when the second extended information packet transmission period arrives, the second extended information packet is transmitted to the terminal, thereby ensuring the transmission of basic information data and providing reliable and secure data for the terminal.

[0114] In the battery data transmission device provided in this embodiment, the receiving module receives the first transmission instruction sent by the terminal, and the first transmission instruction represents the data to be transmitted; the selection module selects the first extended information packet from the generated extended information packet according to the transmission cycle of the generated extended information packet; the configuration module configures the identifier and the mounted package in the first extended information packet according to the data to be transmitted; when the transmission cycle of the first extended information packet arrives, the sending module sends the configured first extended information packet to the terminal. In the battery data transmission process of this embodiment, based on the request of the terminal, the data to be transmitted required by the terminal is configured into the mounted package in the first extended information packet with a fixed transmission cycle, and the data to be transmitted is transmitted to the terminal through the first extended information packet, so that the battery management system can transmit data to the terminal in a timely and effective manner.

[0115] Embodiment 3

[0116] Figure 5 This is a schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present application, such as Figure 5 As shown, the electronic device includes:

[0117] The electronic device includes a processor 51 and a memory 52; it may also include a communication interface 53 and a bus 54. The processor 51, the memory 52, and the communication interface 53 may communicate with each other through the bus 54. The communication interface 53 may be used for information transmission. The processor 51 may call the logic instructions in the memory 54 to execute the method of the above embodiment.

[0118] In addition, the logic instructions in the memory 52 described above can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.

[0119] The memory 52 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the methods in the embodiments of the present application. The processor 51 executes functional applications and data processing by running the software programs, instructions, and modules stored in the memory 52, that is, implementing the methods in the above method embodiments.

[0120] The memory 52 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 52 may include a high-speed random access memory and may also include a non-volatile memory.

[0121] An embodiment of the present application provides a non-temporary computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the method described in the above embodiment.

[0122] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0123] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A battery data transmission method, characterized in that: include: receiving a first transmission instruction sent by a terminal, wherein the first transmission instruction represents data to be transmitted; According to the transmission cycle of the generated extended information packets, a first extended information packet is selected from the generated extended information packets, wherein the extended information packet includes: a basic information data packet header, basic information data, a mount packet identifier and a mount packet; wherein the mount packet identifier and mount of the first extended information packet are empty; According to the data to be transmitted, configuring the identifier of the mount package and the mount package in the first extended information package, wherein the configured identifier of the mount package represents the storage location of the data to be transmitted, and the configured mount package encapsulates the data to be transmitted; When the transmission period of the first extended information packet arrives, the configured first extended information packet is sent to the terminal.

2. The method according to claim 1, characterized in that The step of selecting a first extended information packet from the generated extended information packets according to the transmission period of the generated extended information packets comprises: According to the transmission periods of the generated extended information packets, the extended information packet with the earliest transmission period among the generated extended information packets is used as the first extended information packet.

3. The method according to claim 1, characterized in that The configuring the identifier of the mount package and the mount package in the first extended information package according to the data to be transmitted includes: Obtaining the storage time of the data to be transmitted; and encapsulating the data to be transmitted into the mount package in a one-way linked list in the order of the storage time; wherein each data to be transmitted in the mount package carries a pointer to the next data to be transmitted, and the pointer carried by the last data to be transmitted is empty; The identifier of the mount package is updated to a first pointer, where the first pointer points to a storage address of the first data to be transmitted in the mount package.

4. The method according to claim 1, characterized in that: Before sending the configured first extended information packet to the terminal, the method further includes: If there is urgent data currently, encapsulate the urgent data into the first position of the mount package encapsulating the data to be transmitted; The data to be transmitted in the mount package is moved to after the urgent data, or the data to be transmitted in the mount package is deleted.

5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: If the amount of the data to be transmitted exceeds the preset transmittable data amount of a single mount package, the data to be transmitted is split into a plurality of sub-data according to the transmittable data amount of the single mount package; The step of selecting the first extended information packet from the generated extended information packets comprises: Selecting a plurality of first extended information packets having the same number as the plurality of sub-data from the generated extended information packets, wherein the plurality of first extended information packets correspond to the plurality of sub-data in a one-to-one manner; The configuring the identifier of the mount package and the mount package in the first extended information package according to the data to be transmitted includes: According to the data to be transmitted, the identifier of the mount package and the mount package in the first extended information package are configured, wherein the identifier of the configured mount package represents the storage location of the sub-data corresponding to the first extended information package, and the configured mount package encapsulates the sub-data corresponding to the first extended information package.

6. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: For a second extended information packet other than the first extended information packet in the generated extended information packets, the second extended information packet is sent to the terminal based on a transmission period of the second extended information packet.

7. A battery data transmission device, characterized in that: include: A receiving module, configured to receive a first transmission instruction sent by a terminal, wherein the first transmission instruction represents data to be transmitted; A selection module, used for selecting a first extended information packet from the generated extended information packets according to the transmission cycle of the generated extended information packets, wherein the extended information packet includes: a basic information data packet header, basic information data, a mount packet identifier and a mount packet; wherein the mount packet identifier and mount of the first extended information packet are empty; a configuration module, configured to configure the identifier of the mount package and the mount package in the first extended information package according to the data to be transmitted, wherein the identifier of the configured mount package represents the storage location of the data to be transmitted, and the configured mount package encapsulates the data to be transmitted; The sending module is used to send the configured first extended information packet to the terminal when the transmission period of the first extended information packet arrives.

8. The device according to claim 7, characterized in that The selection module is specifically used for: According to the transmission periods of the generated extended information packets, the extended information packet with the earliest transmission period among the generated extended information packets is used as the first extended information packet.

9. The device according to claim 7, characterized in that The configuration module includes: An encapsulation unit, used for obtaining the storage time of the data to be transmitted; and encapsulating the data to be transmitted into the mount package in a one-way linked list in the order of the storage time; wherein each data to be transmitted in the mount package carries a pointer to the next data to be transmitted, and the pointer carried by the last data to be transmitted is empty; An updating unit is used to update the identifier of the mount package to a first pointer, where the first pointer points to a storage address of the first data to be transmitted in the mount package.

10. The device according to claim 7, characterized in that The configuration module also includes: an inserting unit, configured to encapsulate the urgent data into the first position of the mount package encapsulating the data to be transmitted if there is urgent data currently; The processing unit is used to move the data to be transmitted in the mount package to after the urgent data, or to delete the data to be transmitted in the mount package.

11. The device according to any one of claims 7 to 10, characterized in that: The device also includes: A splitting module, configured to split the data to be transmitted into a plurality of sub-data according to the transmittable data volume of the single mount package if the data volume of the data to be transmitted exceeds the transmittable data volume of the preset single mount package; The selection module is specifically used for: Selecting a plurality of first extended information packets having the same number as the plurality of sub-data from the generated extended information packets, wherein the plurality of first extended information packets correspond to the plurality of sub-data in a one-to-one manner; The configuration module is specifically used for: According to the data to be transmitted, the identifier of the mount package and the mount package in the first extended information package are configured, wherein the identifier of the configured mount package represents the storage location of the sub-data corresponding to the first extended information package, and the configured mount package encapsulates the sub-data corresponding to the first extended information package.

12. The device according to any one of claims 7 to 10, characterized in that: The sending module is also used for: For a second extended information packet other than the first extended information packet in the generated extended information packets, the second extended information packet is sent to the terminal based on a transmission period of the second extended information packet.

13. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 6.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 6 when executed by a processor.

Citation Information

Patent Citations

  • Communication control system applied to automobile ECU

    CN101456390A

  • Device and method used for improving re-execution of loading in processor

    CN105487842A